pin_map.h 1.9 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381
  1. //*****************************************************************************
  2. //
  3. // pin_map.h - Mapping of peripherals to pins for all parts.
  4. //
  5. // Copyright (c) 2007-2011 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Texas Instruments (TI) is supplying this software for use solely and
  9. // exclusively on TI's microcontroller products. The software is owned by
  10. // TI and/or its suppliers, and is protected under applicable copyright
  11. // laws. You may not combine this software with "viral" open-source
  12. // software in order to form a larger program.
  13. //
  14. // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
  15. // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
  16. // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  17. // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
  18. // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
  19. // DAMAGES, FOR ANY REASON WHATSOEVER.
  20. //
  21. // This is part of revision 8264 of the Stellaris Peripheral Driver Library.
  22. //
  23. //*****************************************************************************
  24. #ifndef __PIN_MAP_H__
  25. #define __PIN_MAP_H__
  26. //*****************************************************************************
  27. //
  28. // LM3S101 Port/Pin Mapping Definitions
  29. //
  30. //*****************************************************************************
  31. #ifdef PART_LM3S101
  32. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  33. #define C0O_PORT GPIO_PORTB_BASE
  34. #define C0O_PIN GPIO_PIN_5
  35. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  36. #define C0_MINUS_PORT GPIO_PORTB_BASE
  37. #define C0_MINUS_PIN GPIO_PIN_4
  38. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  39. #define C0_PLUS_PORT GPIO_PORTB_BASE
  40. #define C0_PLUS_PIN GPIO_PIN_6
  41. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  42. #define C1_MINUS_PORT GPIO_PORTB_BASE
  43. #define C1_MINUS_PIN GPIO_PIN_5
  44. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  45. #define CCP0_PORT GPIO_PORTB_BASE
  46. #define CCP0_PIN GPIO_PIN_0
  47. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  48. #define SSICLK_PORT GPIO_PORTA_BASE
  49. #define SSICLK_PIN GPIO_PIN_2
  50. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  51. #define SSIFSS_PORT GPIO_PORTA_BASE
  52. #define SSIFSS_PIN GPIO_PIN_3
  53. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  54. #define SSIRX_PORT GPIO_PORTA_BASE
  55. #define SSIRX_PIN GPIO_PIN_4
  56. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  57. #define SSITX_PORT GPIO_PORTA_BASE
  58. #define SSITX_PIN GPIO_PIN_5
  59. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  60. #define SWCLK_PORT GPIO_PORTC_BASE
  61. #define SWCLK_PIN GPIO_PIN_0
  62. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  63. #define SWDIO_PORT GPIO_PORTC_BASE
  64. #define SWDIO_PIN GPIO_PIN_1
  65. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  66. #define SWO_PORT GPIO_PORTC_BASE
  67. #define SWO_PIN GPIO_PIN_3
  68. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  69. #define TCK_PORT GPIO_PORTC_BASE
  70. #define TCK_PIN GPIO_PIN_0
  71. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  72. #define TDI_PORT GPIO_PORTC_BASE
  73. #define TDI_PIN GPIO_PIN_2
  74. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  75. #define TDO_PORT GPIO_PORTC_BASE
  76. #define TDO_PIN GPIO_PIN_3
  77. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  78. #define TMS_PORT GPIO_PORTC_BASE
  79. #define TMS_PIN GPIO_PIN_1
  80. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  81. #define TRST_PORT GPIO_PORTB_BASE
  82. #define TRST_PIN GPIO_PIN_7
  83. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  84. #define U0RX_PORT GPIO_PORTA_BASE
  85. #define U0RX_PIN GPIO_PIN_0
  86. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  87. #define U0TX_PORT GPIO_PORTA_BASE
  88. #define U0TX_PIN GPIO_PIN_1
  89. #define 32KHZ_PERIPH SYSCTL_PERIPH_GPIOB
  90. #define 32KHZ_PORT GPIO_PORTB_BASE
  91. #define 32KHZ_PIN GPIO_PIN_1
  92. #endif // PART_LM3S101
  93. //*****************************************************************************
  94. //
  95. // LM3S102 Port/Pin Mapping Definitions
  96. //
  97. //*****************************************************************************
  98. #ifdef PART_LM3S102
  99. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  100. #define C0O_PORT GPIO_PORTB_BASE
  101. #define C0O_PIN GPIO_PIN_5
  102. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  103. #define C0_MINUS_PORT GPIO_PORTB_BASE
  104. #define C0_MINUS_PIN GPIO_PIN_4
  105. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  106. #define C0_PLUS_PORT GPIO_PORTB_BASE
  107. #define C0_PLUS_PIN GPIO_PIN_6
  108. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  109. #define CCP0_PORT GPIO_PORTB_BASE
  110. #define CCP0_PIN GPIO_PIN_0
  111. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  112. #define CCP1_PORT GPIO_PORTB_BASE
  113. #define CCP1_PIN GPIO_PIN_6
  114. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  115. #define I2CSCL_PORT GPIO_PORTB_BASE
  116. #define I2CSCL_PIN GPIO_PIN_2
  117. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  118. #define I2CSDA_PORT GPIO_PORTB_BASE
  119. #define I2CSDA_PIN GPIO_PIN_3
  120. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  121. #define SSICLK_PORT GPIO_PORTA_BASE
  122. #define SSICLK_PIN GPIO_PIN_2
  123. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  124. #define SSIFSS_PORT GPIO_PORTA_BASE
  125. #define SSIFSS_PIN GPIO_PIN_3
  126. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  127. #define SSIRX_PORT GPIO_PORTA_BASE
  128. #define SSIRX_PIN GPIO_PIN_4
  129. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  130. #define SSITX_PORT GPIO_PORTA_BASE
  131. #define SSITX_PIN GPIO_PIN_5
  132. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  133. #define SWCLK_PORT GPIO_PORTC_BASE
  134. #define SWCLK_PIN GPIO_PIN_0
  135. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  136. #define SWDIO_PORT GPIO_PORTC_BASE
  137. #define SWDIO_PIN GPIO_PIN_1
  138. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  139. #define SWO_PORT GPIO_PORTC_BASE
  140. #define SWO_PIN GPIO_PIN_3
  141. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  142. #define TCK_PORT GPIO_PORTC_BASE
  143. #define TCK_PIN GPIO_PIN_0
  144. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  145. #define TDI_PORT GPIO_PORTC_BASE
  146. #define TDI_PIN GPIO_PIN_2
  147. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  148. #define TDO_PORT GPIO_PORTC_BASE
  149. #define TDO_PIN GPIO_PIN_3
  150. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  151. #define TMS_PORT GPIO_PORTC_BASE
  152. #define TMS_PIN GPIO_PIN_1
  153. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  154. #define TRST_PORT GPIO_PORTB_BASE
  155. #define TRST_PIN GPIO_PIN_7
  156. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  157. #define U0RX_PORT GPIO_PORTA_BASE
  158. #define U0RX_PIN GPIO_PIN_0
  159. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  160. #define U0TX_PORT GPIO_PORTA_BASE
  161. #define U0TX_PIN GPIO_PIN_1
  162. #define 32KHZ_PERIPH SYSCTL_PERIPH_GPIOB
  163. #define 32KHZ_PORT GPIO_PORTB_BASE
  164. #define 32KHZ_PIN GPIO_PIN_1
  165. #endif // PART_LM3S102
  166. //*****************************************************************************
  167. //
  168. // LM3S300 Port/Pin Mapping Definitions
  169. //
  170. //*****************************************************************************
  171. #ifdef PART_LM3S300
  172. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  173. #define C0O_PORT GPIO_PORTD_BASE
  174. #define C0O_PIN GPIO_PIN_7
  175. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  176. #define C0_MINUS_PORT GPIO_PORTB_BASE
  177. #define C0_MINUS_PIN GPIO_PIN_4
  178. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  179. #define C0_PLUS_PORT GPIO_PORTB_BASE
  180. #define C0_PLUS_PIN GPIO_PIN_6
  181. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  182. #define C1O_PORT GPIO_PORTC_BASE
  183. #define C1O_PIN GPIO_PIN_5
  184. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  185. #define C1_MINUS_PORT GPIO_PORTB_BASE
  186. #define C1_MINUS_PIN GPIO_PIN_5
  187. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  188. #define C1_PLUS_PORT GPIO_PORTC_BASE
  189. #define C1_PLUS_PIN GPIO_PIN_5
  190. #define C2O_PERIPH SYSCTL_PERIPH_GPIOC
  191. #define C2O_PORT GPIO_PORTC_BASE
  192. #define C2O_PIN GPIO_PIN_6
  193. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  194. #define C2_MINUS_PORT GPIO_PORTC_BASE
  195. #define C2_MINUS_PIN GPIO_PIN_7
  196. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  197. #define C2_PLUS_PORT GPIO_PORTC_BASE
  198. #define C2_PLUS_PIN GPIO_PIN_6
  199. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  200. #define CCP0_PORT GPIO_PORTD_BASE
  201. #define CCP0_PIN GPIO_PIN_4
  202. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  203. #define CCP1_PORT GPIO_PORTE_BASE
  204. #define CCP1_PIN GPIO_PIN_3
  205. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  206. #define CCP2_PORT GPIO_PORTD_BASE
  207. #define CCP2_PIN GPIO_PIN_5
  208. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  209. #define CCP3_PORT GPIO_PORTE_BASE
  210. #define CCP3_PIN GPIO_PIN_4
  211. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOE
  212. #define CCP4_PORT GPIO_PORTE_BASE
  213. #define CCP4_PIN GPIO_PIN_2
  214. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOE
  215. #define CCP5_PORT GPIO_PORTE_BASE
  216. #define CCP5_PIN GPIO_PIN_5
  217. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  218. #define I2CSCL_PORT GPIO_PORTB_BASE
  219. #define I2CSCL_PIN GPIO_PIN_2
  220. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  221. #define I2CSDA_PORT GPIO_PORTB_BASE
  222. #define I2CSDA_PIN GPIO_PIN_3
  223. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  224. #define SSICLK_PORT GPIO_PORTA_BASE
  225. #define SSICLK_PIN GPIO_PIN_2
  226. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  227. #define SSIFSS_PORT GPIO_PORTA_BASE
  228. #define SSIFSS_PIN GPIO_PIN_3
  229. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  230. #define SSIRX_PORT GPIO_PORTA_BASE
  231. #define SSIRX_PIN GPIO_PIN_4
  232. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  233. #define SSITX_PORT GPIO_PORTA_BASE
  234. #define SSITX_PIN GPIO_PIN_5
  235. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  236. #define SWCLK_PORT GPIO_PORTC_BASE
  237. #define SWCLK_PIN GPIO_PIN_0
  238. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  239. #define SWDIO_PORT GPIO_PORTC_BASE
  240. #define SWDIO_PIN GPIO_PIN_1
  241. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  242. #define SWO_PORT GPIO_PORTC_BASE
  243. #define SWO_PIN GPIO_PIN_3
  244. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  245. #define TCK_PORT GPIO_PORTC_BASE
  246. #define TCK_PIN GPIO_PIN_0
  247. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  248. #define TDI_PORT GPIO_PORTC_BASE
  249. #define TDI_PIN GPIO_PIN_2
  250. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  251. #define TDO_PORT GPIO_PORTC_BASE
  252. #define TDO_PIN GPIO_PIN_3
  253. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  254. #define TMS_PORT GPIO_PORTC_BASE
  255. #define TMS_PIN GPIO_PIN_1
  256. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  257. #define TRST_PORT GPIO_PORTB_BASE
  258. #define TRST_PIN GPIO_PIN_7
  259. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  260. #define U0RX_PORT GPIO_PORTA_BASE
  261. #define U0RX_PIN GPIO_PIN_0
  262. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  263. #define U0TX_PORT GPIO_PORTA_BASE
  264. #define U0TX_PIN GPIO_PIN_1
  265. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  266. #define U1RX_PORT GPIO_PORTD_BASE
  267. #define U1RX_PIN GPIO_PIN_2
  268. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  269. #define U1TX_PORT GPIO_PORTD_BASE
  270. #define U1TX_PIN GPIO_PIN_3
  271. #endif // PART_LM3S300
  272. //*****************************************************************************
  273. //
  274. // LM3S301 Port/Pin Mapping Definitions
  275. //
  276. //*****************************************************************************
  277. #ifdef PART_LM3S301
  278. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  279. #define C0O_PORT GPIO_PORTD_BASE
  280. #define C0O_PIN GPIO_PIN_7
  281. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  282. #define C0_MINUS_PORT GPIO_PORTB_BASE
  283. #define C0_MINUS_PIN GPIO_PIN_4
  284. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  285. #define C0_PLUS_PORT GPIO_PORTB_BASE
  286. #define C0_PLUS_PIN GPIO_PIN_6
  287. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  288. #define C1O_PORT GPIO_PORTC_BASE
  289. #define C1O_PIN GPIO_PIN_5
  290. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  291. #define C1_MINUS_PORT GPIO_PORTB_BASE
  292. #define C1_MINUS_PIN GPIO_PIN_5
  293. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  294. #define C1_PLUS_PORT GPIO_PORTC_BASE
  295. #define C1_PLUS_PIN GPIO_PIN_5
  296. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  297. #define CCP0_PORT GPIO_PORTB_BASE
  298. #define CCP0_PIN GPIO_PIN_0
  299. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  300. #define CCP2_PORT GPIO_PORTD_BASE
  301. #define CCP2_PIN GPIO_PIN_5
  302. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  303. #define FAULT_PORT GPIO_PORTD_BASE
  304. #define FAULT_PIN GPIO_PIN_6
  305. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  306. #define PWM0_PORT GPIO_PORTD_BASE
  307. #define PWM0_PIN GPIO_PIN_0
  308. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  309. #define PWM1_PORT GPIO_PORTD_BASE
  310. #define PWM1_PIN GPIO_PIN_1
  311. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  312. #define SSICLK_PORT GPIO_PORTA_BASE
  313. #define SSICLK_PIN GPIO_PIN_2
  314. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  315. #define SSIFSS_PORT GPIO_PORTA_BASE
  316. #define SSIFSS_PIN GPIO_PIN_3
  317. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  318. #define SSIRX_PORT GPIO_PORTA_BASE
  319. #define SSIRX_PIN GPIO_PIN_4
  320. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  321. #define SSITX_PORT GPIO_PORTA_BASE
  322. #define SSITX_PIN GPIO_PIN_5
  323. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  324. #define SWCLK_PORT GPIO_PORTC_BASE
  325. #define SWCLK_PIN GPIO_PIN_0
  326. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  327. #define SWDIO_PORT GPIO_PORTC_BASE
  328. #define SWDIO_PIN GPIO_PIN_1
  329. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  330. #define SWO_PORT GPIO_PORTC_BASE
  331. #define SWO_PIN GPIO_PIN_3
  332. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  333. #define TCK_PORT GPIO_PORTC_BASE
  334. #define TCK_PIN GPIO_PIN_0
  335. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  336. #define TDI_PORT GPIO_PORTC_BASE
  337. #define TDI_PIN GPIO_PIN_2
  338. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  339. #define TDO_PORT GPIO_PORTC_BASE
  340. #define TDO_PIN GPIO_PIN_3
  341. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  342. #define TMS_PORT GPIO_PORTC_BASE
  343. #define TMS_PIN GPIO_PIN_1
  344. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  345. #define TRST_PORT GPIO_PORTB_BASE
  346. #define TRST_PIN GPIO_PIN_7
  347. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  348. #define U0RX_PORT GPIO_PORTA_BASE
  349. #define U0RX_PIN GPIO_PIN_0
  350. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  351. #define U0TX_PORT GPIO_PORTA_BASE
  352. #define U0TX_PIN GPIO_PIN_1
  353. #endif // PART_LM3S301
  354. //*****************************************************************************
  355. //
  356. // LM3S308 Port/Pin Mapping Definitions
  357. //
  358. //*****************************************************************************
  359. #ifdef PART_LM3S308
  360. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  361. #define C0_MINUS_PORT GPIO_PORTB_BASE
  362. #define C0_MINUS_PIN GPIO_PIN_4
  363. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  364. #define C0_PLUS_PORT GPIO_PORTB_BASE
  365. #define C0_PLUS_PIN GPIO_PIN_6
  366. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  367. #define CCP0_PORT GPIO_PORTB_BASE
  368. #define CCP0_PIN GPIO_PIN_0
  369. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  370. #define CCP1_PORT GPIO_PORTC_BASE
  371. #define CCP1_PIN GPIO_PIN_5
  372. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  373. #define CCP2_PORT GPIO_PORTB_BASE
  374. #define CCP2_PIN GPIO_PIN_1
  375. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  376. #define CCP3_PORT GPIO_PORTC_BASE
  377. #define CCP3_PIN GPIO_PIN_6
  378. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  379. #define CCP4_PORT GPIO_PORTC_BASE
  380. #define CCP4_PIN GPIO_PIN_7
  381. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  382. #define CCP5_PORT GPIO_PORTB_BASE
  383. #define CCP5_PIN GPIO_PIN_5
  384. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  385. #define I2CSCL_PORT GPIO_PORTB_BASE
  386. #define I2CSCL_PIN GPIO_PIN_2
  387. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  388. #define I2CSDA_PORT GPIO_PORTB_BASE
  389. #define I2CSDA_PIN GPIO_PIN_3
  390. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  391. #define SSICLK_PORT GPIO_PORTA_BASE
  392. #define SSICLK_PIN GPIO_PIN_2
  393. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  394. #define SSIFSS_PORT GPIO_PORTA_BASE
  395. #define SSIFSS_PIN GPIO_PIN_3
  396. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  397. #define SSIRX_PORT GPIO_PORTA_BASE
  398. #define SSIRX_PIN GPIO_PIN_4
  399. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  400. #define SSITX_PORT GPIO_PORTA_BASE
  401. #define SSITX_PIN GPIO_PIN_5
  402. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  403. #define SWCLK_PORT GPIO_PORTC_BASE
  404. #define SWCLK_PIN GPIO_PIN_0
  405. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  406. #define SWDIO_PORT GPIO_PORTC_BASE
  407. #define SWDIO_PIN GPIO_PIN_1
  408. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  409. #define SWO_PORT GPIO_PORTC_BASE
  410. #define SWO_PIN GPIO_PIN_3
  411. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  412. #define TCK_PORT GPIO_PORTC_BASE
  413. #define TCK_PIN GPIO_PIN_0
  414. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  415. #define TDI_PORT GPIO_PORTC_BASE
  416. #define TDI_PIN GPIO_PIN_2
  417. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  418. #define TDO_PORT GPIO_PORTC_BASE
  419. #define TDO_PIN GPIO_PIN_3
  420. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  421. #define TMS_PORT GPIO_PORTC_BASE
  422. #define TMS_PIN GPIO_PIN_1
  423. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  424. #define TRST_PORT GPIO_PORTB_BASE
  425. #define TRST_PIN GPIO_PIN_7
  426. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  427. #define U0RX_PORT GPIO_PORTA_BASE
  428. #define U0RX_PIN GPIO_PIN_0
  429. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  430. #define U0TX_PORT GPIO_PORTA_BASE
  431. #define U0TX_PIN GPIO_PIN_1
  432. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  433. #define U1RX_PORT GPIO_PORTD_BASE
  434. #define U1RX_PIN GPIO_PIN_2
  435. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  436. #define U1TX_PORT GPIO_PORTD_BASE
  437. #define U1TX_PIN GPIO_PIN_3
  438. #endif // PART_LM3S308
  439. //*****************************************************************************
  440. //
  441. // LM3S310 Port/Pin Mapping Definitions
  442. //
  443. //*****************************************************************************
  444. #ifdef PART_LM3S310
  445. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  446. #define C0O_PORT GPIO_PORTD_BASE
  447. #define C0O_PIN GPIO_PIN_7
  448. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  449. #define C0_MINUS_PORT GPIO_PORTB_BASE
  450. #define C0_MINUS_PIN GPIO_PIN_4
  451. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  452. #define C0_PLUS_PORT GPIO_PORTB_BASE
  453. #define C0_PLUS_PIN GPIO_PIN_6
  454. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  455. #define C1O_PORT GPIO_PORTC_BASE
  456. #define C1O_PIN GPIO_PIN_5
  457. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  458. #define C1_MINUS_PORT GPIO_PORTB_BASE
  459. #define C1_MINUS_PIN GPIO_PIN_5
  460. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  461. #define C1_PLUS_PORT GPIO_PORTC_BASE
  462. #define C1_PLUS_PIN GPIO_PIN_5
  463. #define C2O_PERIPH SYSCTL_PERIPH_GPIOC
  464. #define C2O_PORT GPIO_PORTC_BASE
  465. #define C2O_PIN GPIO_PIN_6
  466. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  467. #define C2_MINUS_PORT GPIO_PORTC_BASE
  468. #define C2_MINUS_PIN GPIO_PIN_7
  469. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  470. #define C2_PLUS_PORT GPIO_PORTC_BASE
  471. #define C2_PLUS_PIN GPIO_PIN_6
  472. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  473. #define CCP0_PORT GPIO_PORTD_BASE
  474. #define CCP0_PIN GPIO_PIN_4
  475. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  476. #define CCP1_PORT GPIO_PORTE_BASE
  477. #define CCP1_PIN GPIO_PIN_3
  478. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  479. #define CCP2_PORT GPIO_PORTD_BASE
  480. #define CCP2_PIN GPIO_PIN_5
  481. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  482. #define CCP3_PORT GPIO_PORTE_BASE
  483. #define CCP3_PIN GPIO_PIN_4
  484. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOE
  485. #define CCP4_PORT GPIO_PORTE_BASE
  486. #define CCP4_PIN GPIO_PIN_2
  487. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOE
  488. #define CCP5_PORT GPIO_PORTE_BASE
  489. #define CCP5_PIN GPIO_PIN_5
  490. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  491. #define FAULT_PORT GPIO_PORTD_BASE
  492. #define FAULT_PIN GPIO_PIN_6
  493. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  494. #define PWM0_PORT GPIO_PORTD_BASE
  495. #define PWM0_PIN GPIO_PIN_0
  496. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  497. #define PWM1_PORT GPIO_PORTD_BASE
  498. #define PWM1_PIN GPIO_PIN_1
  499. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  500. #define PWM2_PORT GPIO_PORTB_BASE
  501. #define PWM2_PIN GPIO_PIN_0
  502. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  503. #define PWM3_PORT GPIO_PORTB_BASE
  504. #define PWM3_PIN GPIO_PIN_1
  505. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  506. #define PWM4_PORT GPIO_PORTE_BASE
  507. #define PWM4_PIN GPIO_PIN_0
  508. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  509. #define PWM5_PORT GPIO_PORTE_BASE
  510. #define PWM5_PIN GPIO_PIN_1
  511. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  512. #define SSICLK_PORT GPIO_PORTA_BASE
  513. #define SSICLK_PIN GPIO_PIN_2
  514. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  515. #define SSIFSS_PORT GPIO_PORTA_BASE
  516. #define SSIFSS_PIN GPIO_PIN_3
  517. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  518. #define SSIRX_PORT GPIO_PORTA_BASE
  519. #define SSIRX_PIN GPIO_PIN_4
  520. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  521. #define SSITX_PORT GPIO_PORTA_BASE
  522. #define SSITX_PIN GPIO_PIN_5
  523. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  524. #define SWCLK_PORT GPIO_PORTC_BASE
  525. #define SWCLK_PIN GPIO_PIN_0
  526. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  527. #define SWDIO_PORT GPIO_PORTC_BASE
  528. #define SWDIO_PIN GPIO_PIN_1
  529. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  530. #define SWO_PORT GPIO_PORTC_BASE
  531. #define SWO_PIN GPIO_PIN_3
  532. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  533. #define TCK_PORT GPIO_PORTC_BASE
  534. #define TCK_PIN GPIO_PIN_0
  535. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  536. #define TDI_PORT GPIO_PORTC_BASE
  537. #define TDI_PIN GPIO_PIN_2
  538. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  539. #define TDO_PORT GPIO_PORTC_BASE
  540. #define TDO_PIN GPIO_PIN_3
  541. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  542. #define TMS_PORT GPIO_PORTC_BASE
  543. #define TMS_PIN GPIO_PIN_1
  544. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  545. #define TRST_PORT GPIO_PORTB_BASE
  546. #define TRST_PIN GPIO_PIN_7
  547. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  548. #define U0RX_PORT GPIO_PORTA_BASE
  549. #define U0RX_PIN GPIO_PIN_0
  550. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  551. #define U0TX_PORT GPIO_PORTA_BASE
  552. #define U0TX_PIN GPIO_PIN_1
  553. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  554. #define U1RX_PORT GPIO_PORTD_BASE
  555. #define U1RX_PIN GPIO_PIN_2
  556. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  557. #define U1TX_PORT GPIO_PORTD_BASE
  558. #define U1TX_PIN GPIO_PIN_3
  559. #endif // PART_LM3S310
  560. //*****************************************************************************
  561. //
  562. // LM3S315 Port/Pin Mapping Definitions
  563. //
  564. //*****************************************************************************
  565. #ifdef PART_LM3S315
  566. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  567. #define C0O_PORT GPIO_PORTD_BASE
  568. #define C0O_PIN GPIO_PIN_7
  569. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  570. #define C0_MINUS_PORT GPIO_PORTB_BASE
  571. #define C0_MINUS_PIN GPIO_PIN_4
  572. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  573. #define C0_PLUS_PORT GPIO_PORTB_BASE
  574. #define C0_PLUS_PIN GPIO_PIN_6
  575. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  576. #define CCP0_PORT GPIO_PORTB_BASE
  577. #define CCP0_PIN GPIO_PIN_0
  578. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  579. #define CCP1_PORT GPIO_PORTC_BASE
  580. #define CCP1_PIN GPIO_PIN_5
  581. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  582. #define CCP2_PORT GPIO_PORTD_BASE
  583. #define CCP2_PIN GPIO_PIN_5
  584. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  585. #define CCP3_PORT GPIO_PORTC_BASE
  586. #define CCP3_PIN GPIO_PIN_6
  587. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  588. #define CCP4_PORT GPIO_PORTC_BASE
  589. #define CCP4_PIN GPIO_PIN_7
  590. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  591. #define CCP5_PORT GPIO_PORTB_BASE
  592. #define CCP5_PIN GPIO_PIN_5
  593. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  594. #define FAULT_PORT GPIO_PORTD_BASE
  595. #define FAULT_PIN GPIO_PIN_6
  596. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  597. #define PWM0_PORT GPIO_PORTD_BASE
  598. #define PWM0_PIN GPIO_PIN_0
  599. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  600. #define PWM1_PORT GPIO_PORTD_BASE
  601. #define PWM1_PIN GPIO_PIN_1
  602. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  603. #define SSICLK_PORT GPIO_PORTA_BASE
  604. #define SSICLK_PIN GPIO_PIN_2
  605. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  606. #define SSIFSS_PORT GPIO_PORTA_BASE
  607. #define SSIFSS_PIN GPIO_PIN_3
  608. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  609. #define SSIRX_PORT GPIO_PORTA_BASE
  610. #define SSIRX_PIN GPIO_PIN_4
  611. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  612. #define SSITX_PORT GPIO_PORTA_BASE
  613. #define SSITX_PIN GPIO_PIN_5
  614. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  615. #define SWCLK_PORT GPIO_PORTC_BASE
  616. #define SWCLK_PIN GPIO_PIN_0
  617. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  618. #define SWDIO_PORT GPIO_PORTC_BASE
  619. #define SWDIO_PIN GPIO_PIN_1
  620. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  621. #define SWO_PORT GPIO_PORTC_BASE
  622. #define SWO_PIN GPIO_PIN_3
  623. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  624. #define TCK_PORT GPIO_PORTC_BASE
  625. #define TCK_PIN GPIO_PIN_0
  626. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  627. #define TDI_PORT GPIO_PORTC_BASE
  628. #define TDI_PIN GPIO_PIN_2
  629. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  630. #define TDO_PORT GPIO_PORTC_BASE
  631. #define TDO_PIN GPIO_PIN_3
  632. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  633. #define TMS_PORT GPIO_PORTC_BASE
  634. #define TMS_PIN GPIO_PIN_1
  635. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  636. #define TRST_PORT GPIO_PORTB_BASE
  637. #define TRST_PIN GPIO_PIN_7
  638. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  639. #define U0RX_PORT GPIO_PORTA_BASE
  640. #define U0RX_PIN GPIO_PIN_0
  641. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  642. #define U0TX_PORT GPIO_PORTA_BASE
  643. #define U0TX_PIN GPIO_PIN_1
  644. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  645. #define U1RX_PORT GPIO_PORTD_BASE
  646. #define U1RX_PIN GPIO_PIN_2
  647. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  648. #define U1TX_PORT GPIO_PORTD_BASE
  649. #define U1TX_PIN GPIO_PIN_3
  650. #endif // PART_LM3S315
  651. //*****************************************************************************
  652. //
  653. // LM3S316 Port/Pin Mapping Definitions
  654. //
  655. //*****************************************************************************
  656. #ifdef PART_LM3S316
  657. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  658. #define C0O_PORT GPIO_PORTD_BASE
  659. #define C0O_PIN GPIO_PIN_7
  660. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  661. #define C0_MINUS_PORT GPIO_PORTB_BASE
  662. #define C0_MINUS_PIN GPIO_PIN_4
  663. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  664. #define C0_PLUS_PORT GPIO_PORTB_BASE
  665. #define C0_PLUS_PIN GPIO_PIN_6
  666. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  667. #define CCP0_PORT GPIO_PORTD_BASE
  668. #define CCP0_PIN GPIO_PIN_4
  669. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  670. #define CCP1_PORT GPIO_PORTC_BASE
  671. #define CCP1_PIN GPIO_PIN_5
  672. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  673. #define CCP2_PORT GPIO_PORTD_BASE
  674. #define CCP2_PIN GPIO_PIN_5
  675. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  676. #define CCP3_PORT GPIO_PORTC_BASE
  677. #define CCP3_PIN GPIO_PIN_6
  678. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  679. #define CCP4_PORT GPIO_PORTC_BASE
  680. #define CCP4_PIN GPIO_PIN_7
  681. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  682. #define CCP5_PORT GPIO_PORTB_BASE
  683. #define CCP5_PIN GPIO_PIN_5
  684. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  685. #define FAULT_PORT GPIO_PORTD_BASE
  686. #define FAULT_PIN GPIO_PIN_6
  687. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  688. #define I2CSCL_PORT GPIO_PORTB_BASE
  689. #define I2CSCL_PIN GPIO_PIN_2
  690. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  691. #define I2CSDA_PORT GPIO_PORTB_BASE
  692. #define I2CSDA_PIN GPIO_PIN_3
  693. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  694. #define PWM0_PORT GPIO_PORTD_BASE
  695. #define PWM0_PIN GPIO_PIN_0
  696. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  697. #define PWM1_PORT GPIO_PORTD_BASE
  698. #define PWM1_PIN GPIO_PIN_1
  699. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  700. #define PWM2_PORT GPIO_PORTB_BASE
  701. #define PWM2_PIN GPIO_PIN_0
  702. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  703. #define PWM3_PORT GPIO_PORTB_BASE
  704. #define PWM3_PIN GPIO_PIN_1
  705. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  706. #define SSICLK_PORT GPIO_PORTA_BASE
  707. #define SSICLK_PIN GPIO_PIN_2
  708. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  709. #define SSIFSS_PORT GPIO_PORTA_BASE
  710. #define SSIFSS_PIN GPIO_PIN_3
  711. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  712. #define SSIRX_PORT GPIO_PORTA_BASE
  713. #define SSIRX_PIN GPIO_PIN_4
  714. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  715. #define SSITX_PORT GPIO_PORTA_BASE
  716. #define SSITX_PIN GPIO_PIN_5
  717. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  718. #define SWCLK_PORT GPIO_PORTC_BASE
  719. #define SWCLK_PIN GPIO_PIN_0
  720. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  721. #define SWDIO_PORT GPIO_PORTC_BASE
  722. #define SWDIO_PIN GPIO_PIN_1
  723. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  724. #define SWO_PORT GPIO_PORTC_BASE
  725. #define SWO_PIN GPIO_PIN_3
  726. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  727. #define TCK_PORT GPIO_PORTC_BASE
  728. #define TCK_PIN GPIO_PIN_0
  729. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  730. #define TDI_PORT GPIO_PORTC_BASE
  731. #define TDI_PIN GPIO_PIN_2
  732. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  733. #define TDO_PORT GPIO_PORTC_BASE
  734. #define TDO_PIN GPIO_PIN_3
  735. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  736. #define TMS_PORT GPIO_PORTC_BASE
  737. #define TMS_PIN GPIO_PIN_1
  738. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  739. #define TRST_PORT GPIO_PORTB_BASE
  740. #define TRST_PIN GPIO_PIN_7
  741. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  742. #define U0RX_PORT GPIO_PORTA_BASE
  743. #define U0RX_PIN GPIO_PIN_0
  744. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  745. #define U0TX_PORT GPIO_PORTA_BASE
  746. #define U0TX_PIN GPIO_PIN_1
  747. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  748. #define U1RX_PORT GPIO_PORTD_BASE
  749. #define U1RX_PIN GPIO_PIN_2
  750. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  751. #define U1TX_PORT GPIO_PORTD_BASE
  752. #define U1TX_PIN GPIO_PIN_3
  753. #endif // PART_LM3S316
  754. //*****************************************************************************
  755. //
  756. // LM3S317 Port/Pin Mapping Definitions
  757. //
  758. //*****************************************************************************
  759. #ifdef PART_LM3S317
  760. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  761. #define C0O_PORT GPIO_PORTB_BASE
  762. #define C0O_PIN GPIO_PIN_5
  763. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  764. #define C0_MINUS_PORT GPIO_PORTB_BASE
  765. #define C0_MINUS_PIN GPIO_PIN_4
  766. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  767. #define C0_PLUS_PORT GPIO_PORTB_BASE
  768. #define C0_PLUS_PIN GPIO_PIN_6
  769. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  770. #define CCP0_PORT GPIO_PORTD_BASE
  771. #define CCP0_PIN GPIO_PIN_4
  772. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  773. #define CCP1_PORT GPIO_PORTC_BASE
  774. #define CCP1_PIN GPIO_PIN_5
  775. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  776. #define CCP2_PORT GPIO_PORTD_BASE
  777. #define CCP2_PIN GPIO_PIN_5
  778. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  779. #define CCP3_PORT GPIO_PORTC_BASE
  780. #define CCP3_PIN GPIO_PIN_6
  781. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  782. #define CCP4_PORT GPIO_PORTC_BASE
  783. #define CCP4_PIN GPIO_PIN_7
  784. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  785. #define CCP5_PORT GPIO_PORTC_BASE
  786. #define CCP5_PIN GPIO_PIN_4
  787. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOB
  788. #define FAULT_PORT GPIO_PORTB_BASE
  789. #define FAULT_PIN GPIO_PIN_3
  790. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  791. #define PWM0_PORT GPIO_PORTD_BASE
  792. #define PWM0_PIN GPIO_PIN_0
  793. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  794. #define PWM1_PORT GPIO_PORTD_BASE
  795. #define PWM1_PIN GPIO_PIN_1
  796. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  797. #define PWM2_PORT GPIO_PORTB_BASE
  798. #define PWM2_PIN GPIO_PIN_0
  799. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  800. #define PWM3_PORT GPIO_PORTB_BASE
  801. #define PWM3_PIN GPIO_PIN_1
  802. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  803. #define PWM4_PORT GPIO_PORTE_BASE
  804. #define PWM4_PIN GPIO_PIN_0
  805. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  806. #define PWM5_PORT GPIO_PORTE_BASE
  807. #define PWM5_PIN GPIO_PIN_1
  808. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  809. #define SSICLK_PORT GPIO_PORTA_BASE
  810. #define SSICLK_PIN GPIO_PIN_2
  811. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  812. #define SSIFSS_PORT GPIO_PORTA_BASE
  813. #define SSIFSS_PIN GPIO_PIN_3
  814. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  815. #define SSIRX_PORT GPIO_PORTA_BASE
  816. #define SSIRX_PIN GPIO_PIN_4
  817. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  818. #define SSITX_PORT GPIO_PORTA_BASE
  819. #define SSITX_PIN GPIO_PIN_5
  820. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  821. #define SWCLK_PORT GPIO_PORTC_BASE
  822. #define SWCLK_PIN GPIO_PIN_0
  823. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  824. #define SWDIO_PORT GPIO_PORTC_BASE
  825. #define SWDIO_PIN GPIO_PIN_1
  826. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  827. #define SWO_PORT GPIO_PORTC_BASE
  828. #define SWO_PIN GPIO_PIN_3
  829. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  830. #define TCK_PORT GPIO_PORTC_BASE
  831. #define TCK_PIN GPIO_PIN_0
  832. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  833. #define TDI_PORT GPIO_PORTC_BASE
  834. #define TDI_PIN GPIO_PIN_2
  835. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  836. #define TDO_PORT GPIO_PORTC_BASE
  837. #define TDO_PIN GPIO_PIN_3
  838. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  839. #define TMS_PORT GPIO_PORTC_BASE
  840. #define TMS_PIN GPIO_PIN_1
  841. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  842. #define TRST_PORT GPIO_PORTB_BASE
  843. #define TRST_PIN GPIO_PIN_7
  844. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  845. #define U0RX_PORT GPIO_PORTA_BASE
  846. #define U0RX_PIN GPIO_PIN_0
  847. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  848. #define U0TX_PORT GPIO_PORTA_BASE
  849. #define U0TX_PIN GPIO_PIN_1
  850. #endif // PART_LM3S317
  851. //*****************************************************************************
  852. //
  853. // LM3S328 Port/Pin Mapping Definitions
  854. //
  855. //*****************************************************************************
  856. #ifdef PART_LM3S328
  857. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  858. #define CCP0_PORT GPIO_PORTB_BASE
  859. #define CCP0_PIN GPIO_PIN_0
  860. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  861. #define CCP1_PORT GPIO_PORTC_BASE
  862. #define CCP1_PIN GPIO_PIN_5
  863. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  864. #define CCP2_PORT GPIO_PORTB_BASE
  865. #define CCP2_PIN GPIO_PIN_1
  866. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  867. #define CCP3_PORT GPIO_PORTC_BASE
  868. #define CCP3_PIN GPIO_PIN_6
  869. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  870. #define CCP4_PORT GPIO_PORTC_BASE
  871. #define CCP4_PIN GPIO_PIN_7
  872. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  873. #define CCP5_PORT GPIO_PORTB_BASE
  874. #define CCP5_PIN GPIO_PIN_5
  875. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  876. #define I2CSCL_PORT GPIO_PORTB_BASE
  877. #define I2CSCL_PIN GPIO_PIN_2
  878. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  879. #define I2CSDA_PORT GPIO_PORTB_BASE
  880. #define I2CSDA_PIN GPIO_PIN_3
  881. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  882. #define SSICLK_PORT GPIO_PORTA_BASE
  883. #define SSICLK_PIN GPIO_PIN_2
  884. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  885. #define SSIFSS_PORT GPIO_PORTA_BASE
  886. #define SSIFSS_PIN GPIO_PIN_3
  887. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  888. #define SSIRX_PORT GPIO_PORTA_BASE
  889. #define SSIRX_PIN GPIO_PIN_4
  890. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  891. #define SSITX_PORT GPIO_PORTA_BASE
  892. #define SSITX_PIN GPIO_PIN_5
  893. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  894. #define SWCLK_PORT GPIO_PORTC_BASE
  895. #define SWCLK_PIN GPIO_PIN_0
  896. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  897. #define SWDIO_PORT GPIO_PORTC_BASE
  898. #define SWDIO_PIN GPIO_PIN_1
  899. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  900. #define SWO_PORT GPIO_PORTC_BASE
  901. #define SWO_PIN GPIO_PIN_3
  902. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  903. #define TCK_PORT GPIO_PORTC_BASE
  904. #define TCK_PIN GPIO_PIN_0
  905. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  906. #define TDI_PORT GPIO_PORTC_BASE
  907. #define TDI_PIN GPIO_PIN_2
  908. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  909. #define TDO_PORT GPIO_PORTC_BASE
  910. #define TDO_PIN GPIO_PIN_3
  911. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  912. #define TMS_PORT GPIO_PORTC_BASE
  913. #define TMS_PIN GPIO_PIN_1
  914. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  915. #define TRST_PORT GPIO_PORTB_BASE
  916. #define TRST_PIN GPIO_PIN_7
  917. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  918. #define U0RX_PORT GPIO_PORTA_BASE
  919. #define U0RX_PIN GPIO_PIN_0
  920. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  921. #define U0TX_PORT GPIO_PORTA_BASE
  922. #define U0TX_PIN GPIO_PIN_1
  923. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  924. #define U1RX_PORT GPIO_PORTD_BASE
  925. #define U1RX_PIN GPIO_PIN_2
  926. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  927. #define U1TX_PORT GPIO_PORTD_BASE
  928. #define U1TX_PIN GPIO_PIN_3
  929. #endif // PART_LM3S328
  930. //*****************************************************************************
  931. //
  932. // LM3S600 Port/Pin Mapping Definitions
  933. //
  934. //*****************************************************************************
  935. #ifdef PART_LM3S600
  936. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  937. #define C0O_PORT GPIO_PORTD_BASE
  938. #define C0O_PIN GPIO_PIN_7
  939. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  940. #define C0_MINUS_PORT GPIO_PORTB_BASE
  941. #define C0_MINUS_PIN GPIO_PIN_4
  942. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  943. #define C0_PLUS_PORT GPIO_PORTB_BASE
  944. #define C0_PLUS_PIN GPIO_PIN_6
  945. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  946. #define C1O_PORT GPIO_PORTC_BASE
  947. #define C1O_PIN GPIO_PIN_5
  948. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  949. #define C1_MINUS_PORT GPIO_PORTB_BASE
  950. #define C1_MINUS_PIN GPIO_PIN_5
  951. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  952. #define C1_PLUS_PORT GPIO_PORTC_BASE
  953. #define C1_PLUS_PIN GPIO_PIN_5
  954. #define C2O_PERIPH SYSCTL_PERIPH_GPIOC
  955. #define C2O_PORT GPIO_PORTC_BASE
  956. #define C2O_PIN GPIO_PIN_6
  957. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  958. #define C2_MINUS_PORT GPIO_PORTC_BASE
  959. #define C2_MINUS_PIN GPIO_PIN_7
  960. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  961. #define C2_PLUS_PORT GPIO_PORTC_BASE
  962. #define C2_PLUS_PIN GPIO_PIN_6
  963. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  964. #define CCP0_PORT GPIO_PORTD_BASE
  965. #define CCP0_PIN GPIO_PIN_4
  966. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  967. #define CCP1_PORT GPIO_PORTE_BASE
  968. #define CCP1_PIN GPIO_PIN_3
  969. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  970. #define CCP2_PORT GPIO_PORTD_BASE
  971. #define CCP2_PIN GPIO_PIN_5
  972. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  973. #define CCP3_PORT GPIO_PORTE_BASE
  974. #define CCP3_PIN GPIO_PIN_4
  975. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOE
  976. #define CCP4_PORT GPIO_PORTE_BASE
  977. #define CCP4_PIN GPIO_PIN_2
  978. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOE
  979. #define CCP5_PORT GPIO_PORTE_BASE
  980. #define CCP5_PIN GPIO_PIN_5
  981. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  982. #define I2CSCL_PORT GPIO_PORTB_BASE
  983. #define I2CSCL_PIN GPIO_PIN_2
  984. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  985. #define I2CSDA_PORT GPIO_PORTB_BASE
  986. #define I2CSDA_PIN GPIO_PIN_3
  987. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  988. #define SSICLK_PORT GPIO_PORTA_BASE
  989. #define SSICLK_PIN GPIO_PIN_2
  990. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  991. #define SSIFSS_PORT GPIO_PORTA_BASE
  992. #define SSIFSS_PIN GPIO_PIN_3
  993. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  994. #define SSIRX_PORT GPIO_PORTA_BASE
  995. #define SSIRX_PIN GPIO_PIN_4
  996. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  997. #define SSITX_PORT GPIO_PORTA_BASE
  998. #define SSITX_PIN GPIO_PIN_5
  999. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  1000. #define SWCLK_PORT GPIO_PORTC_BASE
  1001. #define SWCLK_PIN GPIO_PIN_0
  1002. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  1003. #define SWDIO_PORT GPIO_PORTC_BASE
  1004. #define SWDIO_PIN GPIO_PIN_1
  1005. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  1006. #define SWO_PORT GPIO_PORTC_BASE
  1007. #define SWO_PIN GPIO_PIN_3
  1008. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  1009. #define TCK_PORT GPIO_PORTC_BASE
  1010. #define TCK_PIN GPIO_PIN_0
  1011. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  1012. #define TDI_PORT GPIO_PORTC_BASE
  1013. #define TDI_PIN GPIO_PIN_2
  1014. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  1015. #define TDO_PORT GPIO_PORTC_BASE
  1016. #define TDO_PIN GPIO_PIN_3
  1017. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  1018. #define TMS_PORT GPIO_PORTC_BASE
  1019. #define TMS_PIN GPIO_PIN_1
  1020. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  1021. #define TRST_PORT GPIO_PORTB_BASE
  1022. #define TRST_PIN GPIO_PIN_7
  1023. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  1024. #define U0RX_PORT GPIO_PORTA_BASE
  1025. #define U0RX_PIN GPIO_PIN_0
  1026. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  1027. #define U0TX_PORT GPIO_PORTA_BASE
  1028. #define U0TX_PIN GPIO_PIN_1
  1029. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  1030. #define U1RX_PORT GPIO_PORTD_BASE
  1031. #define U1RX_PIN GPIO_PIN_2
  1032. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  1033. #define U1TX_PORT GPIO_PORTD_BASE
  1034. #define U1TX_PIN GPIO_PIN_3
  1035. #endif // PART_LM3S600
  1036. //*****************************************************************************
  1037. //
  1038. // LM3S601 Port/Pin Mapping Definitions
  1039. //
  1040. //*****************************************************************************
  1041. #ifdef PART_LM3S601
  1042. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  1043. #define C0O_PORT GPIO_PORTC_BASE
  1044. #define C0O_PIN GPIO_PIN_5
  1045. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  1046. #define C0_MINUS_PORT GPIO_PORTB_BASE
  1047. #define C0_MINUS_PIN GPIO_PIN_4
  1048. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  1049. #define C0_PLUS_PORT GPIO_PORTB_BASE
  1050. #define C0_PLUS_PIN GPIO_PIN_6
  1051. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  1052. #define C1_MINUS_PORT GPIO_PORTB_BASE
  1053. #define C1_MINUS_PIN GPIO_PIN_5
  1054. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  1055. #define C1_PLUS_PORT GPIO_PORTC_BASE
  1056. #define C1_PLUS_PIN GPIO_PIN_5
  1057. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  1058. #define C2_MINUS_PORT GPIO_PORTC_BASE
  1059. #define C2_MINUS_PIN GPIO_PIN_7
  1060. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  1061. #define C2_PLUS_PORT GPIO_PORTC_BASE
  1062. #define C2_PLUS_PIN GPIO_PIN_6
  1063. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  1064. #define CCP0_PORT GPIO_PORTD_BASE
  1065. #define CCP0_PIN GPIO_PIN_4
  1066. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  1067. #define CCP1_PORT GPIO_PORTE_BASE
  1068. #define CCP1_PIN GPIO_PIN_3
  1069. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  1070. #define CCP2_PORT GPIO_PORTD_BASE
  1071. #define CCP2_PIN GPIO_PIN_5
  1072. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  1073. #define CCP3_PORT GPIO_PORTE_BASE
  1074. #define CCP3_PIN GPIO_PIN_4
  1075. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOE
  1076. #define CCP4_PORT GPIO_PORTE_BASE
  1077. #define CCP4_PIN GPIO_PIN_2
  1078. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOE
  1079. #define CCP5_PORT GPIO_PORTE_BASE
  1080. #define CCP5_PIN GPIO_PIN_5
  1081. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  1082. #define FAULT_PORT GPIO_PORTD_BASE
  1083. #define FAULT_PIN GPIO_PIN_6
  1084. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  1085. #define I2CSCL_PORT GPIO_PORTB_BASE
  1086. #define I2CSCL_PIN GPIO_PIN_2
  1087. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  1088. #define I2CSDA_PORT GPIO_PORTB_BASE
  1089. #define I2CSDA_PIN GPIO_PIN_3
  1090. #define IDX_PERIPH SYSCTL_PERIPH_GPIOD
  1091. #define IDX_PORT GPIO_PORTD_BASE
  1092. #define IDX_PIN GPIO_PIN_7
  1093. #define PHA_PERIPH SYSCTL_PERIPH_GPIOC
  1094. #define PHA_PORT GPIO_PORTC_BASE
  1095. #define PHA_PIN GPIO_PIN_4
  1096. #define PHB_PERIPH SYSCTL_PERIPH_GPIOC
  1097. #define PHB_PORT GPIO_PORTC_BASE
  1098. #define PHB_PIN GPIO_PIN_6
  1099. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  1100. #define PWM0_PORT GPIO_PORTD_BASE
  1101. #define PWM0_PIN GPIO_PIN_0
  1102. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  1103. #define PWM1_PORT GPIO_PORTD_BASE
  1104. #define PWM1_PIN GPIO_PIN_1
  1105. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  1106. #define PWM2_PORT GPIO_PORTB_BASE
  1107. #define PWM2_PIN GPIO_PIN_0
  1108. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  1109. #define PWM3_PORT GPIO_PORTB_BASE
  1110. #define PWM3_PIN GPIO_PIN_1
  1111. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  1112. #define PWM4_PORT GPIO_PORTE_BASE
  1113. #define PWM4_PIN GPIO_PIN_0
  1114. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  1115. #define PWM5_PORT GPIO_PORTE_BASE
  1116. #define PWM5_PIN GPIO_PIN_1
  1117. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  1118. #define SSICLK_PORT GPIO_PORTA_BASE
  1119. #define SSICLK_PIN GPIO_PIN_2
  1120. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  1121. #define SSIFSS_PORT GPIO_PORTA_BASE
  1122. #define SSIFSS_PIN GPIO_PIN_3
  1123. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  1124. #define SSIRX_PORT GPIO_PORTA_BASE
  1125. #define SSIRX_PIN GPIO_PIN_4
  1126. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  1127. #define SSITX_PORT GPIO_PORTA_BASE
  1128. #define SSITX_PIN GPIO_PIN_5
  1129. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  1130. #define SWCLK_PORT GPIO_PORTC_BASE
  1131. #define SWCLK_PIN GPIO_PIN_0
  1132. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  1133. #define SWDIO_PORT GPIO_PORTC_BASE
  1134. #define SWDIO_PIN GPIO_PIN_1
  1135. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  1136. #define SWO_PORT GPIO_PORTC_BASE
  1137. #define SWO_PIN GPIO_PIN_3
  1138. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  1139. #define TCK_PORT GPIO_PORTC_BASE
  1140. #define TCK_PIN GPIO_PIN_0
  1141. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  1142. #define TDI_PORT GPIO_PORTC_BASE
  1143. #define TDI_PIN GPIO_PIN_2
  1144. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  1145. #define TDO_PORT GPIO_PORTC_BASE
  1146. #define TDO_PIN GPIO_PIN_3
  1147. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  1148. #define TMS_PORT GPIO_PORTC_BASE
  1149. #define TMS_PIN GPIO_PIN_1
  1150. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  1151. #define TRST_PORT GPIO_PORTB_BASE
  1152. #define TRST_PIN GPIO_PIN_7
  1153. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  1154. #define U0RX_PORT GPIO_PORTA_BASE
  1155. #define U0RX_PIN GPIO_PIN_0
  1156. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  1157. #define U0TX_PORT GPIO_PORTA_BASE
  1158. #define U0TX_PIN GPIO_PIN_1
  1159. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  1160. #define U1RX_PORT GPIO_PORTD_BASE
  1161. #define U1RX_PIN GPIO_PIN_2
  1162. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  1163. #define U1TX_PORT GPIO_PORTD_BASE
  1164. #define U1TX_PIN GPIO_PIN_3
  1165. #endif // PART_LM3S601
  1166. //*****************************************************************************
  1167. //
  1168. // LM3S608 Port/Pin Mapping Definitions
  1169. //
  1170. //*****************************************************************************
  1171. #ifdef PART_LM3S608
  1172. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  1173. #define C0_MINUS_PORT GPIO_PORTB_BASE
  1174. #define C0_MINUS_PIN GPIO_PIN_4
  1175. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  1176. #define C0_PLUS_PORT GPIO_PORTB_BASE
  1177. #define C0_PLUS_PIN GPIO_PIN_6
  1178. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  1179. #define CCP0_PORT GPIO_PORTB_BASE
  1180. #define CCP0_PIN GPIO_PIN_0
  1181. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  1182. #define CCP1_PORT GPIO_PORTC_BASE
  1183. #define CCP1_PIN GPIO_PIN_5
  1184. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  1185. #define CCP2_PORT GPIO_PORTB_BASE
  1186. #define CCP2_PIN GPIO_PIN_1
  1187. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  1188. #define CCP3_PORT GPIO_PORTC_BASE
  1189. #define CCP3_PIN GPIO_PIN_6
  1190. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  1191. #define CCP4_PORT GPIO_PORTC_BASE
  1192. #define CCP4_PIN GPIO_PIN_7
  1193. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  1194. #define CCP5_PORT GPIO_PORTB_BASE
  1195. #define CCP5_PIN GPIO_PIN_5
  1196. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  1197. #define I2CSCL_PORT GPIO_PORTB_BASE
  1198. #define I2CSCL_PIN GPIO_PIN_2
  1199. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  1200. #define I2CSDA_PORT GPIO_PORTB_BASE
  1201. #define I2CSDA_PIN GPIO_PIN_3
  1202. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  1203. #define SSICLK_PORT GPIO_PORTA_BASE
  1204. #define SSICLK_PIN GPIO_PIN_2
  1205. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  1206. #define SSIFSS_PORT GPIO_PORTA_BASE
  1207. #define SSIFSS_PIN GPIO_PIN_3
  1208. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  1209. #define SSIRX_PORT GPIO_PORTA_BASE
  1210. #define SSIRX_PIN GPIO_PIN_4
  1211. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  1212. #define SSITX_PORT GPIO_PORTA_BASE
  1213. #define SSITX_PIN GPIO_PIN_5
  1214. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  1215. #define SWCLK_PORT GPIO_PORTC_BASE
  1216. #define SWCLK_PIN GPIO_PIN_0
  1217. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  1218. #define SWDIO_PORT GPIO_PORTC_BASE
  1219. #define SWDIO_PIN GPIO_PIN_1
  1220. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  1221. #define SWO_PORT GPIO_PORTC_BASE
  1222. #define SWO_PIN GPIO_PIN_3
  1223. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  1224. #define TCK_PORT GPIO_PORTC_BASE
  1225. #define TCK_PIN GPIO_PIN_0
  1226. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  1227. #define TDI_PORT GPIO_PORTC_BASE
  1228. #define TDI_PIN GPIO_PIN_2
  1229. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  1230. #define TDO_PORT GPIO_PORTC_BASE
  1231. #define TDO_PIN GPIO_PIN_3
  1232. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  1233. #define TMS_PORT GPIO_PORTC_BASE
  1234. #define TMS_PIN GPIO_PIN_1
  1235. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  1236. #define TRST_PORT GPIO_PORTB_BASE
  1237. #define TRST_PIN GPIO_PIN_7
  1238. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  1239. #define U0RX_PORT GPIO_PORTA_BASE
  1240. #define U0RX_PIN GPIO_PIN_0
  1241. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  1242. #define U0TX_PORT GPIO_PORTA_BASE
  1243. #define U0TX_PIN GPIO_PIN_1
  1244. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  1245. #define U1RX_PORT GPIO_PORTD_BASE
  1246. #define U1RX_PIN GPIO_PIN_2
  1247. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  1248. #define U1TX_PORT GPIO_PORTD_BASE
  1249. #define U1TX_PIN GPIO_PIN_3
  1250. #endif // PART_LM3S608
  1251. //*****************************************************************************
  1252. //
  1253. // LM3S610 Port/Pin Mapping Definitions
  1254. //
  1255. //*****************************************************************************
  1256. #ifdef PART_LM3S610
  1257. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  1258. #define CCP0_PORT GPIO_PORTD_BASE
  1259. #define CCP0_PIN GPIO_PIN_4
  1260. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  1261. #define CCP1_PORT GPIO_PORTE_BASE
  1262. #define CCP1_PIN GPIO_PIN_3
  1263. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  1264. #define CCP2_PORT GPIO_PORTD_BASE
  1265. #define CCP2_PIN GPIO_PIN_5
  1266. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  1267. #define CCP3_PORT GPIO_PORTC_BASE
  1268. #define CCP3_PIN GPIO_PIN_6
  1269. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  1270. #define CCP4_PORT GPIO_PORTC_BASE
  1271. #define CCP4_PIN GPIO_PIN_7
  1272. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  1273. #define CCP5_PORT GPIO_PORTB_BASE
  1274. #define CCP5_PIN GPIO_PIN_5
  1275. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  1276. #define FAULT_PORT GPIO_PORTD_BASE
  1277. #define FAULT_PIN GPIO_PIN_6
  1278. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  1279. #define I2CSCL_PORT GPIO_PORTB_BASE
  1280. #define I2CSCL_PIN GPIO_PIN_2
  1281. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  1282. #define I2CSDA_PORT GPIO_PORTB_BASE
  1283. #define I2CSDA_PIN GPIO_PIN_3
  1284. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  1285. #define PWM0_PORT GPIO_PORTD_BASE
  1286. #define PWM0_PIN GPIO_PIN_0
  1287. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  1288. #define PWM1_PORT GPIO_PORTD_BASE
  1289. #define PWM1_PIN GPIO_PIN_1
  1290. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  1291. #define PWM2_PORT GPIO_PORTB_BASE
  1292. #define PWM2_PIN GPIO_PIN_0
  1293. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  1294. #define PWM3_PORT GPIO_PORTB_BASE
  1295. #define PWM3_PIN GPIO_PIN_1
  1296. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  1297. #define PWM4_PORT GPIO_PORTE_BASE
  1298. #define PWM4_PIN GPIO_PIN_0
  1299. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  1300. #define PWM5_PORT GPIO_PORTE_BASE
  1301. #define PWM5_PIN GPIO_PIN_1
  1302. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  1303. #define SSICLK_PORT GPIO_PORTA_BASE
  1304. #define SSICLK_PIN GPIO_PIN_2
  1305. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  1306. #define SSIFSS_PORT GPIO_PORTA_BASE
  1307. #define SSIFSS_PIN GPIO_PIN_3
  1308. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  1309. #define SSIRX_PORT GPIO_PORTA_BASE
  1310. #define SSIRX_PIN GPIO_PIN_4
  1311. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  1312. #define SSITX_PORT GPIO_PORTA_BASE
  1313. #define SSITX_PIN GPIO_PIN_5
  1314. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  1315. #define SWCLK_PORT GPIO_PORTC_BASE
  1316. #define SWCLK_PIN GPIO_PIN_0
  1317. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  1318. #define SWDIO_PORT GPIO_PORTC_BASE
  1319. #define SWDIO_PIN GPIO_PIN_1
  1320. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  1321. #define SWO_PORT GPIO_PORTC_BASE
  1322. #define SWO_PIN GPIO_PIN_3
  1323. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  1324. #define TCK_PORT GPIO_PORTC_BASE
  1325. #define TCK_PIN GPIO_PIN_0
  1326. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  1327. #define TDI_PORT GPIO_PORTC_BASE
  1328. #define TDI_PIN GPIO_PIN_2
  1329. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  1330. #define TDO_PORT GPIO_PORTC_BASE
  1331. #define TDO_PIN GPIO_PIN_3
  1332. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  1333. #define TMS_PORT GPIO_PORTC_BASE
  1334. #define TMS_PIN GPIO_PIN_1
  1335. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  1336. #define TRST_PORT GPIO_PORTB_BASE
  1337. #define TRST_PIN GPIO_PIN_7
  1338. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  1339. #define U0RX_PORT GPIO_PORTA_BASE
  1340. #define U0RX_PIN GPIO_PIN_0
  1341. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  1342. #define U0TX_PORT GPIO_PORTA_BASE
  1343. #define U0TX_PIN GPIO_PIN_1
  1344. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  1345. #define U1RX_PORT GPIO_PORTD_BASE
  1346. #define U1RX_PIN GPIO_PIN_2
  1347. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  1348. #define U1TX_PORT GPIO_PORTD_BASE
  1349. #define U1TX_PIN GPIO_PIN_3
  1350. #endif // PART_LM3S610
  1351. //*****************************************************************************
  1352. //
  1353. // LM3S611 Port/Pin Mapping Definitions
  1354. //
  1355. //*****************************************************************************
  1356. #ifdef PART_LM3S611
  1357. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  1358. #define CCP0_PORT GPIO_PORTD_BASE
  1359. #define CCP0_PIN GPIO_PIN_4
  1360. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  1361. #define CCP1_PORT GPIO_PORTC_BASE
  1362. #define CCP1_PIN GPIO_PIN_5
  1363. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  1364. #define CCP2_PORT GPIO_PORTD_BASE
  1365. #define CCP2_PIN GPIO_PIN_5
  1366. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  1367. #define CCP3_PORT GPIO_PORTC_BASE
  1368. #define CCP3_PIN GPIO_PIN_6
  1369. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  1370. #define CCP4_PORT GPIO_PORTC_BASE
  1371. #define CCP4_PIN GPIO_PIN_7
  1372. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  1373. #define CCP5_PORT GPIO_PORTB_BASE
  1374. #define CCP5_PIN GPIO_PIN_5
  1375. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  1376. #define FAULT_PORT GPIO_PORTD_BASE
  1377. #define FAULT_PIN GPIO_PIN_6
  1378. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  1379. #define I2CSCL_PORT GPIO_PORTB_BASE
  1380. #define I2CSCL_PIN GPIO_PIN_2
  1381. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  1382. #define I2CSDA_PORT GPIO_PORTB_BASE
  1383. #define I2CSDA_PIN GPIO_PIN_3
  1384. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  1385. #define PWM0_PORT GPIO_PORTD_BASE
  1386. #define PWM0_PIN GPIO_PIN_0
  1387. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  1388. #define PWM1_PORT GPIO_PORTD_BASE
  1389. #define PWM1_PIN GPIO_PIN_1
  1390. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  1391. #define PWM2_PORT GPIO_PORTB_BASE
  1392. #define PWM2_PIN GPIO_PIN_0
  1393. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  1394. #define PWM3_PORT GPIO_PORTB_BASE
  1395. #define PWM3_PIN GPIO_PIN_1
  1396. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  1397. #define PWM4_PORT GPIO_PORTE_BASE
  1398. #define PWM4_PIN GPIO_PIN_0
  1399. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  1400. #define PWM5_PORT GPIO_PORTE_BASE
  1401. #define PWM5_PIN GPIO_PIN_1
  1402. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  1403. #define SSICLK_PORT GPIO_PORTA_BASE
  1404. #define SSICLK_PIN GPIO_PIN_2
  1405. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  1406. #define SSIFSS_PORT GPIO_PORTA_BASE
  1407. #define SSIFSS_PIN GPIO_PIN_3
  1408. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  1409. #define SSIRX_PORT GPIO_PORTA_BASE
  1410. #define SSIRX_PIN GPIO_PIN_4
  1411. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  1412. #define SSITX_PORT GPIO_PORTA_BASE
  1413. #define SSITX_PIN GPIO_PIN_5
  1414. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  1415. #define SWCLK_PORT GPIO_PORTC_BASE
  1416. #define SWCLK_PIN GPIO_PIN_0
  1417. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  1418. #define SWDIO_PORT GPIO_PORTC_BASE
  1419. #define SWDIO_PIN GPIO_PIN_1
  1420. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  1421. #define SWO_PORT GPIO_PORTC_BASE
  1422. #define SWO_PIN GPIO_PIN_3
  1423. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  1424. #define TCK_PORT GPIO_PORTC_BASE
  1425. #define TCK_PIN GPIO_PIN_0
  1426. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  1427. #define TDI_PORT GPIO_PORTC_BASE
  1428. #define TDI_PIN GPIO_PIN_2
  1429. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  1430. #define TDO_PORT GPIO_PORTC_BASE
  1431. #define TDO_PIN GPIO_PIN_3
  1432. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  1433. #define TMS_PORT GPIO_PORTC_BASE
  1434. #define TMS_PIN GPIO_PIN_1
  1435. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  1436. #define TRST_PORT GPIO_PORTB_BASE
  1437. #define TRST_PIN GPIO_PIN_7
  1438. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  1439. #define U0RX_PORT GPIO_PORTA_BASE
  1440. #define U0RX_PIN GPIO_PIN_0
  1441. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  1442. #define U0TX_PORT GPIO_PORTA_BASE
  1443. #define U0TX_PIN GPIO_PIN_1
  1444. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  1445. #define U1RX_PORT GPIO_PORTD_BASE
  1446. #define U1RX_PIN GPIO_PIN_2
  1447. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  1448. #define U1TX_PORT GPIO_PORTD_BASE
  1449. #define U1TX_PIN GPIO_PIN_3
  1450. #endif // PART_LM3S611
  1451. //*****************************************************************************
  1452. //
  1453. // LM3S612 Port/Pin Mapping Definitions
  1454. //
  1455. //*****************************************************************************
  1456. #ifdef PART_LM3S612
  1457. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  1458. #define C0O_PORT GPIO_PORTD_BASE
  1459. #define C0O_PIN GPIO_PIN_7
  1460. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  1461. #define C0_MINUS_PORT GPIO_PORTB_BASE
  1462. #define C0_MINUS_PIN GPIO_PIN_4
  1463. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  1464. #define C0_PLUS_PORT GPIO_PORTB_BASE
  1465. #define C0_PLUS_PIN GPIO_PIN_6
  1466. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  1467. #define CCP0_PORT GPIO_PORTB_BASE
  1468. #define CCP0_PIN GPIO_PIN_0
  1469. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  1470. #define CCP1_PORT GPIO_PORTE_BASE
  1471. #define CCP1_PIN GPIO_PIN_3
  1472. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  1473. #define CCP2_PORT GPIO_PORTD_BASE
  1474. #define CCP2_PIN GPIO_PIN_5
  1475. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  1476. #define CCP3_PORT GPIO_PORTC_BASE
  1477. #define CCP3_PIN GPIO_PIN_6
  1478. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  1479. #define CCP4_PORT GPIO_PORTC_BASE
  1480. #define CCP4_PIN GPIO_PIN_7
  1481. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  1482. #define CCP5_PORT GPIO_PORTB_BASE
  1483. #define CCP5_PIN GPIO_PIN_5
  1484. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  1485. #define FAULT_PORT GPIO_PORTD_BASE
  1486. #define FAULT_PIN GPIO_PIN_6
  1487. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  1488. #define I2CSCL_PORT GPIO_PORTB_BASE
  1489. #define I2CSCL_PIN GPIO_PIN_2
  1490. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  1491. #define I2CSDA_PORT GPIO_PORTB_BASE
  1492. #define I2CSDA_PIN GPIO_PIN_3
  1493. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  1494. #define PWM0_PORT GPIO_PORTD_BASE
  1495. #define PWM0_PIN GPIO_PIN_0
  1496. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  1497. #define PWM1_PORT GPIO_PORTD_BASE
  1498. #define PWM1_PIN GPIO_PIN_1
  1499. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  1500. #define SSICLK_PORT GPIO_PORTA_BASE
  1501. #define SSICLK_PIN GPIO_PIN_2
  1502. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  1503. #define SSIFSS_PORT GPIO_PORTA_BASE
  1504. #define SSIFSS_PIN GPIO_PIN_3
  1505. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  1506. #define SSIRX_PORT GPIO_PORTA_BASE
  1507. #define SSIRX_PIN GPIO_PIN_4
  1508. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  1509. #define SSITX_PORT GPIO_PORTA_BASE
  1510. #define SSITX_PIN GPIO_PIN_5
  1511. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  1512. #define SWCLK_PORT GPIO_PORTC_BASE
  1513. #define SWCLK_PIN GPIO_PIN_0
  1514. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  1515. #define SWDIO_PORT GPIO_PORTC_BASE
  1516. #define SWDIO_PIN GPIO_PIN_1
  1517. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  1518. #define SWO_PORT GPIO_PORTC_BASE
  1519. #define SWO_PIN GPIO_PIN_3
  1520. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  1521. #define TCK_PORT GPIO_PORTC_BASE
  1522. #define TCK_PIN GPIO_PIN_0
  1523. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  1524. #define TDI_PORT GPIO_PORTC_BASE
  1525. #define TDI_PIN GPIO_PIN_2
  1526. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  1527. #define TDO_PORT GPIO_PORTC_BASE
  1528. #define TDO_PIN GPIO_PIN_3
  1529. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  1530. #define TMS_PORT GPIO_PORTC_BASE
  1531. #define TMS_PIN GPIO_PIN_1
  1532. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  1533. #define TRST_PORT GPIO_PORTB_BASE
  1534. #define TRST_PIN GPIO_PIN_7
  1535. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  1536. #define U0RX_PORT GPIO_PORTA_BASE
  1537. #define U0RX_PIN GPIO_PIN_0
  1538. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  1539. #define U0TX_PORT GPIO_PORTA_BASE
  1540. #define U0TX_PIN GPIO_PIN_1
  1541. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  1542. #define U1RX_PORT GPIO_PORTD_BASE
  1543. #define U1RX_PIN GPIO_PIN_2
  1544. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  1545. #define U1TX_PORT GPIO_PORTD_BASE
  1546. #define U1TX_PIN GPIO_PIN_3
  1547. #endif // PART_LM3S612
  1548. //*****************************************************************************
  1549. //
  1550. // LM3S613 Port/Pin Mapping Definitions
  1551. //
  1552. //*****************************************************************************
  1553. #ifdef PART_LM3S613
  1554. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  1555. #define C0O_PORT GPIO_PORTD_BASE
  1556. #define C0O_PIN GPIO_PIN_7
  1557. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  1558. #define C0_MINUS_PORT GPIO_PORTB_BASE
  1559. #define C0_MINUS_PIN GPIO_PIN_4
  1560. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  1561. #define C0_PLUS_PORT GPIO_PORTB_BASE
  1562. #define C0_PLUS_PIN GPIO_PIN_6
  1563. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  1564. #define CCP0_PORT GPIO_PORTD_BASE
  1565. #define CCP0_PIN GPIO_PIN_4
  1566. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  1567. #define CCP1_PORT GPIO_PORTC_BASE
  1568. #define CCP1_PIN GPIO_PIN_5
  1569. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  1570. #define CCP2_PORT GPIO_PORTD_BASE
  1571. #define CCP2_PIN GPIO_PIN_5
  1572. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  1573. #define CCP3_PORT GPIO_PORTC_BASE
  1574. #define CCP3_PIN GPIO_PIN_6
  1575. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  1576. #define CCP4_PORT GPIO_PORTC_BASE
  1577. #define CCP4_PIN GPIO_PIN_7
  1578. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  1579. #define CCP5_PORT GPIO_PORTB_BASE
  1580. #define CCP5_PIN GPIO_PIN_5
  1581. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  1582. #define FAULT_PORT GPIO_PORTD_BASE
  1583. #define FAULT_PIN GPIO_PIN_6
  1584. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  1585. #define I2CSCL_PORT GPIO_PORTB_BASE
  1586. #define I2CSCL_PIN GPIO_PIN_2
  1587. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  1588. #define I2CSDA_PORT GPIO_PORTB_BASE
  1589. #define I2CSDA_PIN GPIO_PIN_3
  1590. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  1591. #define PWM0_PORT GPIO_PORTD_BASE
  1592. #define PWM0_PIN GPIO_PIN_0
  1593. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  1594. #define PWM1_PORT GPIO_PORTD_BASE
  1595. #define PWM1_PIN GPIO_PIN_1
  1596. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  1597. #define PWM2_PORT GPIO_PORTB_BASE
  1598. #define PWM2_PIN GPIO_PIN_0
  1599. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  1600. #define PWM3_PORT GPIO_PORTB_BASE
  1601. #define PWM3_PIN GPIO_PIN_1
  1602. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  1603. #define SSICLK_PORT GPIO_PORTA_BASE
  1604. #define SSICLK_PIN GPIO_PIN_2
  1605. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  1606. #define SSIFSS_PORT GPIO_PORTA_BASE
  1607. #define SSIFSS_PIN GPIO_PIN_3
  1608. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  1609. #define SSIRX_PORT GPIO_PORTA_BASE
  1610. #define SSIRX_PIN GPIO_PIN_4
  1611. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  1612. #define SSITX_PORT GPIO_PORTA_BASE
  1613. #define SSITX_PIN GPIO_PIN_5
  1614. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  1615. #define SWCLK_PORT GPIO_PORTC_BASE
  1616. #define SWCLK_PIN GPIO_PIN_0
  1617. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  1618. #define SWDIO_PORT GPIO_PORTC_BASE
  1619. #define SWDIO_PIN GPIO_PIN_1
  1620. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  1621. #define SWO_PORT GPIO_PORTC_BASE
  1622. #define SWO_PIN GPIO_PIN_3
  1623. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  1624. #define TCK_PORT GPIO_PORTC_BASE
  1625. #define TCK_PIN GPIO_PIN_0
  1626. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  1627. #define TDI_PORT GPIO_PORTC_BASE
  1628. #define TDI_PIN GPIO_PIN_2
  1629. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  1630. #define TDO_PORT GPIO_PORTC_BASE
  1631. #define TDO_PIN GPIO_PIN_3
  1632. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  1633. #define TMS_PORT GPIO_PORTC_BASE
  1634. #define TMS_PIN GPIO_PIN_1
  1635. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  1636. #define TRST_PORT GPIO_PORTB_BASE
  1637. #define TRST_PIN GPIO_PIN_7
  1638. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  1639. #define U0RX_PORT GPIO_PORTA_BASE
  1640. #define U0RX_PIN GPIO_PIN_0
  1641. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  1642. #define U0TX_PORT GPIO_PORTA_BASE
  1643. #define U0TX_PIN GPIO_PIN_1
  1644. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  1645. #define U1RX_PORT GPIO_PORTD_BASE
  1646. #define U1RX_PIN GPIO_PIN_2
  1647. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  1648. #define U1TX_PORT GPIO_PORTD_BASE
  1649. #define U1TX_PIN GPIO_PIN_3
  1650. #endif // PART_LM3S613
  1651. //*****************************************************************************
  1652. //
  1653. // LM3S615 Port/Pin Mapping Definitions
  1654. //
  1655. //*****************************************************************************
  1656. #ifdef PART_LM3S615
  1657. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  1658. #define C0O_PORT GPIO_PORTD_BASE
  1659. #define C0O_PIN GPIO_PIN_7
  1660. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  1661. #define C0_MINUS_PORT GPIO_PORTB_BASE
  1662. #define C0_MINUS_PIN GPIO_PIN_4
  1663. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  1664. #define C0_PLUS_PORT GPIO_PORTB_BASE
  1665. #define C0_PLUS_PIN GPIO_PIN_6
  1666. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  1667. #define C1O_PORT GPIO_PORTC_BASE
  1668. #define C1O_PIN GPIO_PIN_5
  1669. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  1670. #define C1_MINUS_PORT GPIO_PORTB_BASE
  1671. #define C1_MINUS_PIN GPIO_PIN_5
  1672. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  1673. #define C1_PLUS_PORT GPIO_PORTC_BASE
  1674. #define C1_PLUS_PIN GPIO_PIN_5
  1675. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  1676. #define C2_MINUS_PORT GPIO_PORTC_BASE
  1677. #define C2_MINUS_PIN GPIO_PIN_7
  1678. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  1679. #define C2_PLUS_PORT GPIO_PORTC_BASE
  1680. #define C2_PLUS_PIN GPIO_PIN_6
  1681. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  1682. #define CCP0_PORT GPIO_PORTD_BASE
  1683. #define CCP0_PIN GPIO_PIN_4
  1684. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  1685. #define CCP1_PORT GPIO_PORTE_BASE
  1686. #define CCP1_PIN GPIO_PIN_3
  1687. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  1688. #define CCP2_PORT GPIO_PORTD_BASE
  1689. #define CCP2_PIN GPIO_PIN_5
  1690. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  1691. #define CCP3_PORT GPIO_PORTC_BASE
  1692. #define CCP3_PIN GPIO_PIN_6
  1693. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOE
  1694. #define CCP4_PORT GPIO_PORTE_BASE
  1695. #define CCP4_PIN GPIO_PIN_2
  1696. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  1697. #define CCP5_PORT GPIO_PORTC_BASE
  1698. #define CCP5_PIN GPIO_PIN_4
  1699. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  1700. #define FAULT_PORT GPIO_PORTD_BASE
  1701. #define FAULT_PIN GPIO_PIN_6
  1702. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  1703. #define I2CSCL_PORT GPIO_PORTB_BASE
  1704. #define I2CSCL_PIN GPIO_PIN_2
  1705. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  1706. #define I2CSDA_PORT GPIO_PORTB_BASE
  1707. #define I2CSDA_PIN GPIO_PIN_3
  1708. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  1709. #define PWM0_PORT GPIO_PORTD_BASE
  1710. #define PWM0_PIN GPIO_PIN_0
  1711. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  1712. #define PWM1_PORT GPIO_PORTD_BASE
  1713. #define PWM1_PIN GPIO_PIN_1
  1714. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  1715. #define PWM2_PORT GPIO_PORTB_BASE
  1716. #define PWM2_PIN GPIO_PIN_0
  1717. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  1718. #define PWM3_PORT GPIO_PORTB_BASE
  1719. #define PWM3_PIN GPIO_PIN_1
  1720. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  1721. #define PWM4_PORT GPIO_PORTE_BASE
  1722. #define PWM4_PIN GPIO_PIN_0
  1723. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  1724. #define PWM5_PORT GPIO_PORTE_BASE
  1725. #define PWM5_PIN GPIO_PIN_1
  1726. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  1727. #define SSICLK_PORT GPIO_PORTA_BASE
  1728. #define SSICLK_PIN GPIO_PIN_2
  1729. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  1730. #define SSIFSS_PORT GPIO_PORTA_BASE
  1731. #define SSIFSS_PIN GPIO_PIN_3
  1732. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  1733. #define SSIRX_PORT GPIO_PORTA_BASE
  1734. #define SSIRX_PIN GPIO_PIN_4
  1735. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  1736. #define SSITX_PORT GPIO_PORTA_BASE
  1737. #define SSITX_PIN GPIO_PIN_5
  1738. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  1739. #define SWCLK_PORT GPIO_PORTC_BASE
  1740. #define SWCLK_PIN GPIO_PIN_0
  1741. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  1742. #define SWDIO_PORT GPIO_PORTC_BASE
  1743. #define SWDIO_PIN GPIO_PIN_1
  1744. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  1745. #define SWO_PORT GPIO_PORTC_BASE
  1746. #define SWO_PIN GPIO_PIN_3
  1747. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  1748. #define TCK_PORT GPIO_PORTC_BASE
  1749. #define TCK_PIN GPIO_PIN_0
  1750. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  1751. #define TDI_PORT GPIO_PORTC_BASE
  1752. #define TDI_PIN GPIO_PIN_2
  1753. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  1754. #define TDO_PORT GPIO_PORTC_BASE
  1755. #define TDO_PIN GPIO_PIN_3
  1756. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  1757. #define TMS_PORT GPIO_PORTC_BASE
  1758. #define TMS_PIN GPIO_PIN_1
  1759. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  1760. #define TRST_PORT GPIO_PORTB_BASE
  1761. #define TRST_PIN GPIO_PIN_7
  1762. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  1763. #define U0RX_PORT GPIO_PORTA_BASE
  1764. #define U0RX_PIN GPIO_PIN_0
  1765. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  1766. #define U0TX_PORT GPIO_PORTA_BASE
  1767. #define U0TX_PIN GPIO_PIN_1
  1768. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  1769. #define U1RX_PORT GPIO_PORTD_BASE
  1770. #define U1RX_PIN GPIO_PIN_2
  1771. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  1772. #define U1TX_PORT GPIO_PORTD_BASE
  1773. #define U1TX_PIN GPIO_PIN_3
  1774. #endif // PART_LM3S615
  1775. //*****************************************************************************
  1776. //
  1777. // LM3S617 Port/Pin Mapping Definitions
  1778. //
  1779. //*****************************************************************************
  1780. #ifdef PART_LM3S617
  1781. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  1782. #define C0O_PORT GPIO_PORTB_BASE
  1783. #define C0O_PIN GPIO_PIN_5
  1784. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  1785. #define C0_MINUS_PORT GPIO_PORTB_BASE
  1786. #define C0_MINUS_PIN GPIO_PIN_4
  1787. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  1788. #define C0_PLUS_PORT GPIO_PORTB_BASE
  1789. #define C0_PLUS_PIN GPIO_PIN_6
  1790. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  1791. #define CCP0_PORT GPIO_PORTD_BASE
  1792. #define CCP0_PIN GPIO_PIN_4
  1793. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  1794. #define CCP1_PORT GPIO_PORTC_BASE
  1795. #define CCP1_PIN GPIO_PIN_5
  1796. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  1797. #define CCP2_PORT GPIO_PORTD_BASE
  1798. #define CCP2_PIN GPIO_PIN_5
  1799. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  1800. #define CCP3_PORT GPIO_PORTC_BASE
  1801. #define CCP3_PIN GPIO_PIN_6
  1802. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  1803. #define CCP4_PORT GPIO_PORTC_BASE
  1804. #define CCP4_PIN GPIO_PIN_7
  1805. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  1806. #define CCP5_PORT GPIO_PORTC_BASE
  1807. #define CCP5_PIN GPIO_PIN_4
  1808. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOB
  1809. #define FAULT_PORT GPIO_PORTB_BASE
  1810. #define FAULT_PIN GPIO_PIN_3
  1811. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  1812. #define PWM0_PORT GPIO_PORTD_BASE
  1813. #define PWM0_PIN GPIO_PIN_0
  1814. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  1815. #define PWM1_PORT GPIO_PORTD_BASE
  1816. #define PWM1_PIN GPIO_PIN_1
  1817. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  1818. #define PWM2_PORT GPIO_PORTB_BASE
  1819. #define PWM2_PIN GPIO_PIN_0
  1820. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  1821. #define PWM3_PORT GPIO_PORTB_BASE
  1822. #define PWM3_PIN GPIO_PIN_1
  1823. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  1824. #define PWM4_PORT GPIO_PORTE_BASE
  1825. #define PWM4_PIN GPIO_PIN_0
  1826. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  1827. #define PWM5_PORT GPIO_PORTE_BASE
  1828. #define PWM5_PIN GPIO_PIN_1
  1829. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  1830. #define SSICLK_PORT GPIO_PORTA_BASE
  1831. #define SSICLK_PIN GPIO_PIN_2
  1832. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  1833. #define SSIFSS_PORT GPIO_PORTA_BASE
  1834. #define SSIFSS_PIN GPIO_PIN_3
  1835. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  1836. #define SSIRX_PORT GPIO_PORTA_BASE
  1837. #define SSIRX_PIN GPIO_PIN_4
  1838. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  1839. #define SSITX_PORT GPIO_PORTA_BASE
  1840. #define SSITX_PIN GPIO_PIN_5
  1841. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  1842. #define SWCLK_PORT GPIO_PORTC_BASE
  1843. #define SWCLK_PIN GPIO_PIN_0
  1844. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  1845. #define SWDIO_PORT GPIO_PORTC_BASE
  1846. #define SWDIO_PIN GPIO_PIN_1
  1847. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  1848. #define SWO_PORT GPIO_PORTC_BASE
  1849. #define SWO_PIN GPIO_PIN_3
  1850. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  1851. #define TCK_PORT GPIO_PORTC_BASE
  1852. #define TCK_PIN GPIO_PIN_0
  1853. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  1854. #define TDI_PORT GPIO_PORTC_BASE
  1855. #define TDI_PIN GPIO_PIN_2
  1856. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  1857. #define TDO_PORT GPIO_PORTC_BASE
  1858. #define TDO_PIN GPIO_PIN_3
  1859. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  1860. #define TMS_PORT GPIO_PORTC_BASE
  1861. #define TMS_PIN GPIO_PIN_1
  1862. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  1863. #define TRST_PORT GPIO_PORTB_BASE
  1864. #define TRST_PIN GPIO_PIN_7
  1865. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  1866. #define U0RX_PORT GPIO_PORTA_BASE
  1867. #define U0RX_PIN GPIO_PIN_0
  1868. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  1869. #define U0TX_PORT GPIO_PORTA_BASE
  1870. #define U0TX_PIN GPIO_PIN_1
  1871. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  1872. #define U1RX_PORT GPIO_PORTD_BASE
  1873. #define U1RX_PIN GPIO_PIN_2
  1874. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  1875. #define U1TX_PORT GPIO_PORTD_BASE
  1876. #define U1TX_PIN GPIO_PIN_3
  1877. #endif // PART_LM3S617
  1878. //*****************************************************************************
  1879. //
  1880. // LM3S618 Port/Pin Mapping Definitions
  1881. //
  1882. //*****************************************************************************
  1883. #ifdef PART_LM3S618
  1884. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  1885. #define C0O_PORT GPIO_PORTB_BASE
  1886. #define C0O_PIN GPIO_PIN_5
  1887. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  1888. #define C0_MINUS_PORT GPIO_PORTB_BASE
  1889. #define C0_MINUS_PIN GPIO_PIN_4
  1890. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  1891. #define C0_PLUS_PORT GPIO_PORTB_BASE
  1892. #define C0_PLUS_PIN GPIO_PIN_6
  1893. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  1894. #define CCP0_PORT GPIO_PORTD_BASE
  1895. #define CCP0_PIN GPIO_PIN_4
  1896. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  1897. #define CCP1_PORT GPIO_PORTC_BASE
  1898. #define CCP1_PIN GPIO_PIN_5
  1899. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  1900. #define CCP2_PORT GPIO_PORTD_BASE
  1901. #define CCP2_PIN GPIO_PIN_5
  1902. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  1903. #define CCP4_PORT GPIO_PORTC_BASE
  1904. #define CCP4_PIN GPIO_PIN_7
  1905. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOB
  1906. #define FAULT_PORT GPIO_PORTB_BASE
  1907. #define FAULT_PIN GPIO_PIN_3
  1908. #define IDX_PERIPH SYSCTL_PERIPH_GPIOB
  1909. #define IDX_PORT GPIO_PORTB_BASE
  1910. #define IDX_PIN GPIO_PIN_2
  1911. #define PHA_PERIPH SYSCTL_PERIPH_GPIOC
  1912. #define PHA_PORT GPIO_PORTC_BASE
  1913. #define PHA_PIN GPIO_PIN_4
  1914. #define PHB_PERIPH SYSCTL_PERIPH_GPIOC
  1915. #define PHB_PORT GPIO_PORTC_BASE
  1916. #define PHB_PIN GPIO_PIN_6
  1917. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  1918. #define PWM0_PORT GPIO_PORTD_BASE
  1919. #define PWM0_PIN GPIO_PIN_0
  1920. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  1921. #define PWM1_PORT GPIO_PORTD_BASE
  1922. #define PWM1_PIN GPIO_PIN_1
  1923. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  1924. #define PWM2_PORT GPIO_PORTB_BASE
  1925. #define PWM2_PIN GPIO_PIN_0
  1926. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  1927. #define PWM3_PORT GPIO_PORTB_BASE
  1928. #define PWM3_PIN GPIO_PIN_1
  1929. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  1930. #define PWM4_PORT GPIO_PORTE_BASE
  1931. #define PWM4_PIN GPIO_PIN_0
  1932. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  1933. #define PWM5_PORT GPIO_PORTE_BASE
  1934. #define PWM5_PIN GPIO_PIN_1
  1935. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  1936. #define SSICLK_PORT GPIO_PORTA_BASE
  1937. #define SSICLK_PIN GPIO_PIN_2
  1938. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  1939. #define SSIFSS_PORT GPIO_PORTA_BASE
  1940. #define SSIFSS_PIN GPIO_PIN_3
  1941. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  1942. #define SSIRX_PORT GPIO_PORTA_BASE
  1943. #define SSIRX_PIN GPIO_PIN_4
  1944. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  1945. #define SSITX_PORT GPIO_PORTA_BASE
  1946. #define SSITX_PIN GPIO_PIN_5
  1947. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  1948. #define SWCLK_PORT GPIO_PORTC_BASE
  1949. #define SWCLK_PIN GPIO_PIN_0
  1950. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  1951. #define SWDIO_PORT GPIO_PORTC_BASE
  1952. #define SWDIO_PIN GPIO_PIN_1
  1953. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  1954. #define SWO_PORT GPIO_PORTC_BASE
  1955. #define SWO_PIN GPIO_PIN_3
  1956. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  1957. #define TCK_PORT GPIO_PORTC_BASE
  1958. #define TCK_PIN GPIO_PIN_0
  1959. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  1960. #define TDI_PORT GPIO_PORTC_BASE
  1961. #define TDI_PIN GPIO_PIN_2
  1962. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  1963. #define TDO_PORT GPIO_PORTC_BASE
  1964. #define TDO_PIN GPIO_PIN_3
  1965. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  1966. #define TMS_PORT GPIO_PORTC_BASE
  1967. #define TMS_PIN GPIO_PIN_1
  1968. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  1969. #define TRST_PORT GPIO_PORTB_BASE
  1970. #define TRST_PIN GPIO_PIN_7
  1971. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  1972. #define U0RX_PORT GPIO_PORTA_BASE
  1973. #define U0RX_PIN GPIO_PIN_0
  1974. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  1975. #define U0TX_PORT GPIO_PORTA_BASE
  1976. #define U0TX_PIN GPIO_PIN_1
  1977. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  1978. #define U1RX_PORT GPIO_PORTD_BASE
  1979. #define U1RX_PIN GPIO_PIN_2
  1980. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  1981. #define U1TX_PORT GPIO_PORTD_BASE
  1982. #define U1TX_PIN GPIO_PIN_3
  1983. #endif // PART_LM3S618
  1984. //*****************************************************************************
  1985. //
  1986. // LM3S628 Port/Pin Mapping Definitions
  1987. //
  1988. //*****************************************************************************
  1989. #ifdef PART_LM3S628
  1990. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  1991. #define CCP0_PORT GPIO_PORTB_BASE
  1992. #define CCP0_PIN GPIO_PIN_0
  1993. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  1994. #define CCP1_PORT GPIO_PORTC_BASE
  1995. #define CCP1_PIN GPIO_PIN_5
  1996. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  1997. #define CCP2_PORT GPIO_PORTB_BASE
  1998. #define CCP2_PIN GPIO_PIN_1
  1999. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  2000. #define CCP3_PORT GPIO_PORTC_BASE
  2001. #define CCP3_PIN GPIO_PIN_6
  2002. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  2003. #define I2CSCL_PORT GPIO_PORTB_BASE
  2004. #define I2CSCL_PIN GPIO_PIN_2
  2005. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  2006. #define I2CSDA_PORT GPIO_PORTB_BASE
  2007. #define I2CSDA_PIN GPIO_PIN_3
  2008. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  2009. #define SSICLK_PORT GPIO_PORTA_BASE
  2010. #define SSICLK_PIN GPIO_PIN_2
  2011. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  2012. #define SSIFSS_PORT GPIO_PORTA_BASE
  2013. #define SSIFSS_PIN GPIO_PIN_3
  2014. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  2015. #define SSIRX_PORT GPIO_PORTA_BASE
  2016. #define SSIRX_PIN GPIO_PIN_4
  2017. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  2018. #define SSITX_PORT GPIO_PORTA_BASE
  2019. #define SSITX_PIN GPIO_PIN_5
  2020. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  2021. #define SWCLK_PORT GPIO_PORTC_BASE
  2022. #define SWCLK_PIN GPIO_PIN_0
  2023. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  2024. #define SWDIO_PORT GPIO_PORTC_BASE
  2025. #define SWDIO_PIN GPIO_PIN_1
  2026. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  2027. #define SWO_PORT GPIO_PORTC_BASE
  2028. #define SWO_PIN GPIO_PIN_3
  2029. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  2030. #define TCK_PORT GPIO_PORTC_BASE
  2031. #define TCK_PIN GPIO_PIN_0
  2032. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  2033. #define TDI_PORT GPIO_PORTC_BASE
  2034. #define TDI_PIN GPIO_PIN_2
  2035. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  2036. #define TDO_PORT GPIO_PORTC_BASE
  2037. #define TDO_PIN GPIO_PIN_3
  2038. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  2039. #define TMS_PORT GPIO_PORTC_BASE
  2040. #define TMS_PIN GPIO_PIN_1
  2041. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  2042. #define TRST_PORT GPIO_PORTB_BASE
  2043. #define TRST_PIN GPIO_PIN_7
  2044. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  2045. #define U0RX_PORT GPIO_PORTA_BASE
  2046. #define U0RX_PIN GPIO_PIN_0
  2047. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  2048. #define U0TX_PORT GPIO_PORTA_BASE
  2049. #define U0TX_PIN GPIO_PIN_1
  2050. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  2051. #define U1RX_PORT GPIO_PORTD_BASE
  2052. #define U1RX_PIN GPIO_PIN_2
  2053. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  2054. #define U1TX_PORT GPIO_PORTD_BASE
  2055. #define U1TX_PIN GPIO_PIN_3
  2056. #endif // PART_LM3S628
  2057. //*****************************************************************************
  2058. //
  2059. // LM3S800 Port/Pin Mapping Definitions
  2060. //
  2061. //*****************************************************************************
  2062. #ifdef PART_LM3S800
  2063. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  2064. #define C0O_PORT GPIO_PORTD_BASE
  2065. #define C0O_PIN GPIO_PIN_7
  2066. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  2067. #define C0_MINUS_PORT GPIO_PORTB_BASE
  2068. #define C0_MINUS_PIN GPIO_PIN_4
  2069. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  2070. #define C0_PLUS_PORT GPIO_PORTB_BASE
  2071. #define C0_PLUS_PIN GPIO_PIN_6
  2072. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  2073. #define C1O_PORT GPIO_PORTC_BASE
  2074. #define C1O_PIN GPIO_PIN_5
  2075. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  2076. #define C1_MINUS_PORT GPIO_PORTB_BASE
  2077. #define C1_MINUS_PIN GPIO_PIN_5
  2078. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  2079. #define C1_PLUS_PORT GPIO_PORTC_BASE
  2080. #define C1_PLUS_PIN GPIO_PIN_5
  2081. #define C2O_PERIPH SYSCTL_PERIPH_GPIOC
  2082. #define C2O_PORT GPIO_PORTC_BASE
  2083. #define C2O_PIN GPIO_PIN_6
  2084. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  2085. #define C2_MINUS_PORT GPIO_PORTC_BASE
  2086. #define C2_MINUS_PIN GPIO_PIN_7
  2087. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  2088. #define C2_PLUS_PORT GPIO_PORTC_BASE
  2089. #define C2_PLUS_PIN GPIO_PIN_6
  2090. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  2091. #define CCP0_PORT GPIO_PORTD_BASE
  2092. #define CCP0_PIN GPIO_PIN_4
  2093. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  2094. #define CCP1_PORT GPIO_PORTE_BASE
  2095. #define CCP1_PIN GPIO_PIN_3
  2096. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  2097. #define CCP2_PORT GPIO_PORTD_BASE
  2098. #define CCP2_PIN GPIO_PIN_5
  2099. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  2100. #define CCP3_PORT GPIO_PORTE_BASE
  2101. #define CCP3_PIN GPIO_PIN_4
  2102. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOE
  2103. #define CCP4_PORT GPIO_PORTE_BASE
  2104. #define CCP4_PIN GPIO_PIN_2
  2105. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOE
  2106. #define CCP5_PORT GPIO_PORTE_BASE
  2107. #define CCP5_PIN GPIO_PIN_5
  2108. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  2109. #define I2CSCL_PORT GPIO_PORTB_BASE
  2110. #define I2CSCL_PIN GPIO_PIN_2
  2111. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  2112. #define I2CSDA_PORT GPIO_PORTB_BASE
  2113. #define I2CSDA_PIN GPIO_PIN_3
  2114. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  2115. #define SSICLK_PORT GPIO_PORTA_BASE
  2116. #define SSICLK_PIN GPIO_PIN_2
  2117. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  2118. #define SSIFSS_PORT GPIO_PORTA_BASE
  2119. #define SSIFSS_PIN GPIO_PIN_3
  2120. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  2121. #define SSIRX_PORT GPIO_PORTA_BASE
  2122. #define SSIRX_PIN GPIO_PIN_4
  2123. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  2124. #define SSITX_PORT GPIO_PORTA_BASE
  2125. #define SSITX_PIN GPIO_PIN_5
  2126. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  2127. #define SWCLK_PORT GPIO_PORTC_BASE
  2128. #define SWCLK_PIN GPIO_PIN_0
  2129. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  2130. #define SWDIO_PORT GPIO_PORTC_BASE
  2131. #define SWDIO_PIN GPIO_PIN_1
  2132. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  2133. #define SWO_PORT GPIO_PORTC_BASE
  2134. #define SWO_PIN GPIO_PIN_3
  2135. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  2136. #define TCK_PORT GPIO_PORTC_BASE
  2137. #define TCK_PIN GPIO_PIN_0
  2138. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  2139. #define TDI_PORT GPIO_PORTC_BASE
  2140. #define TDI_PIN GPIO_PIN_2
  2141. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  2142. #define TDO_PORT GPIO_PORTC_BASE
  2143. #define TDO_PIN GPIO_PIN_3
  2144. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  2145. #define TMS_PORT GPIO_PORTC_BASE
  2146. #define TMS_PIN GPIO_PIN_1
  2147. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  2148. #define TRST_PORT GPIO_PORTB_BASE
  2149. #define TRST_PIN GPIO_PIN_7
  2150. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  2151. #define U0RX_PORT GPIO_PORTA_BASE
  2152. #define U0RX_PIN GPIO_PIN_0
  2153. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  2154. #define U0TX_PORT GPIO_PORTA_BASE
  2155. #define U0TX_PIN GPIO_PIN_1
  2156. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  2157. #define U1RX_PORT GPIO_PORTD_BASE
  2158. #define U1RX_PIN GPIO_PIN_2
  2159. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  2160. #define U1TX_PORT GPIO_PORTD_BASE
  2161. #define U1TX_PIN GPIO_PIN_3
  2162. #endif // PART_LM3S800
  2163. //*****************************************************************************
  2164. //
  2165. // LM3S801 Port/Pin Mapping Definitions
  2166. //
  2167. //*****************************************************************************
  2168. #ifdef PART_LM3S801
  2169. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  2170. #define C0O_PORT GPIO_PORTC_BASE
  2171. #define C0O_PIN GPIO_PIN_5
  2172. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  2173. #define C0_MINUS_PORT GPIO_PORTB_BASE
  2174. #define C0_MINUS_PIN GPIO_PIN_4
  2175. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  2176. #define C0_PLUS_PORT GPIO_PORTB_BASE
  2177. #define C0_PLUS_PIN GPIO_PIN_6
  2178. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  2179. #define C1_MINUS_PORT GPIO_PORTB_BASE
  2180. #define C1_MINUS_PIN GPIO_PIN_5
  2181. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  2182. #define C1_PLUS_PORT GPIO_PORTC_BASE
  2183. #define C1_PLUS_PIN GPIO_PIN_5
  2184. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  2185. #define C2_MINUS_PORT GPIO_PORTC_BASE
  2186. #define C2_MINUS_PIN GPIO_PIN_7
  2187. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  2188. #define C2_PLUS_PORT GPIO_PORTC_BASE
  2189. #define C2_PLUS_PIN GPIO_PIN_6
  2190. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  2191. #define CCP0_PORT GPIO_PORTD_BASE
  2192. #define CCP0_PIN GPIO_PIN_4
  2193. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  2194. #define CCP1_PORT GPIO_PORTE_BASE
  2195. #define CCP1_PIN GPIO_PIN_3
  2196. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  2197. #define CCP2_PORT GPIO_PORTD_BASE
  2198. #define CCP2_PIN GPIO_PIN_5
  2199. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  2200. #define CCP3_PORT GPIO_PORTE_BASE
  2201. #define CCP3_PIN GPIO_PIN_4
  2202. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOE
  2203. #define CCP4_PORT GPIO_PORTE_BASE
  2204. #define CCP4_PIN GPIO_PIN_2
  2205. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOE
  2206. #define CCP5_PORT GPIO_PORTE_BASE
  2207. #define CCP5_PIN GPIO_PIN_5
  2208. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  2209. #define FAULT_PORT GPIO_PORTD_BASE
  2210. #define FAULT_PIN GPIO_PIN_6
  2211. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  2212. #define I2CSCL_PORT GPIO_PORTB_BASE
  2213. #define I2CSCL_PIN GPIO_PIN_2
  2214. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  2215. #define I2CSDA_PORT GPIO_PORTB_BASE
  2216. #define I2CSDA_PIN GPIO_PIN_3
  2217. #define IDX_PERIPH SYSCTL_PERIPH_GPIOD
  2218. #define IDX_PORT GPIO_PORTD_BASE
  2219. #define IDX_PIN GPIO_PIN_7
  2220. #define PHA_PERIPH SYSCTL_PERIPH_GPIOC
  2221. #define PHA_PORT GPIO_PORTC_BASE
  2222. #define PHA_PIN GPIO_PIN_4
  2223. #define PHB_PERIPH SYSCTL_PERIPH_GPIOC
  2224. #define PHB_PORT GPIO_PORTC_BASE
  2225. #define PHB_PIN GPIO_PIN_6
  2226. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  2227. #define PWM0_PORT GPIO_PORTD_BASE
  2228. #define PWM0_PIN GPIO_PIN_0
  2229. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  2230. #define PWM1_PORT GPIO_PORTD_BASE
  2231. #define PWM1_PIN GPIO_PIN_1
  2232. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  2233. #define PWM2_PORT GPIO_PORTB_BASE
  2234. #define PWM2_PIN GPIO_PIN_0
  2235. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  2236. #define PWM3_PORT GPIO_PORTB_BASE
  2237. #define PWM3_PIN GPIO_PIN_1
  2238. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  2239. #define PWM4_PORT GPIO_PORTE_BASE
  2240. #define PWM4_PIN GPIO_PIN_0
  2241. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  2242. #define PWM5_PORT GPIO_PORTE_BASE
  2243. #define PWM5_PIN GPIO_PIN_1
  2244. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  2245. #define SSICLK_PORT GPIO_PORTA_BASE
  2246. #define SSICLK_PIN GPIO_PIN_2
  2247. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  2248. #define SSIFSS_PORT GPIO_PORTA_BASE
  2249. #define SSIFSS_PIN GPIO_PIN_3
  2250. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  2251. #define SSIRX_PORT GPIO_PORTA_BASE
  2252. #define SSIRX_PIN GPIO_PIN_4
  2253. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  2254. #define SSITX_PORT GPIO_PORTA_BASE
  2255. #define SSITX_PIN GPIO_PIN_5
  2256. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  2257. #define SWCLK_PORT GPIO_PORTC_BASE
  2258. #define SWCLK_PIN GPIO_PIN_0
  2259. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  2260. #define SWDIO_PORT GPIO_PORTC_BASE
  2261. #define SWDIO_PIN GPIO_PIN_1
  2262. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  2263. #define SWO_PORT GPIO_PORTC_BASE
  2264. #define SWO_PIN GPIO_PIN_3
  2265. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  2266. #define TCK_PORT GPIO_PORTC_BASE
  2267. #define TCK_PIN GPIO_PIN_0
  2268. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  2269. #define TDI_PORT GPIO_PORTC_BASE
  2270. #define TDI_PIN GPIO_PIN_2
  2271. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  2272. #define TDO_PORT GPIO_PORTC_BASE
  2273. #define TDO_PIN GPIO_PIN_3
  2274. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  2275. #define TMS_PORT GPIO_PORTC_BASE
  2276. #define TMS_PIN GPIO_PIN_1
  2277. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  2278. #define TRST_PORT GPIO_PORTB_BASE
  2279. #define TRST_PIN GPIO_PIN_7
  2280. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  2281. #define U0RX_PORT GPIO_PORTA_BASE
  2282. #define U0RX_PIN GPIO_PIN_0
  2283. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  2284. #define U0TX_PORT GPIO_PORTA_BASE
  2285. #define U0TX_PIN GPIO_PIN_1
  2286. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  2287. #define U1RX_PORT GPIO_PORTD_BASE
  2288. #define U1RX_PIN GPIO_PIN_2
  2289. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  2290. #define U1TX_PORT GPIO_PORTD_BASE
  2291. #define U1TX_PIN GPIO_PIN_3
  2292. #endif // PART_LM3S801
  2293. //*****************************************************************************
  2294. //
  2295. // LM3S808 Port/Pin Mapping Definitions
  2296. //
  2297. //*****************************************************************************
  2298. #ifdef PART_LM3S808
  2299. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  2300. #define C0_MINUS_PORT GPIO_PORTB_BASE
  2301. #define C0_MINUS_PIN GPIO_PIN_4
  2302. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  2303. #define C0_PLUS_PORT GPIO_PORTB_BASE
  2304. #define C0_PLUS_PIN GPIO_PIN_6
  2305. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  2306. #define CCP0_PORT GPIO_PORTB_BASE
  2307. #define CCP0_PIN GPIO_PIN_0
  2308. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  2309. #define CCP1_PORT GPIO_PORTC_BASE
  2310. #define CCP1_PIN GPIO_PIN_5
  2311. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  2312. #define CCP2_PORT GPIO_PORTB_BASE
  2313. #define CCP2_PIN GPIO_PIN_1
  2314. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  2315. #define CCP3_PORT GPIO_PORTC_BASE
  2316. #define CCP3_PIN GPIO_PIN_6
  2317. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  2318. #define CCP4_PORT GPIO_PORTC_BASE
  2319. #define CCP4_PIN GPIO_PIN_7
  2320. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  2321. #define CCP5_PORT GPIO_PORTB_BASE
  2322. #define CCP5_PIN GPIO_PIN_5
  2323. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  2324. #define I2CSCL_PORT GPIO_PORTB_BASE
  2325. #define I2CSCL_PIN GPIO_PIN_2
  2326. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  2327. #define I2CSDA_PORT GPIO_PORTB_BASE
  2328. #define I2CSDA_PIN GPIO_PIN_3
  2329. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  2330. #define SSICLK_PORT GPIO_PORTA_BASE
  2331. #define SSICLK_PIN GPIO_PIN_2
  2332. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  2333. #define SSIFSS_PORT GPIO_PORTA_BASE
  2334. #define SSIFSS_PIN GPIO_PIN_3
  2335. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  2336. #define SSIRX_PORT GPIO_PORTA_BASE
  2337. #define SSIRX_PIN GPIO_PIN_4
  2338. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  2339. #define SSITX_PORT GPIO_PORTA_BASE
  2340. #define SSITX_PIN GPIO_PIN_5
  2341. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  2342. #define SWCLK_PORT GPIO_PORTC_BASE
  2343. #define SWCLK_PIN GPIO_PIN_0
  2344. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  2345. #define SWDIO_PORT GPIO_PORTC_BASE
  2346. #define SWDIO_PIN GPIO_PIN_1
  2347. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  2348. #define SWO_PORT GPIO_PORTC_BASE
  2349. #define SWO_PIN GPIO_PIN_3
  2350. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  2351. #define TCK_PORT GPIO_PORTC_BASE
  2352. #define TCK_PIN GPIO_PIN_0
  2353. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  2354. #define TDI_PORT GPIO_PORTC_BASE
  2355. #define TDI_PIN GPIO_PIN_2
  2356. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  2357. #define TDO_PORT GPIO_PORTC_BASE
  2358. #define TDO_PIN GPIO_PIN_3
  2359. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  2360. #define TMS_PORT GPIO_PORTC_BASE
  2361. #define TMS_PIN GPIO_PIN_1
  2362. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  2363. #define TRST_PORT GPIO_PORTB_BASE
  2364. #define TRST_PIN GPIO_PIN_7
  2365. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  2366. #define U0RX_PORT GPIO_PORTA_BASE
  2367. #define U0RX_PIN GPIO_PIN_0
  2368. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  2369. #define U0TX_PORT GPIO_PORTA_BASE
  2370. #define U0TX_PIN GPIO_PIN_1
  2371. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  2372. #define U1RX_PORT GPIO_PORTD_BASE
  2373. #define U1RX_PIN GPIO_PIN_2
  2374. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  2375. #define U1TX_PORT GPIO_PORTD_BASE
  2376. #define U1TX_PIN GPIO_PIN_3
  2377. #endif // PART_LM3S808
  2378. //*****************************************************************************
  2379. //
  2380. // LM3S811 Port/Pin Mapping Definitions
  2381. //
  2382. //*****************************************************************************
  2383. #ifdef PART_LM3S811
  2384. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  2385. #define C0O_PORT GPIO_PORTD_BASE
  2386. #define C0O_PIN GPIO_PIN_7
  2387. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  2388. #define C0_MINUS_PORT GPIO_PORTB_BASE
  2389. #define C0_MINUS_PIN GPIO_PIN_4
  2390. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  2391. #define C0_PLUS_PORT GPIO_PORTB_BASE
  2392. #define C0_PLUS_PIN GPIO_PIN_6
  2393. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  2394. #define CCP0_PORT GPIO_PORTD_BASE
  2395. #define CCP0_PIN GPIO_PIN_4
  2396. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  2397. #define CCP1_PORT GPIO_PORTC_BASE
  2398. #define CCP1_PIN GPIO_PIN_5
  2399. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  2400. #define CCP2_PORT GPIO_PORTD_BASE
  2401. #define CCP2_PIN GPIO_PIN_5
  2402. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  2403. #define CCP3_PORT GPIO_PORTC_BASE
  2404. #define CCP3_PIN GPIO_PIN_6
  2405. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  2406. #define CCP4_PORT GPIO_PORTC_BASE
  2407. #define CCP4_PIN GPIO_PIN_7
  2408. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  2409. #define CCP5_PORT GPIO_PORTB_BASE
  2410. #define CCP5_PIN GPIO_PIN_5
  2411. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  2412. #define FAULT_PORT GPIO_PORTD_BASE
  2413. #define FAULT_PIN GPIO_PIN_6
  2414. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  2415. #define I2CSCL_PORT GPIO_PORTB_BASE
  2416. #define I2CSCL_PIN GPIO_PIN_2
  2417. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  2418. #define I2CSDA_PORT GPIO_PORTB_BASE
  2419. #define I2CSDA_PIN GPIO_PIN_3
  2420. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  2421. #define PWM0_PORT GPIO_PORTD_BASE
  2422. #define PWM0_PIN GPIO_PIN_0
  2423. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  2424. #define PWM1_PORT GPIO_PORTD_BASE
  2425. #define PWM1_PIN GPIO_PIN_1
  2426. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  2427. #define PWM2_PORT GPIO_PORTB_BASE
  2428. #define PWM2_PIN GPIO_PIN_0
  2429. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  2430. #define PWM3_PORT GPIO_PORTB_BASE
  2431. #define PWM3_PIN GPIO_PIN_1
  2432. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  2433. #define PWM4_PORT GPIO_PORTE_BASE
  2434. #define PWM4_PIN GPIO_PIN_0
  2435. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  2436. #define PWM5_PORT GPIO_PORTE_BASE
  2437. #define PWM5_PIN GPIO_PIN_1
  2438. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  2439. #define SSICLK_PORT GPIO_PORTA_BASE
  2440. #define SSICLK_PIN GPIO_PIN_2
  2441. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  2442. #define SSIFSS_PORT GPIO_PORTA_BASE
  2443. #define SSIFSS_PIN GPIO_PIN_3
  2444. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  2445. #define SSIRX_PORT GPIO_PORTA_BASE
  2446. #define SSIRX_PIN GPIO_PIN_4
  2447. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  2448. #define SSITX_PORT GPIO_PORTA_BASE
  2449. #define SSITX_PIN GPIO_PIN_5
  2450. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  2451. #define SWCLK_PORT GPIO_PORTC_BASE
  2452. #define SWCLK_PIN GPIO_PIN_0
  2453. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  2454. #define SWDIO_PORT GPIO_PORTC_BASE
  2455. #define SWDIO_PIN GPIO_PIN_1
  2456. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  2457. #define SWO_PORT GPIO_PORTC_BASE
  2458. #define SWO_PIN GPIO_PIN_3
  2459. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  2460. #define TCK_PORT GPIO_PORTC_BASE
  2461. #define TCK_PIN GPIO_PIN_0
  2462. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  2463. #define TDI_PORT GPIO_PORTC_BASE
  2464. #define TDI_PIN GPIO_PIN_2
  2465. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  2466. #define TDO_PORT GPIO_PORTC_BASE
  2467. #define TDO_PIN GPIO_PIN_3
  2468. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  2469. #define TMS_PORT GPIO_PORTC_BASE
  2470. #define TMS_PIN GPIO_PIN_1
  2471. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  2472. #define TRST_PORT GPIO_PORTB_BASE
  2473. #define TRST_PIN GPIO_PIN_7
  2474. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  2475. #define U0RX_PORT GPIO_PORTA_BASE
  2476. #define U0RX_PIN GPIO_PIN_0
  2477. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  2478. #define U0TX_PORT GPIO_PORTA_BASE
  2479. #define U0TX_PIN GPIO_PIN_1
  2480. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  2481. #define U1RX_PORT GPIO_PORTD_BASE
  2482. #define U1RX_PIN GPIO_PIN_2
  2483. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  2484. #define U1TX_PORT GPIO_PORTD_BASE
  2485. #define U1TX_PIN GPIO_PIN_3
  2486. #endif // PART_LM3S811
  2487. //*****************************************************************************
  2488. //
  2489. // LM3S812 Port/Pin Mapping Definitions
  2490. //
  2491. //*****************************************************************************
  2492. #ifdef PART_LM3S812
  2493. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  2494. #define C0O_PORT GPIO_PORTD_BASE
  2495. #define C0O_PIN GPIO_PIN_7
  2496. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  2497. #define C0_MINUS_PORT GPIO_PORTB_BASE
  2498. #define C0_MINUS_PIN GPIO_PIN_4
  2499. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  2500. #define C0_PLUS_PORT GPIO_PORTB_BASE
  2501. #define C0_PLUS_PIN GPIO_PIN_6
  2502. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  2503. #define CCP0_PORT GPIO_PORTB_BASE
  2504. #define CCP0_PIN GPIO_PIN_0
  2505. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  2506. #define CCP1_PORT GPIO_PORTE_BASE
  2507. #define CCP1_PIN GPIO_PIN_3
  2508. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  2509. #define CCP2_PORT GPIO_PORTD_BASE
  2510. #define CCP2_PIN GPIO_PIN_5
  2511. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  2512. #define CCP3_PORT GPIO_PORTC_BASE
  2513. #define CCP3_PIN GPIO_PIN_6
  2514. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  2515. #define CCP4_PORT GPIO_PORTC_BASE
  2516. #define CCP4_PIN GPIO_PIN_7
  2517. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  2518. #define CCP5_PORT GPIO_PORTB_BASE
  2519. #define CCP5_PIN GPIO_PIN_5
  2520. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  2521. #define FAULT_PORT GPIO_PORTD_BASE
  2522. #define FAULT_PIN GPIO_PIN_6
  2523. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  2524. #define I2CSCL_PORT GPIO_PORTB_BASE
  2525. #define I2CSCL_PIN GPIO_PIN_2
  2526. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  2527. #define I2CSDA_PORT GPIO_PORTB_BASE
  2528. #define I2CSDA_PIN GPIO_PIN_3
  2529. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  2530. #define PWM0_PORT GPIO_PORTD_BASE
  2531. #define PWM0_PIN GPIO_PIN_0
  2532. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  2533. #define PWM1_PORT GPIO_PORTD_BASE
  2534. #define PWM1_PIN GPIO_PIN_1
  2535. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  2536. #define SSICLK_PORT GPIO_PORTA_BASE
  2537. #define SSICLK_PIN GPIO_PIN_2
  2538. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  2539. #define SSIFSS_PORT GPIO_PORTA_BASE
  2540. #define SSIFSS_PIN GPIO_PIN_3
  2541. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  2542. #define SSIRX_PORT GPIO_PORTA_BASE
  2543. #define SSIRX_PIN GPIO_PIN_4
  2544. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  2545. #define SSITX_PORT GPIO_PORTA_BASE
  2546. #define SSITX_PIN GPIO_PIN_5
  2547. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  2548. #define SWCLK_PORT GPIO_PORTC_BASE
  2549. #define SWCLK_PIN GPIO_PIN_0
  2550. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  2551. #define SWDIO_PORT GPIO_PORTC_BASE
  2552. #define SWDIO_PIN GPIO_PIN_1
  2553. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  2554. #define SWO_PORT GPIO_PORTC_BASE
  2555. #define SWO_PIN GPIO_PIN_3
  2556. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  2557. #define TCK_PORT GPIO_PORTC_BASE
  2558. #define TCK_PIN GPIO_PIN_0
  2559. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  2560. #define TDI_PORT GPIO_PORTC_BASE
  2561. #define TDI_PIN GPIO_PIN_2
  2562. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  2563. #define TDO_PORT GPIO_PORTC_BASE
  2564. #define TDO_PIN GPIO_PIN_3
  2565. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  2566. #define TMS_PORT GPIO_PORTC_BASE
  2567. #define TMS_PIN GPIO_PIN_1
  2568. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  2569. #define TRST_PORT GPIO_PORTB_BASE
  2570. #define TRST_PIN GPIO_PIN_7
  2571. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  2572. #define U0RX_PORT GPIO_PORTA_BASE
  2573. #define U0RX_PIN GPIO_PIN_0
  2574. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  2575. #define U0TX_PORT GPIO_PORTA_BASE
  2576. #define U0TX_PIN GPIO_PIN_1
  2577. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  2578. #define U1RX_PORT GPIO_PORTD_BASE
  2579. #define U1RX_PIN GPIO_PIN_2
  2580. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  2581. #define U1TX_PORT GPIO_PORTD_BASE
  2582. #define U1TX_PIN GPIO_PIN_3
  2583. #endif // PART_LM3S812
  2584. //*****************************************************************************
  2585. //
  2586. // LM3S815 Port/Pin Mapping Definitions
  2587. //
  2588. //*****************************************************************************
  2589. #ifdef PART_LM3S815
  2590. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  2591. #define C0O_PORT GPIO_PORTD_BASE
  2592. #define C0O_PIN GPIO_PIN_7
  2593. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  2594. #define C0_MINUS_PORT GPIO_PORTB_BASE
  2595. #define C0_MINUS_PIN GPIO_PIN_4
  2596. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  2597. #define C0_PLUS_PORT GPIO_PORTB_BASE
  2598. #define C0_PLUS_PIN GPIO_PIN_6
  2599. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  2600. #define C1O_PORT GPIO_PORTC_BASE
  2601. #define C1O_PIN GPIO_PIN_5
  2602. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  2603. #define C1_MINUS_PORT GPIO_PORTB_BASE
  2604. #define C1_MINUS_PIN GPIO_PIN_5
  2605. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  2606. #define C1_PLUS_PORT GPIO_PORTC_BASE
  2607. #define C1_PLUS_PIN GPIO_PIN_5
  2608. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  2609. #define C2_MINUS_PORT GPIO_PORTC_BASE
  2610. #define C2_MINUS_PIN GPIO_PIN_7
  2611. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  2612. #define C2_PLUS_PORT GPIO_PORTC_BASE
  2613. #define C2_PLUS_PIN GPIO_PIN_6
  2614. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  2615. #define CCP0_PORT GPIO_PORTD_BASE
  2616. #define CCP0_PIN GPIO_PIN_4
  2617. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  2618. #define CCP1_PORT GPIO_PORTE_BASE
  2619. #define CCP1_PIN GPIO_PIN_3
  2620. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  2621. #define CCP2_PORT GPIO_PORTD_BASE
  2622. #define CCP2_PIN GPIO_PIN_5
  2623. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  2624. #define CCP3_PORT GPIO_PORTC_BASE
  2625. #define CCP3_PIN GPIO_PIN_6
  2626. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOE
  2627. #define CCP4_PORT GPIO_PORTE_BASE
  2628. #define CCP4_PIN GPIO_PIN_2
  2629. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  2630. #define CCP5_PORT GPIO_PORTC_BASE
  2631. #define CCP5_PIN GPIO_PIN_4
  2632. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  2633. #define FAULT_PORT GPIO_PORTD_BASE
  2634. #define FAULT_PIN GPIO_PIN_6
  2635. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  2636. #define I2CSCL_PORT GPIO_PORTB_BASE
  2637. #define I2CSCL_PIN GPIO_PIN_2
  2638. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  2639. #define I2CSDA_PORT GPIO_PORTB_BASE
  2640. #define I2CSDA_PIN GPIO_PIN_3
  2641. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  2642. #define PWM0_PORT GPIO_PORTD_BASE
  2643. #define PWM0_PIN GPIO_PIN_0
  2644. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  2645. #define PWM1_PORT GPIO_PORTD_BASE
  2646. #define PWM1_PIN GPIO_PIN_1
  2647. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  2648. #define PWM2_PORT GPIO_PORTB_BASE
  2649. #define PWM2_PIN GPIO_PIN_0
  2650. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  2651. #define PWM3_PORT GPIO_PORTB_BASE
  2652. #define PWM3_PIN GPIO_PIN_1
  2653. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  2654. #define PWM4_PORT GPIO_PORTE_BASE
  2655. #define PWM4_PIN GPIO_PIN_0
  2656. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  2657. #define PWM5_PORT GPIO_PORTE_BASE
  2658. #define PWM5_PIN GPIO_PIN_1
  2659. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  2660. #define SSICLK_PORT GPIO_PORTA_BASE
  2661. #define SSICLK_PIN GPIO_PIN_2
  2662. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  2663. #define SSIFSS_PORT GPIO_PORTA_BASE
  2664. #define SSIFSS_PIN GPIO_PIN_3
  2665. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  2666. #define SSIRX_PORT GPIO_PORTA_BASE
  2667. #define SSIRX_PIN GPIO_PIN_4
  2668. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  2669. #define SSITX_PORT GPIO_PORTA_BASE
  2670. #define SSITX_PIN GPIO_PIN_5
  2671. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  2672. #define SWCLK_PORT GPIO_PORTC_BASE
  2673. #define SWCLK_PIN GPIO_PIN_0
  2674. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  2675. #define SWDIO_PORT GPIO_PORTC_BASE
  2676. #define SWDIO_PIN GPIO_PIN_1
  2677. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  2678. #define SWO_PORT GPIO_PORTC_BASE
  2679. #define SWO_PIN GPIO_PIN_3
  2680. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  2681. #define TCK_PORT GPIO_PORTC_BASE
  2682. #define TCK_PIN GPIO_PIN_0
  2683. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  2684. #define TDI_PORT GPIO_PORTC_BASE
  2685. #define TDI_PIN GPIO_PIN_2
  2686. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  2687. #define TDO_PORT GPIO_PORTC_BASE
  2688. #define TDO_PIN GPIO_PIN_3
  2689. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  2690. #define TMS_PORT GPIO_PORTC_BASE
  2691. #define TMS_PIN GPIO_PIN_1
  2692. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  2693. #define TRST_PORT GPIO_PORTB_BASE
  2694. #define TRST_PIN GPIO_PIN_7
  2695. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  2696. #define U0RX_PORT GPIO_PORTA_BASE
  2697. #define U0RX_PIN GPIO_PIN_0
  2698. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  2699. #define U0TX_PORT GPIO_PORTA_BASE
  2700. #define U0TX_PIN GPIO_PIN_1
  2701. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  2702. #define U1RX_PORT GPIO_PORTD_BASE
  2703. #define U1RX_PIN GPIO_PIN_2
  2704. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  2705. #define U1TX_PORT GPIO_PORTD_BASE
  2706. #define U1TX_PIN GPIO_PIN_3
  2707. #endif // PART_LM3S815
  2708. //*****************************************************************************
  2709. //
  2710. // LM3S817 Port/Pin Mapping Definitions
  2711. //
  2712. //*****************************************************************************
  2713. #ifdef PART_LM3S817
  2714. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  2715. #define C0O_PORT GPIO_PORTB_BASE
  2716. #define C0O_PIN GPIO_PIN_5
  2717. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  2718. #define C0_MINUS_PORT GPIO_PORTB_BASE
  2719. #define C0_MINUS_PIN GPIO_PIN_4
  2720. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  2721. #define C0_PLUS_PORT GPIO_PORTB_BASE
  2722. #define C0_PLUS_PIN GPIO_PIN_6
  2723. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  2724. #define CCP0_PORT GPIO_PORTD_BASE
  2725. #define CCP0_PIN GPIO_PIN_4
  2726. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  2727. #define CCP1_PORT GPIO_PORTC_BASE
  2728. #define CCP1_PIN GPIO_PIN_5
  2729. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  2730. #define CCP2_PORT GPIO_PORTD_BASE
  2731. #define CCP2_PIN GPIO_PIN_5
  2732. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  2733. #define CCP3_PORT GPIO_PORTC_BASE
  2734. #define CCP3_PIN GPIO_PIN_6
  2735. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  2736. #define CCP4_PORT GPIO_PORTC_BASE
  2737. #define CCP4_PIN GPIO_PIN_7
  2738. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  2739. #define CCP5_PORT GPIO_PORTC_BASE
  2740. #define CCP5_PIN GPIO_PIN_4
  2741. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOB
  2742. #define FAULT_PORT GPIO_PORTB_BASE
  2743. #define FAULT_PIN GPIO_PIN_3
  2744. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  2745. #define PWM0_PORT GPIO_PORTD_BASE
  2746. #define PWM0_PIN GPIO_PIN_0
  2747. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  2748. #define PWM1_PORT GPIO_PORTD_BASE
  2749. #define PWM1_PIN GPIO_PIN_1
  2750. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  2751. #define PWM2_PORT GPIO_PORTB_BASE
  2752. #define PWM2_PIN GPIO_PIN_0
  2753. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  2754. #define PWM3_PORT GPIO_PORTB_BASE
  2755. #define PWM3_PIN GPIO_PIN_1
  2756. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  2757. #define PWM4_PORT GPIO_PORTE_BASE
  2758. #define PWM4_PIN GPIO_PIN_0
  2759. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  2760. #define PWM5_PORT GPIO_PORTE_BASE
  2761. #define PWM5_PIN GPIO_PIN_1
  2762. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  2763. #define SSICLK_PORT GPIO_PORTA_BASE
  2764. #define SSICLK_PIN GPIO_PIN_2
  2765. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  2766. #define SSIFSS_PORT GPIO_PORTA_BASE
  2767. #define SSIFSS_PIN GPIO_PIN_3
  2768. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  2769. #define SSIRX_PORT GPIO_PORTA_BASE
  2770. #define SSIRX_PIN GPIO_PIN_4
  2771. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  2772. #define SSITX_PORT GPIO_PORTA_BASE
  2773. #define SSITX_PIN GPIO_PIN_5
  2774. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  2775. #define SWCLK_PORT GPIO_PORTC_BASE
  2776. #define SWCLK_PIN GPIO_PIN_0
  2777. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  2778. #define SWDIO_PORT GPIO_PORTC_BASE
  2779. #define SWDIO_PIN GPIO_PIN_1
  2780. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  2781. #define SWO_PORT GPIO_PORTC_BASE
  2782. #define SWO_PIN GPIO_PIN_3
  2783. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  2784. #define TCK_PORT GPIO_PORTC_BASE
  2785. #define TCK_PIN GPIO_PIN_0
  2786. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  2787. #define TDI_PORT GPIO_PORTC_BASE
  2788. #define TDI_PIN GPIO_PIN_2
  2789. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  2790. #define TDO_PORT GPIO_PORTC_BASE
  2791. #define TDO_PIN GPIO_PIN_3
  2792. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  2793. #define TMS_PORT GPIO_PORTC_BASE
  2794. #define TMS_PIN GPIO_PIN_1
  2795. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  2796. #define TRST_PORT GPIO_PORTB_BASE
  2797. #define TRST_PIN GPIO_PIN_7
  2798. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  2799. #define U0RX_PORT GPIO_PORTA_BASE
  2800. #define U0RX_PIN GPIO_PIN_0
  2801. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  2802. #define U0TX_PORT GPIO_PORTA_BASE
  2803. #define U0TX_PIN GPIO_PIN_1
  2804. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  2805. #define U1RX_PORT GPIO_PORTD_BASE
  2806. #define U1RX_PIN GPIO_PIN_2
  2807. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  2808. #define U1TX_PORT GPIO_PORTD_BASE
  2809. #define U1TX_PIN GPIO_PIN_3
  2810. #endif // PART_LM3S817
  2811. //*****************************************************************************
  2812. //
  2813. // LM3S818 Port/Pin Mapping Definitions
  2814. //
  2815. //*****************************************************************************
  2816. #ifdef PART_LM3S818
  2817. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  2818. #define C0O_PORT GPIO_PORTB_BASE
  2819. #define C0O_PIN GPIO_PIN_5
  2820. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  2821. #define C0_MINUS_PORT GPIO_PORTB_BASE
  2822. #define C0_MINUS_PIN GPIO_PIN_4
  2823. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  2824. #define C0_PLUS_PORT GPIO_PORTB_BASE
  2825. #define C0_PLUS_PIN GPIO_PIN_6
  2826. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  2827. #define CCP0_PORT GPIO_PORTD_BASE
  2828. #define CCP0_PIN GPIO_PIN_4
  2829. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  2830. #define CCP1_PORT GPIO_PORTC_BASE
  2831. #define CCP1_PIN GPIO_PIN_5
  2832. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  2833. #define CCP2_PORT GPIO_PORTD_BASE
  2834. #define CCP2_PIN GPIO_PIN_5
  2835. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  2836. #define CCP4_PORT GPIO_PORTC_BASE
  2837. #define CCP4_PIN GPIO_PIN_7
  2838. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOB
  2839. #define FAULT_PORT GPIO_PORTB_BASE
  2840. #define FAULT_PIN GPIO_PIN_3
  2841. #define IDX_PERIPH SYSCTL_PERIPH_GPIOB
  2842. #define IDX_PORT GPIO_PORTB_BASE
  2843. #define IDX_PIN GPIO_PIN_2
  2844. #define PHA_PERIPH SYSCTL_PERIPH_GPIOC
  2845. #define PHA_PORT GPIO_PORTC_BASE
  2846. #define PHA_PIN GPIO_PIN_4
  2847. #define PHB_PERIPH SYSCTL_PERIPH_GPIOC
  2848. #define PHB_PORT GPIO_PORTC_BASE
  2849. #define PHB_PIN GPIO_PIN_6
  2850. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  2851. #define PWM0_PORT GPIO_PORTD_BASE
  2852. #define PWM0_PIN GPIO_PIN_0
  2853. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  2854. #define PWM1_PORT GPIO_PORTD_BASE
  2855. #define PWM1_PIN GPIO_PIN_1
  2856. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  2857. #define PWM2_PORT GPIO_PORTB_BASE
  2858. #define PWM2_PIN GPIO_PIN_0
  2859. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  2860. #define PWM3_PORT GPIO_PORTB_BASE
  2861. #define PWM3_PIN GPIO_PIN_1
  2862. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  2863. #define PWM4_PORT GPIO_PORTE_BASE
  2864. #define PWM4_PIN GPIO_PIN_0
  2865. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  2866. #define PWM5_PORT GPIO_PORTE_BASE
  2867. #define PWM5_PIN GPIO_PIN_1
  2868. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  2869. #define SSICLK_PORT GPIO_PORTA_BASE
  2870. #define SSICLK_PIN GPIO_PIN_2
  2871. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  2872. #define SSIFSS_PORT GPIO_PORTA_BASE
  2873. #define SSIFSS_PIN GPIO_PIN_3
  2874. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  2875. #define SSIRX_PORT GPIO_PORTA_BASE
  2876. #define SSIRX_PIN GPIO_PIN_4
  2877. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  2878. #define SSITX_PORT GPIO_PORTA_BASE
  2879. #define SSITX_PIN GPIO_PIN_5
  2880. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  2881. #define SWCLK_PORT GPIO_PORTC_BASE
  2882. #define SWCLK_PIN GPIO_PIN_0
  2883. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  2884. #define SWDIO_PORT GPIO_PORTC_BASE
  2885. #define SWDIO_PIN GPIO_PIN_1
  2886. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  2887. #define SWO_PORT GPIO_PORTC_BASE
  2888. #define SWO_PIN GPIO_PIN_3
  2889. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  2890. #define TCK_PORT GPIO_PORTC_BASE
  2891. #define TCK_PIN GPIO_PIN_0
  2892. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  2893. #define TDI_PORT GPIO_PORTC_BASE
  2894. #define TDI_PIN GPIO_PIN_2
  2895. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  2896. #define TDO_PORT GPIO_PORTC_BASE
  2897. #define TDO_PIN GPIO_PIN_3
  2898. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  2899. #define TMS_PORT GPIO_PORTC_BASE
  2900. #define TMS_PIN GPIO_PIN_1
  2901. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  2902. #define TRST_PORT GPIO_PORTB_BASE
  2903. #define TRST_PIN GPIO_PIN_7
  2904. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  2905. #define U0RX_PORT GPIO_PORTA_BASE
  2906. #define U0RX_PIN GPIO_PIN_0
  2907. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  2908. #define U0TX_PORT GPIO_PORTA_BASE
  2909. #define U0TX_PIN GPIO_PIN_1
  2910. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  2911. #define U1RX_PORT GPIO_PORTD_BASE
  2912. #define U1RX_PIN GPIO_PIN_2
  2913. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  2914. #define U1TX_PORT GPIO_PORTD_BASE
  2915. #define U1TX_PIN GPIO_PIN_3
  2916. #endif // PART_LM3S818
  2917. //*****************************************************************************
  2918. //
  2919. // LM3S828 Port/Pin Mapping Definitions
  2920. //
  2921. //*****************************************************************************
  2922. #ifdef PART_LM3S828
  2923. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  2924. #define CCP0_PORT GPIO_PORTB_BASE
  2925. #define CCP0_PIN GPIO_PIN_0
  2926. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  2927. #define CCP1_PORT GPIO_PORTC_BASE
  2928. #define CCP1_PIN GPIO_PIN_5
  2929. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  2930. #define CCP2_PORT GPIO_PORTB_BASE
  2931. #define CCP2_PIN GPIO_PIN_1
  2932. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  2933. #define CCP3_PORT GPIO_PORTC_BASE
  2934. #define CCP3_PIN GPIO_PIN_6
  2935. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  2936. #define CCP4_PORT GPIO_PORTC_BASE
  2937. #define CCP4_PIN GPIO_PIN_7
  2938. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  2939. #define CCP5_PORT GPIO_PORTB_BASE
  2940. #define CCP5_PIN GPIO_PIN_5
  2941. #define I2CSCL_PERIPH SYSCTL_PERIPH_GPIOB
  2942. #define I2CSCL_PORT GPIO_PORTB_BASE
  2943. #define I2CSCL_PIN GPIO_PIN_2
  2944. #define I2CSDA_PERIPH SYSCTL_PERIPH_GPIOB
  2945. #define I2CSDA_PORT GPIO_PORTB_BASE
  2946. #define I2CSDA_PIN GPIO_PIN_3
  2947. #define SSICLK_PERIPH SYSCTL_PERIPH_GPIOA
  2948. #define SSICLK_PORT GPIO_PORTA_BASE
  2949. #define SSICLK_PIN GPIO_PIN_2
  2950. #define SSIFSS_PERIPH SYSCTL_PERIPH_GPIOA
  2951. #define SSIFSS_PORT GPIO_PORTA_BASE
  2952. #define SSIFSS_PIN GPIO_PIN_3
  2953. #define SSIRX_PERIPH SYSCTL_PERIPH_GPIOA
  2954. #define SSIRX_PORT GPIO_PORTA_BASE
  2955. #define SSIRX_PIN GPIO_PIN_4
  2956. #define SSITX_PERIPH SYSCTL_PERIPH_GPIOA
  2957. #define SSITX_PORT GPIO_PORTA_BASE
  2958. #define SSITX_PIN GPIO_PIN_5
  2959. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  2960. #define SWCLK_PORT GPIO_PORTC_BASE
  2961. #define SWCLK_PIN GPIO_PIN_0
  2962. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  2963. #define SWDIO_PORT GPIO_PORTC_BASE
  2964. #define SWDIO_PIN GPIO_PIN_1
  2965. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  2966. #define SWO_PORT GPIO_PORTC_BASE
  2967. #define SWO_PIN GPIO_PIN_3
  2968. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  2969. #define TCK_PORT GPIO_PORTC_BASE
  2970. #define TCK_PIN GPIO_PIN_0
  2971. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  2972. #define TDI_PORT GPIO_PORTC_BASE
  2973. #define TDI_PIN GPIO_PIN_2
  2974. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  2975. #define TDO_PORT GPIO_PORTC_BASE
  2976. #define TDO_PIN GPIO_PIN_3
  2977. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  2978. #define TMS_PORT GPIO_PORTC_BASE
  2979. #define TMS_PIN GPIO_PIN_1
  2980. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  2981. #define TRST_PORT GPIO_PORTB_BASE
  2982. #define TRST_PIN GPIO_PIN_7
  2983. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  2984. #define U0RX_PORT GPIO_PORTA_BASE
  2985. #define U0RX_PIN GPIO_PIN_0
  2986. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  2987. #define U0TX_PORT GPIO_PORTA_BASE
  2988. #define U0TX_PIN GPIO_PIN_1
  2989. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  2990. #define U1RX_PORT GPIO_PORTD_BASE
  2991. #define U1RX_PIN GPIO_PIN_2
  2992. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  2993. #define U1TX_PORT GPIO_PORTD_BASE
  2994. #define U1TX_PIN GPIO_PIN_3
  2995. #endif // PART_LM3S828
  2996. //*****************************************************************************
  2997. //
  2998. // LM3S1110 Port/Pin Mapping Definitions
  2999. //
  3000. //*****************************************************************************
  3001. #ifdef PART_LM3S1110
  3002. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  3003. #define C0O_PORT GPIO_PORTD_BASE
  3004. #define C0O_PIN GPIO_PIN_7
  3005. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3006. #define C0_MINUS_PORT GPIO_PORTB_BASE
  3007. #define C0_MINUS_PIN GPIO_PIN_4
  3008. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  3009. #define C0_PLUS_PORT GPIO_PORTB_BASE
  3010. #define C0_PLUS_PIN GPIO_PIN_6
  3011. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  3012. #define C1O_PORT GPIO_PORTE_BASE
  3013. #define C1O_PIN GPIO_PIN_6
  3014. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3015. #define C1_MINUS_PORT GPIO_PORTB_BASE
  3016. #define C1_MINUS_PIN GPIO_PIN_5
  3017. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  3018. #define C1_PLUS_PORT GPIO_PORTC_BASE
  3019. #define C1_PLUS_PIN GPIO_PIN_5
  3020. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  3021. #define CCP0_PORT GPIO_PORTB_BASE
  3022. #define CCP0_PIN GPIO_PIN_0
  3023. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  3024. #define CCP1_PORT GPIO_PORTA_BASE
  3025. #define CCP1_PIN GPIO_PIN_6
  3026. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  3027. #define SSI0CLK_PORT GPIO_PORTA_BASE
  3028. #define SSI0CLK_PIN GPIO_PIN_2
  3029. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  3030. #define SSI0FSS_PORT GPIO_PORTA_BASE
  3031. #define SSI0FSS_PIN GPIO_PIN_3
  3032. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3033. #define SSI0RX_PORT GPIO_PORTA_BASE
  3034. #define SSI0RX_PIN GPIO_PIN_4
  3035. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3036. #define SSI0TX_PORT GPIO_PORTA_BASE
  3037. #define SSI0TX_PIN GPIO_PIN_5
  3038. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  3039. #define SWCLK_PORT GPIO_PORTC_BASE
  3040. #define SWCLK_PIN GPIO_PIN_0
  3041. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  3042. #define SWDIO_PORT GPIO_PORTC_BASE
  3043. #define SWDIO_PIN GPIO_PIN_1
  3044. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  3045. #define SWO_PORT GPIO_PORTC_BASE
  3046. #define SWO_PIN GPIO_PIN_3
  3047. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  3048. #define TCK_PORT GPIO_PORTC_BASE
  3049. #define TCK_PIN GPIO_PIN_0
  3050. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  3051. #define TDI_PORT GPIO_PORTC_BASE
  3052. #define TDI_PIN GPIO_PIN_2
  3053. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  3054. #define TDO_PORT GPIO_PORTC_BASE
  3055. #define TDO_PIN GPIO_PIN_3
  3056. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  3057. #define TMS_PORT GPIO_PORTC_BASE
  3058. #define TMS_PIN GPIO_PIN_1
  3059. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  3060. #define TRST_PORT GPIO_PORTB_BASE
  3061. #define TRST_PIN GPIO_PIN_7
  3062. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3063. #define U0RX_PORT GPIO_PORTA_BASE
  3064. #define U0RX_PIN GPIO_PIN_0
  3065. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3066. #define U0TX_PORT GPIO_PORTA_BASE
  3067. #define U0TX_PIN GPIO_PIN_1
  3068. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  3069. #define U1RX_PORT GPIO_PORTD_BASE
  3070. #define U1RX_PIN GPIO_PIN_2
  3071. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  3072. #define U1TX_PORT GPIO_PORTD_BASE
  3073. #define U1TX_PIN GPIO_PIN_3
  3074. #endif // PART_LM3S1110
  3075. //*****************************************************************************
  3076. //
  3077. // LM3S1133 Port/Pin Mapping Definitions
  3078. //
  3079. //*****************************************************************************
  3080. #ifdef PART_LM3S1133
  3081. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  3082. #define C0O_PORT GPIO_PORTC_BASE
  3083. #define C0O_PIN GPIO_PIN_5
  3084. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3085. #define C0_MINUS_PORT GPIO_PORTB_BASE
  3086. #define C0_MINUS_PIN GPIO_PIN_4
  3087. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  3088. #define C0_PLUS_PORT GPIO_PORTB_BASE
  3089. #define C0_PLUS_PIN GPIO_PIN_6
  3090. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  3091. #define CCP0_PORT GPIO_PORTB_BASE
  3092. #define CCP0_PIN GPIO_PIN_0
  3093. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  3094. #define CCP1_PORT GPIO_PORTA_BASE
  3095. #define CCP1_PIN GPIO_PIN_6
  3096. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  3097. #define CCP2_PORT GPIO_PORTB_BASE
  3098. #define CCP2_PIN GPIO_PIN_1
  3099. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  3100. #define CCP3_PORT GPIO_PORTC_BASE
  3101. #define CCP3_PIN GPIO_PIN_6
  3102. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  3103. #define CCP4_PORT GPIO_PORTA_BASE
  3104. #define CCP4_PIN GPIO_PIN_7
  3105. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  3106. #define CCP5_PORT GPIO_PORTB_BASE
  3107. #define CCP5_PIN GPIO_PIN_5
  3108. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  3109. #define CCP6_PORT GPIO_PORTH_BASE
  3110. #define CCP6_PIN GPIO_PIN_0
  3111. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  3112. #define CCP7_PORT GPIO_PORTH_BASE
  3113. #define CCP7_PIN GPIO_PIN_1
  3114. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  3115. #define FAULT_PORT GPIO_PORTD_BASE
  3116. #define FAULT_PIN GPIO_PIN_6
  3117. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  3118. #define I2C0SCL_PORT GPIO_PORTB_BASE
  3119. #define I2C0SCL_PIN GPIO_PIN_2
  3120. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  3121. #define I2C0SDA_PORT GPIO_PORTB_BASE
  3122. #define I2C0SDA_PIN GPIO_PIN_3
  3123. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  3124. #define PWM0_PORT GPIO_PORTD_BASE
  3125. #define PWM0_PIN GPIO_PIN_0
  3126. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  3127. #define PWM1_PORT GPIO_PORTD_BASE
  3128. #define PWM1_PIN GPIO_PIN_1
  3129. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  3130. #define SSI0CLK_PORT GPIO_PORTA_BASE
  3131. #define SSI0CLK_PIN GPIO_PIN_2
  3132. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  3133. #define SSI0FSS_PORT GPIO_PORTA_BASE
  3134. #define SSI0FSS_PIN GPIO_PIN_3
  3135. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3136. #define SSI0RX_PORT GPIO_PORTA_BASE
  3137. #define SSI0RX_PIN GPIO_PIN_4
  3138. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3139. #define SSI0TX_PORT GPIO_PORTA_BASE
  3140. #define SSI0TX_PIN GPIO_PIN_5
  3141. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  3142. #define SSI1CLK_PORT GPIO_PORTE_BASE
  3143. #define SSI1CLK_PIN GPIO_PIN_0
  3144. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  3145. #define SSI1FSS_PORT GPIO_PORTE_BASE
  3146. #define SSI1FSS_PIN GPIO_PIN_1
  3147. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  3148. #define SSI1RX_PORT GPIO_PORTE_BASE
  3149. #define SSI1RX_PIN GPIO_PIN_2
  3150. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  3151. #define SSI1TX_PORT GPIO_PORTE_BASE
  3152. #define SSI1TX_PIN GPIO_PIN_3
  3153. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  3154. #define SWCLK_PORT GPIO_PORTC_BASE
  3155. #define SWCLK_PIN GPIO_PIN_0
  3156. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  3157. #define SWDIO_PORT GPIO_PORTC_BASE
  3158. #define SWDIO_PIN GPIO_PIN_1
  3159. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  3160. #define SWO_PORT GPIO_PORTC_BASE
  3161. #define SWO_PIN GPIO_PIN_3
  3162. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  3163. #define TCK_PORT GPIO_PORTC_BASE
  3164. #define TCK_PIN GPIO_PIN_0
  3165. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  3166. #define TDI_PORT GPIO_PORTC_BASE
  3167. #define TDI_PIN GPIO_PIN_2
  3168. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  3169. #define TDO_PORT GPIO_PORTC_BASE
  3170. #define TDO_PIN GPIO_PIN_3
  3171. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  3172. #define TMS_PORT GPIO_PORTC_BASE
  3173. #define TMS_PIN GPIO_PIN_1
  3174. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  3175. #define TRST_PORT GPIO_PORTB_BASE
  3176. #define TRST_PIN GPIO_PIN_7
  3177. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3178. #define U0RX_PORT GPIO_PORTA_BASE
  3179. #define U0RX_PIN GPIO_PIN_0
  3180. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3181. #define U0TX_PORT GPIO_PORTA_BASE
  3182. #define U0TX_PIN GPIO_PIN_1
  3183. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  3184. #define U1RX_PORT GPIO_PORTD_BASE
  3185. #define U1RX_PIN GPIO_PIN_2
  3186. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  3187. #define U1TX_PORT GPIO_PORTD_BASE
  3188. #define U1TX_PIN GPIO_PIN_3
  3189. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  3190. #define U2RX_PORT GPIO_PORTG_BASE
  3191. #define U2RX_PIN GPIO_PIN_0
  3192. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  3193. #define U2TX_PORT GPIO_PORTG_BASE
  3194. #define U2TX_PIN GPIO_PIN_1
  3195. #endif // PART_LM3S1133
  3196. //*****************************************************************************
  3197. //
  3198. // LM3S1138 Port/Pin Mapping Definitions
  3199. //
  3200. //*****************************************************************************
  3201. #ifdef PART_LM3S1138
  3202. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  3203. #define C0O_PORT GPIO_PORTF_BASE
  3204. #define C0O_PIN GPIO_PIN_4
  3205. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3206. #define C0_MINUS_PORT GPIO_PORTB_BASE
  3207. #define C0_MINUS_PIN GPIO_PIN_4
  3208. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  3209. #define C0_PLUS_PORT GPIO_PORTB_BASE
  3210. #define C0_PLUS_PIN GPIO_PIN_6
  3211. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  3212. #define C1O_PORT GPIO_PORTF_BASE
  3213. #define C1O_PIN GPIO_PIN_5
  3214. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3215. #define C1_MINUS_PORT GPIO_PORTB_BASE
  3216. #define C1_MINUS_PIN GPIO_PIN_5
  3217. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  3218. #define C1_PLUS_PORT GPIO_PORTC_BASE
  3219. #define C1_PLUS_PIN GPIO_PIN_5
  3220. #define C2O_PERIPH SYSCTL_PERIPH_GPIOC
  3221. #define C2O_PORT GPIO_PORTC_BASE
  3222. #define C2O_PIN GPIO_PIN_6
  3223. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  3224. #define C2_MINUS_PORT GPIO_PORTC_BASE
  3225. #define C2_MINUS_PIN GPIO_PIN_7
  3226. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  3227. #define C2_PLUS_PORT GPIO_PORTC_BASE
  3228. #define C2_PLUS_PIN GPIO_PIN_6
  3229. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  3230. #define CCP0_PORT GPIO_PORTB_BASE
  3231. #define CCP0_PIN GPIO_PIN_0
  3232. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOF
  3233. #define CCP1_PORT GPIO_PORTF_BASE
  3234. #define CCP1_PIN GPIO_PIN_6
  3235. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  3236. #define CCP2_PORT GPIO_PORTB_BASE
  3237. #define CCP2_PIN GPIO_PIN_1
  3238. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOG
  3239. #define CCP3_PORT GPIO_PORTG_BASE
  3240. #define CCP3_PIN GPIO_PIN_4
  3241. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOF
  3242. #define CCP4_PORT GPIO_PORTF_BASE
  3243. #define CCP4_PIN GPIO_PIN_7
  3244. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  3245. #define CCP5_PORT GPIO_PORTC_BASE
  3246. #define CCP5_PIN GPIO_PIN_4
  3247. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  3248. #define I2C0SCL_PORT GPIO_PORTB_BASE
  3249. #define I2C0SCL_PIN GPIO_PIN_2
  3250. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  3251. #define I2C0SDA_PORT GPIO_PORTB_BASE
  3252. #define I2C0SDA_PIN GPIO_PIN_3
  3253. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  3254. #define I2C1SCL_PORT GPIO_PORTA_BASE
  3255. #define I2C1SCL_PIN GPIO_PIN_6
  3256. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  3257. #define I2C1SDA_PORT GPIO_PORTA_BASE
  3258. #define I2C1SDA_PIN GPIO_PIN_7
  3259. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  3260. #define SSI0CLK_PORT GPIO_PORTA_BASE
  3261. #define SSI0CLK_PIN GPIO_PIN_2
  3262. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  3263. #define SSI0FSS_PORT GPIO_PORTA_BASE
  3264. #define SSI0FSS_PIN GPIO_PIN_3
  3265. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3266. #define SSI0RX_PORT GPIO_PORTA_BASE
  3267. #define SSI0RX_PIN GPIO_PIN_4
  3268. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3269. #define SSI0TX_PORT GPIO_PORTA_BASE
  3270. #define SSI0TX_PIN GPIO_PIN_5
  3271. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  3272. #define SSI1CLK_PORT GPIO_PORTE_BASE
  3273. #define SSI1CLK_PIN GPIO_PIN_0
  3274. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  3275. #define SSI1FSS_PORT GPIO_PORTE_BASE
  3276. #define SSI1FSS_PIN GPIO_PIN_1
  3277. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  3278. #define SSI1RX_PORT GPIO_PORTE_BASE
  3279. #define SSI1RX_PIN GPIO_PIN_2
  3280. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  3281. #define SSI1TX_PORT GPIO_PORTE_BASE
  3282. #define SSI1TX_PIN GPIO_PIN_3
  3283. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  3284. #define SWCLK_PORT GPIO_PORTC_BASE
  3285. #define SWCLK_PIN GPIO_PIN_0
  3286. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  3287. #define SWDIO_PORT GPIO_PORTC_BASE
  3288. #define SWDIO_PIN GPIO_PIN_1
  3289. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  3290. #define SWO_PORT GPIO_PORTC_BASE
  3291. #define SWO_PIN GPIO_PIN_3
  3292. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  3293. #define TCK_PORT GPIO_PORTC_BASE
  3294. #define TCK_PIN GPIO_PIN_0
  3295. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  3296. #define TDI_PORT GPIO_PORTC_BASE
  3297. #define TDI_PIN GPIO_PIN_2
  3298. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  3299. #define TDO_PORT GPIO_PORTC_BASE
  3300. #define TDO_PIN GPIO_PIN_3
  3301. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  3302. #define TMS_PORT GPIO_PORTC_BASE
  3303. #define TMS_PIN GPIO_PIN_1
  3304. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  3305. #define TRST_PORT GPIO_PORTB_BASE
  3306. #define TRST_PIN GPIO_PIN_7
  3307. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3308. #define U0RX_PORT GPIO_PORTA_BASE
  3309. #define U0RX_PIN GPIO_PIN_0
  3310. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3311. #define U0TX_PORT GPIO_PORTA_BASE
  3312. #define U0TX_PIN GPIO_PIN_1
  3313. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  3314. #define U1RX_PORT GPIO_PORTD_BASE
  3315. #define U1RX_PIN GPIO_PIN_2
  3316. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  3317. #define U1TX_PORT GPIO_PORTD_BASE
  3318. #define U1TX_PIN GPIO_PIN_3
  3319. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  3320. #define U2RX_PORT GPIO_PORTG_BASE
  3321. #define U2RX_PIN GPIO_PIN_0
  3322. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  3323. #define U2TX_PORT GPIO_PORTG_BASE
  3324. #define U2TX_PIN GPIO_PIN_1
  3325. #endif // PART_LM3S1138
  3326. //*****************************************************************************
  3327. //
  3328. // LM3S1150 Port/Pin Mapping Definitions
  3329. //
  3330. //*****************************************************************************
  3331. #ifdef PART_LM3S1150
  3332. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  3333. #define C0O_PORT GPIO_PORTF_BASE
  3334. #define C0O_PIN GPIO_PIN_4
  3335. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3336. #define C0_MINUS_PORT GPIO_PORTB_BASE
  3337. #define C0_MINUS_PIN GPIO_PIN_4
  3338. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  3339. #define C0_PLUS_PORT GPIO_PORTB_BASE
  3340. #define C0_PLUS_PIN GPIO_PIN_6
  3341. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  3342. #define C1O_PORT GPIO_PORTF_BASE
  3343. #define C1O_PIN GPIO_PIN_5
  3344. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3345. #define C1_MINUS_PORT GPIO_PORTB_BASE
  3346. #define C1_MINUS_PIN GPIO_PIN_5
  3347. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  3348. #define C1_PLUS_PORT GPIO_PORTC_BASE
  3349. #define C1_PLUS_PIN GPIO_PIN_5
  3350. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  3351. #define C2_MINUS_PORT GPIO_PORTC_BASE
  3352. #define C2_MINUS_PIN GPIO_PIN_7
  3353. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  3354. #define C2_PLUS_PORT GPIO_PORTC_BASE
  3355. #define C2_PLUS_PIN GPIO_PIN_6
  3356. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  3357. #define CCP0_PORT GPIO_PORTB_BASE
  3358. #define CCP0_PIN GPIO_PIN_0
  3359. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  3360. #define CCP1_PORT GPIO_PORTA_BASE
  3361. #define CCP1_PIN GPIO_PIN_6
  3362. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  3363. #define CCP2_PORT GPIO_PORTB_BASE
  3364. #define CCP2_PIN GPIO_PIN_1
  3365. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  3366. #define CCP3_PORT GPIO_PORTD_BASE
  3367. #define CCP3_PIN GPIO_PIN_4
  3368. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  3369. #define CCP4_PORT GPIO_PORTA_BASE
  3370. #define CCP4_PIN GPIO_PIN_7
  3371. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  3372. #define CCP5_PORT GPIO_PORTC_BASE
  3373. #define CCP5_PIN GPIO_PIN_4
  3374. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  3375. #define FAULT_PORT GPIO_PORTD_BASE
  3376. #define FAULT_PIN GPIO_PIN_6
  3377. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  3378. #define I2C0SCL_PORT GPIO_PORTB_BASE
  3379. #define I2C0SCL_PIN GPIO_PIN_2
  3380. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  3381. #define I2C0SDA_PORT GPIO_PORTB_BASE
  3382. #define I2C0SDA_PIN GPIO_PIN_3
  3383. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  3384. #define IDX0_PORT GPIO_PORTD_BASE
  3385. #define IDX0_PIN GPIO_PIN_7
  3386. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOD
  3387. #define PHA0_PORT GPIO_PORTD_BASE
  3388. #define PHA0_PIN GPIO_PIN_1
  3389. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOF
  3390. #define PHB0_PORT GPIO_PORTF_BASE
  3391. #define PHB0_PIN GPIO_PIN_0
  3392. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  3393. #define PWM0_PORT GPIO_PORTD_BASE
  3394. #define PWM0_PIN GPIO_PIN_0
  3395. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  3396. #define PWM1_PORT GPIO_PORTF_BASE
  3397. #define PWM1_PIN GPIO_PIN_1
  3398. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  3399. #define PWM2_PORT GPIO_PORTH_BASE
  3400. #define PWM2_PIN GPIO_PIN_0
  3401. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  3402. #define PWM3_PORT GPIO_PORTH_BASE
  3403. #define PWM3_PIN GPIO_PIN_1
  3404. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  3405. #define PWM4_PORT GPIO_PORTE_BASE
  3406. #define PWM4_PIN GPIO_PIN_6
  3407. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  3408. #define PWM5_PORT GPIO_PORTE_BASE
  3409. #define PWM5_PIN GPIO_PIN_7
  3410. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  3411. #define SSI0CLK_PORT GPIO_PORTA_BASE
  3412. #define SSI0CLK_PIN GPIO_PIN_2
  3413. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  3414. #define SSI0FSS_PORT GPIO_PORTA_BASE
  3415. #define SSI0FSS_PIN GPIO_PIN_3
  3416. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3417. #define SSI0RX_PORT GPIO_PORTA_BASE
  3418. #define SSI0RX_PIN GPIO_PIN_4
  3419. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3420. #define SSI0TX_PORT GPIO_PORTA_BASE
  3421. #define SSI0TX_PIN GPIO_PIN_5
  3422. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  3423. #define SSI1CLK_PORT GPIO_PORTE_BASE
  3424. #define SSI1CLK_PIN GPIO_PIN_0
  3425. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  3426. #define SSI1FSS_PORT GPIO_PORTE_BASE
  3427. #define SSI1FSS_PIN GPIO_PIN_1
  3428. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  3429. #define SSI1RX_PORT GPIO_PORTE_BASE
  3430. #define SSI1RX_PIN GPIO_PIN_2
  3431. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  3432. #define SSI1TX_PORT GPIO_PORTE_BASE
  3433. #define SSI1TX_PIN GPIO_PIN_3
  3434. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  3435. #define SWCLK_PORT GPIO_PORTC_BASE
  3436. #define SWCLK_PIN GPIO_PIN_0
  3437. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  3438. #define SWDIO_PORT GPIO_PORTC_BASE
  3439. #define SWDIO_PIN GPIO_PIN_1
  3440. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  3441. #define SWO_PORT GPIO_PORTC_BASE
  3442. #define SWO_PIN GPIO_PIN_3
  3443. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  3444. #define TCK_PORT GPIO_PORTC_BASE
  3445. #define TCK_PIN GPIO_PIN_0
  3446. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  3447. #define TDI_PORT GPIO_PORTC_BASE
  3448. #define TDI_PIN GPIO_PIN_2
  3449. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  3450. #define TDO_PORT GPIO_PORTC_BASE
  3451. #define TDO_PIN GPIO_PIN_3
  3452. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  3453. #define TMS_PORT GPIO_PORTC_BASE
  3454. #define TMS_PIN GPIO_PIN_1
  3455. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  3456. #define TRST_PORT GPIO_PORTB_BASE
  3457. #define TRST_PIN GPIO_PIN_7
  3458. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3459. #define U0RX_PORT GPIO_PORTA_BASE
  3460. #define U0RX_PIN GPIO_PIN_0
  3461. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3462. #define U0TX_PORT GPIO_PORTA_BASE
  3463. #define U0TX_PIN GPIO_PIN_1
  3464. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  3465. #define U1RX_PORT GPIO_PORTD_BASE
  3466. #define U1RX_PIN GPIO_PIN_2
  3467. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  3468. #define U1TX_PORT GPIO_PORTD_BASE
  3469. #define U1TX_PIN GPIO_PIN_3
  3470. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  3471. #define U2RX_PORT GPIO_PORTG_BASE
  3472. #define U2RX_PIN GPIO_PIN_0
  3473. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  3474. #define U2TX_PORT GPIO_PORTG_BASE
  3475. #define U2TX_PIN GPIO_PIN_1
  3476. #endif // PART_LM3S1150
  3477. //*****************************************************************************
  3478. //
  3479. // LM3S1162 Port/Pin Mapping Definitions
  3480. //
  3481. //*****************************************************************************
  3482. #ifdef PART_LM3S1162
  3483. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  3484. #define C0O_PORT GPIO_PORTD_BASE
  3485. #define C0O_PIN GPIO_PIN_7
  3486. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3487. #define C0_MINUS_PORT GPIO_PORTB_BASE
  3488. #define C0_MINUS_PIN GPIO_PIN_4
  3489. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  3490. #define C0_PLUS_PORT GPIO_PORTB_BASE
  3491. #define C0_PLUS_PIN GPIO_PIN_6
  3492. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  3493. #define C1O_PORT GPIO_PORTF_BASE
  3494. #define C1O_PIN GPIO_PIN_5
  3495. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3496. #define C1_MINUS_PORT GPIO_PORTB_BASE
  3497. #define C1_MINUS_PIN GPIO_PIN_5
  3498. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  3499. #define C1_PLUS_PORT GPIO_PORTC_BASE
  3500. #define C1_PLUS_PIN GPIO_PIN_5
  3501. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  3502. #define C2_MINUS_PORT GPIO_PORTC_BASE
  3503. #define C2_MINUS_PIN GPIO_PIN_7
  3504. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  3505. #define C2_PLUS_PORT GPIO_PORTC_BASE
  3506. #define C2_PLUS_PIN GPIO_PIN_6
  3507. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  3508. #define CCP0_PORT GPIO_PORTB_BASE
  3509. #define CCP0_PIN GPIO_PIN_0
  3510. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  3511. #define CCP1_PORT GPIO_PORTA_BASE
  3512. #define CCP1_PIN GPIO_PIN_6
  3513. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  3514. #define CCP2_PORT GPIO_PORTB_BASE
  3515. #define CCP2_PIN GPIO_PIN_1
  3516. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  3517. #define CCP3_PORT GPIO_PORTD_BASE
  3518. #define CCP3_PIN GPIO_PIN_4
  3519. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  3520. #define CCP4_PORT GPIO_PORTA_BASE
  3521. #define CCP4_PIN GPIO_PIN_7
  3522. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  3523. #define CCP5_PORT GPIO_PORTC_BASE
  3524. #define CCP5_PIN GPIO_PIN_4
  3525. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  3526. #define FAULT_PORT GPIO_PORTD_BASE
  3527. #define FAULT_PIN GPIO_PIN_6
  3528. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  3529. #define I2C0SCL_PORT GPIO_PORTB_BASE
  3530. #define I2C0SCL_PIN GPIO_PIN_2
  3531. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  3532. #define I2C0SDA_PORT GPIO_PORTB_BASE
  3533. #define I2C0SDA_PIN GPIO_PIN_3
  3534. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  3535. #define PWM0_PORT GPIO_PORTD_BASE
  3536. #define PWM0_PIN GPIO_PIN_0
  3537. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  3538. #define PWM1_PORT GPIO_PORTD_BASE
  3539. #define PWM1_PIN GPIO_PIN_1
  3540. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  3541. #define PWM2_PORT GPIO_PORTH_BASE
  3542. #define PWM2_PIN GPIO_PIN_0
  3543. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  3544. #define PWM3_PORT GPIO_PORTH_BASE
  3545. #define PWM3_PIN GPIO_PIN_1
  3546. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOF
  3547. #define PWM4_PORT GPIO_PORTF_BASE
  3548. #define PWM4_PIN GPIO_PIN_2
  3549. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOF
  3550. #define PWM5_PORT GPIO_PORTF_BASE
  3551. #define PWM5_PIN GPIO_PIN_3
  3552. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  3553. #define SSI0CLK_PORT GPIO_PORTA_BASE
  3554. #define SSI0CLK_PIN GPIO_PIN_2
  3555. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  3556. #define SSI0FSS_PORT GPIO_PORTA_BASE
  3557. #define SSI0FSS_PIN GPIO_PIN_3
  3558. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3559. #define SSI0RX_PORT GPIO_PORTA_BASE
  3560. #define SSI0RX_PIN GPIO_PIN_4
  3561. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3562. #define SSI0TX_PORT GPIO_PORTA_BASE
  3563. #define SSI0TX_PIN GPIO_PIN_5
  3564. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  3565. #define SSI1CLK_PORT GPIO_PORTE_BASE
  3566. #define SSI1CLK_PIN GPIO_PIN_0
  3567. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  3568. #define SSI1FSS_PORT GPIO_PORTE_BASE
  3569. #define SSI1FSS_PIN GPIO_PIN_1
  3570. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  3571. #define SSI1RX_PORT GPIO_PORTE_BASE
  3572. #define SSI1RX_PIN GPIO_PIN_2
  3573. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  3574. #define SSI1TX_PORT GPIO_PORTE_BASE
  3575. #define SSI1TX_PIN GPIO_PIN_3
  3576. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  3577. #define SWCLK_PORT GPIO_PORTC_BASE
  3578. #define SWCLK_PIN GPIO_PIN_0
  3579. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  3580. #define SWDIO_PORT GPIO_PORTC_BASE
  3581. #define SWDIO_PIN GPIO_PIN_1
  3582. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  3583. #define SWO_PORT GPIO_PORTC_BASE
  3584. #define SWO_PIN GPIO_PIN_3
  3585. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  3586. #define TCK_PORT GPIO_PORTC_BASE
  3587. #define TCK_PIN GPIO_PIN_0
  3588. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  3589. #define TDI_PORT GPIO_PORTC_BASE
  3590. #define TDI_PIN GPIO_PIN_2
  3591. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  3592. #define TDO_PORT GPIO_PORTC_BASE
  3593. #define TDO_PIN GPIO_PIN_3
  3594. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  3595. #define TMS_PORT GPIO_PORTC_BASE
  3596. #define TMS_PIN GPIO_PIN_1
  3597. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  3598. #define TRST_PORT GPIO_PORTB_BASE
  3599. #define TRST_PIN GPIO_PIN_7
  3600. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3601. #define U0RX_PORT GPIO_PORTA_BASE
  3602. #define U0RX_PIN GPIO_PIN_0
  3603. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3604. #define U0TX_PORT GPIO_PORTA_BASE
  3605. #define U0TX_PIN GPIO_PIN_1
  3606. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  3607. #define U1RX_PORT GPIO_PORTD_BASE
  3608. #define U1RX_PIN GPIO_PIN_2
  3609. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  3610. #define U1TX_PORT GPIO_PORTD_BASE
  3611. #define U1TX_PIN GPIO_PIN_3
  3612. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  3613. #define U2RX_PORT GPIO_PORTG_BASE
  3614. #define U2RX_PIN GPIO_PIN_0
  3615. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  3616. #define U2TX_PORT GPIO_PORTG_BASE
  3617. #define U2TX_PIN GPIO_PIN_1
  3618. #endif // PART_LM3S1162
  3619. //*****************************************************************************
  3620. //
  3621. // LM3S1165 Port/Pin Mapping Definitions
  3622. //
  3623. //*****************************************************************************
  3624. #ifdef PART_LM3S1165
  3625. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  3626. #define C0O_PORT GPIO_PORTC_BASE
  3627. #define C0O_PIN GPIO_PIN_5
  3628. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3629. #define C0_MINUS_PORT GPIO_PORTB_BASE
  3630. #define C0_MINUS_PIN GPIO_PIN_4
  3631. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  3632. #define C0_PLUS_PORT GPIO_PORTB_BASE
  3633. #define C0_PLUS_PIN GPIO_PIN_6
  3634. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  3635. #define CCP0_PORT GPIO_PORTB_BASE
  3636. #define CCP0_PIN GPIO_PIN_0
  3637. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  3638. #define CCP1_PORT GPIO_PORTA_BASE
  3639. #define CCP1_PIN GPIO_PIN_6
  3640. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  3641. #define CCP2_PORT GPIO_PORTD_BASE
  3642. #define CCP2_PIN GPIO_PIN_5
  3643. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  3644. #define CCP3_PORT GPIO_PORTC_BASE
  3645. #define CCP3_PIN GPIO_PIN_6
  3646. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  3647. #define CCP4_PORT GPIO_PORTA_BASE
  3648. #define CCP4_PIN GPIO_PIN_7
  3649. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  3650. #define CCP5_PORT GPIO_PORTC_BASE
  3651. #define CCP5_PIN GPIO_PIN_4
  3652. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOB
  3653. #define CCP6_PORT GPIO_PORTB_BASE
  3654. #define CCP6_PIN GPIO_PIN_5
  3655. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  3656. #define CCP7_PORT GPIO_PORTH_BASE
  3657. #define CCP7_PIN GPIO_PIN_1
  3658. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  3659. #define FAULT_PORT GPIO_PORTD_BASE
  3660. #define FAULT_PIN GPIO_PIN_6
  3661. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  3662. #define I2C0SCL_PORT GPIO_PORTB_BASE
  3663. #define I2C0SCL_PIN GPIO_PIN_2
  3664. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  3665. #define I2C0SDA_PORT GPIO_PORTB_BASE
  3666. #define I2C0SDA_PIN GPIO_PIN_3
  3667. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  3668. #define PWM0_PORT GPIO_PORTD_BASE
  3669. #define PWM0_PIN GPIO_PIN_0
  3670. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  3671. #define PWM1_PORT GPIO_PORTD_BASE
  3672. #define PWM1_PIN GPIO_PIN_1
  3673. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  3674. #define PWM2_PORT GPIO_PORTH_BASE
  3675. #define PWM2_PIN GPIO_PIN_0
  3676. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  3677. #define PWM3_PORT GPIO_PORTB_BASE
  3678. #define PWM3_PIN GPIO_PIN_1
  3679. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOF
  3680. #define PWM4_PORT GPIO_PORTF_BASE
  3681. #define PWM4_PIN GPIO_PIN_2
  3682. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOF
  3683. #define PWM5_PORT GPIO_PORTF_BASE
  3684. #define PWM5_PIN GPIO_PIN_3
  3685. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  3686. #define SSI0CLK_PORT GPIO_PORTA_BASE
  3687. #define SSI0CLK_PIN GPIO_PIN_2
  3688. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  3689. #define SSI0FSS_PORT GPIO_PORTA_BASE
  3690. #define SSI0FSS_PIN GPIO_PIN_3
  3691. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3692. #define SSI0RX_PORT GPIO_PORTA_BASE
  3693. #define SSI0RX_PIN GPIO_PIN_4
  3694. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3695. #define SSI0TX_PORT GPIO_PORTA_BASE
  3696. #define SSI0TX_PIN GPIO_PIN_5
  3697. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  3698. #define SSI1CLK_PORT GPIO_PORTE_BASE
  3699. #define SSI1CLK_PIN GPIO_PIN_0
  3700. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  3701. #define SSI1FSS_PORT GPIO_PORTE_BASE
  3702. #define SSI1FSS_PIN GPIO_PIN_1
  3703. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  3704. #define SSI1RX_PORT GPIO_PORTE_BASE
  3705. #define SSI1RX_PIN GPIO_PIN_2
  3706. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  3707. #define SSI1TX_PORT GPIO_PORTE_BASE
  3708. #define SSI1TX_PIN GPIO_PIN_3
  3709. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  3710. #define SWCLK_PORT GPIO_PORTC_BASE
  3711. #define SWCLK_PIN GPIO_PIN_0
  3712. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  3713. #define SWDIO_PORT GPIO_PORTC_BASE
  3714. #define SWDIO_PIN GPIO_PIN_1
  3715. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  3716. #define SWO_PORT GPIO_PORTC_BASE
  3717. #define SWO_PIN GPIO_PIN_3
  3718. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  3719. #define TCK_PORT GPIO_PORTC_BASE
  3720. #define TCK_PIN GPIO_PIN_0
  3721. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  3722. #define TDI_PORT GPIO_PORTC_BASE
  3723. #define TDI_PIN GPIO_PIN_2
  3724. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  3725. #define TDO_PORT GPIO_PORTC_BASE
  3726. #define TDO_PIN GPIO_PIN_3
  3727. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  3728. #define TMS_PORT GPIO_PORTC_BASE
  3729. #define TMS_PIN GPIO_PIN_1
  3730. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  3731. #define TRST_PORT GPIO_PORTB_BASE
  3732. #define TRST_PIN GPIO_PIN_7
  3733. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3734. #define U0RX_PORT GPIO_PORTA_BASE
  3735. #define U0RX_PIN GPIO_PIN_0
  3736. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3737. #define U0TX_PORT GPIO_PORTA_BASE
  3738. #define U0TX_PIN GPIO_PIN_1
  3739. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  3740. #define U1RX_PORT GPIO_PORTD_BASE
  3741. #define U1RX_PIN GPIO_PIN_2
  3742. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  3743. #define U1TX_PORT GPIO_PORTD_BASE
  3744. #define U1TX_PIN GPIO_PIN_3
  3745. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  3746. #define U2RX_PORT GPIO_PORTG_BASE
  3747. #define U2RX_PIN GPIO_PIN_0
  3748. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  3749. #define U2TX_PORT GPIO_PORTG_BASE
  3750. #define U2TX_PIN GPIO_PIN_1
  3751. #endif // PART_LM3S1165
  3752. //*****************************************************************************
  3753. //
  3754. // LM3S1332 Port/Pin Mapping Definitions
  3755. //
  3756. //*****************************************************************************
  3757. #ifdef PART_LM3S1332
  3758. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  3759. #define C0O_PORT GPIO_PORTD_BASE
  3760. #define C0O_PIN GPIO_PIN_7
  3761. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3762. #define C0_MINUS_PORT GPIO_PORTB_BASE
  3763. #define C0_MINUS_PIN GPIO_PIN_4
  3764. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  3765. #define C0_PLUS_PORT GPIO_PORTB_BASE
  3766. #define C0_PLUS_PIN GPIO_PIN_6
  3767. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3768. #define C1_MINUS_PORT GPIO_PORTB_BASE
  3769. #define C1_MINUS_PIN GPIO_PIN_5
  3770. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  3771. #define C1_PLUS_PORT GPIO_PORTC_BASE
  3772. #define C1_PLUS_PIN GPIO_PIN_5
  3773. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  3774. #define C2_MINUS_PORT GPIO_PORTC_BASE
  3775. #define C2_MINUS_PIN GPIO_PIN_7
  3776. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  3777. #define C2_PLUS_PORT GPIO_PORTC_BASE
  3778. #define C2_PLUS_PIN GPIO_PIN_6
  3779. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  3780. #define CCP0_PORT GPIO_PORTB_BASE
  3781. #define CCP0_PIN GPIO_PIN_0
  3782. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  3783. #define CCP1_PORT GPIO_PORTA_BASE
  3784. #define CCP1_PIN GPIO_PIN_6
  3785. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  3786. #define CCP2_PORT GPIO_PORTB_BASE
  3787. #define CCP2_PIN GPIO_PIN_1
  3788. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  3789. #define CCP3_PORT GPIO_PORTD_BASE
  3790. #define CCP3_PIN GPIO_PIN_4
  3791. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  3792. #define CCP4_PORT GPIO_PORTA_BASE
  3793. #define CCP4_PIN GPIO_PIN_7
  3794. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  3795. #define CCP5_PORT GPIO_PORTC_BASE
  3796. #define CCP5_PIN GPIO_PIN_4
  3797. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  3798. #define CCP6_PORT GPIO_PORTH_BASE
  3799. #define CCP6_PIN GPIO_PIN_0
  3800. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  3801. #define CCP7_PORT GPIO_PORTH_BASE
  3802. #define CCP7_PIN GPIO_PIN_1
  3803. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  3804. #define SSI0CLK_PORT GPIO_PORTA_BASE
  3805. #define SSI0CLK_PIN GPIO_PIN_2
  3806. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  3807. #define SSI0FSS_PORT GPIO_PORTA_BASE
  3808. #define SSI0FSS_PIN GPIO_PIN_3
  3809. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3810. #define SSI0RX_PORT GPIO_PORTA_BASE
  3811. #define SSI0RX_PIN GPIO_PIN_4
  3812. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3813. #define SSI0TX_PORT GPIO_PORTA_BASE
  3814. #define SSI0TX_PIN GPIO_PIN_5
  3815. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  3816. #define SWCLK_PORT GPIO_PORTC_BASE
  3817. #define SWCLK_PIN GPIO_PIN_0
  3818. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  3819. #define SWDIO_PORT GPIO_PORTC_BASE
  3820. #define SWDIO_PIN GPIO_PIN_1
  3821. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  3822. #define SWO_PORT GPIO_PORTC_BASE
  3823. #define SWO_PIN GPIO_PIN_3
  3824. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  3825. #define TCK_PORT GPIO_PORTC_BASE
  3826. #define TCK_PIN GPIO_PIN_0
  3827. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  3828. #define TDI_PORT GPIO_PORTC_BASE
  3829. #define TDI_PIN GPIO_PIN_2
  3830. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  3831. #define TDO_PORT GPIO_PORTC_BASE
  3832. #define TDO_PIN GPIO_PIN_3
  3833. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  3834. #define TMS_PORT GPIO_PORTC_BASE
  3835. #define TMS_PIN GPIO_PIN_1
  3836. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  3837. #define TRST_PORT GPIO_PORTB_BASE
  3838. #define TRST_PIN GPIO_PIN_7
  3839. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3840. #define U0RX_PORT GPIO_PORTA_BASE
  3841. #define U0RX_PIN GPIO_PIN_0
  3842. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3843. #define U0TX_PORT GPIO_PORTA_BASE
  3844. #define U0TX_PIN GPIO_PIN_1
  3845. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  3846. #define U1RX_PORT GPIO_PORTD_BASE
  3847. #define U1RX_PIN GPIO_PIN_2
  3848. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  3849. #define U1TX_PORT GPIO_PORTD_BASE
  3850. #define U1TX_PIN GPIO_PIN_3
  3851. #endif // PART_LM3S1332
  3852. //*****************************************************************************
  3853. //
  3854. // LM3S1435 Port/Pin Mapping Definitions
  3855. //
  3856. //*****************************************************************************
  3857. #ifdef PART_LM3S1435
  3858. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  3859. #define C0O_PORT GPIO_PORTB_BASE
  3860. #define C0O_PIN GPIO_PIN_5
  3861. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3862. #define C0_MINUS_PORT GPIO_PORTB_BASE
  3863. #define C0_MINUS_PIN GPIO_PIN_4
  3864. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  3865. #define C0_PLUS_PORT GPIO_PORTB_BASE
  3866. #define C0_PLUS_PIN GPIO_PIN_6
  3867. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  3868. #define CCP0_PORT GPIO_PORTB_BASE
  3869. #define CCP0_PIN GPIO_PIN_0
  3870. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  3871. #define CCP1_PORT GPIO_PORTA_BASE
  3872. #define CCP1_PIN GPIO_PIN_6
  3873. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  3874. #define CCP2_PORT GPIO_PORTB_BASE
  3875. #define CCP2_PIN GPIO_PIN_1
  3876. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  3877. #define CCP3_PORT GPIO_PORTC_BASE
  3878. #define CCP3_PIN GPIO_PIN_6
  3879. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  3880. #define FAULT_PORT GPIO_PORTD_BASE
  3881. #define FAULT_PIN GPIO_PIN_6
  3882. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  3883. #define I2C0SCL_PORT GPIO_PORTB_BASE
  3884. #define I2C0SCL_PIN GPIO_PIN_2
  3885. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  3886. #define I2C0SDA_PORT GPIO_PORTB_BASE
  3887. #define I2C0SDA_PIN GPIO_PIN_3
  3888. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  3889. #define PWM0_PORT GPIO_PORTD_BASE
  3890. #define PWM0_PIN GPIO_PIN_0
  3891. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  3892. #define PWM1_PORT GPIO_PORTD_BASE
  3893. #define PWM1_PIN GPIO_PIN_1
  3894. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  3895. #define SSI0CLK_PORT GPIO_PORTA_BASE
  3896. #define SSI0CLK_PIN GPIO_PIN_2
  3897. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  3898. #define SSI0FSS_PORT GPIO_PORTA_BASE
  3899. #define SSI0FSS_PIN GPIO_PIN_3
  3900. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3901. #define SSI0RX_PORT GPIO_PORTA_BASE
  3902. #define SSI0RX_PIN GPIO_PIN_4
  3903. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3904. #define SSI0TX_PORT GPIO_PORTA_BASE
  3905. #define SSI0TX_PIN GPIO_PIN_5
  3906. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  3907. #define SWCLK_PORT GPIO_PORTC_BASE
  3908. #define SWCLK_PIN GPIO_PIN_0
  3909. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  3910. #define SWDIO_PORT GPIO_PORTC_BASE
  3911. #define SWDIO_PIN GPIO_PIN_1
  3912. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  3913. #define SWO_PORT GPIO_PORTC_BASE
  3914. #define SWO_PIN GPIO_PIN_3
  3915. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  3916. #define TCK_PORT GPIO_PORTC_BASE
  3917. #define TCK_PIN GPIO_PIN_0
  3918. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  3919. #define TDI_PORT GPIO_PORTC_BASE
  3920. #define TDI_PIN GPIO_PIN_2
  3921. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  3922. #define TDO_PORT GPIO_PORTC_BASE
  3923. #define TDO_PIN GPIO_PIN_3
  3924. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  3925. #define TMS_PORT GPIO_PORTC_BASE
  3926. #define TMS_PIN GPIO_PIN_1
  3927. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  3928. #define TRST_PORT GPIO_PORTB_BASE
  3929. #define TRST_PIN GPIO_PIN_7
  3930. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  3931. #define U0RX_PORT GPIO_PORTA_BASE
  3932. #define U0RX_PIN GPIO_PIN_0
  3933. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  3934. #define U0TX_PORT GPIO_PORTA_BASE
  3935. #define U0TX_PIN GPIO_PIN_1
  3936. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  3937. #define U1RX_PORT GPIO_PORTD_BASE
  3938. #define U1RX_PIN GPIO_PIN_2
  3939. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  3940. #define U1TX_PORT GPIO_PORTD_BASE
  3941. #define U1TX_PIN GPIO_PIN_3
  3942. #endif // PART_LM3S1435
  3943. //*****************************************************************************
  3944. //
  3945. // LM3S1439 Port/Pin Mapping Definitions
  3946. //
  3947. //*****************************************************************************
  3948. #ifdef PART_LM3S1439
  3949. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  3950. #define C0O_PORT GPIO_PORTC_BASE
  3951. #define C0O_PIN GPIO_PIN_5
  3952. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  3953. #define C0_MINUS_PORT GPIO_PORTB_BASE
  3954. #define C0_MINUS_PIN GPIO_PIN_4
  3955. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  3956. #define C0_PLUS_PORT GPIO_PORTB_BASE
  3957. #define C0_PLUS_PIN GPIO_PIN_6
  3958. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  3959. #define CCP0_PORT GPIO_PORTB_BASE
  3960. #define CCP0_PIN GPIO_PIN_0
  3961. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  3962. #define CCP1_PORT GPIO_PORTA_BASE
  3963. #define CCP1_PIN GPIO_PIN_6
  3964. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  3965. #define CCP2_PORT GPIO_PORTB_BASE
  3966. #define CCP2_PIN GPIO_PIN_1
  3967. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  3968. #define CCP3_PORT GPIO_PORTC_BASE
  3969. #define CCP3_PIN GPIO_PIN_6
  3970. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  3971. #define CCP4_PORT GPIO_PORTA_BASE
  3972. #define CCP4_PIN GPIO_PIN_7
  3973. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  3974. #define CCP5_PORT GPIO_PORTB_BASE
  3975. #define CCP5_PIN GPIO_PIN_5
  3976. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  3977. #define FAULT_PORT GPIO_PORTD_BASE
  3978. #define FAULT_PIN GPIO_PIN_6
  3979. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  3980. #define I2C0SCL_PORT GPIO_PORTB_BASE
  3981. #define I2C0SCL_PIN GPIO_PIN_2
  3982. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  3983. #define I2C0SDA_PORT GPIO_PORTB_BASE
  3984. #define I2C0SDA_PIN GPIO_PIN_3
  3985. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  3986. #define IDX0_PORT GPIO_PORTD_BASE
  3987. #define IDX0_PIN GPIO_PIN_7
  3988. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  3989. #define PHA0_PORT GPIO_PORTC_BASE
  3990. #define PHA0_PIN GPIO_PIN_4
  3991. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  3992. #define PHB0_PORT GPIO_PORTC_BASE
  3993. #define PHB0_PIN GPIO_PIN_7
  3994. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  3995. #define PWM0_PORT GPIO_PORTD_BASE
  3996. #define PWM0_PIN GPIO_PIN_0
  3997. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  3998. #define PWM1_PORT GPIO_PORTD_BASE
  3999. #define PWM1_PIN GPIO_PIN_1
  4000. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  4001. #define PWM2_PORT GPIO_PORTH_BASE
  4002. #define PWM2_PIN GPIO_PIN_0
  4003. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  4004. #define PWM3_PORT GPIO_PORTH_BASE
  4005. #define PWM3_PIN GPIO_PIN_1
  4006. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOF
  4007. #define PWM4_PORT GPIO_PORTF_BASE
  4008. #define PWM4_PIN GPIO_PIN_2
  4009. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOF
  4010. #define PWM5_PORT GPIO_PORTF_BASE
  4011. #define PWM5_PIN GPIO_PIN_3
  4012. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  4013. #define SSI0CLK_PORT GPIO_PORTA_BASE
  4014. #define SSI0CLK_PIN GPIO_PIN_2
  4015. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  4016. #define SSI0FSS_PORT GPIO_PORTA_BASE
  4017. #define SSI0FSS_PIN GPIO_PIN_3
  4018. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4019. #define SSI0RX_PORT GPIO_PORTA_BASE
  4020. #define SSI0RX_PIN GPIO_PIN_4
  4021. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4022. #define SSI0TX_PORT GPIO_PORTA_BASE
  4023. #define SSI0TX_PIN GPIO_PIN_5
  4024. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  4025. #define SSI1CLK_PORT GPIO_PORTE_BASE
  4026. #define SSI1CLK_PIN GPIO_PIN_0
  4027. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  4028. #define SSI1FSS_PORT GPIO_PORTE_BASE
  4029. #define SSI1FSS_PIN GPIO_PIN_1
  4030. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  4031. #define SSI1RX_PORT GPIO_PORTE_BASE
  4032. #define SSI1RX_PIN GPIO_PIN_2
  4033. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  4034. #define SSI1TX_PORT GPIO_PORTE_BASE
  4035. #define SSI1TX_PIN GPIO_PIN_3
  4036. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  4037. #define SWCLK_PORT GPIO_PORTC_BASE
  4038. #define SWCLK_PIN GPIO_PIN_0
  4039. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  4040. #define SWDIO_PORT GPIO_PORTC_BASE
  4041. #define SWDIO_PIN GPIO_PIN_1
  4042. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  4043. #define SWO_PORT GPIO_PORTC_BASE
  4044. #define SWO_PIN GPIO_PIN_3
  4045. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  4046. #define TCK_PORT GPIO_PORTC_BASE
  4047. #define TCK_PIN GPIO_PIN_0
  4048. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  4049. #define TDI_PORT GPIO_PORTC_BASE
  4050. #define TDI_PIN GPIO_PIN_2
  4051. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  4052. #define TDO_PORT GPIO_PORTC_BASE
  4053. #define TDO_PIN GPIO_PIN_3
  4054. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  4055. #define TMS_PORT GPIO_PORTC_BASE
  4056. #define TMS_PIN GPIO_PIN_1
  4057. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  4058. #define TRST_PORT GPIO_PORTB_BASE
  4059. #define TRST_PIN GPIO_PIN_7
  4060. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4061. #define U0RX_PORT GPIO_PORTA_BASE
  4062. #define U0RX_PIN GPIO_PIN_0
  4063. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4064. #define U0TX_PORT GPIO_PORTA_BASE
  4065. #define U0TX_PIN GPIO_PIN_1
  4066. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  4067. #define U1RX_PORT GPIO_PORTD_BASE
  4068. #define U1RX_PIN GPIO_PIN_2
  4069. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  4070. #define U1TX_PORT GPIO_PORTD_BASE
  4071. #define U1TX_PIN GPIO_PIN_3
  4072. #endif // PART_LM3S1439
  4073. //*****************************************************************************
  4074. //
  4075. // LM3S1512 Port/Pin Mapping Definitions
  4076. //
  4077. //*****************************************************************************
  4078. #ifdef PART_LM3S1512
  4079. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  4080. #define C0O_PORT GPIO_PORTF_BASE
  4081. #define C0O_PIN GPIO_PIN_4
  4082. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  4083. #define C0_MINUS_PORT GPIO_PORTB_BASE
  4084. #define C0_MINUS_PIN GPIO_PIN_4
  4085. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  4086. #define C0_PLUS_PORT GPIO_PORTB_BASE
  4087. #define C0_PLUS_PIN GPIO_PIN_6
  4088. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  4089. #define C1O_PORT GPIO_PORTF_BASE
  4090. #define C1O_PIN GPIO_PIN_5
  4091. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  4092. #define C1_MINUS_PORT GPIO_PORTB_BASE
  4093. #define C1_MINUS_PIN GPIO_PIN_5
  4094. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  4095. #define C1_PLUS_PORT GPIO_PORTC_BASE
  4096. #define C1_PLUS_PIN GPIO_PIN_5
  4097. #define C2O_PERIPH SYSCTL_PERIPH_GPIOF
  4098. #define C2O_PORT GPIO_PORTF_BASE
  4099. #define C2O_PIN GPIO_PIN_6
  4100. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  4101. #define C2_MINUS_PORT GPIO_PORTC_BASE
  4102. #define C2_MINUS_PIN GPIO_PIN_7
  4103. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  4104. #define C2_PLUS_PORT GPIO_PORTC_BASE
  4105. #define C2_PLUS_PIN GPIO_PIN_6
  4106. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  4107. #define CCP0_PORT GPIO_PORTB_BASE
  4108. #define CCP0_PIN GPIO_PIN_0
  4109. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOD
  4110. #define CCP1_PORT GPIO_PORTD_BASE
  4111. #define CCP1_PIN GPIO_PIN_7
  4112. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  4113. #define CCP2_PORT GPIO_PORTB_BASE
  4114. #define CCP2_PIN GPIO_PIN_1
  4115. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  4116. #define CCP3_PORT GPIO_PORTD_BASE
  4117. #define CCP3_PIN GPIO_PIN_4
  4118. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOD
  4119. #define CCP4_PORT GPIO_PORTD_BASE
  4120. #define CCP4_PIN GPIO_PIN_5
  4121. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  4122. #define CCP5_PORT GPIO_PORTC_BASE
  4123. #define CCP5_PIN GPIO_PIN_4
  4124. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  4125. #define CCP6_PORT GPIO_PORTH_BASE
  4126. #define CCP6_PIN GPIO_PIN_0
  4127. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  4128. #define CCP7_PORT GPIO_PORTH_BASE
  4129. #define CCP7_PIN GPIO_PIN_1
  4130. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  4131. #define I2C0SCL_PORT GPIO_PORTB_BASE
  4132. #define I2C0SCL_PIN GPIO_PIN_2
  4133. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  4134. #define I2C0SDA_PORT GPIO_PORTB_BASE
  4135. #define I2C0SDA_PIN GPIO_PIN_3
  4136. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  4137. #define I2C1SCL_PORT GPIO_PORTA_BASE
  4138. #define I2C1SCL_PIN GPIO_PIN_6
  4139. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  4140. #define I2C1SDA_PORT GPIO_PORTA_BASE
  4141. #define I2C1SDA_PIN GPIO_PIN_7
  4142. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  4143. #define IDX0_PORT GPIO_PORTD_BASE
  4144. #define IDX0_PIN GPIO_PIN_0
  4145. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOD
  4146. #define PHA0_PORT GPIO_PORTD_BASE
  4147. #define PHA0_PIN GPIO_PIN_1
  4148. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOF
  4149. #define PHB0_PORT GPIO_PORTF_BASE
  4150. #define PHB0_PIN GPIO_PIN_0
  4151. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  4152. #define SSI0CLK_PORT GPIO_PORTA_BASE
  4153. #define SSI0CLK_PIN GPIO_PIN_2
  4154. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  4155. #define SSI0FSS_PORT GPIO_PORTA_BASE
  4156. #define SSI0FSS_PIN GPIO_PIN_3
  4157. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4158. #define SSI0RX_PORT GPIO_PORTA_BASE
  4159. #define SSI0RX_PIN GPIO_PIN_4
  4160. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4161. #define SSI0TX_PORT GPIO_PORTA_BASE
  4162. #define SSI0TX_PIN GPIO_PIN_5
  4163. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  4164. #define SSI1CLK_PORT GPIO_PORTE_BASE
  4165. #define SSI1CLK_PIN GPIO_PIN_0
  4166. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  4167. #define SSI1FSS_PORT GPIO_PORTE_BASE
  4168. #define SSI1FSS_PIN GPIO_PIN_1
  4169. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  4170. #define SSI1RX_PORT GPIO_PORTE_BASE
  4171. #define SSI1RX_PIN GPIO_PIN_2
  4172. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  4173. #define SSI1TX_PORT GPIO_PORTE_BASE
  4174. #define SSI1TX_PIN GPIO_PIN_3
  4175. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  4176. #define SWCLK_PORT GPIO_PORTC_BASE
  4177. #define SWCLK_PIN GPIO_PIN_0
  4178. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  4179. #define SWDIO_PORT GPIO_PORTC_BASE
  4180. #define SWDIO_PIN GPIO_PIN_1
  4181. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  4182. #define SWO_PORT GPIO_PORTC_BASE
  4183. #define SWO_PIN GPIO_PIN_3
  4184. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  4185. #define TCK_PORT GPIO_PORTC_BASE
  4186. #define TCK_PIN GPIO_PIN_0
  4187. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  4188. #define TDI_PORT GPIO_PORTC_BASE
  4189. #define TDI_PIN GPIO_PIN_2
  4190. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  4191. #define TDO_PORT GPIO_PORTC_BASE
  4192. #define TDO_PIN GPIO_PIN_3
  4193. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  4194. #define TMS_PORT GPIO_PORTC_BASE
  4195. #define TMS_PIN GPIO_PIN_1
  4196. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  4197. #define TRST_PORT GPIO_PORTB_BASE
  4198. #define TRST_PIN GPIO_PIN_7
  4199. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4200. #define U0RX_PORT GPIO_PORTA_BASE
  4201. #define U0RX_PIN GPIO_PIN_0
  4202. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4203. #define U0TX_PORT GPIO_PORTA_BASE
  4204. #define U0TX_PIN GPIO_PIN_1
  4205. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  4206. #define U1RX_PORT GPIO_PORTD_BASE
  4207. #define U1RX_PIN GPIO_PIN_2
  4208. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  4209. #define U1TX_PORT GPIO_PORTD_BASE
  4210. #define U1TX_PIN GPIO_PIN_3
  4211. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  4212. #define U2RX_PORT GPIO_PORTG_BASE
  4213. #define U2RX_PIN GPIO_PIN_0
  4214. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  4215. #define U2TX_PORT GPIO_PORTG_BASE
  4216. #define U2TX_PIN GPIO_PIN_1
  4217. #endif // PART_LM3S1512
  4218. //*****************************************************************************
  4219. //
  4220. // LM3S1538 Port/Pin Mapping Definitions
  4221. //
  4222. //*****************************************************************************
  4223. #ifdef PART_LM3S1538
  4224. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  4225. #define CCP0_PORT GPIO_PORTB_BASE
  4226. #define CCP0_PIN GPIO_PIN_0
  4227. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  4228. #define CCP1_PORT GPIO_PORTB_BASE
  4229. #define CCP1_PIN GPIO_PIN_6
  4230. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  4231. #define CCP2_PORT GPIO_PORTB_BASE
  4232. #define CCP2_PIN GPIO_PIN_1
  4233. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  4234. #define CCP3_PORT GPIO_PORTC_BASE
  4235. #define CCP3_PIN GPIO_PIN_6
  4236. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  4237. #define CCP4_PORT GPIO_PORTC_BASE
  4238. #define CCP4_PIN GPIO_PIN_7
  4239. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  4240. #define CCP5_PORT GPIO_PORTB_BASE
  4241. #define CCP5_PIN GPIO_PIN_5
  4242. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  4243. #define CCP6_PORT GPIO_PORTH_BASE
  4244. #define CCP6_PIN GPIO_PIN_0
  4245. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  4246. #define CCP7_PORT GPIO_PORTH_BASE
  4247. #define CCP7_PIN GPIO_PIN_1
  4248. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  4249. #define I2C0SCL_PORT GPIO_PORTB_BASE
  4250. #define I2C0SCL_PIN GPIO_PIN_2
  4251. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  4252. #define I2C0SDA_PORT GPIO_PORTB_BASE
  4253. #define I2C0SDA_PIN GPIO_PIN_3
  4254. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  4255. #define I2C1SCL_PORT GPIO_PORTA_BASE
  4256. #define I2C1SCL_PIN GPIO_PIN_6
  4257. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  4258. #define I2C1SDA_PORT GPIO_PORTA_BASE
  4259. #define I2C1SDA_PIN GPIO_PIN_7
  4260. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  4261. #define IDX0_PORT GPIO_PORTD_BASE
  4262. #define IDX0_PIN GPIO_PIN_0
  4263. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  4264. #define PHA0_PORT GPIO_PORTC_BASE
  4265. #define PHA0_PIN GPIO_PIN_4
  4266. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOF
  4267. #define PHB0_PORT GPIO_PORTF_BASE
  4268. #define PHB0_PIN GPIO_PIN_0
  4269. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  4270. #define SSI0CLK_PORT GPIO_PORTA_BASE
  4271. #define SSI0CLK_PIN GPIO_PIN_2
  4272. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  4273. #define SSI0FSS_PORT GPIO_PORTA_BASE
  4274. #define SSI0FSS_PIN GPIO_PIN_3
  4275. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4276. #define SSI0RX_PORT GPIO_PORTA_BASE
  4277. #define SSI0RX_PIN GPIO_PIN_4
  4278. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4279. #define SSI0TX_PORT GPIO_PORTA_BASE
  4280. #define SSI0TX_PIN GPIO_PIN_5
  4281. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  4282. #define SSI1CLK_PORT GPIO_PORTE_BASE
  4283. #define SSI1CLK_PIN GPIO_PIN_0
  4284. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  4285. #define SSI1FSS_PORT GPIO_PORTE_BASE
  4286. #define SSI1FSS_PIN GPIO_PIN_1
  4287. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  4288. #define SSI1RX_PORT GPIO_PORTE_BASE
  4289. #define SSI1RX_PIN GPIO_PIN_2
  4290. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  4291. #define SSI1TX_PORT GPIO_PORTE_BASE
  4292. #define SSI1TX_PIN GPIO_PIN_3
  4293. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  4294. #define SWCLK_PORT GPIO_PORTC_BASE
  4295. #define SWCLK_PIN GPIO_PIN_0
  4296. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  4297. #define SWDIO_PORT GPIO_PORTC_BASE
  4298. #define SWDIO_PIN GPIO_PIN_1
  4299. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  4300. #define SWO_PORT GPIO_PORTC_BASE
  4301. #define SWO_PIN GPIO_PIN_3
  4302. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  4303. #define TCK_PORT GPIO_PORTC_BASE
  4304. #define TCK_PIN GPIO_PIN_0
  4305. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  4306. #define TDI_PORT GPIO_PORTC_BASE
  4307. #define TDI_PIN GPIO_PIN_2
  4308. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  4309. #define TDO_PORT GPIO_PORTC_BASE
  4310. #define TDO_PIN GPIO_PIN_3
  4311. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  4312. #define TMS_PORT GPIO_PORTC_BASE
  4313. #define TMS_PIN GPIO_PIN_1
  4314. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  4315. #define TRST_PORT GPIO_PORTB_BASE
  4316. #define TRST_PIN GPIO_PIN_7
  4317. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4318. #define U0RX_PORT GPIO_PORTA_BASE
  4319. #define U0RX_PIN GPIO_PIN_0
  4320. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4321. #define U0TX_PORT GPIO_PORTA_BASE
  4322. #define U0TX_PIN GPIO_PIN_1
  4323. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  4324. #define U1RX_PORT GPIO_PORTD_BASE
  4325. #define U1RX_PIN GPIO_PIN_2
  4326. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  4327. #define U1TX_PORT GPIO_PORTD_BASE
  4328. #define U1TX_PIN GPIO_PIN_3
  4329. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  4330. #define U2RX_PORT GPIO_PORTG_BASE
  4331. #define U2RX_PIN GPIO_PIN_0
  4332. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  4333. #define U2TX_PORT GPIO_PORTG_BASE
  4334. #define U2TX_PIN GPIO_PIN_1
  4335. #endif // PART_LM3S1538
  4336. //*****************************************************************************
  4337. //
  4338. // LM3S1601 Port/Pin Mapping Definitions
  4339. //
  4340. //*****************************************************************************
  4341. #ifdef PART_LM3S1601
  4342. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  4343. #define C0O_PORT GPIO_PORTF_BASE
  4344. #define C0O_PIN GPIO_PIN_4
  4345. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  4346. #define C0_MINUS_PORT GPIO_PORTB_BASE
  4347. #define C0_MINUS_PIN GPIO_PIN_4
  4348. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  4349. #define C0_PLUS_PORT GPIO_PORTB_BASE
  4350. #define C0_PLUS_PIN GPIO_PIN_6
  4351. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  4352. #define C1O_PORT GPIO_PORTE_BASE
  4353. #define C1O_PIN GPIO_PIN_6
  4354. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  4355. #define C1_MINUS_PORT GPIO_PORTB_BASE
  4356. #define C1_MINUS_PIN GPIO_PIN_5
  4357. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  4358. #define C1_PLUS_PORT GPIO_PORTC_BASE
  4359. #define C1_PLUS_PIN GPIO_PIN_5
  4360. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  4361. #define CCP0_PORT GPIO_PORTB_BASE
  4362. #define CCP0_PIN GPIO_PIN_0
  4363. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOD
  4364. #define CCP1_PORT GPIO_PORTD_BASE
  4365. #define CCP1_PIN GPIO_PIN_7
  4366. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  4367. #define CCP2_PORT GPIO_PORTB_BASE
  4368. #define CCP2_PIN GPIO_PIN_1
  4369. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  4370. #define CCP3_PORT GPIO_PORTC_BASE
  4371. #define CCP3_PIN GPIO_PIN_6
  4372. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  4373. #define CCP4_PORT GPIO_PORTC_BASE
  4374. #define CCP4_PIN GPIO_PIN_7
  4375. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  4376. #define CCP5_PORT GPIO_PORTC_BASE
  4377. #define CCP5_PIN GPIO_PIN_4
  4378. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  4379. #define CCP6_PORT GPIO_PORTH_BASE
  4380. #define CCP6_PIN GPIO_PIN_0
  4381. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  4382. #define CCP7_PORT GPIO_PORTH_BASE
  4383. #define CCP7_PIN GPIO_PIN_1
  4384. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  4385. #define I2C0SCL_PORT GPIO_PORTB_BASE
  4386. #define I2C0SCL_PIN GPIO_PIN_2
  4387. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  4388. #define I2C0SDA_PORT GPIO_PORTB_BASE
  4389. #define I2C0SDA_PIN GPIO_PIN_3
  4390. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  4391. #define I2C1SCL_PORT GPIO_PORTA_BASE
  4392. #define I2C1SCL_PIN GPIO_PIN_6
  4393. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  4394. #define I2C1SDA_PORT GPIO_PORTA_BASE
  4395. #define I2C1SDA_PIN GPIO_PIN_7
  4396. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  4397. #define SSI0CLK_PORT GPIO_PORTA_BASE
  4398. #define SSI0CLK_PIN GPIO_PIN_2
  4399. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  4400. #define SSI0FSS_PORT GPIO_PORTA_BASE
  4401. #define SSI0FSS_PIN GPIO_PIN_3
  4402. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4403. #define SSI0RX_PORT GPIO_PORTA_BASE
  4404. #define SSI0RX_PIN GPIO_PIN_4
  4405. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4406. #define SSI0TX_PORT GPIO_PORTA_BASE
  4407. #define SSI0TX_PIN GPIO_PIN_5
  4408. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  4409. #define SSI1CLK_PORT GPIO_PORTE_BASE
  4410. #define SSI1CLK_PIN GPIO_PIN_0
  4411. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  4412. #define SSI1FSS_PORT GPIO_PORTE_BASE
  4413. #define SSI1FSS_PIN GPIO_PIN_1
  4414. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  4415. #define SSI1RX_PORT GPIO_PORTE_BASE
  4416. #define SSI1RX_PIN GPIO_PIN_2
  4417. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  4418. #define SSI1TX_PORT GPIO_PORTE_BASE
  4419. #define SSI1TX_PIN GPIO_PIN_3
  4420. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  4421. #define SWCLK_PORT GPIO_PORTC_BASE
  4422. #define SWCLK_PIN GPIO_PIN_0
  4423. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  4424. #define SWDIO_PORT GPIO_PORTC_BASE
  4425. #define SWDIO_PIN GPIO_PIN_1
  4426. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  4427. #define SWO_PORT GPIO_PORTC_BASE
  4428. #define SWO_PIN GPIO_PIN_3
  4429. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  4430. #define TCK_PORT GPIO_PORTC_BASE
  4431. #define TCK_PIN GPIO_PIN_0
  4432. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  4433. #define TDI_PORT GPIO_PORTC_BASE
  4434. #define TDI_PIN GPIO_PIN_2
  4435. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  4436. #define TDO_PORT GPIO_PORTC_BASE
  4437. #define TDO_PIN GPIO_PIN_3
  4438. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  4439. #define TMS_PORT GPIO_PORTC_BASE
  4440. #define TMS_PIN GPIO_PIN_1
  4441. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  4442. #define TRST_PORT GPIO_PORTB_BASE
  4443. #define TRST_PIN GPIO_PIN_7
  4444. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4445. #define U0RX_PORT GPIO_PORTA_BASE
  4446. #define U0RX_PIN GPIO_PIN_0
  4447. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4448. #define U0TX_PORT GPIO_PORTA_BASE
  4449. #define U0TX_PIN GPIO_PIN_1
  4450. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  4451. #define U1RX_PORT GPIO_PORTD_BASE
  4452. #define U1RX_PIN GPIO_PIN_2
  4453. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  4454. #define U1TX_PORT GPIO_PORTD_BASE
  4455. #define U1TX_PIN GPIO_PIN_3
  4456. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  4457. #define U2RX_PORT GPIO_PORTG_BASE
  4458. #define U2RX_PIN GPIO_PIN_0
  4459. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  4460. #define U2TX_PORT GPIO_PORTG_BASE
  4461. #define U2TX_PIN GPIO_PIN_1
  4462. #endif // PART_LM3S1601
  4463. //*****************************************************************************
  4464. //
  4465. // LM3S1607 Port/Pin Mapping Definitions
  4466. //
  4467. //*****************************************************************************
  4468. #ifdef PART_LM3S1607
  4469. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  4470. #define ADC0_PORT GPIO_PORTE_BASE
  4471. #define ADC0_PIN GPIO_PIN_3
  4472. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  4473. #define ADC1_PORT GPIO_PORTE_BASE
  4474. #define ADC1_PIN GPIO_PIN_2
  4475. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  4476. #define ADC2_PORT GPIO_PORTE_BASE
  4477. #define ADC2_PIN GPIO_PIN_1
  4478. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  4479. #define ADC3_PORT GPIO_PORTE_BASE
  4480. #define ADC3_PIN GPIO_PIN_0
  4481. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  4482. #define ADC4_PORT GPIO_PORTD_BASE
  4483. #define ADC4_PIN GPIO_PIN_3
  4484. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  4485. #define ADC5_PORT GPIO_PORTD_BASE
  4486. #define ADC5_PIN GPIO_PIN_2
  4487. #define ADC6_PERIPH SYSCTL_PERIPH_GPIOD
  4488. #define ADC6_PORT GPIO_PORTD_BASE
  4489. #define ADC6_PIN GPIO_PIN_1
  4490. #define ADC7_PERIPH SYSCTL_PERIPH_GPIOD
  4491. #define ADC7_PORT GPIO_PORTD_BASE
  4492. #define ADC7_PIN GPIO_PIN_0
  4493. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  4494. #define CCP0_PORT GPIO_PORTB_BASE
  4495. #define CCP0_PIN GPIO_PIN_5
  4496. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  4497. #define CCP1_PORT GPIO_PORTC_BASE
  4498. #define CCP1_PIN GPIO_PIN_5
  4499. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  4500. #define CCP2_PORT GPIO_PORTC_BASE
  4501. #define CCP2_PIN GPIO_PIN_4
  4502. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  4503. #define CCP3_PORT GPIO_PORTC_BASE
  4504. #define CCP3_PIN GPIO_PIN_6
  4505. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  4506. #define CCP4_PORT GPIO_PORTC_BASE
  4507. #define CCP4_PIN GPIO_PIN_7
  4508. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  4509. #define CCP5_PORT GPIO_PORTB_BASE
  4510. #define CCP5_PIN GPIO_PIN_6
  4511. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  4512. #define I2C0SCL_PORT GPIO_PORTB_BASE
  4513. #define I2C0SCL_PIN GPIO_PIN_2
  4514. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  4515. #define I2C0SDA_PORT GPIO_PORTB_BASE
  4516. #define I2C0SDA_PIN GPIO_PIN_3
  4517. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  4518. #define I2C1SCL_PORT GPIO_PORTA_BASE
  4519. #define I2C1SCL_PIN GPIO_PIN_6
  4520. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  4521. #define I2C1SDA_PORT GPIO_PORTA_BASE
  4522. #define I2C1SDA_PIN GPIO_PIN_7
  4523. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  4524. #define NMI_PORT GPIO_PORTB_BASE
  4525. #define NMI_PIN GPIO_PIN_7
  4526. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  4527. #define SSI0CLK_PORT GPIO_PORTA_BASE
  4528. #define SSI0CLK_PIN GPIO_PIN_2
  4529. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  4530. #define SSI0FSS_PORT GPIO_PORTA_BASE
  4531. #define SSI0FSS_PIN GPIO_PIN_3
  4532. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4533. #define SSI0RX_PORT GPIO_PORTA_BASE
  4534. #define SSI0RX_PIN GPIO_PIN_4
  4535. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4536. #define SSI0TX_PORT GPIO_PORTA_BASE
  4537. #define SSI0TX_PIN GPIO_PIN_5
  4538. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  4539. #define SWCLK_PORT GPIO_PORTC_BASE
  4540. #define SWCLK_PIN GPIO_PIN_0
  4541. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  4542. #define SWDIO_PORT GPIO_PORTC_BASE
  4543. #define SWDIO_PIN GPIO_PIN_1
  4544. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  4545. #define SWO_PORT GPIO_PORTC_BASE
  4546. #define SWO_PIN GPIO_PIN_3
  4547. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  4548. #define TCK_PORT GPIO_PORTC_BASE
  4549. #define TCK_PIN GPIO_PIN_0
  4550. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  4551. #define TDI_PORT GPIO_PORTC_BASE
  4552. #define TDI_PIN GPIO_PIN_2
  4553. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  4554. #define TDO_PORT GPIO_PORTC_BASE
  4555. #define TDO_PIN GPIO_PIN_3
  4556. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  4557. #define TMS_PORT GPIO_PORTC_BASE
  4558. #define TMS_PIN GPIO_PIN_1
  4559. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4560. #define U0RX_PORT GPIO_PORTA_BASE
  4561. #define U0RX_PIN GPIO_PIN_0
  4562. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4563. #define U0TX_PORT GPIO_PORTA_BASE
  4564. #define U0TX_PIN GPIO_PIN_1
  4565. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOB
  4566. #define U1RX_PORT GPIO_PORTB_BASE
  4567. #define U1RX_PIN GPIO_PIN_0
  4568. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOB
  4569. #define U1TX_PORT GPIO_PORTB_BASE
  4570. #define U1TX_PIN GPIO_PIN_1
  4571. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOB
  4572. #define U2RX_PORT GPIO_PORTB_BASE
  4573. #define U2RX_PIN GPIO_PIN_4
  4574. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOE
  4575. #define U2TX_PORT GPIO_PORTE_BASE
  4576. #define U2TX_PIN GPIO_PIN_4
  4577. #endif // PART_LM3S1607
  4578. //*****************************************************************************
  4579. //
  4580. // LM3S1608 Port/Pin Mapping Definitions
  4581. //
  4582. //*****************************************************************************
  4583. #ifdef PART_LM3S1608
  4584. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  4585. #define C0O_PORT GPIO_PORTF_BASE
  4586. #define C0O_PIN GPIO_PIN_4
  4587. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  4588. #define C0_MINUS_PORT GPIO_PORTB_BASE
  4589. #define C0_MINUS_PIN GPIO_PIN_4
  4590. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  4591. #define C0_PLUS_PORT GPIO_PORTB_BASE
  4592. #define C0_PLUS_PIN GPIO_PIN_6
  4593. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  4594. #define C1O_PORT GPIO_PORTF_BASE
  4595. #define C1O_PIN GPIO_PIN_5
  4596. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  4597. #define C1_MINUS_PORT GPIO_PORTB_BASE
  4598. #define C1_MINUS_PIN GPIO_PIN_5
  4599. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  4600. #define C1_PLUS_PORT GPIO_PORTC_BASE
  4601. #define C1_PLUS_PIN GPIO_PIN_5
  4602. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  4603. #define CCP0_PORT GPIO_PORTB_BASE
  4604. #define CCP0_PIN GPIO_PIN_0
  4605. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOF
  4606. #define CCP1_PORT GPIO_PORTF_BASE
  4607. #define CCP1_PIN GPIO_PIN_6
  4608. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  4609. #define CCP2_PORT GPIO_PORTB_BASE
  4610. #define CCP2_PIN GPIO_PIN_1
  4611. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  4612. #define CCP3_PORT GPIO_PORTC_BASE
  4613. #define CCP3_PIN GPIO_PIN_6
  4614. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  4615. #define CCP4_PORT GPIO_PORTC_BASE
  4616. #define CCP4_PIN GPIO_PIN_7
  4617. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  4618. #define CCP5_PORT GPIO_PORTC_BASE
  4619. #define CCP5_PIN GPIO_PIN_4
  4620. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  4621. #define CCP6_PORT GPIO_PORTH_BASE
  4622. #define CCP6_PIN GPIO_PIN_0
  4623. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  4624. #define CCP7_PORT GPIO_PORTH_BASE
  4625. #define CCP7_PIN GPIO_PIN_1
  4626. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  4627. #define I2C0SCL_PORT GPIO_PORTB_BASE
  4628. #define I2C0SCL_PIN GPIO_PIN_2
  4629. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  4630. #define I2C0SDA_PORT GPIO_PORTB_BASE
  4631. #define I2C0SDA_PIN GPIO_PIN_3
  4632. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  4633. #define I2C1SCL_PORT GPIO_PORTA_BASE
  4634. #define I2C1SCL_PIN GPIO_PIN_6
  4635. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  4636. #define I2C1SDA_PORT GPIO_PORTA_BASE
  4637. #define I2C1SDA_PIN GPIO_PIN_7
  4638. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  4639. #define SSI0CLK_PORT GPIO_PORTA_BASE
  4640. #define SSI0CLK_PIN GPIO_PIN_2
  4641. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  4642. #define SSI0FSS_PORT GPIO_PORTA_BASE
  4643. #define SSI0FSS_PIN GPIO_PIN_3
  4644. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4645. #define SSI0RX_PORT GPIO_PORTA_BASE
  4646. #define SSI0RX_PIN GPIO_PIN_4
  4647. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4648. #define SSI0TX_PORT GPIO_PORTA_BASE
  4649. #define SSI0TX_PIN GPIO_PIN_5
  4650. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  4651. #define SSI1CLK_PORT GPIO_PORTE_BASE
  4652. #define SSI1CLK_PIN GPIO_PIN_0
  4653. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  4654. #define SSI1FSS_PORT GPIO_PORTE_BASE
  4655. #define SSI1FSS_PIN GPIO_PIN_1
  4656. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  4657. #define SSI1RX_PORT GPIO_PORTE_BASE
  4658. #define SSI1RX_PIN GPIO_PIN_2
  4659. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  4660. #define SSI1TX_PORT GPIO_PORTE_BASE
  4661. #define SSI1TX_PIN GPIO_PIN_3
  4662. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  4663. #define SWCLK_PORT GPIO_PORTC_BASE
  4664. #define SWCLK_PIN GPIO_PIN_0
  4665. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  4666. #define SWDIO_PORT GPIO_PORTC_BASE
  4667. #define SWDIO_PIN GPIO_PIN_1
  4668. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  4669. #define SWO_PORT GPIO_PORTC_BASE
  4670. #define SWO_PIN GPIO_PIN_3
  4671. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  4672. #define TCK_PORT GPIO_PORTC_BASE
  4673. #define TCK_PIN GPIO_PIN_0
  4674. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  4675. #define TDI_PORT GPIO_PORTC_BASE
  4676. #define TDI_PIN GPIO_PIN_2
  4677. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  4678. #define TDO_PORT GPIO_PORTC_BASE
  4679. #define TDO_PIN GPIO_PIN_3
  4680. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  4681. #define TMS_PORT GPIO_PORTC_BASE
  4682. #define TMS_PIN GPIO_PIN_1
  4683. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  4684. #define TRST_PORT GPIO_PORTB_BASE
  4685. #define TRST_PIN GPIO_PIN_7
  4686. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4687. #define U0RX_PORT GPIO_PORTA_BASE
  4688. #define U0RX_PIN GPIO_PIN_0
  4689. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4690. #define U0TX_PORT GPIO_PORTA_BASE
  4691. #define U0TX_PIN GPIO_PIN_1
  4692. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  4693. #define U1RX_PORT GPIO_PORTD_BASE
  4694. #define U1RX_PIN GPIO_PIN_2
  4695. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  4696. #define U1TX_PORT GPIO_PORTD_BASE
  4697. #define U1TX_PIN GPIO_PIN_3
  4698. #endif // PART_LM3S1608
  4699. //*****************************************************************************
  4700. //
  4701. // LM3S1620 Port/Pin Mapping Definitions
  4702. //
  4703. //*****************************************************************************
  4704. #ifdef PART_LM3S1620
  4705. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  4706. #define C0O_PORT GPIO_PORTF_BASE
  4707. #define C0O_PIN GPIO_PIN_4
  4708. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  4709. #define C0_MINUS_PORT GPIO_PORTB_BASE
  4710. #define C0_MINUS_PIN GPIO_PIN_4
  4711. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  4712. #define C0_PLUS_PORT GPIO_PORTB_BASE
  4713. #define C0_PLUS_PIN GPIO_PIN_6
  4714. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  4715. #define C1O_PORT GPIO_PORTF_BASE
  4716. #define C1O_PIN GPIO_PIN_5
  4717. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  4718. #define C1_MINUS_PORT GPIO_PORTB_BASE
  4719. #define C1_MINUS_PIN GPIO_PIN_5
  4720. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  4721. #define C1_PLUS_PORT GPIO_PORTC_BASE
  4722. #define C1_PLUS_PIN GPIO_PIN_5
  4723. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  4724. #define C2_MINUS_PORT GPIO_PORTC_BASE
  4725. #define C2_MINUS_PIN GPIO_PIN_7
  4726. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  4727. #define C2_PLUS_PORT GPIO_PORTC_BASE
  4728. #define C2_PLUS_PIN GPIO_PIN_6
  4729. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  4730. #define CCP0_PORT GPIO_PORTB_BASE
  4731. #define CCP0_PIN GPIO_PIN_0
  4732. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  4733. #define CCP1_PORT GPIO_PORTA_BASE
  4734. #define CCP1_PIN GPIO_PIN_6
  4735. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  4736. #define CCP2_PORT GPIO_PORTB_BASE
  4737. #define CCP2_PIN GPIO_PIN_1
  4738. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  4739. #define CCP3_PORT GPIO_PORTD_BASE
  4740. #define CCP3_PIN GPIO_PIN_4
  4741. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  4742. #define FAULT_PORT GPIO_PORTD_BASE
  4743. #define FAULT_PIN GPIO_PIN_6
  4744. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  4745. #define I2C0SCL_PORT GPIO_PORTB_BASE
  4746. #define I2C0SCL_PIN GPIO_PIN_2
  4747. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  4748. #define I2C0SDA_PORT GPIO_PORTB_BASE
  4749. #define I2C0SDA_PIN GPIO_PIN_3
  4750. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  4751. #define IDX0_PORT GPIO_PORTD_BASE
  4752. #define IDX0_PIN GPIO_PIN_7
  4753. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  4754. #define PHA0_PORT GPIO_PORTC_BASE
  4755. #define PHA0_PIN GPIO_PIN_4
  4756. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOF
  4757. #define PHB0_PORT GPIO_PORTF_BASE
  4758. #define PHB0_PIN GPIO_PIN_0
  4759. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  4760. #define PWM0_PORT GPIO_PORTD_BASE
  4761. #define PWM0_PIN GPIO_PIN_0
  4762. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  4763. #define PWM1_PORT GPIO_PORTD_BASE
  4764. #define PWM1_PIN GPIO_PIN_1
  4765. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  4766. #define PWM2_PORT GPIO_PORTH_BASE
  4767. #define PWM2_PIN GPIO_PIN_0
  4768. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  4769. #define PWM3_PORT GPIO_PORTH_BASE
  4770. #define PWM3_PIN GPIO_PIN_1
  4771. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  4772. #define PWM4_PORT GPIO_PORTE_BASE
  4773. #define PWM4_PIN GPIO_PIN_6
  4774. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  4775. #define PWM5_PORT GPIO_PORTE_BASE
  4776. #define PWM5_PIN GPIO_PIN_7
  4777. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  4778. #define SSI0CLK_PORT GPIO_PORTA_BASE
  4779. #define SSI0CLK_PIN GPIO_PIN_2
  4780. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  4781. #define SSI0FSS_PORT GPIO_PORTA_BASE
  4782. #define SSI0FSS_PIN GPIO_PIN_3
  4783. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4784. #define SSI0RX_PORT GPIO_PORTA_BASE
  4785. #define SSI0RX_PIN GPIO_PIN_4
  4786. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4787. #define SSI0TX_PORT GPIO_PORTA_BASE
  4788. #define SSI0TX_PIN GPIO_PIN_5
  4789. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  4790. #define SSI1CLK_PORT GPIO_PORTE_BASE
  4791. #define SSI1CLK_PIN GPIO_PIN_0
  4792. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  4793. #define SSI1FSS_PORT GPIO_PORTE_BASE
  4794. #define SSI1FSS_PIN GPIO_PIN_1
  4795. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  4796. #define SSI1RX_PORT GPIO_PORTE_BASE
  4797. #define SSI1RX_PIN GPIO_PIN_2
  4798. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  4799. #define SSI1TX_PORT GPIO_PORTE_BASE
  4800. #define SSI1TX_PIN GPIO_PIN_3
  4801. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  4802. #define SWCLK_PORT GPIO_PORTC_BASE
  4803. #define SWCLK_PIN GPIO_PIN_0
  4804. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  4805. #define SWDIO_PORT GPIO_PORTC_BASE
  4806. #define SWDIO_PIN GPIO_PIN_1
  4807. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  4808. #define SWO_PORT GPIO_PORTC_BASE
  4809. #define SWO_PIN GPIO_PIN_3
  4810. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  4811. #define TCK_PORT GPIO_PORTC_BASE
  4812. #define TCK_PIN GPIO_PIN_0
  4813. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  4814. #define TDI_PORT GPIO_PORTC_BASE
  4815. #define TDI_PIN GPIO_PIN_2
  4816. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  4817. #define TDO_PORT GPIO_PORTC_BASE
  4818. #define TDO_PIN GPIO_PIN_3
  4819. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  4820. #define TMS_PORT GPIO_PORTC_BASE
  4821. #define TMS_PIN GPIO_PIN_1
  4822. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  4823. #define TRST_PORT GPIO_PORTB_BASE
  4824. #define TRST_PIN GPIO_PIN_7
  4825. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  4826. #define U0RX_PORT GPIO_PORTA_BASE
  4827. #define U0RX_PIN GPIO_PIN_0
  4828. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  4829. #define U0TX_PORT GPIO_PORTA_BASE
  4830. #define U0TX_PIN GPIO_PIN_1
  4831. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  4832. #define U1RX_PORT GPIO_PORTD_BASE
  4833. #define U1RX_PIN GPIO_PIN_2
  4834. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  4835. #define U1TX_PORT GPIO_PORTD_BASE
  4836. #define U1TX_PIN GPIO_PIN_3
  4837. #endif // PART_LM3S1620
  4838. //*****************************************************************************
  4839. //
  4840. // LM3S1621 Port/Pin Mapping Definitions
  4841. //
  4842. //*****************************************************************************
  4843. #ifdef PART_LM3S1621
  4844. #define GPIO_PA0_U0RX 0x00000001
  4845. #define GPIO_PA0_I2C1SCL 0x00000008
  4846. #define GPIO_PA0_U1RX 0x00000009
  4847. #define GPIO_PA1_U0TX 0x00000401
  4848. #define GPIO_PA1_I2C1SDA 0x00000408
  4849. #define GPIO_PA1_U1TX 0x00000409
  4850. #define GPIO_PA2_SSI0CLK 0x00000801
  4851. #define GPIO_PA3_SSI0FSS 0x00000C01
  4852. #define GPIO_PA4_SSI0RX 0x00001001
  4853. #define GPIO_PA5_SSI0TX 0x00001401
  4854. #define GPIO_PA6_I2C1SCL 0x00001801
  4855. #define GPIO_PA6_CCP1 0x00001802
  4856. #define GPIO_PA6_U1CTS 0x00001809
  4857. #define GPIO_PA7_I2C1SDA 0x00001C01
  4858. #define GPIO_PA7_CCP4 0x00001C02
  4859. #define GPIO_PA7_CCP3 0x00001C07
  4860. #define GPIO_PA7_U1DCD 0x00001C09
  4861. #define GPIO_PB0_CCP0 0x00010001
  4862. #define GPIO_PB0_U1RX 0x00010005
  4863. #define GPIO_PB1_CCP2 0x00010401
  4864. #define GPIO_PB1_CCP1 0x00010404
  4865. #define GPIO_PB1_U1TX 0x00010405
  4866. #define GPIO_PB2_I2C0SCL 0x00010801
  4867. #define GPIO_PB2_CCP3 0x00010804
  4868. #define GPIO_PB2_CCP0 0x00010805
  4869. #define GPIO_PB3_I2C0SDA 0x00010C01
  4870. #define GPIO_PB4_U2RX 0x00011004
  4871. #define GPIO_PB4_U1RX 0x00011007
  4872. #define GPIO_PB4_EPI0S23 0x00011008
  4873. #define GPIO_PB5_C0O 0x00011401
  4874. #define GPIO_PB5_CCP5 0x00011402
  4875. #define GPIO_PB5_CCP6 0x00011403
  4876. #define GPIO_PB5_CCP0 0x00011404
  4877. #define GPIO_PB5_CCP2 0x00011406
  4878. #define GPIO_PB5_U1TX 0x00011407
  4879. #define GPIO_PB5_EPI0S22 0x00011408
  4880. #define GPIO_PB6_CCP1 0x00011801
  4881. #define GPIO_PB6_CCP7 0x00011802
  4882. #define GPIO_PB6_C0O 0x00011803
  4883. #define GPIO_PB6_CCP5 0x00011806
  4884. #define GPIO_PB7_NMI 0x00011C04
  4885. #define GPIO_PC0_TCK 0x00020003
  4886. #define GPIO_PC0_SWCLK 0x00020003
  4887. #define GPIO_PC1_TMS 0x00020403
  4888. #define GPIO_PC1_SWDIO 0x00020403
  4889. #define GPIO_PC2_TDI 0x00020803
  4890. #define GPIO_PC3_SWO 0x00020C03
  4891. #define GPIO_PC3_TDO 0x00020C03
  4892. #define GPIO_PC4_CCP5 0x00021001
  4893. #define GPIO_PC4_CCP2 0x00021005
  4894. #define GPIO_PC4_CCP4 0x00021006
  4895. #define GPIO_PC4_EPI0S2 0x00021008
  4896. #define GPIO_PC4_CCP1 0x00021009
  4897. #define GPIO_PC5_CCP1 0x00021401
  4898. #define GPIO_PC5_C1O 0x00021402
  4899. #define GPIO_PC5_C0O 0x00021403
  4900. #define GPIO_PC5_CCP3 0x00021405
  4901. #define GPIO_PC5_EPI0S3 0x00021408
  4902. #define GPIO_PC6_CCP3 0x00021801
  4903. #define GPIO_PC6_U1RX 0x00021805
  4904. #define GPIO_PC6_CCP0 0x00021806
  4905. #define GPIO_PC6_EPI0S4 0x00021808
  4906. #define GPIO_PC7_CCP4 0x00021C01
  4907. #define GPIO_PC7_CCP0 0x00021C04
  4908. #define GPIO_PC7_U1TX 0x00021C05
  4909. #define GPIO_PC7_C1O 0x00021C07
  4910. #define GPIO_PC7_EPI0S5 0x00021C08
  4911. #define GPIO_PD0_U2RX 0x00030004
  4912. #define GPIO_PD0_U1RX 0x00030005
  4913. #define GPIO_PD0_CCP6 0x00030006
  4914. #define GPIO_PD0_U1CTS 0x00030009
  4915. #define GPIO_PD1_U2TX 0x00030404
  4916. #define GPIO_PD1_U1TX 0x00030405
  4917. #define GPIO_PD1_CCP7 0x00030406
  4918. #define GPIO_PD1_U1DCD 0x00030409
  4919. #define GPIO_PD1_CCP2 0x0003040A
  4920. #define GPIO_PD2_U1RX 0x00030801
  4921. #define GPIO_PD2_CCP6 0x00030802
  4922. #define GPIO_PD2_CCP5 0x00030804
  4923. #define GPIO_PD2_EPI0S20 0x00030808
  4924. #define GPIO_PD3_U1TX 0x00030C01
  4925. #define GPIO_PD3_CCP7 0x00030C02
  4926. #define GPIO_PD3_CCP0 0x00030C04
  4927. #define GPIO_PD3_EPI0S21 0x00030C08
  4928. #define GPIO_PD4_CCP0 0x00031001
  4929. #define GPIO_PD4_CCP3 0x00031002
  4930. #define GPIO_PD4_U1RI 0x00031009
  4931. #define GPIO_PD4_EPI0S19 0x0003100A
  4932. #define GPIO_PD5_CCP2 0x00031401
  4933. #define GPIO_PD5_CCP4 0x00031402
  4934. #define GPIO_PD5_U2RX 0x00031409
  4935. #define GPIO_PD5_EPI0S28 0x0003140A
  4936. #define GPIO_PD6_U2TX 0x00031809
  4937. #define GPIO_PD6_EPI0S29 0x0003180A
  4938. #define GPIO_PD7_C0O 0x00031C02
  4939. #define GPIO_PD7_CCP1 0x00031C03
  4940. #define GPIO_PD7_U1DTR 0x00031C09
  4941. #define GPIO_PD7_EPI0S30 0x00031C0A
  4942. #define GPIO_PE0_SSI1CLK 0x00040002
  4943. #define GPIO_PE0_CCP3 0x00040003
  4944. #define GPIO_PE0_EPI0S8 0x00040008
  4945. #define GPIO_PE1_SSI1FSS 0x00040402
  4946. #define GPIO_PE1_CCP2 0x00040404
  4947. #define GPIO_PE1_CCP6 0x00040405
  4948. #define GPIO_PE1_EPI0S9 0x00040408
  4949. #define GPIO_PE2_CCP4 0x00040801
  4950. #define GPIO_PE2_SSI1RX 0x00040802
  4951. #define GPIO_PE2_CCP2 0x00040805
  4952. #define GPIO_PE2_EPI0S24 0x00040808
  4953. #define GPIO_PE3_CCP1 0x00040C01
  4954. #define GPIO_PE3_SSI1TX 0x00040C02
  4955. #define GPIO_PE3_CCP7 0x00040C05
  4956. #define GPIO_PE3_EPI0S25 0x00040C08
  4957. #define GPIO_PE4_CCP3 0x00041001
  4958. #define GPIO_PE4_U2TX 0x00041005
  4959. #define GPIO_PE4_CCP2 0x00041006
  4960. #define GPIO_PE5_CCP5 0x00041401
  4961. #define GPIO_PE6_C1O 0x00041802
  4962. #define GPIO_PE6_U1CTS 0x00041809
  4963. #define GPIO_PE7_U1DCD 0x00041C09
  4964. #define GPIO_PF0_U1DSR 0x00050009
  4965. #define GPIO_PF1_U1RTS 0x00050409
  4966. #define GPIO_PF1_CCP3 0x0005040A
  4967. #define GPIO_PF2_SSI1CLK 0x00050809
  4968. #define GPIO_PF3_SSI1FSS 0x00050C09
  4969. #define GPIO_PF4_CCP0 0x00051001
  4970. #define GPIO_PF4_C0O 0x00051002
  4971. #define GPIO_PF4_EPI0S12 0x00051008
  4972. #define GPIO_PF4_SSI1RX 0x00051009
  4973. #define GPIO_PF5_CCP2 0x00051401
  4974. #define GPIO_PF5_C1O 0x00051402
  4975. #define GPIO_PF5_EPI0S15 0x00051408
  4976. #define GPIO_PF5_SSI1TX 0x00051409
  4977. #define GPIO_PF6_CCP1 0x00051801
  4978. #define GPIO_PF6_U1RTS 0x0005180A
  4979. #define GPIO_PF7_CCP4 0x00051C01
  4980. #define GPIO_PF7_EPI0S12 0x00051C08
  4981. #define GPIO_PG0_U2RX 0x00060001
  4982. #define GPIO_PG0_I2C1SCL 0x00060003
  4983. #define GPIO_PG0_EPI0S13 0x00060008
  4984. #define GPIO_PG1_U2TX 0x00060401
  4985. #define GPIO_PG1_I2C1SDA 0x00060403
  4986. #define GPIO_PG1_EPI0S14 0x00060408
  4987. #define GPIO_PG4_CCP3 0x00061001
  4988. #define GPIO_PG4_EPI0S15 0x00061008
  4989. #define GPIO_PG4_U1RI 0x0006100A
  4990. #define GPIO_PG5_CCP5 0x00061401
  4991. #define GPIO_PG5_U1DTR 0x0006140A
  4992. #define GPIO_PG6_U1RI 0x0006180A
  4993. #define GPIO_PG7_CCP5 0x00061C08
  4994. #define GPIO_PG7_EPI0S31 0x00061C09
  4995. #define GPIO_PH0_CCP6 0x00070001
  4996. #define GPIO_PH0_EPI0S6 0x00070008
  4997. #define GPIO_PH1_CCP7 0x00070401
  4998. #define GPIO_PH1_EPI0S7 0x00070408
  4999. #define GPIO_PH2_C1O 0x00070802
  5000. #define GPIO_PH2_EPI0S1 0x00070808
  5001. #define GPIO_PH3_EPI0S0 0x00070C08
  5002. #define GPIO_PH4_EPI0S10 0x00071008
  5003. #define GPIO_PH4_SSI1CLK 0x0007100B
  5004. #define GPIO_PH5_EPI0S11 0x00071408
  5005. #define GPIO_PH5_SSI1FSS 0x0007140B
  5006. #define GPIO_PH6_EPI0S26 0x00071808
  5007. #define GPIO_PH6_SSI1RX 0x0007180B
  5008. #define GPIO_PH7_EPI0S27 0x00071C08
  5009. #define GPIO_PH7_SSI1TX 0x00071C0B
  5010. #define GPIO_PJ0_EPI0S16 0x00080008
  5011. #define GPIO_PJ0_I2C1SCL 0x0008000B
  5012. #define GPIO_PJ1_EPI0S17 0x00080408
  5013. #define GPIO_PJ1_I2C1SDA 0x0008040B
  5014. #define GPIO_PJ2_EPI0S18 0x00080808
  5015. #define GPIO_PJ2_CCP0 0x00080809
  5016. #endif // PART_LM3S1621
  5017. //*****************************************************************************
  5018. //
  5019. // LM3S1625 Port/Pin Mapping Definitions
  5020. //
  5021. //*****************************************************************************
  5022. #ifdef PART_LM3S1625
  5023. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  5024. #define ADC0_PORT GPIO_PORTE_BASE
  5025. #define ADC0_PIN GPIO_PIN_3
  5026. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  5027. #define ADC1_PORT GPIO_PORTE_BASE
  5028. #define ADC1_PIN GPIO_PIN_2
  5029. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  5030. #define ADC2_PORT GPIO_PORTE_BASE
  5031. #define ADC2_PIN GPIO_PIN_1
  5032. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  5033. #define ADC3_PORT GPIO_PORTE_BASE
  5034. #define ADC3_PIN GPIO_PIN_0
  5035. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  5036. #define ADC4_PORT GPIO_PORTD_BASE
  5037. #define ADC4_PIN GPIO_PIN_3
  5038. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  5039. #define ADC5_PORT GPIO_PORTD_BASE
  5040. #define ADC5_PIN GPIO_PIN_2
  5041. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  5042. #define C0O_PORT GPIO_PORTB_BASE
  5043. #define C0O_PIN GPIO_PIN_5
  5044. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  5045. #define C0_MINUS_PORT GPIO_PORTB_BASE
  5046. #define C0_MINUS_PIN GPIO_PIN_4
  5047. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  5048. #define C0_PLUS_PORT GPIO_PORTB_BASE
  5049. #define C0_PLUS_PIN GPIO_PIN_6
  5050. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOC
  5051. #define CCP0_PORT GPIO_PORTC_BASE
  5052. #define CCP0_PIN GPIO_PIN_7
  5053. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  5054. #define CCP1_PORT GPIO_PORTC_BASE
  5055. #define CCP1_PIN GPIO_PIN_5
  5056. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  5057. #define CCP2_PORT GPIO_PORTC_BASE
  5058. #define CCP2_PIN GPIO_PIN_4
  5059. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  5060. #define CCP3_PORT GPIO_PORTC_BASE
  5061. #define CCP3_PIN GPIO_PIN_6
  5062. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOE
  5063. #define FAULT0_PORT GPIO_PORTE_BASE
  5064. #define FAULT0_PIN GPIO_PIN_4
  5065. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  5066. #define I2C0SCL_PORT GPIO_PORTB_BASE
  5067. #define I2C0SCL_PIN GPIO_PIN_2
  5068. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  5069. #define I2C0SDA_PORT GPIO_PORTB_BASE
  5070. #define I2C0SDA_PIN GPIO_PIN_3
  5071. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  5072. #define I2C1SCL_PORT GPIO_PORTA_BASE
  5073. #define I2C1SCL_PIN GPIO_PIN_6
  5074. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  5075. #define I2C1SDA_PORT GPIO_PORTA_BASE
  5076. #define I2C1SDA_PIN GPIO_PIN_7
  5077. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  5078. #define NMI_PORT GPIO_PORTB_BASE
  5079. #define NMI_PIN GPIO_PIN_7
  5080. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  5081. #define PWM0_PORT GPIO_PORTD_BASE
  5082. #define PWM0_PIN GPIO_PIN_0
  5083. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  5084. #define PWM1_PORT GPIO_PORTD_BASE
  5085. #define PWM1_PIN GPIO_PIN_1
  5086. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  5087. #define PWM2_PORT GPIO_PORTB_BASE
  5088. #define PWM2_PIN GPIO_PIN_0
  5089. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  5090. #define PWM3_PORT GPIO_PORTB_BASE
  5091. #define PWM3_PIN GPIO_PIN_1
  5092. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  5093. #define SSI0CLK_PORT GPIO_PORTA_BASE
  5094. #define SSI0CLK_PIN GPIO_PIN_2
  5095. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  5096. #define SSI0FSS_PORT GPIO_PORTA_BASE
  5097. #define SSI0FSS_PIN GPIO_PIN_3
  5098. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5099. #define SSI0RX_PORT GPIO_PORTA_BASE
  5100. #define SSI0RX_PIN GPIO_PIN_4
  5101. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5102. #define SSI0TX_PORT GPIO_PORTA_BASE
  5103. #define SSI0TX_PIN GPIO_PIN_5
  5104. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  5105. #define SWCLK_PORT GPIO_PORTC_BASE
  5106. #define SWCLK_PIN GPIO_PIN_0
  5107. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  5108. #define SWDIO_PORT GPIO_PORTC_BASE
  5109. #define SWDIO_PIN GPIO_PIN_1
  5110. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  5111. #define SWO_PORT GPIO_PORTC_BASE
  5112. #define SWO_PIN GPIO_PIN_3
  5113. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  5114. #define TCK_PORT GPIO_PORTC_BASE
  5115. #define TCK_PIN GPIO_PIN_0
  5116. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  5117. #define TDI_PORT GPIO_PORTC_BASE
  5118. #define TDI_PIN GPIO_PIN_2
  5119. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  5120. #define TDO_PORT GPIO_PORTC_BASE
  5121. #define TDO_PIN GPIO_PIN_3
  5122. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  5123. #define TMS_PORT GPIO_PORTC_BASE
  5124. #define TMS_PIN GPIO_PIN_1
  5125. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5126. #define U0RX_PORT GPIO_PORTA_BASE
  5127. #define U0RX_PIN GPIO_PIN_0
  5128. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5129. #define U0TX_PORT GPIO_PORTA_BASE
  5130. #define U0TX_PIN GPIO_PIN_1
  5131. #endif // PART_LM3S1625
  5132. //*****************************************************************************
  5133. //
  5134. // LM3S1626 Port/Pin Mapping Definitions
  5135. //
  5136. //*****************************************************************************
  5137. #ifdef PART_LM3S1626
  5138. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  5139. #define ADC0_PORT GPIO_PORTE_BASE
  5140. #define ADC0_PIN GPIO_PIN_3
  5141. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  5142. #define ADC1_PORT GPIO_PORTE_BASE
  5143. #define ADC1_PIN GPIO_PIN_2
  5144. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  5145. #define ADC2_PORT GPIO_PORTE_BASE
  5146. #define ADC2_PIN GPIO_PIN_1
  5147. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  5148. #define ADC3_PORT GPIO_PORTE_BASE
  5149. #define ADC3_PIN GPIO_PIN_0
  5150. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  5151. #define ADC4_PORT GPIO_PORTD_BASE
  5152. #define ADC4_PIN GPIO_PIN_3
  5153. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  5154. #define ADC5_PORT GPIO_PORTD_BASE
  5155. #define ADC5_PIN GPIO_PIN_2
  5156. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOC
  5157. #define CCP0_PORT GPIO_PORTC_BASE
  5158. #define CCP0_PIN GPIO_PIN_6
  5159. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  5160. #define CCP1_PORT GPIO_PORTB_BASE
  5161. #define CCP1_PIN GPIO_PIN_6
  5162. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  5163. #define CCP2_PORT GPIO_PORTC_BASE
  5164. #define CCP2_PIN GPIO_PIN_4
  5165. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  5166. #define CCP3_PORT GPIO_PORTC_BASE
  5167. #define CCP3_PIN GPIO_PIN_5
  5168. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOE
  5169. #define FAULT0_PORT GPIO_PORTE_BASE
  5170. #define FAULT0_PIN GPIO_PIN_4
  5171. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  5172. #define I2C0SCL_PORT GPIO_PORTB_BASE
  5173. #define I2C0SCL_PIN GPIO_PIN_2
  5174. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  5175. #define I2C0SDA_PORT GPIO_PORTB_BASE
  5176. #define I2C0SDA_PIN GPIO_PIN_3
  5177. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  5178. #define IDX0_PORT GPIO_PORTD_BASE
  5179. #define IDX0_PIN GPIO_PIN_0
  5180. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  5181. #define NMI_PORT GPIO_PORTB_BASE
  5182. #define NMI_PIN GPIO_PIN_7
  5183. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOD
  5184. #define PHA0_PORT GPIO_PORTD_BASE
  5185. #define PHA0_PIN GPIO_PIN_1
  5186. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  5187. #define PHB0_PORT GPIO_PORTC_BASE
  5188. #define PHB0_PIN GPIO_PIN_7
  5189. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOA
  5190. #define PWM0_PORT GPIO_PORTA_BASE
  5191. #define PWM0_PIN GPIO_PIN_6
  5192. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOA
  5193. #define PWM1_PORT GPIO_PORTA_BASE
  5194. #define PWM1_PIN GPIO_PIN_7
  5195. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  5196. #define PWM2_PORT GPIO_PORTB_BASE
  5197. #define PWM2_PIN GPIO_PIN_0
  5198. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  5199. #define PWM3_PORT GPIO_PORTB_BASE
  5200. #define PWM3_PIN GPIO_PIN_1
  5201. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  5202. #define SSI0CLK_PORT GPIO_PORTA_BASE
  5203. #define SSI0CLK_PIN GPIO_PIN_2
  5204. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  5205. #define SSI0FSS_PORT GPIO_PORTA_BASE
  5206. #define SSI0FSS_PIN GPIO_PIN_3
  5207. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5208. #define SSI0RX_PORT GPIO_PORTA_BASE
  5209. #define SSI0RX_PIN GPIO_PIN_4
  5210. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5211. #define SSI0TX_PORT GPIO_PORTA_BASE
  5212. #define SSI0TX_PIN GPIO_PIN_5
  5213. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  5214. #define SWCLK_PORT GPIO_PORTC_BASE
  5215. #define SWCLK_PIN GPIO_PIN_0
  5216. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  5217. #define SWDIO_PORT GPIO_PORTC_BASE
  5218. #define SWDIO_PIN GPIO_PIN_1
  5219. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  5220. #define SWO_PORT GPIO_PORTC_BASE
  5221. #define SWO_PIN GPIO_PIN_3
  5222. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  5223. #define TCK_PORT GPIO_PORTC_BASE
  5224. #define TCK_PIN GPIO_PIN_0
  5225. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  5226. #define TDI_PORT GPIO_PORTC_BASE
  5227. #define TDI_PIN GPIO_PIN_2
  5228. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  5229. #define TDO_PORT GPIO_PORTC_BASE
  5230. #define TDO_PIN GPIO_PIN_3
  5231. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  5232. #define TMS_PORT GPIO_PORTC_BASE
  5233. #define TMS_PIN GPIO_PIN_1
  5234. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5235. #define U0RX_PORT GPIO_PORTA_BASE
  5236. #define U0RX_PIN GPIO_PIN_0
  5237. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5238. #define U0TX_PORT GPIO_PORTA_BASE
  5239. #define U0TX_PIN GPIO_PIN_1
  5240. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOB
  5241. #define U1RX_PORT GPIO_PORTB_BASE
  5242. #define U1RX_PIN GPIO_PIN_4
  5243. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOB
  5244. #define U1TX_PORT GPIO_PORTB_BASE
  5245. #define U1TX_PIN GPIO_PIN_5
  5246. #endif // PART_LM3S1626
  5247. //*****************************************************************************
  5248. //
  5249. // LM3S1627 Port/Pin Mapping Definitions
  5250. //
  5251. //*****************************************************************************
  5252. #ifdef PART_LM3S1627
  5253. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  5254. #define ADC0_PORT GPIO_PORTE_BASE
  5255. #define ADC0_PIN GPIO_PIN_3
  5256. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  5257. #define ADC1_PORT GPIO_PORTE_BASE
  5258. #define ADC1_PIN GPIO_PIN_2
  5259. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  5260. #define ADC2_PORT GPIO_PORTE_BASE
  5261. #define ADC2_PIN GPIO_PIN_1
  5262. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  5263. #define ADC3_PORT GPIO_PORTE_BASE
  5264. #define ADC3_PIN GPIO_PIN_0
  5265. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOC
  5266. #define CCP0_PORT GPIO_PORTC_BASE
  5267. #define CCP0_PIN GPIO_PIN_6
  5268. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  5269. #define CCP1_PORT GPIO_PORTB_BASE
  5270. #define CCP1_PIN GPIO_PIN_6
  5271. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  5272. #define CCP2_PORT GPIO_PORTB_BASE
  5273. #define CCP2_PIN GPIO_PIN_5
  5274. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  5275. #define CCP3_PORT GPIO_PORTC_BASE
  5276. #define CCP3_PIN GPIO_PIN_5
  5277. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOE
  5278. #define FAULT0_PORT GPIO_PORTE_BASE
  5279. #define FAULT0_PIN GPIO_PIN_4
  5280. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  5281. #define I2C0SCL_PORT GPIO_PORTB_BASE
  5282. #define I2C0SCL_PIN GPIO_PIN_2
  5283. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  5284. #define I2C0SDA_PORT GPIO_PORTB_BASE
  5285. #define I2C0SDA_PIN GPIO_PIN_3
  5286. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOB
  5287. #define IDX0_PORT GPIO_PORTB_BASE
  5288. #define IDX0_PIN GPIO_PIN_4
  5289. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  5290. #define NMI_PORT GPIO_PORTB_BASE
  5291. #define NMI_PIN GPIO_PIN_7
  5292. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  5293. #define PHA0_PORT GPIO_PORTC_BASE
  5294. #define PHA0_PIN GPIO_PIN_4
  5295. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  5296. #define PHB0_PORT GPIO_PORTC_BASE
  5297. #define PHB0_PIN GPIO_PIN_7
  5298. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  5299. #define PWM0_PORT GPIO_PORTD_BASE
  5300. #define PWM0_PIN GPIO_PIN_0
  5301. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  5302. #define PWM1_PORT GPIO_PORTD_BASE
  5303. #define PWM1_PIN GPIO_PIN_1
  5304. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOD
  5305. #define PWM2_PORT GPIO_PORTD_BASE
  5306. #define PWM2_PIN GPIO_PIN_2
  5307. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOD
  5308. #define PWM3_PORT GPIO_PORTD_BASE
  5309. #define PWM3_PIN GPIO_PIN_3
  5310. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOA
  5311. #define PWM4_PORT GPIO_PORTA_BASE
  5312. #define PWM4_PIN GPIO_PIN_6
  5313. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOA
  5314. #define PWM5_PORT GPIO_PORTA_BASE
  5315. #define PWM5_PIN GPIO_PIN_7
  5316. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  5317. #define SSI0CLK_PORT GPIO_PORTA_BASE
  5318. #define SSI0CLK_PIN GPIO_PIN_2
  5319. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  5320. #define SSI0FSS_PORT GPIO_PORTA_BASE
  5321. #define SSI0FSS_PIN GPIO_PIN_3
  5322. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5323. #define SSI0RX_PORT GPIO_PORTA_BASE
  5324. #define SSI0RX_PIN GPIO_PIN_4
  5325. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5326. #define SSI0TX_PORT GPIO_PORTA_BASE
  5327. #define SSI0TX_PIN GPIO_PIN_5
  5328. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  5329. #define SWCLK_PORT GPIO_PORTC_BASE
  5330. #define SWCLK_PIN GPIO_PIN_0
  5331. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  5332. #define SWDIO_PORT GPIO_PORTC_BASE
  5333. #define SWDIO_PIN GPIO_PIN_1
  5334. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  5335. #define SWO_PORT GPIO_PORTC_BASE
  5336. #define SWO_PIN GPIO_PIN_3
  5337. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  5338. #define TCK_PORT GPIO_PORTC_BASE
  5339. #define TCK_PIN GPIO_PIN_0
  5340. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  5341. #define TDI_PORT GPIO_PORTC_BASE
  5342. #define TDI_PIN GPIO_PIN_2
  5343. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  5344. #define TDO_PORT GPIO_PORTC_BASE
  5345. #define TDO_PIN GPIO_PIN_3
  5346. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  5347. #define TMS_PORT GPIO_PORTC_BASE
  5348. #define TMS_PIN GPIO_PIN_1
  5349. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5350. #define U0RX_PORT GPIO_PORTA_BASE
  5351. #define U0RX_PIN GPIO_PIN_0
  5352. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5353. #define U0TX_PORT GPIO_PORTA_BASE
  5354. #define U0TX_PIN GPIO_PIN_1
  5355. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOB
  5356. #define U1RX_PORT GPIO_PORTB_BASE
  5357. #define U1RX_PIN GPIO_PIN_0
  5358. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOB
  5359. #define U1TX_PORT GPIO_PORTB_BASE
  5360. #define U1TX_PIN GPIO_PIN_1
  5361. #endif // PART_LM3S1627
  5362. //*****************************************************************************
  5363. //
  5364. // LM3S1635 Port/Pin Mapping Definitions
  5365. //
  5366. //*****************************************************************************
  5367. #ifdef PART_LM3S1635
  5368. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  5369. #define C0O_PORT GPIO_PORTF_BASE
  5370. #define C0O_PIN GPIO_PIN_4
  5371. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  5372. #define C0_MINUS_PORT GPIO_PORTB_BASE
  5373. #define C0_MINUS_PIN GPIO_PIN_4
  5374. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  5375. #define C0_PLUS_PORT GPIO_PORTB_BASE
  5376. #define C0_PLUS_PIN GPIO_PIN_6
  5377. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  5378. #define C1O_PORT GPIO_PORTF_BASE
  5379. #define C1O_PIN GPIO_PIN_5
  5380. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  5381. #define C1_MINUS_PORT GPIO_PORTB_BASE
  5382. #define C1_MINUS_PIN GPIO_PIN_5
  5383. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  5384. #define C1_PLUS_PORT GPIO_PORTC_BASE
  5385. #define C1_PLUS_PIN GPIO_PIN_5
  5386. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  5387. #define CCP0_PORT GPIO_PORTD_BASE
  5388. #define CCP0_PIN GPIO_PIN_4
  5389. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOD
  5390. #define CCP1_PORT GPIO_PORTD_BASE
  5391. #define CCP1_PIN GPIO_PIN_7
  5392. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  5393. #define CCP2_PORT GPIO_PORTD_BASE
  5394. #define CCP2_PIN GPIO_PIN_5
  5395. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  5396. #define CCP3_PORT GPIO_PORTC_BASE
  5397. #define CCP3_PIN GPIO_PIN_6
  5398. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  5399. #define CCP4_PORT GPIO_PORTC_BASE
  5400. #define CCP4_PIN GPIO_PIN_7
  5401. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  5402. #define CCP5_PORT GPIO_PORTC_BASE
  5403. #define CCP5_PIN GPIO_PIN_4
  5404. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  5405. #define CCP6_PORT GPIO_PORTH_BASE
  5406. #define CCP6_PIN GPIO_PIN_0
  5407. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  5408. #define CCP7_PORT GPIO_PORTH_BASE
  5409. #define CCP7_PIN GPIO_PIN_1
  5410. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  5411. #define FAULT_PORT GPIO_PORTD_BASE
  5412. #define FAULT_PIN GPIO_PIN_6
  5413. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  5414. #define I2C0SCL_PORT GPIO_PORTB_BASE
  5415. #define I2C0SCL_PIN GPIO_PIN_2
  5416. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  5417. #define I2C0SDA_PORT GPIO_PORTB_BASE
  5418. #define I2C0SDA_PIN GPIO_PIN_3
  5419. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  5420. #define I2C1SCL_PORT GPIO_PORTA_BASE
  5421. #define I2C1SCL_PIN GPIO_PIN_6
  5422. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  5423. #define I2C1SDA_PORT GPIO_PORTA_BASE
  5424. #define I2C1SDA_PIN GPIO_PIN_7
  5425. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  5426. #define PWM0_PORT GPIO_PORTD_BASE
  5427. #define PWM0_PIN GPIO_PIN_0
  5428. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  5429. #define PWM1_PORT GPIO_PORTD_BASE
  5430. #define PWM1_PIN GPIO_PIN_1
  5431. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  5432. #define PWM2_PORT GPIO_PORTB_BASE
  5433. #define PWM2_PIN GPIO_PIN_0
  5434. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  5435. #define PWM3_PORT GPIO_PORTB_BASE
  5436. #define PWM3_PIN GPIO_PIN_1
  5437. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOF
  5438. #define PWM4_PORT GPIO_PORTF_BASE
  5439. #define PWM4_PIN GPIO_PIN_2
  5440. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOF
  5441. #define PWM5_PORT GPIO_PORTF_BASE
  5442. #define PWM5_PIN GPIO_PIN_3
  5443. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  5444. #define SSI0CLK_PORT GPIO_PORTA_BASE
  5445. #define SSI0CLK_PIN GPIO_PIN_2
  5446. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  5447. #define SSI0FSS_PORT GPIO_PORTA_BASE
  5448. #define SSI0FSS_PIN GPIO_PIN_3
  5449. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5450. #define SSI0RX_PORT GPIO_PORTA_BASE
  5451. #define SSI0RX_PIN GPIO_PIN_4
  5452. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5453. #define SSI0TX_PORT GPIO_PORTA_BASE
  5454. #define SSI0TX_PIN GPIO_PIN_5
  5455. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  5456. #define SSI1CLK_PORT GPIO_PORTE_BASE
  5457. #define SSI1CLK_PIN GPIO_PIN_0
  5458. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  5459. #define SSI1FSS_PORT GPIO_PORTE_BASE
  5460. #define SSI1FSS_PIN GPIO_PIN_1
  5461. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  5462. #define SSI1RX_PORT GPIO_PORTE_BASE
  5463. #define SSI1RX_PIN GPIO_PIN_2
  5464. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  5465. #define SSI1TX_PORT GPIO_PORTE_BASE
  5466. #define SSI1TX_PIN GPIO_PIN_3
  5467. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  5468. #define SWCLK_PORT GPIO_PORTC_BASE
  5469. #define SWCLK_PIN GPIO_PIN_0
  5470. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  5471. #define SWDIO_PORT GPIO_PORTC_BASE
  5472. #define SWDIO_PIN GPIO_PIN_1
  5473. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  5474. #define SWO_PORT GPIO_PORTC_BASE
  5475. #define SWO_PIN GPIO_PIN_3
  5476. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  5477. #define TCK_PORT GPIO_PORTC_BASE
  5478. #define TCK_PIN GPIO_PIN_0
  5479. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  5480. #define TDI_PORT GPIO_PORTC_BASE
  5481. #define TDI_PIN GPIO_PIN_2
  5482. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  5483. #define TDO_PORT GPIO_PORTC_BASE
  5484. #define TDO_PIN GPIO_PIN_3
  5485. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  5486. #define TMS_PORT GPIO_PORTC_BASE
  5487. #define TMS_PIN GPIO_PIN_1
  5488. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  5489. #define TRST_PORT GPIO_PORTB_BASE
  5490. #define TRST_PIN GPIO_PIN_7
  5491. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5492. #define U0RX_PORT GPIO_PORTA_BASE
  5493. #define U0RX_PIN GPIO_PIN_0
  5494. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5495. #define U0TX_PORT GPIO_PORTA_BASE
  5496. #define U0TX_PIN GPIO_PIN_1
  5497. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  5498. #define U1RX_PORT GPIO_PORTD_BASE
  5499. #define U1RX_PIN GPIO_PIN_2
  5500. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  5501. #define U1TX_PORT GPIO_PORTD_BASE
  5502. #define U1TX_PIN GPIO_PIN_3
  5503. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  5504. #define U2RX_PORT GPIO_PORTG_BASE
  5505. #define U2RX_PIN GPIO_PIN_0
  5506. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  5507. #define U2TX_PORT GPIO_PORTG_BASE
  5508. #define U2TX_PIN GPIO_PIN_1
  5509. #endif // PART_LM3S1635
  5510. //*****************************************************************************
  5511. //
  5512. // LM3S1637 Port/Pin Mapping Definitions
  5513. //
  5514. //*****************************************************************************
  5515. #ifdef PART_LM3S1637
  5516. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  5517. #define C0O_PORT GPIO_PORTC_BASE
  5518. #define C0O_PIN GPIO_PIN_5
  5519. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  5520. #define C0_MINUS_PORT GPIO_PORTB_BASE
  5521. #define C0_MINUS_PIN GPIO_PIN_4
  5522. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  5523. #define C0_PLUS_PORT GPIO_PORTB_BASE
  5524. #define C0_PLUS_PIN GPIO_PIN_6
  5525. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  5526. #define CCP0_PORT GPIO_PORTB_BASE
  5527. #define CCP0_PIN GPIO_PIN_0
  5528. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  5529. #define CCP1_PORT GPIO_PORTA_BASE
  5530. #define CCP1_PIN GPIO_PIN_6
  5531. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  5532. #define CCP2_PORT GPIO_PORTB_BASE
  5533. #define CCP2_PIN GPIO_PIN_1
  5534. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  5535. #define CCP3_PORT GPIO_PORTC_BASE
  5536. #define CCP3_PIN GPIO_PIN_6
  5537. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  5538. #define CCP4_PORT GPIO_PORTA_BASE
  5539. #define CCP4_PIN GPIO_PIN_7
  5540. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  5541. #define CCP5_PORT GPIO_PORTB_BASE
  5542. #define CCP5_PIN GPIO_PIN_5
  5543. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  5544. #define FAULT_PORT GPIO_PORTD_BASE
  5545. #define FAULT_PIN GPIO_PIN_6
  5546. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  5547. #define I2C0SCL_PORT GPIO_PORTB_BASE
  5548. #define I2C0SCL_PIN GPIO_PIN_2
  5549. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  5550. #define I2C0SDA_PORT GPIO_PORTB_BASE
  5551. #define I2C0SDA_PIN GPIO_PIN_3
  5552. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  5553. #define IDX0_PORT GPIO_PORTD_BASE
  5554. #define IDX0_PIN GPIO_PIN_7
  5555. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  5556. #define PHA0_PORT GPIO_PORTC_BASE
  5557. #define PHA0_PIN GPIO_PIN_4
  5558. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  5559. #define PHB0_PORT GPIO_PORTC_BASE
  5560. #define PHB0_PIN GPIO_PIN_7
  5561. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  5562. #define PWM0_PORT GPIO_PORTD_BASE
  5563. #define PWM0_PIN GPIO_PIN_0
  5564. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  5565. #define PWM1_PORT GPIO_PORTD_BASE
  5566. #define PWM1_PIN GPIO_PIN_1
  5567. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  5568. #define PWM2_PORT GPIO_PORTH_BASE
  5569. #define PWM2_PIN GPIO_PIN_0
  5570. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  5571. #define PWM3_PORT GPIO_PORTH_BASE
  5572. #define PWM3_PIN GPIO_PIN_1
  5573. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  5574. #define PWM4_PORT GPIO_PORTE_BASE
  5575. #define PWM4_PIN GPIO_PIN_0
  5576. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  5577. #define PWM5_PORT GPIO_PORTE_BASE
  5578. #define PWM5_PIN GPIO_PIN_1
  5579. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  5580. #define SSI0CLK_PORT GPIO_PORTA_BASE
  5581. #define SSI0CLK_PIN GPIO_PIN_2
  5582. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  5583. #define SSI0FSS_PORT GPIO_PORTA_BASE
  5584. #define SSI0FSS_PIN GPIO_PIN_3
  5585. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5586. #define SSI0RX_PORT GPIO_PORTA_BASE
  5587. #define SSI0RX_PIN GPIO_PIN_4
  5588. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5589. #define SSI0TX_PORT GPIO_PORTA_BASE
  5590. #define SSI0TX_PIN GPIO_PIN_5
  5591. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  5592. #define SWCLK_PORT GPIO_PORTC_BASE
  5593. #define SWCLK_PIN GPIO_PIN_0
  5594. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  5595. #define SWDIO_PORT GPIO_PORTC_BASE
  5596. #define SWDIO_PIN GPIO_PIN_1
  5597. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  5598. #define SWO_PORT GPIO_PORTC_BASE
  5599. #define SWO_PIN GPIO_PIN_3
  5600. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  5601. #define TCK_PORT GPIO_PORTC_BASE
  5602. #define TCK_PIN GPIO_PIN_0
  5603. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  5604. #define TDI_PORT GPIO_PORTC_BASE
  5605. #define TDI_PIN GPIO_PIN_2
  5606. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  5607. #define TDO_PORT GPIO_PORTC_BASE
  5608. #define TDO_PIN GPIO_PIN_3
  5609. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  5610. #define TMS_PORT GPIO_PORTC_BASE
  5611. #define TMS_PIN GPIO_PIN_1
  5612. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  5613. #define TRST_PORT GPIO_PORTB_BASE
  5614. #define TRST_PIN GPIO_PIN_7
  5615. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5616. #define U0RX_PORT GPIO_PORTA_BASE
  5617. #define U0RX_PIN GPIO_PIN_0
  5618. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5619. #define U0TX_PORT GPIO_PORTA_BASE
  5620. #define U0TX_PIN GPIO_PIN_1
  5621. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  5622. #define U1RX_PORT GPIO_PORTD_BASE
  5623. #define U1RX_PIN GPIO_PIN_2
  5624. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  5625. #define U1TX_PORT GPIO_PORTD_BASE
  5626. #define U1TX_PIN GPIO_PIN_3
  5627. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  5628. #define U2RX_PORT GPIO_PORTG_BASE
  5629. #define U2RX_PIN GPIO_PIN_0
  5630. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  5631. #define U2TX_PORT GPIO_PORTG_BASE
  5632. #define U2TX_PIN GPIO_PIN_1
  5633. #endif // PART_LM3S1637
  5634. //*****************************************************************************
  5635. //
  5636. // LM3S1651 Port/Pin Mapping Definitions
  5637. //
  5638. //*****************************************************************************
  5639. #ifdef PART_LM3S1651
  5640. #define GPIO_PA0_U0RX 0x00000001
  5641. #define GPIO_PA0_I2C1SCL 0x00000008
  5642. #define GPIO_PA0_U1RX 0x00000009
  5643. #define GPIO_PA1_U0TX 0x00000401
  5644. #define GPIO_PA1_I2C1SDA 0x00000408
  5645. #define GPIO_PA1_U1TX 0x00000409
  5646. #define GPIO_PA2_SSI0CLK 0x00000801
  5647. #define GPIO_PA2_PWM4 0x00000804
  5648. #define GPIO_PA2_I2S0RXSD 0x00000809
  5649. #define GPIO_PA3_SSI0FSS 0x00000C01
  5650. #define GPIO_PA3_PWM5 0x00000C04
  5651. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  5652. #define GPIO_PA4_SSI0RX 0x00001001
  5653. #define GPIO_PA4_I2S0TXSCK 0x00001009
  5654. #define GPIO_PA5_SSI0TX 0x00001401
  5655. #define GPIO_PA5_I2S0TXWS 0x00001409
  5656. #define GPIO_PA6_I2C1SCL 0x00001801
  5657. #define GPIO_PA6_CCP1 0x00001802
  5658. #define GPIO_PA6_PWM0 0x00001804
  5659. #define GPIO_PA6_PWM4 0x00001805
  5660. #define GPIO_PA6_U1CTS 0x00001809
  5661. #define GPIO_PA7_I2C1SDA 0x00001C01
  5662. #define GPIO_PA7_CCP4 0x00001C02
  5663. #define GPIO_PA7_PWM1 0x00001C04
  5664. #define GPIO_PA7_PWM5 0x00001C05
  5665. #define GPIO_PA7_CCP3 0x00001C07
  5666. #define GPIO_PA7_U1DCD 0x00001C09
  5667. #define GPIO_PB0_CCP0 0x00010001
  5668. #define GPIO_PB0_PWM2 0x00010002
  5669. #define GPIO_PB0_U1RX 0x00010005
  5670. #define GPIO_PB1_CCP2 0x00010401
  5671. #define GPIO_PB1_PWM3 0x00010402
  5672. #define GPIO_PB1_CCP1 0x00010404
  5673. #define GPIO_PB1_U1TX 0x00010405
  5674. #define GPIO_PB2_I2C0SCL 0x00010801
  5675. #define GPIO_PB2_IDX0 0x00010802
  5676. #define GPIO_PB2_CCP3 0x00010804
  5677. #define GPIO_PB2_CCP0 0x00010805
  5678. #define GPIO_PB3_I2C0SDA 0x00010C01
  5679. #define GPIO_PB3_FAULT0 0x00010C02
  5680. #define GPIO_PB3_FAULT3 0x00010C04
  5681. #define GPIO_PB4_U2RX 0x00011004
  5682. #define GPIO_PB4_IDX0 0x00011006
  5683. #define GPIO_PB4_U1RX 0x00011007
  5684. #define GPIO_PB5_C0O 0x00011401
  5685. #define GPIO_PB5_CCP5 0x00011402
  5686. #define GPIO_PB5_CCP6 0x00011403
  5687. #define GPIO_PB5_CCP0 0x00011404
  5688. #define GPIO_PB5_CCP2 0x00011406
  5689. #define GPIO_PB5_U1TX 0x00011407
  5690. #define GPIO_PB6_CCP1 0x00011801
  5691. #define GPIO_PB6_CCP7 0x00011802
  5692. #define GPIO_PB6_C0O 0x00011803
  5693. #define GPIO_PB6_FAULT1 0x00011804
  5694. #define GPIO_PB6_IDX0 0x00011805
  5695. #define GPIO_PB6_CCP5 0x00011806
  5696. #define GPIO_PB6_I2S0TXSCK 0x00011809
  5697. #define GPIO_PB7_NMI 0x00011C04
  5698. #define GPIO_PC0_TCK 0x00020003
  5699. #define GPIO_PC0_SWCLK 0x00020003
  5700. #define GPIO_PC1_TMS 0x00020403
  5701. #define GPIO_PC1_SWDIO 0x00020403
  5702. #define GPIO_PC2_TDI 0x00020803
  5703. #define GPIO_PC3_SWO 0x00020C03
  5704. #define GPIO_PC3_TDO 0x00020C03
  5705. #define GPIO_PC4_CCP5 0x00021001
  5706. #define GPIO_PC4_PHA0 0x00021002
  5707. #define GPIO_PC4_CCP2 0x00021005
  5708. #define GPIO_PC4_CCP4 0x00021006
  5709. #define GPIO_PC4_CCP1 0x00021009
  5710. #define GPIO_PC5_CCP1 0x00021401
  5711. #define GPIO_PC5_C1O 0x00021402
  5712. #define GPIO_PC5_C0O 0x00021403
  5713. #define GPIO_PC5_FAULT2 0x00021404
  5714. #define GPIO_PC5_CCP3 0x00021405
  5715. #define GPIO_PC6_CCP3 0x00021801
  5716. #define GPIO_PC6_PHB0 0x00021802
  5717. #define GPIO_PC6_U1RX 0x00021805
  5718. #define GPIO_PC6_CCP0 0x00021806
  5719. #define GPIO_PC7_CCP4 0x00021C01
  5720. #define GPIO_PC7_PHB0 0x00021C02
  5721. #define GPIO_PC7_CCP0 0x00021C04
  5722. #define GPIO_PC7_U1TX 0x00021C05
  5723. #define GPIO_PC7_C1O 0x00021C07
  5724. #define GPIO_PD0_PWM0 0x00030001
  5725. #define GPIO_PD0_IDX0 0x00030003
  5726. #define GPIO_PD0_U2RX 0x00030004
  5727. #define GPIO_PD0_U1RX 0x00030005
  5728. #define GPIO_PD0_CCP6 0x00030006
  5729. #define GPIO_PD0_I2S0RXSCK 0x00030008
  5730. #define GPIO_PD0_U1CTS 0x00030009
  5731. #define GPIO_PD1_PWM1 0x00030401
  5732. #define GPIO_PD1_PHA0 0x00030403
  5733. #define GPIO_PD1_U2TX 0x00030404
  5734. #define GPIO_PD1_U1TX 0x00030405
  5735. #define GPIO_PD1_CCP7 0x00030406
  5736. #define GPIO_PD1_I2S0RXWS 0x00030408
  5737. #define GPIO_PD1_U1DCD 0x00030409
  5738. #define GPIO_PD1_CCP2 0x0003040A
  5739. #define GPIO_PD1_PHB1 0x0003040B
  5740. #define GPIO_PD2_U1RX 0x00030801
  5741. #define GPIO_PD2_CCP6 0x00030802
  5742. #define GPIO_PD2_PWM2 0x00030803
  5743. #define GPIO_PD2_CCP5 0x00030804
  5744. #define GPIO_PD3_U1TX 0x00030C01
  5745. #define GPIO_PD3_CCP7 0x00030C02
  5746. #define GPIO_PD3_PWM3 0x00030C03
  5747. #define GPIO_PD3_CCP0 0x00030C04
  5748. #define GPIO_PD4_CCP0 0x00031001
  5749. #define GPIO_PD4_CCP3 0x00031002
  5750. #define GPIO_PD4_I2S0RXSD 0x00031008
  5751. #define GPIO_PD4_U1RI 0x00031009
  5752. #define GPIO_PD5_CCP2 0x00031401
  5753. #define GPIO_PD5_CCP4 0x00031402
  5754. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  5755. #define GPIO_PD5_U2RX 0x00031409
  5756. #define GPIO_PD6_FAULT0 0x00031801
  5757. #define GPIO_PD6_I2S0TXSCK 0x00031808
  5758. #define GPIO_PD6_U2TX 0x00031809
  5759. #define GPIO_PD7_IDX0 0x00031C01
  5760. #define GPIO_PD7_C0O 0x00031C02
  5761. #define GPIO_PD7_CCP1 0x00031C03
  5762. #define GPIO_PD7_I2S0TXWS 0x00031C08
  5763. #define GPIO_PD7_U1DTR 0x00031C09
  5764. #define GPIO_PE0_PWM4 0x00040001
  5765. #define GPIO_PE0_SSI1CLK 0x00040002
  5766. #define GPIO_PE0_CCP3 0x00040003
  5767. #define GPIO_PE1_PWM5 0x00040401
  5768. #define GPIO_PE1_SSI1FSS 0x00040402
  5769. #define GPIO_PE1_FAULT0 0x00040403
  5770. #define GPIO_PE1_CCP2 0x00040404
  5771. #define GPIO_PE1_CCP6 0x00040405
  5772. #define GPIO_PE2_CCP4 0x00040801
  5773. #define GPIO_PE2_SSI1RX 0x00040802
  5774. #define GPIO_PE2_PHB1 0x00040803
  5775. #define GPIO_PE2_PHA0 0x00040804
  5776. #define GPIO_PE2_CCP2 0x00040805
  5777. #define GPIO_PE3_CCP1 0x00040C01
  5778. #define GPIO_PE3_SSI1TX 0x00040C02
  5779. #define GPIO_PE3_PHA1 0x00040C03
  5780. #define GPIO_PE3_PHB0 0x00040C04
  5781. #define GPIO_PE3_CCP7 0x00040C05
  5782. #define GPIO_PE4_CCP3 0x00041001
  5783. #define GPIO_PE4_FAULT0 0x00041004
  5784. #define GPIO_PE4_U2TX 0x00041005
  5785. #define GPIO_PE4_CCP2 0x00041006
  5786. #define GPIO_PE4_I2S0TXWS 0x00041009
  5787. #define GPIO_PE5_CCP5 0x00041401
  5788. #define GPIO_PE5_I2S0TXSD 0x00041409
  5789. #define GPIO_PE6_PWM4 0x00041801
  5790. #define GPIO_PE6_C1O 0x00041802
  5791. #define GPIO_PE6_U1CTS 0x00041809
  5792. #define GPIO_PE7_PWM5 0x00041C01
  5793. #define GPIO_PE7_U1DCD 0x00041C09
  5794. #define GPIO_PF0_PHB0 0x00050002
  5795. #define GPIO_PF0_PWM0 0x00050003
  5796. #define GPIO_PF0_I2S0TXSD 0x00050008
  5797. #define GPIO_PF0_U1DSR 0x00050009
  5798. #define GPIO_PF1_IDX1 0x00050402
  5799. #define GPIO_PF1_PWM1 0x00050403
  5800. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  5801. #define GPIO_PF1_U1RTS 0x00050409
  5802. #define GPIO_PF1_CCP3 0x0005040A
  5803. #define GPIO_PF2_PWM4 0x00050802
  5804. #define GPIO_PF2_PWM2 0x00050804
  5805. #define GPIO_PF2_SSI1CLK 0x00050809
  5806. #define GPIO_PF3_PWM5 0x00050C02
  5807. #define GPIO_PF3_PWM3 0x00050C04
  5808. #define GPIO_PF3_SSI1FSS 0x00050C09
  5809. #define GPIO_PF4_CCP0 0x00051001
  5810. #define GPIO_PF4_C0O 0x00051002
  5811. #define GPIO_PF4_FAULT0 0x00051004
  5812. #define GPIO_PF4_SSI1RX 0x00051009
  5813. #define GPIO_PF5_CCP2 0x00051401
  5814. #define GPIO_PF5_C1O 0x00051402
  5815. #define GPIO_PF5_SSI1TX 0x00051409
  5816. #define GPIO_PF6_CCP1 0x00051801
  5817. #define GPIO_PF6_PHA0 0x00051804
  5818. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  5819. #define GPIO_PF6_U1RTS 0x0005180A
  5820. #define GPIO_PF7_CCP4 0x00051C01
  5821. #define GPIO_PF7_PHB0 0x00051C04
  5822. #define GPIO_PF7_FAULT1 0x00051C09
  5823. #define GPIO_PG0_U2RX 0x00060001
  5824. #define GPIO_PG0_PWM0 0x00060002
  5825. #define GPIO_PG0_I2C1SCL 0x00060003
  5826. #define GPIO_PG0_PWM4 0x00060004
  5827. #define GPIO_PG1_U2TX 0x00060401
  5828. #define GPIO_PG1_PWM1 0x00060402
  5829. #define GPIO_PG1_I2C1SDA 0x00060403
  5830. #define GPIO_PG1_PWM5 0x00060404
  5831. #define GPIO_PG2_PWM0 0x00060801
  5832. #define GPIO_PG2_FAULT0 0x00060804
  5833. #define GPIO_PG2_IDX1 0x00060808
  5834. #define GPIO_PG2_I2S0RXSD 0x00060809
  5835. #define GPIO_PG3_PWM1 0x00060C01
  5836. #define GPIO_PG3_FAULT2 0x00060C04
  5837. #define GPIO_PG3_FAULT0 0x00060C08
  5838. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  5839. #define GPIO_PG4_CCP3 0x00061001
  5840. #define GPIO_PG4_FAULT1 0x00061004
  5841. #define GPIO_PG4_U1RI 0x0006100A
  5842. #define GPIO_PG5_CCP5 0x00061401
  5843. #define GPIO_PG5_IDX0 0x00061404
  5844. #define GPIO_PG5_FAULT1 0x00061405
  5845. #define GPIO_PG5_I2S0RXSCK 0x00061409
  5846. #define GPIO_PG5_U1DTR 0x0006140A
  5847. #define GPIO_PG6_PHA1 0x00061801
  5848. #define GPIO_PG6_FAULT1 0x00061808
  5849. #define GPIO_PG6_I2S0RXWS 0x00061809
  5850. #define GPIO_PG6_U1RI 0x0006180A
  5851. #define GPIO_PG7_PHB1 0x00061C01
  5852. #define GPIO_PG7_CCP5 0x00061C08
  5853. #define GPIO_PH0_CCP6 0x00070001
  5854. #define GPIO_PH0_PWM2 0x00070002
  5855. #define GPIO_PH0_PWM4 0x00070009
  5856. #define GPIO_PH1_CCP7 0x00070401
  5857. #define GPIO_PH1_PWM3 0x00070402
  5858. #define GPIO_PH1_PWM5 0x00070409
  5859. #define GPIO_PH2_IDX1 0x00070801
  5860. #define GPIO_PH2_C1O 0x00070802
  5861. #define GPIO_PH2_FAULT3 0x00070804
  5862. #define GPIO_PH3_PHB0 0x00070C01
  5863. #define GPIO_PH3_FAULT0 0x00070C02
  5864. #define GPIO_PH4_SSI1CLK 0x0007100B
  5865. #define GPIO_PH5_FAULT2 0x0007140A
  5866. #define GPIO_PH5_SSI1FSS 0x0007140B
  5867. #define GPIO_PH6_PWM4 0x0007180A
  5868. #define GPIO_PH6_SSI1RX 0x0007180B
  5869. #define GPIO_PH7_PWM5 0x00071C0A
  5870. #define GPIO_PH7_SSI1TX 0x00071C0B
  5871. #define GPIO_PJ0_PWM0 0x0008000A
  5872. #define GPIO_PJ0_I2C1SCL 0x0008000B
  5873. #define GPIO_PJ1_PWM1 0x0008040A
  5874. #define GPIO_PJ1_I2C1SDA 0x0008040B
  5875. #define GPIO_PJ2_CCP0 0x00080809
  5876. #define GPIO_PJ2_FAULT0 0x0008080A
  5877. #endif // PART_LM3S1651
  5878. //*****************************************************************************
  5879. //
  5880. // LM3S1751 Port/Pin Mapping Definitions
  5881. //
  5882. //*****************************************************************************
  5883. #ifdef PART_LM3S1751
  5884. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  5885. #define C0O_PORT GPIO_PORTC_BASE
  5886. #define C0O_PIN GPIO_PIN_5
  5887. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  5888. #define C0_MINUS_PORT GPIO_PORTB_BASE
  5889. #define C0_MINUS_PIN GPIO_PIN_4
  5890. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  5891. #define C0_PLUS_PORT GPIO_PORTB_BASE
  5892. #define C0_PLUS_PIN GPIO_PIN_6
  5893. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  5894. #define CCP0_PORT GPIO_PORTB_BASE
  5895. #define CCP0_PIN GPIO_PIN_0
  5896. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  5897. #define CCP1_PORT GPIO_PORTA_BASE
  5898. #define CCP1_PIN GPIO_PIN_6
  5899. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  5900. #define CCP2_PORT GPIO_PORTB_BASE
  5901. #define CCP2_PIN GPIO_PIN_1
  5902. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  5903. #define CCP3_PORT GPIO_PORTC_BASE
  5904. #define CCP3_PIN GPIO_PIN_6
  5905. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  5906. #define CCP4_PORT GPIO_PORTA_BASE
  5907. #define CCP4_PIN GPIO_PIN_7
  5908. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  5909. #define CCP5_PORT GPIO_PORTB_BASE
  5910. #define CCP5_PIN GPIO_PIN_5
  5911. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  5912. #define FAULT_PORT GPIO_PORTD_BASE
  5913. #define FAULT_PIN GPIO_PIN_6
  5914. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  5915. #define I2C0SCL_PORT GPIO_PORTB_BASE
  5916. #define I2C0SCL_PIN GPIO_PIN_2
  5917. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  5918. #define I2C0SDA_PORT GPIO_PORTB_BASE
  5919. #define I2C0SDA_PIN GPIO_PIN_3
  5920. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  5921. #define PWM0_PORT GPIO_PORTD_BASE
  5922. #define PWM0_PIN GPIO_PIN_0
  5923. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  5924. #define PWM1_PORT GPIO_PORTD_BASE
  5925. #define PWM1_PIN GPIO_PIN_1
  5926. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  5927. #define PWM2_PORT GPIO_PORTH_BASE
  5928. #define PWM2_PIN GPIO_PIN_0
  5929. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  5930. #define PWM3_PORT GPIO_PORTH_BASE
  5931. #define PWM3_PIN GPIO_PIN_1
  5932. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  5933. #define SSI0CLK_PORT GPIO_PORTA_BASE
  5934. #define SSI0CLK_PIN GPIO_PIN_2
  5935. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  5936. #define SSI0FSS_PORT GPIO_PORTA_BASE
  5937. #define SSI0FSS_PIN GPIO_PIN_3
  5938. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5939. #define SSI0RX_PORT GPIO_PORTA_BASE
  5940. #define SSI0RX_PIN GPIO_PIN_4
  5941. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5942. #define SSI0TX_PORT GPIO_PORTA_BASE
  5943. #define SSI0TX_PIN GPIO_PIN_5
  5944. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  5945. #define SSI1CLK_PORT GPIO_PORTE_BASE
  5946. #define SSI1CLK_PIN GPIO_PIN_0
  5947. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  5948. #define SSI1FSS_PORT GPIO_PORTE_BASE
  5949. #define SSI1FSS_PIN GPIO_PIN_1
  5950. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  5951. #define SSI1RX_PORT GPIO_PORTE_BASE
  5952. #define SSI1RX_PIN GPIO_PIN_2
  5953. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  5954. #define SSI1TX_PORT GPIO_PORTE_BASE
  5955. #define SSI1TX_PIN GPIO_PIN_3
  5956. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  5957. #define SWCLK_PORT GPIO_PORTC_BASE
  5958. #define SWCLK_PIN GPIO_PIN_0
  5959. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  5960. #define SWDIO_PORT GPIO_PORTC_BASE
  5961. #define SWDIO_PIN GPIO_PIN_1
  5962. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  5963. #define SWO_PORT GPIO_PORTC_BASE
  5964. #define SWO_PIN GPIO_PIN_3
  5965. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  5966. #define TCK_PORT GPIO_PORTC_BASE
  5967. #define TCK_PIN GPIO_PIN_0
  5968. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  5969. #define TDI_PORT GPIO_PORTC_BASE
  5970. #define TDI_PIN GPIO_PIN_2
  5971. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  5972. #define TDO_PORT GPIO_PORTC_BASE
  5973. #define TDO_PIN GPIO_PIN_3
  5974. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  5975. #define TMS_PORT GPIO_PORTC_BASE
  5976. #define TMS_PIN GPIO_PIN_1
  5977. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  5978. #define TRST_PORT GPIO_PORTB_BASE
  5979. #define TRST_PIN GPIO_PIN_7
  5980. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  5981. #define U0RX_PORT GPIO_PORTA_BASE
  5982. #define U0RX_PIN GPIO_PIN_0
  5983. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  5984. #define U0TX_PORT GPIO_PORTA_BASE
  5985. #define U0TX_PIN GPIO_PIN_1
  5986. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  5987. #define U1RX_PORT GPIO_PORTD_BASE
  5988. #define U1RX_PIN GPIO_PIN_2
  5989. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  5990. #define U1TX_PORT GPIO_PORTD_BASE
  5991. #define U1TX_PIN GPIO_PIN_3
  5992. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  5993. #define U2RX_PORT GPIO_PORTG_BASE
  5994. #define U2RX_PIN GPIO_PIN_0
  5995. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  5996. #define U2TX_PORT GPIO_PORTG_BASE
  5997. #define U2TX_PIN GPIO_PIN_1
  5998. #endif // PART_LM3S1751
  5999. //*****************************************************************************
  6000. //
  6001. // LM3S1776 Port/Pin Mapping Definitions
  6002. //
  6003. //*****************************************************************************
  6004. #ifdef PART_LM3S1776
  6005. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  6006. #define ADC0_PORT GPIO_PORTE_BASE
  6007. #define ADC0_PIN GPIO_PIN_3
  6008. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  6009. #define ADC1_PORT GPIO_PORTE_BASE
  6010. #define ADC1_PIN GPIO_PIN_2
  6011. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  6012. #define ADC2_PORT GPIO_PORTE_BASE
  6013. #define ADC2_PIN GPIO_PIN_1
  6014. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  6015. #define ADC3_PORT GPIO_PORTE_BASE
  6016. #define ADC3_PIN GPIO_PIN_0
  6017. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  6018. #define ADC4_PORT GPIO_PORTD_BASE
  6019. #define ADC4_PIN GPIO_PIN_3
  6020. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  6021. #define ADC5_PORT GPIO_PORTD_BASE
  6022. #define ADC5_PIN GPIO_PIN_2
  6023. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOC
  6024. #define CCP0_PORT GPIO_PORTC_BASE
  6025. #define CCP0_PIN GPIO_PIN_7
  6026. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  6027. #define CCP2_PORT GPIO_PORTB_BASE
  6028. #define CCP2_PIN GPIO_PIN_5
  6029. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOE
  6030. #define FAULT0_PORT GPIO_PORTE_BASE
  6031. #define FAULT0_PIN GPIO_PIN_4
  6032. #define FAULT1_PERIPH SYSCTL_PERIPH_GPIOB
  6033. #define FAULT1_PORT GPIO_PORTB_BASE
  6034. #define FAULT1_PIN GPIO_PIN_6
  6035. #define FAULT2_PERIPH SYSCTL_PERIPH_GPIOC
  6036. #define FAULT2_PORT GPIO_PORTC_BASE
  6037. #define FAULT2_PIN GPIO_PIN_5
  6038. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  6039. #define I2C0SCL_PORT GPIO_PORTB_BASE
  6040. #define I2C0SCL_PIN GPIO_PIN_2
  6041. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  6042. #define I2C0SDA_PORT GPIO_PORTB_BASE
  6043. #define I2C0SDA_PIN GPIO_PIN_3
  6044. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  6045. #define NMI_PORT GPIO_PORTB_BASE
  6046. #define NMI_PIN GPIO_PIN_7
  6047. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  6048. #define PWM0_PORT GPIO_PORTD_BASE
  6049. #define PWM0_PIN GPIO_PIN_0
  6050. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  6051. #define PWM1_PORT GPIO_PORTD_BASE
  6052. #define PWM1_PIN GPIO_PIN_1
  6053. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  6054. #define PWM2_PORT GPIO_PORTB_BASE
  6055. #define PWM2_PIN GPIO_PIN_0
  6056. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  6057. #define PWM3_PORT GPIO_PORTB_BASE
  6058. #define PWM3_PIN GPIO_PIN_1
  6059. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOA
  6060. #define PWM4_PORT GPIO_PORTA_BASE
  6061. #define PWM4_PIN GPIO_PIN_6
  6062. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOA
  6063. #define PWM5_PORT GPIO_PORTA_BASE
  6064. #define PWM5_PIN GPIO_PIN_7
  6065. #define PWM6_PERIPH SYSCTL_PERIPH_GPIOC
  6066. #define PWM6_PORT GPIO_PORTC_BASE
  6067. #define PWM6_PIN GPIO_PIN_4
  6068. #define PWM7_PERIPH SYSCTL_PERIPH_GPIOC
  6069. #define PWM7_PORT GPIO_PORTC_BASE
  6070. #define PWM7_PIN GPIO_PIN_6
  6071. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  6072. #define SSI0CLK_PORT GPIO_PORTA_BASE
  6073. #define SSI0CLK_PIN GPIO_PIN_2
  6074. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  6075. #define SSI0FSS_PORT GPIO_PORTA_BASE
  6076. #define SSI0FSS_PIN GPIO_PIN_3
  6077. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6078. #define SSI0RX_PORT GPIO_PORTA_BASE
  6079. #define SSI0RX_PIN GPIO_PIN_4
  6080. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6081. #define SSI0TX_PORT GPIO_PORTA_BASE
  6082. #define SSI0TX_PIN GPIO_PIN_5
  6083. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  6084. #define SWCLK_PORT GPIO_PORTC_BASE
  6085. #define SWCLK_PIN GPIO_PIN_0
  6086. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  6087. #define SWDIO_PORT GPIO_PORTC_BASE
  6088. #define SWDIO_PIN GPIO_PIN_1
  6089. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  6090. #define SWO_PORT GPIO_PORTC_BASE
  6091. #define SWO_PIN GPIO_PIN_3
  6092. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  6093. #define TCK_PORT GPIO_PORTC_BASE
  6094. #define TCK_PIN GPIO_PIN_0
  6095. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  6096. #define TDI_PORT GPIO_PORTC_BASE
  6097. #define TDI_PIN GPIO_PIN_2
  6098. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  6099. #define TDO_PORT GPIO_PORTC_BASE
  6100. #define TDO_PIN GPIO_PIN_3
  6101. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  6102. #define TMS_PORT GPIO_PORTC_BASE
  6103. #define TMS_PIN GPIO_PIN_1
  6104. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6105. #define U0RX_PORT GPIO_PORTA_BASE
  6106. #define U0RX_PIN GPIO_PIN_0
  6107. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6108. #define U0TX_PORT GPIO_PORTA_BASE
  6109. #define U0TX_PIN GPIO_PIN_1
  6110. #endif // PART_LM3S1776
  6111. //*****************************************************************************
  6112. //
  6113. // LM3S1811 Port/Pin Mapping Definitions
  6114. //
  6115. //*****************************************************************************
  6116. #ifdef PART_LM3S1811
  6117. #define GPIO_PA0_U0RX 0x00000001
  6118. #define GPIO_PA0_I2C1SCL 0x00000008
  6119. #define GPIO_PA0_U1RX 0x00000009
  6120. #define GPIO_PA1_U0TX 0x00000401
  6121. #define GPIO_PA1_I2C1SDA 0x00000408
  6122. #define GPIO_PA1_U1TX 0x00000409
  6123. #define GPIO_PA2_SSI0CLK 0x00000801
  6124. #define GPIO_PA3_SSI0FSS 0x00000C01
  6125. #define GPIO_PA4_SSI0RX 0x00001001
  6126. #define GPIO_PA5_SSI0TX 0x00001401
  6127. #define GPIO_PA6_I2C1SCL 0x00001801
  6128. #define GPIO_PA6_CCP1 0x00001802
  6129. #define GPIO_PA6_U1CTS 0x00001809
  6130. #define GPIO_PA7_I2C1SDA 0x00001C01
  6131. #define GPIO_PA7_CCP4 0x00001C02
  6132. #define GPIO_PA7_CCP3 0x00001C07
  6133. #define GPIO_PA7_U1DCD 0x00001C09
  6134. #define GPIO_PB0_CCP0 0x00010001
  6135. #define GPIO_PB0_U1RX 0x00010005
  6136. #define GPIO_PB1_CCP2 0x00010401
  6137. #define GPIO_PB1_CCP1 0x00010404
  6138. #define GPIO_PB1_U1TX 0x00010405
  6139. #define GPIO_PB2_I2C0SCL 0x00010801
  6140. #define GPIO_PB2_CCP3 0x00010804
  6141. #define GPIO_PB2_CCP0 0x00010805
  6142. #define GPIO_PB3_I2C0SDA 0x00010C01
  6143. #define GPIO_PB4_U2RX 0x00011004
  6144. #define GPIO_PB4_U1RX 0x00011007
  6145. #define GPIO_PB4_EPI0S23 0x00011008
  6146. #define GPIO_PB5_C0O 0x00011401
  6147. #define GPIO_PB5_CCP5 0x00011402
  6148. #define GPIO_PB5_CCP6 0x00011403
  6149. #define GPIO_PB5_CCP0 0x00011404
  6150. #define GPIO_PB5_CCP2 0x00011406
  6151. #define GPIO_PB5_U1TX 0x00011407
  6152. #define GPIO_PB5_EPI0S22 0x00011408
  6153. #define GPIO_PB6_CCP1 0x00011801
  6154. #define GPIO_PB6_CCP7 0x00011802
  6155. #define GPIO_PB6_C0O 0x00011803
  6156. #define GPIO_PB6_CCP5 0x00011806
  6157. #define GPIO_PB7_NMI 0x00011C04
  6158. #define GPIO_PC0_TCK 0x00020003
  6159. #define GPIO_PC0_SWCLK 0x00020003
  6160. #define GPIO_PC1_TMS 0x00020403
  6161. #define GPIO_PC1_SWDIO 0x00020403
  6162. #define GPIO_PC2_TDI 0x00020803
  6163. #define GPIO_PC3_SWO 0x00020C03
  6164. #define GPIO_PC3_TDO 0x00020C03
  6165. #define GPIO_PC4_CCP5 0x00021001
  6166. #define GPIO_PC4_CCP2 0x00021005
  6167. #define GPIO_PC4_CCP4 0x00021006
  6168. #define GPIO_PC4_EPI0S2 0x00021008
  6169. #define GPIO_PC4_CCP1 0x00021009
  6170. #define GPIO_PC5_CCP1 0x00021401
  6171. #define GPIO_PC5_C1O 0x00021402
  6172. #define GPIO_PC5_C0O 0x00021403
  6173. #define GPIO_PC5_CCP3 0x00021405
  6174. #define GPIO_PC5_EPI0S3 0x00021408
  6175. #define GPIO_PC6_CCP3 0x00021801
  6176. #define GPIO_PC6_U1RX 0x00021805
  6177. #define GPIO_PC6_CCP0 0x00021806
  6178. #define GPIO_PC6_EPI0S4 0x00021808
  6179. #define GPIO_PC7_CCP4 0x00021C01
  6180. #define GPIO_PC7_CCP0 0x00021C04
  6181. #define GPIO_PC7_U1TX 0x00021C05
  6182. #define GPIO_PC7_C1O 0x00021C07
  6183. #define GPIO_PC7_EPI0S5 0x00021C08
  6184. #define GPIO_PD0_U2RX 0x00030004
  6185. #define GPIO_PD0_U1RX 0x00030005
  6186. #define GPIO_PD0_CCP6 0x00030006
  6187. #define GPIO_PD0_U1CTS 0x00030009
  6188. #define GPIO_PD1_U2TX 0x00030404
  6189. #define GPIO_PD1_U1TX 0x00030405
  6190. #define GPIO_PD1_CCP7 0x00030406
  6191. #define GPIO_PD1_U1DCD 0x00030409
  6192. #define GPIO_PD1_CCP2 0x0003040A
  6193. #define GPIO_PD2_U1RX 0x00030801
  6194. #define GPIO_PD2_CCP6 0x00030802
  6195. #define GPIO_PD2_CCP5 0x00030804
  6196. #define GPIO_PD2_EPI0S20 0x00030808
  6197. #define GPIO_PD3_U1TX 0x00030C01
  6198. #define GPIO_PD3_CCP7 0x00030C02
  6199. #define GPIO_PD3_CCP0 0x00030C04
  6200. #define GPIO_PD3_EPI0S21 0x00030C08
  6201. #define GPIO_PD4_CCP0 0x00031001
  6202. #define GPIO_PD4_CCP3 0x00031002
  6203. #define GPIO_PD4_U1RI 0x00031009
  6204. #define GPIO_PD4_EPI0S19 0x0003100A
  6205. #define GPIO_PD5_CCP2 0x00031401
  6206. #define GPIO_PD5_CCP4 0x00031402
  6207. #define GPIO_PD5_U2RX 0x00031409
  6208. #define GPIO_PD5_EPI0S28 0x0003140A
  6209. #define GPIO_PD6_U2TX 0x00031809
  6210. #define GPIO_PD6_EPI0S29 0x0003180A
  6211. #define GPIO_PD7_C0O 0x00031C02
  6212. #define GPIO_PD7_CCP1 0x00031C03
  6213. #define GPIO_PD7_U1DTR 0x00031C09
  6214. #define GPIO_PD7_EPI0S30 0x00031C0A
  6215. #define GPIO_PE0_SSI1CLK 0x00040002
  6216. #define GPIO_PE0_CCP3 0x00040003
  6217. #define GPIO_PE0_EPI0S8 0x00040008
  6218. #define GPIO_PE1_SSI1FSS 0x00040402
  6219. #define GPIO_PE1_CCP2 0x00040404
  6220. #define GPIO_PE1_CCP6 0x00040405
  6221. #define GPIO_PE1_EPI0S9 0x00040408
  6222. #define GPIO_PE2_CCP4 0x00040801
  6223. #define GPIO_PE2_SSI1RX 0x00040802
  6224. #define GPIO_PE2_CCP2 0x00040805
  6225. #define GPIO_PE2_EPI0S24 0x00040808
  6226. #define GPIO_PE3_CCP1 0x00040C01
  6227. #define GPIO_PE3_SSI1TX 0x00040C02
  6228. #define GPIO_PE3_CCP7 0x00040C05
  6229. #define GPIO_PE3_EPI0S25 0x00040C08
  6230. #define GPIO_PE4_CCP3 0x00041001
  6231. #define GPIO_PE4_U2TX 0x00041005
  6232. #define GPIO_PE4_CCP2 0x00041006
  6233. #define GPIO_PE5_CCP5 0x00041401
  6234. #define GPIO_PE6_C1O 0x00041802
  6235. #define GPIO_PE6_U1CTS 0x00041809
  6236. #define GPIO_PE7_U1DCD 0x00041C09
  6237. #define GPIO_PF0_U1DSR 0x00050009
  6238. #define GPIO_PF1_U1RTS 0x00050409
  6239. #define GPIO_PF1_CCP3 0x0005040A
  6240. #define GPIO_PF2_SSI1CLK 0x00050809
  6241. #define GPIO_PF3_SSI1FSS 0x00050C09
  6242. #define GPIO_PF4_CCP0 0x00051001
  6243. #define GPIO_PF4_C0O 0x00051002
  6244. #define GPIO_PF4_EPI0S12 0x00051008
  6245. #define GPIO_PF4_SSI1RX 0x00051009
  6246. #define GPIO_PF5_CCP2 0x00051401
  6247. #define GPIO_PF5_C1O 0x00051402
  6248. #define GPIO_PF5_EPI0S15 0x00051408
  6249. #define GPIO_PF5_SSI1TX 0x00051409
  6250. #define GPIO_PF6_CCP1 0x00051801
  6251. #define GPIO_PF6_U1RTS 0x0005180A
  6252. #define GPIO_PF7_CCP4 0x00051C01
  6253. #define GPIO_PF7_EPI0S12 0x00051C08
  6254. #define GPIO_PG0_U2RX 0x00060001
  6255. #define GPIO_PG0_I2C1SCL 0x00060003
  6256. #define GPIO_PG0_EPI0S13 0x00060008
  6257. #define GPIO_PG1_U2TX 0x00060401
  6258. #define GPIO_PG1_I2C1SDA 0x00060403
  6259. #define GPIO_PG1_EPI0S14 0x00060408
  6260. #define GPIO_PG4_CCP3 0x00061001
  6261. #define GPIO_PG4_EPI0S15 0x00061008
  6262. #define GPIO_PG4_U1RI 0x0006100A
  6263. #define GPIO_PG5_CCP5 0x00061401
  6264. #define GPIO_PG5_U1DTR 0x0006140A
  6265. #define GPIO_PG6_U1RI 0x0006180A
  6266. #define GPIO_PG7_CCP5 0x00061C08
  6267. #define GPIO_PG7_EPI0S31 0x00061C09
  6268. #define GPIO_PH0_CCP6 0x00070001
  6269. #define GPIO_PH0_EPI0S6 0x00070008
  6270. #define GPIO_PH1_CCP7 0x00070401
  6271. #define GPIO_PH1_EPI0S7 0x00070408
  6272. #define GPIO_PH2_C1O 0x00070802
  6273. #define GPIO_PH2_EPI0S1 0x00070808
  6274. #define GPIO_PH3_EPI0S0 0x00070C08
  6275. #define GPIO_PH4_EPI0S10 0x00071008
  6276. #define GPIO_PH4_SSI1CLK 0x0007100B
  6277. #define GPIO_PH5_EPI0S11 0x00071408
  6278. #define GPIO_PH5_SSI1FSS 0x0007140B
  6279. #define GPIO_PH6_EPI0S26 0x00071808
  6280. #define GPIO_PH6_SSI1RX 0x0007180B
  6281. #define GPIO_PH7_EPI0S27 0x00071C08
  6282. #define GPIO_PH7_SSI1TX 0x00071C0B
  6283. #define GPIO_PJ0_EPI0S16 0x00080008
  6284. #define GPIO_PJ0_I2C1SCL 0x0008000B
  6285. #define GPIO_PJ1_EPI0S17 0x00080408
  6286. #define GPIO_PJ1_I2C1SDA 0x0008040B
  6287. #define GPIO_PJ2_EPI0S18 0x00080808
  6288. #define GPIO_PJ2_CCP0 0x00080809
  6289. #endif // PART_LM3S1811
  6290. //*****************************************************************************
  6291. //
  6292. // LM3S1816 Port/Pin Mapping Definitions
  6293. //
  6294. //*****************************************************************************
  6295. #ifdef PART_LM3S1816
  6296. #define GPIO_PA0_U0RX 0x00000001
  6297. #define GPIO_PA0_I2C1SCL 0x00000008
  6298. #define GPIO_PA0_U1RX 0x00000009
  6299. #define GPIO_PA1_U0TX 0x00000401
  6300. #define GPIO_PA1_I2C1SDA 0x00000408
  6301. #define GPIO_PA1_U1TX 0x00000409
  6302. #define GPIO_PA2_SSI0CLK 0x00000801
  6303. #define GPIO_PA3_SSI0FSS 0x00000C01
  6304. #define GPIO_PA4_SSI0RX 0x00001001
  6305. #define GPIO_PA5_SSI0TX 0x00001401
  6306. #define GPIO_PA6_I2C1SCL 0x00001801
  6307. #define GPIO_PA6_CCP1 0x00001802
  6308. #define GPIO_PA7_I2C1SDA 0x00001C01
  6309. #define GPIO_PA7_CCP4 0x00001C02
  6310. #define GPIO_PA7_CCP3 0x00001C07
  6311. #define GPIO_PB0_CCP0 0x00010001
  6312. #define GPIO_PB0_U1RX 0x00010005
  6313. #define GPIO_PB1_CCP2 0x00010401
  6314. #define GPIO_PB1_CCP1 0x00010404
  6315. #define GPIO_PB1_U1TX 0x00010405
  6316. #define GPIO_PB2_I2C0SCL 0x00010801
  6317. #define GPIO_PB2_CCP3 0x00010804
  6318. #define GPIO_PB2_CCP0 0x00010805
  6319. #define GPIO_PB3_I2C0SDA 0x00010C01
  6320. #define GPIO_PB4_U2RX 0x00011004
  6321. #define GPIO_PB4_U1RX 0x00011007
  6322. #define GPIO_PB5_C0O 0x00011401
  6323. #define GPIO_PB5_CCP5 0x00011402
  6324. #define GPIO_PB5_CCP6 0x00011403
  6325. #define GPIO_PB5_CCP0 0x00011404
  6326. #define GPIO_PB5_CCP2 0x00011406
  6327. #define GPIO_PB5_U1TX 0x00011407
  6328. #define GPIO_PB6_CCP1 0x00011801
  6329. #define GPIO_PB6_CCP7 0x00011802
  6330. #define GPIO_PB6_C0O 0x00011803
  6331. #define GPIO_PB6_CCP5 0x00011806
  6332. #define GPIO_PB7_NMI 0x00011C04
  6333. #define GPIO_PC0_TCK 0x00020003
  6334. #define GPIO_PC0_SWCLK 0x00020003
  6335. #define GPIO_PC1_TMS 0x00020403
  6336. #define GPIO_PC1_SWDIO 0x00020403
  6337. #define GPIO_PC2_TDI 0x00020803
  6338. #define GPIO_PC3_SWO 0x00020C03
  6339. #define GPIO_PC3_TDO 0x00020C03
  6340. #define GPIO_PC4_CCP5 0x00021001
  6341. #define GPIO_PC4_CCP2 0x00021005
  6342. #define GPIO_PC4_CCP4 0x00021006
  6343. #define GPIO_PC4_CCP1 0x00021009
  6344. #define GPIO_PC5_CCP1 0x00021401
  6345. #define GPIO_PC5_C1O 0x00021402
  6346. #define GPIO_PC5_C0O 0x00021403
  6347. #define GPIO_PC5_CCP3 0x00021405
  6348. #define GPIO_PC6_CCP3 0x00021801
  6349. #define GPIO_PC6_U1RX 0x00021805
  6350. #define GPIO_PC6_CCP0 0x00021806
  6351. #define GPIO_PC7_CCP4 0x00021C01
  6352. #define GPIO_PC7_CCP0 0x00021C04
  6353. #define GPIO_PC7_U1TX 0x00021C05
  6354. #define GPIO_PC7_C1O 0x00021C07
  6355. #define GPIO_PD0_U2RX 0x00030004
  6356. #define GPIO_PD0_U1RX 0x00030005
  6357. #define GPIO_PD0_CCP6 0x00030006
  6358. #define GPIO_PD1_U2TX 0x00030404
  6359. #define GPIO_PD1_U1TX 0x00030405
  6360. #define GPIO_PD1_CCP7 0x00030406
  6361. #define GPIO_PD1_CCP2 0x0003040A
  6362. #define GPIO_PD2_U1RX 0x00030801
  6363. #define GPIO_PD2_CCP6 0x00030802
  6364. #define GPIO_PD2_CCP5 0x00030804
  6365. #define GPIO_PD3_U1TX 0x00030C01
  6366. #define GPIO_PD3_CCP7 0x00030C02
  6367. #define GPIO_PD3_CCP0 0x00030C04
  6368. #define GPIO_PE0_SSI1CLK 0x00040002
  6369. #define GPIO_PE0_CCP3 0x00040003
  6370. #define GPIO_PE1_SSI1FSS 0x00040402
  6371. #define GPIO_PE1_CCP2 0x00040404
  6372. #define GPIO_PE1_CCP6 0x00040405
  6373. #define GPIO_PE2_CCP4 0x00040801
  6374. #define GPIO_PE2_SSI1RX 0x00040802
  6375. #define GPIO_PE2_CCP2 0x00040805
  6376. #define GPIO_PE3_CCP1 0x00040C01
  6377. #define GPIO_PE3_SSI1TX 0x00040C02
  6378. #define GPIO_PE3_CCP7 0x00040C05
  6379. #define GPIO_PE4_CCP3 0x00041001
  6380. #define GPIO_PE4_U2TX 0x00041005
  6381. #define GPIO_PE4_CCP2 0x00041006
  6382. #endif // PART_LM3S1816
  6383. //*****************************************************************************
  6384. //
  6385. // LM3S1850 Port/Pin Mapping Definitions
  6386. //
  6387. //*****************************************************************************
  6388. #ifdef PART_LM3S1850
  6389. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  6390. #define C0O_PORT GPIO_PORTF_BASE
  6391. #define C0O_PIN GPIO_PIN_4
  6392. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  6393. #define C0_MINUS_PORT GPIO_PORTB_BASE
  6394. #define C0_MINUS_PIN GPIO_PIN_4
  6395. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  6396. #define C0_PLUS_PORT GPIO_PORTB_BASE
  6397. #define C0_PLUS_PIN GPIO_PIN_6
  6398. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  6399. #define C1O_PORT GPIO_PORTE_BASE
  6400. #define C1O_PIN GPIO_PIN_6
  6401. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  6402. #define C1_MINUS_PORT GPIO_PORTB_BASE
  6403. #define C1_MINUS_PIN GPIO_PIN_5
  6404. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  6405. #define C1_PLUS_PORT GPIO_PORTC_BASE
  6406. #define C1_PLUS_PIN GPIO_PIN_5
  6407. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  6408. #define C2_MINUS_PORT GPIO_PORTC_BASE
  6409. #define C2_MINUS_PIN GPIO_PIN_7
  6410. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  6411. #define C2_PLUS_PORT GPIO_PORTC_BASE
  6412. #define C2_PLUS_PIN GPIO_PIN_6
  6413. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  6414. #define CCP0_PORT GPIO_PORTB_BASE
  6415. #define CCP0_PIN GPIO_PIN_0
  6416. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  6417. #define CCP1_PORT GPIO_PORTA_BASE
  6418. #define CCP1_PIN GPIO_PIN_6
  6419. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  6420. #define CCP2_PORT GPIO_PORTB_BASE
  6421. #define CCP2_PIN GPIO_PIN_1
  6422. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  6423. #define CCP3_PORT GPIO_PORTD_BASE
  6424. #define CCP3_PIN GPIO_PIN_4
  6425. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  6426. #define CCP4_PORT GPIO_PORTA_BASE
  6427. #define CCP4_PIN GPIO_PIN_7
  6428. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  6429. #define CCP5_PORT GPIO_PORTC_BASE
  6430. #define CCP5_PIN GPIO_PIN_4
  6431. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  6432. #define FAULT_PORT GPIO_PORTD_BASE
  6433. #define FAULT_PIN GPIO_PIN_6
  6434. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  6435. #define I2C0SCL_PORT GPIO_PORTB_BASE
  6436. #define I2C0SCL_PIN GPIO_PIN_2
  6437. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  6438. #define I2C0SDA_PORT GPIO_PORTB_BASE
  6439. #define I2C0SDA_PIN GPIO_PIN_3
  6440. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  6441. #define IDX0_PORT GPIO_PORTD_BASE
  6442. #define IDX0_PIN GPIO_PIN_7
  6443. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOD
  6444. #define PHA0_PORT GPIO_PORTD_BASE
  6445. #define PHA0_PIN GPIO_PIN_1
  6446. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOF
  6447. #define PHB0_PORT GPIO_PORTF_BASE
  6448. #define PHB0_PIN GPIO_PIN_0
  6449. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  6450. #define PWM0_PORT GPIO_PORTD_BASE
  6451. #define PWM0_PIN GPIO_PIN_0
  6452. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  6453. #define PWM1_PORT GPIO_PORTF_BASE
  6454. #define PWM1_PIN GPIO_PIN_1
  6455. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  6456. #define PWM2_PORT GPIO_PORTH_BASE
  6457. #define PWM2_PIN GPIO_PIN_0
  6458. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  6459. #define PWM3_PORT GPIO_PORTH_BASE
  6460. #define PWM3_PIN GPIO_PIN_1
  6461. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  6462. #define PWM4_PORT GPIO_PORTE_BASE
  6463. #define PWM4_PIN GPIO_PIN_0
  6464. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  6465. #define PWM5_PORT GPIO_PORTE_BASE
  6466. #define PWM5_PIN GPIO_PIN_1
  6467. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  6468. #define SSI0CLK_PORT GPIO_PORTA_BASE
  6469. #define SSI0CLK_PIN GPIO_PIN_2
  6470. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  6471. #define SSI0FSS_PORT GPIO_PORTA_BASE
  6472. #define SSI0FSS_PIN GPIO_PIN_3
  6473. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6474. #define SSI0RX_PORT GPIO_PORTA_BASE
  6475. #define SSI0RX_PIN GPIO_PIN_4
  6476. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6477. #define SSI0TX_PORT GPIO_PORTA_BASE
  6478. #define SSI0TX_PIN GPIO_PIN_5
  6479. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  6480. #define SWCLK_PORT GPIO_PORTC_BASE
  6481. #define SWCLK_PIN GPIO_PIN_0
  6482. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  6483. #define SWDIO_PORT GPIO_PORTC_BASE
  6484. #define SWDIO_PIN GPIO_PIN_1
  6485. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  6486. #define SWO_PORT GPIO_PORTC_BASE
  6487. #define SWO_PIN GPIO_PIN_3
  6488. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  6489. #define TCK_PORT GPIO_PORTC_BASE
  6490. #define TCK_PIN GPIO_PIN_0
  6491. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  6492. #define TDI_PORT GPIO_PORTC_BASE
  6493. #define TDI_PIN GPIO_PIN_2
  6494. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  6495. #define TDO_PORT GPIO_PORTC_BASE
  6496. #define TDO_PIN GPIO_PIN_3
  6497. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  6498. #define TMS_PORT GPIO_PORTC_BASE
  6499. #define TMS_PIN GPIO_PIN_1
  6500. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  6501. #define TRST_PORT GPIO_PORTB_BASE
  6502. #define TRST_PIN GPIO_PIN_7
  6503. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6504. #define U0RX_PORT GPIO_PORTA_BASE
  6505. #define U0RX_PIN GPIO_PIN_0
  6506. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6507. #define U0TX_PORT GPIO_PORTA_BASE
  6508. #define U0TX_PIN GPIO_PIN_1
  6509. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  6510. #define U1RX_PORT GPIO_PORTD_BASE
  6511. #define U1RX_PIN GPIO_PIN_2
  6512. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  6513. #define U1TX_PORT GPIO_PORTD_BASE
  6514. #define U1TX_PIN GPIO_PIN_3
  6515. #endif // PART_LM3S1850
  6516. //*****************************************************************************
  6517. //
  6518. // LM3S1911 Port/Pin Mapping Definitions
  6519. //
  6520. //*****************************************************************************
  6521. #ifdef PART_LM3S1911
  6522. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  6523. #define C0O_PORT GPIO_PORTF_BASE
  6524. #define C0O_PIN GPIO_PIN_4
  6525. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  6526. #define C0_MINUS_PORT GPIO_PORTB_BASE
  6527. #define C0_MINUS_PIN GPIO_PIN_4
  6528. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  6529. #define C0_PLUS_PORT GPIO_PORTB_BASE
  6530. #define C0_PLUS_PIN GPIO_PIN_6
  6531. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  6532. #define C1O_PORT GPIO_PORTE_BASE
  6533. #define C1O_PIN GPIO_PIN_6
  6534. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  6535. #define C1_MINUS_PORT GPIO_PORTB_BASE
  6536. #define C1_MINUS_PIN GPIO_PIN_5
  6537. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  6538. #define C1_PLUS_PORT GPIO_PORTC_BASE
  6539. #define C1_PLUS_PIN GPIO_PIN_5
  6540. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  6541. #define CCP0_PORT GPIO_PORTB_BASE
  6542. #define CCP0_PIN GPIO_PIN_0
  6543. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOD
  6544. #define CCP1_PORT GPIO_PORTD_BASE
  6545. #define CCP1_PIN GPIO_PIN_7
  6546. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  6547. #define CCP2_PORT GPIO_PORTB_BASE
  6548. #define CCP2_PIN GPIO_PIN_1
  6549. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  6550. #define CCP3_PORT GPIO_PORTC_BASE
  6551. #define CCP3_PIN GPIO_PIN_6
  6552. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  6553. #define CCP4_PORT GPIO_PORTC_BASE
  6554. #define CCP4_PIN GPIO_PIN_7
  6555. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  6556. #define CCP5_PORT GPIO_PORTC_BASE
  6557. #define CCP5_PIN GPIO_PIN_4
  6558. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  6559. #define CCP6_PORT GPIO_PORTH_BASE
  6560. #define CCP6_PIN GPIO_PIN_0
  6561. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  6562. #define CCP7_PORT GPIO_PORTH_BASE
  6563. #define CCP7_PIN GPIO_PIN_1
  6564. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  6565. #define I2C0SCL_PORT GPIO_PORTB_BASE
  6566. #define I2C0SCL_PIN GPIO_PIN_2
  6567. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  6568. #define I2C0SDA_PORT GPIO_PORTB_BASE
  6569. #define I2C0SDA_PIN GPIO_PIN_3
  6570. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  6571. #define I2C1SCL_PORT GPIO_PORTA_BASE
  6572. #define I2C1SCL_PIN GPIO_PIN_6
  6573. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  6574. #define I2C1SDA_PORT GPIO_PORTA_BASE
  6575. #define I2C1SDA_PIN GPIO_PIN_7
  6576. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  6577. #define SSI0CLK_PORT GPIO_PORTA_BASE
  6578. #define SSI0CLK_PIN GPIO_PIN_2
  6579. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  6580. #define SSI0FSS_PORT GPIO_PORTA_BASE
  6581. #define SSI0FSS_PIN GPIO_PIN_3
  6582. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6583. #define SSI0RX_PORT GPIO_PORTA_BASE
  6584. #define SSI0RX_PIN GPIO_PIN_4
  6585. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6586. #define SSI0TX_PORT GPIO_PORTA_BASE
  6587. #define SSI0TX_PIN GPIO_PIN_5
  6588. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  6589. #define SSI1CLK_PORT GPIO_PORTE_BASE
  6590. #define SSI1CLK_PIN GPIO_PIN_0
  6591. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  6592. #define SSI1FSS_PORT GPIO_PORTE_BASE
  6593. #define SSI1FSS_PIN GPIO_PIN_1
  6594. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  6595. #define SSI1RX_PORT GPIO_PORTE_BASE
  6596. #define SSI1RX_PIN GPIO_PIN_2
  6597. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  6598. #define SSI1TX_PORT GPIO_PORTE_BASE
  6599. #define SSI1TX_PIN GPIO_PIN_3
  6600. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  6601. #define SWCLK_PORT GPIO_PORTC_BASE
  6602. #define SWCLK_PIN GPIO_PIN_0
  6603. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  6604. #define SWDIO_PORT GPIO_PORTC_BASE
  6605. #define SWDIO_PIN GPIO_PIN_1
  6606. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  6607. #define SWO_PORT GPIO_PORTC_BASE
  6608. #define SWO_PIN GPIO_PIN_3
  6609. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  6610. #define TCK_PORT GPIO_PORTC_BASE
  6611. #define TCK_PIN GPIO_PIN_0
  6612. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  6613. #define TDI_PORT GPIO_PORTC_BASE
  6614. #define TDI_PIN GPIO_PIN_2
  6615. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  6616. #define TDO_PORT GPIO_PORTC_BASE
  6617. #define TDO_PIN GPIO_PIN_3
  6618. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  6619. #define TMS_PORT GPIO_PORTC_BASE
  6620. #define TMS_PIN GPIO_PIN_1
  6621. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  6622. #define TRST_PORT GPIO_PORTB_BASE
  6623. #define TRST_PIN GPIO_PIN_7
  6624. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6625. #define U0RX_PORT GPIO_PORTA_BASE
  6626. #define U0RX_PIN GPIO_PIN_0
  6627. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6628. #define U0TX_PORT GPIO_PORTA_BASE
  6629. #define U0TX_PIN GPIO_PIN_1
  6630. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  6631. #define U1RX_PORT GPIO_PORTD_BASE
  6632. #define U1RX_PIN GPIO_PIN_2
  6633. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  6634. #define U1TX_PORT GPIO_PORTD_BASE
  6635. #define U1TX_PIN GPIO_PIN_3
  6636. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  6637. #define U2RX_PORT GPIO_PORTG_BASE
  6638. #define U2RX_PIN GPIO_PIN_0
  6639. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  6640. #define U2TX_PORT GPIO_PORTG_BASE
  6641. #define U2TX_PIN GPIO_PIN_1
  6642. #endif // PART_LM3S1911
  6643. //*****************************************************************************
  6644. //
  6645. // LM3S1918 Port/Pin Mapping Definitions
  6646. //
  6647. //*****************************************************************************
  6648. #ifdef PART_LM3S1918
  6649. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  6650. #define C0O_PORT GPIO_PORTF_BASE
  6651. #define C0O_PIN GPIO_PIN_4
  6652. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  6653. #define C0_MINUS_PORT GPIO_PORTB_BASE
  6654. #define C0_MINUS_PIN GPIO_PIN_4
  6655. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  6656. #define C0_PLUS_PORT GPIO_PORTB_BASE
  6657. #define C0_PLUS_PIN GPIO_PIN_6
  6658. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  6659. #define C1O_PORT GPIO_PORTF_BASE
  6660. #define C1O_PIN GPIO_PIN_5
  6661. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  6662. #define C1_MINUS_PORT GPIO_PORTB_BASE
  6663. #define C1_MINUS_PIN GPIO_PIN_5
  6664. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  6665. #define C1_PLUS_PORT GPIO_PORTC_BASE
  6666. #define C1_PLUS_PIN GPIO_PIN_5
  6667. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  6668. #define CCP0_PORT GPIO_PORTB_BASE
  6669. #define CCP0_PIN GPIO_PIN_0
  6670. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOF
  6671. #define CCP1_PORT GPIO_PORTF_BASE
  6672. #define CCP1_PIN GPIO_PIN_6
  6673. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  6674. #define CCP2_PORT GPIO_PORTB_BASE
  6675. #define CCP2_PIN GPIO_PIN_1
  6676. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  6677. #define CCP3_PORT GPIO_PORTC_BASE
  6678. #define CCP3_PIN GPIO_PIN_6
  6679. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  6680. #define CCP4_PORT GPIO_PORTC_BASE
  6681. #define CCP4_PIN GPIO_PIN_7
  6682. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  6683. #define CCP5_PORT GPIO_PORTC_BASE
  6684. #define CCP5_PIN GPIO_PIN_4
  6685. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  6686. #define CCP6_PORT GPIO_PORTH_BASE
  6687. #define CCP6_PIN GPIO_PIN_0
  6688. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  6689. #define CCP7_PORT GPIO_PORTH_BASE
  6690. #define CCP7_PIN GPIO_PIN_1
  6691. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  6692. #define I2C0SCL_PORT GPIO_PORTB_BASE
  6693. #define I2C0SCL_PIN GPIO_PIN_2
  6694. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  6695. #define I2C0SDA_PORT GPIO_PORTB_BASE
  6696. #define I2C0SDA_PIN GPIO_PIN_3
  6697. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  6698. #define I2C1SCL_PORT GPIO_PORTA_BASE
  6699. #define I2C1SCL_PIN GPIO_PIN_6
  6700. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  6701. #define I2C1SDA_PORT GPIO_PORTA_BASE
  6702. #define I2C1SDA_PIN GPIO_PIN_7
  6703. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  6704. #define SSI0CLK_PORT GPIO_PORTA_BASE
  6705. #define SSI0CLK_PIN GPIO_PIN_2
  6706. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  6707. #define SSI0FSS_PORT GPIO_PORTA_BASE
  6708. #define SSI0FSS_PIN GPIO_PIN_3
  6709. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6710. #define SSI0RX_PORT GPIO_PORTA_BASE
  6711. #define SSI0RX_PIN GPIO_PIN_4
  6712. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6713. #define SSI0TX_PORT GPIO_PORTA_BASE
  6714. #define SSI0TX_PIN GPIO_PIN_5
  6715. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  6716. #define SSI1CLK_PORT GPIO_PORTE_BASE
  6717. #define SSI1CLK_PIN GPIO_PIN_0
  6718. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  6719. #define SSI1FSS_PORT GPIO_PORTE_BASE
  6720. #define SSI1FSS_PIN GPIO_PIN_1
  6721. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  6722. #define SSI1RX_PORT GPIO_PORTE_BASE
  6723. #define SSI1RX_PIN GPIO_PIN_2
  6724. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  6725. #define SSI1TX_PORT GPIO_PORTE_BASE
  6726. #define SSI1TX_PIN GPIO_PIN_3
  6727. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  6728. #define SWCLK_PORT GPIO_PORTC_BASE
  6729. #define SWCLK_PIN GPIO_PIN_0
  6730. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  6731. #define SWDIO_PORT GPIO_PORTC_BASE
  6732. #define SWDIO_PIN GPIO_PIN_1
  6733. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  6734. #define SWO_PORT GPIO_PORTC_BASE
  6735. #define SWO_PIN GPIO_PIN_3
  6736. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  6737. #define TCK_PORT GPIO_PORTC_BASE
  6738. #define TCK_PIN GPIO_PIN_0
  6739. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  6740. #define TDI_PORT GPIO_PORTC_BASE
  6741. #define TDI_PIN GPIO_PIN_2
  6742. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  6743. #define TDO_PORT GPIO_PORTC_BASE
  6744. #define TDO_PIN GPIO_PIN_3
  6745. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  6746. #define TMS_PORT GPIO_PORTC_BASE
  6747. #define TMS_PIN GPIO_PIN_1
  6748. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  6749. #define TRST_PORT GPIO_PORTB_BASE
  6750. #define TRST_PIN GPIO_PIN_7
  6751. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6752. #define U0RX_PORT GPIO_PORTA_BASE
  6753. #define U0RX_PIN GPIO_PIN_0
  6754. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6755. #define U0TX_PORT GPIO_PORTA_BASE
  6756. #define U0TX_PIN GPIO_PIN_1
  6757. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  6758. #define U1RX_PORT GPIO_PORTD_BASE
  6759. #define U1RX_PIN GPIO_PIN_2
  6760. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  6761. #define U1TX_PORT GPIO_PORTD_BASE
  6762. #define U1TX_PIN GPIO_PIN_3
  6763. #endif // PART_LM3S1918
  6764. //*****************************************************************************
  6765. //
  6766. // LM3S1937 Port/Pin Mapping Definitions
  6767. //
  6768. //*****************************************************************************
  6769. #ifdef PART_LM3S1937
  6770. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  6771. #define C0O_PORT GPIO_PORTB_BASE
  6772. #define C0O_PIN GPIO_PIN_5
  6773. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  6774. #define C0_MINUS_PORT GPIO_PORTB_BASE
  6775. #define C0_MINUS_PIN GPIO_PIN_4
  6776. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  6777. #define C0_PLUS_PORT GPIO_PORTB_BASE
  6778. #define C0_PLUS_PIN GPIO_PIN_6
  6779. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  6780. #define CCP0_PORT GPIO_PORTB_BASE
  6781. #define CCP0_PIN GPIO_PIN_0
  6782. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  6783. #define CCP1_PORT GPIO_PORTA_BASE
  6784. #define CCP1_PIN GPIO_PIN_6
  6785. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  6786. #define CCP2_PORT GPIO_PORTB_BASE
  6787. #define CCP2_PIN GPIO_PIN_1
  6788. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  6789. #define CCP3_PORT GPIO_PORTC_BASE
  6790. #define CCP3_PIN GPIO_PIN_6
  6791. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  6792. #define FAULT_PORT GPIO_PORTD_BASE
  6793. #define FAULT_PIN GPIO_PIN_6
  6794. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  6795. #define I2C0SCL_PORT GPIO_PORTB_BASE
  6796. #define I2C0SCL_PIN GPIO_PIN_2
  6797. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  6798. #define I2C0SDA_PORT GPIO_PORTB_BASE
  6799. #define I2C0SDA_PIN GPIO_PIN_3
  6800. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  6801. #define PWM0_PORT GPIO_PORTD_BASE
  6802. #define PWM0_PIN GPIO_PIN_0
  6803. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  6804. #define PWM1_PORT GPIO_PORTD_BASE
  6805. #define PWM1_PIN GPIO_PIN_1
  6806. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  6807. #define PWM2_PORT GPIO_PORTH_BASE
  6808. #define PWM2_PIN GPIO_PIN_0
  6809. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  6810. #define PWM3_PORT GPIO_PORTH_BASE
  6811. #define PWM3_PIN GPIO_PIN_1
  6812. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  6813. #define PWM4_PORT GPIO_PORTE_BASE
  6814. #define PWM4_PIN GPIO_PIN_0
  6815. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  6816. #define PWM5_PORT GPIO_PORTE_BASE
  6817. #define PWM5_PIN GPIO_PIN_1
  6818. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  6819. #define SSI0CLK_PORT GPIO_PORTA_BASE
  6820. #define SSI0CLK_PIN GPIO_PIN_2
  6821. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  6822. #define SSI0FSS_PORT GPIO_PORTA_BASE
  6823. #define SSI0FSS_PIN GPIO_PIN_3
  6824. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6825. #define SSI0RX_PORT GPIO_PORTA_BASE
  6826. #define SSI0RX_PIN GPIO_PIN_4
  6827. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6828. #define SSI0TX_PORT GPIO_PORTA_BASE
  6829. #define SSI0TX_PIN GPIO_PIN_5
  6830. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  6831. #define SWCLK_PORT GPIO_PORTC_BASE
  6832. #define SWCLK_PIN GPIO_PIN_0
  6833. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  6834. #define SWDIO_PORT GPIO_PORTC_BASE
  6835. #define SWDIO_PIN GPIO_PIN_1
  6836. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  6837. #define SWO_PORT GPIO_PORTC_BASE
  6838. #define SWO_PIN GPIO_PIN_3
  6839. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  6840. #define TCK_PORT GPIO_PORTC_BASE
  6841. #define TCK_PIN GPIO_PIN_0
  6842. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  6843. #define TDI_PORT GPIO_PORTC_BASE
  6844. #define TDI_PIN GPIO_PIN_2
  6845. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  6846. #define TDO_PORT GPIO_PORTC_BASE
  6847. #define TDO_PIN GPIO_PIN_3
  6848. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  6849. #define TMS_PORT GPIO_PORTC_BASE
  6850. #define TMS_PIN GPIO_PIN_1
  6851. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  6852. #define TRST_PORT GPIO_PORTB_BASE
  6853. #define TRST_PIN GPIO_PIN_7
  6854. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6855. #define U0RX_PORT GPIO_PORTA_BASE
  6856. #define U0RX_PIN GPIO_PIN_0
  6857. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6858. #define U0TX_PORT GPIO_PORTA_BASE
  6859. #define U0TX_PIN GPIO_PIN_1
  6860. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  6861. #define U1RX_PORT GPIO_PORTD_BASE
  6862. #define U1RX_PIN GPIO_PIN_2
  6863. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  6864. #define U1TX_PORT GPIO_PORTD_BASE
  6865. #define U1TX_PIN GPIO_PIN_3
  6866. #endif // PART_LM3S1937
  6867. //*****************************************************************************
  6868. //
  6869. // LM3S1958 Port/Pin Mapping Definitions
  6870. //
  6871. //*****************************************************************************
  6872. #ifdef PART_LM3S1958
  6873. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  6874. #define CCP0_PORT GPIO_PORTB_BASE
  6875. #define CCP0_PIN GPIO_PIN_0
  6876. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  6877. #define CCP1_PORT GPIO_PORTB_BASE
  6878. #define CCP1_PIN GPIO_PIN_6
  6879. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  6880. #define CCP2_PORT GPIO_PORTB_BASE
  6881. #define CCP2_PIN GPIO_PIN_1
  6882. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  6883. #define CCP3_PORT GPIO_PORTC_BASE
  6884. #define CCP3_PIN GPIO_PIN_6
  6885. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  6886. #define CCP4_PORT GPIO_PORTC_BASE
  6887. #define CCP4_PIN GPIO_PIN_7
  6888. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  6889. #define CCP5_PORT GPIO_PORTB_BASE
  6890. #define CCP5_PIN GPIO_PIN_5
  6891. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  6892. #define CCP6_PORT GPIO_PORTH_BASE
  6893. #define CCP6_PIN GPIO_PIN_0
  6894. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  6895. #define CCP7_PORT GPIO_PORTH_BASE
  6896. #define CCP7_PIN GPIO_PIN_1
  6897. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  6898. #define I2C0SCL_PORT GPIO_PORTB_BASE
  6899. #define I2C0SCL_PIN GPIO_PIN_2
  6900. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  6901. #define I2C0SDA_PORT GPIO_PORTB_BASE
  6902. #define I2C0SDA_PIN GPIO_PIN_3
  6903. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  6904. #define I2C1SCL_PORT GPIO_PORTA_BASE
  6905. #define I2C1SCL_PIN GPIO_PIN_6
  6906. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  6907. #define I2C1SDA_PORT GPIO_PORTA_BASE
  6908. #define I2C1SDA_PIN GPIO_PIN_7
  6909. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  6910. #define SSI0CLK_PORT GPIO_PORTA_BASE
  6911. #define SSI0CLK_PIN GPIO_PIN_2
  6912. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  6913. #define SSI0FSS_PORT GPIO_PORTA_BASE
  6914. #define SSI0FSS_PIN GPIO_PIN_3
  6915. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6916. #define SSI0RX_PORT GPIO_PORTA_BASE
  6917. #define SSI0RX_PIN GPIO_PIN_4
  6918. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6919. #define SSI0TX_PORT GPIO_PORTA_BASE
  6920. #define SSI0TX_PIN GPIO_PIN_5
  6921. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  6922. #define SSI1CLK_PORT GPIO_PORTE_BASE
  6923. #define SSI1CLK_PIN GPIO_PIN_0
  6924. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  6925. #define SSI1FSS_PORT GPIO_PORTE_BASE
  6926. #define SSI1FSS_PIN GPIO_PIN_1
  6927. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  6928. #define SSI1RX_PORT GPIO_PORTE_BASE
  6929. #define SSI1RX_PIN GPIO_PIN_2
  6930. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  6931. #define SSI1TX_PORT GPIO_PORTE_BASE
  6932. #define SSI1TX_PIN GPIO_PIN_3
  6933. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  6934. #define SWCLK_PORT GPIO_PORTC_BASE
  6935. #define SWCLK_PIN GPIO_PIN_0
  6936. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  6937. #define SWDIO_PORT GPIO_PORTC_BASE
  6938. #define SWDIO_PIN GPIO_PIN_1
  6939. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  6940. #define SWO_PORT GPIO_PORTC_BASE
  6941. #define SWO_PIN GPIO_PIN_3
  6942. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  6943. #define TCK_PORT GPIO_PORTC_BASE
  6944. #define TCK_PIN GPIO_PIN_0
  6945. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  6946. #define TDI_PORT GPIO_PORTC_BASE
  6947. #define TDI_PIN GPIO_PIN_2
  6948. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  6949. #define TDO_PORT GPIO_PORTC_BASE
  6950. #define TDO_PIN GPIO_PIN_3
  6951. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  6952. #define TMS_PORT GPIO_PORTC_BASE
  6953. #define TMS_PIN GPIO_PIN_1
  6954. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  6955. #define TRST_PORT GPIO_PORTB_BASE
  6956. #define TRST_PIN GPIO_PIN_7
  6957. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  6958. #define U0RX_PORT GPIO_PORTA_BASE
  6959. #define U0RX_PIN GPIO_PIN_0
  6960. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  6961. #define U0TX_PORT GPIO_PORTA_BASE
  6962. #define U0TX_PIN GPIO_PIN_1
  6963. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  6964. #define U1RX_PORT GPIO_PORTD_BASE
  6965. #define U1RX_PIN GPIO_PIN_2
  6966. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  6967. #define U1TX_PORT GPIO_PORTD_BASE
  6968. #define U1TX_PIN GPIO_PIN_3
  6969. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  6970. #define U2RX_PORT GPIO_PORTG_BASE
  6971. #define U2RX_PIN GPIO_PIN_0
  6972. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  6973. #define U2TX_PORT GPIO_PORTG_BASE
  6974. #define U2TX_PIN GPIO_PIN_1
  6975. #endif // PART_LM3S1958
  6976. //*****************************************************************************
  6977. //
  6978. // LM3S1960 Port/Pin Mapping Definitions
  6979. //
  6980. //*****************************************************************************
  6981. #ifdef PART_LM3S1960
  6982. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  6983. #define C0O_PORT GPIO_PORTF_BASE
  6984. #define C0O_PIN GPIO_PIN_4
  6985. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  6986. #define C0_MINUS_PORT GPIO_PORTB_BASE
  6987. #define C0_MINUS_PIN GPIO_PIN_4
  6988. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  6989. #define C0_PLUS_PORT GPIO_PORTB_BASE
  6990. #define C0_PLUS_PIN GPIO_PIN_6
  6991. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  6992. #define C1O_PORT GPIO_PORTF_BASE
  6993. #define C1O_PIN GPIO_PIN_5
  6994. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  6995. #define C1_MINUS_PORT GPIO_PORTB_BASE
  6996. #define C1_MINUS_PIN GPIO_PIN_5
  6997. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  6998. #define C1_PLUS_PORT GPIO_PORTC_BASE
  6999. #define C1_PLUS_PIN GPIO_PIN_5
  7000. #define C2O_PERIPH SYSCTL_PERIPH_GPIOF
  7001. #define C2O_PORT GPIO_PORTF_BASE
  7002. #define C2O_PIN GPIO_PIN_6
  7003. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  7004. #define C2_MINUS_PORT GPIO_PORTC_BASE
  7005. #define C2_MINUS_PIN GPIO_PIN_7
  7006. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  7007. #define C2_PLUS_PORT GPIO_PORTC_BASE
  7008. #define C2_PLUS_PIN GPIO_PIN_6
  7009. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  7010. #define CCP0_PORT GPIO_PORTD_BASE
  7011. #define CCP0_PIN GPIO_PIN_4
  7012. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOD
  7013. #define CCP1_PORT GPIO_PORTD_BASE
  7014. #define CCP1_PIN GPIO_PIN_7
  7015. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  7016. #define CCP2_PORT GPIO_PORTD_BASE
  7017. #define CCP2_PIN GPIO_PIN_5
  7018. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  7019. #define CCP3_PORT GPIO_PORTE_BASE
  7020. #define CCP3_PIN GPIO_PIN_4
  7021. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOF
  7022. #define CCP4_PORT GPIO_PORTF_BASE
  7023. #define CCP4_PIN GPIO_PIN_7
  7024. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  7025. #define CCP5_PORT GPIO_PORTC_BASE
  7026. #define CCP5_PIN GPIO_PIN_4
  7027. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  7028. #define CCP6_PORT GPIO_PORTH_BASE
  7029. #define CCP6_PIN GPIO_PIN_0
  7030. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  7031. #define CCP7_PORT GPIO_PORTH_BASE
  7032. #define CCP7_PIN GPIO_PIN_1
  7033. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  7034. #define FAULT_PORT GPIO_PORTD_BASE
  7035. #define FAULT_PIN GPIO_PIN_6
  7036. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  7037. #define I2C0SCL_PORT GPIO_PORTB_BASE
  7038. #define I2C0SCL_PIN GPIO_PIN_2
  7039. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  7040. #define I2C0SDA_PORT GPIO_PORTB_BASE
  7041. #define I2C0SDA_PIN GPIO_PIN_3
  7042. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  7043. #define I2C1SCL_PORT GPIO_PORTA_BASE
  7044. #define I2C1SCL_PIN GPIO_PIN_6
  7045. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  7046. #define I2C1SDA_PORT GPIO_PORTA_BASE
  7047. #define I2C1SDA_PIN GPIO_PIN_7
  7048. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  7049. #define IDX0_PORT GPIO_PORTD_BASE
  7050. #define IDX0_PIN GPIO_PIN_0
  7051. #define IDX1_PERIPH SYSCTL_PERIPH_GPIOH
  7052. #define IDX1_PORT GPIO_PORTH_BASE
  7053. #define IDX1_PIN GPIO_PIN_2
  7054. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOD
  7055. #define PHA0_PORT GPIO_PORTD_BASE
  7056. #define PHA0_PIN GPIO_PIN_1
  7057. #define PHA1_PERIPH SYSCTL_PERIPH_GPIOG
  7058. #define PHA1_PORT GPIO_PORTG_BASE
  7059. #define PHA1_PIN GPIO_PIN_6
  7060. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOH
  7061. #define PHB0_PORT GPIO_PORTH_BASE
  7062. #define PHB0_PIN GPIO_PIN_3
  7063. #define PHB1_PERIPH SYSCTL_PERIPH_GPIOG
  7064. #define PHB1_PORT GPIO_PORTG_BASE
  7065. #define PHB1_PIN GPIO_PIN_7
  7066. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  7067. #define PWM0_PORT GPIO_PORTF_BASE
  7068. #define PWM0_PIN GPIO_PIN_0
  7069. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  7070. #define PWM1_PORT GPIO_PORTF_BASE
  7071. #define PWM1_PIN GPIO_PIN_1
  7072. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  7073. #define PWM2_PORT GPIO_PORTB_BASE
  7074. #define PWM2_PIN GPIO_PIN_0
  7075. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  7076. #define PWM3_PORT GPIO_PORTB_BASE
  7077. #define PWM3_PIN GPIO_PIN_1
  7078. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  7079. #define PWM4_PORT GPIO_PORTE_BASE
  7080. #define PWM4_PIN GPIO_PIN_6
  7081. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  7082. #define PWM5_PORT GPIO_PORTE_BASE
  7083. #define PWM5_PIN GPIO_PIN_7
  7084. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  7085. #define SSI0CLK_PORT GPIO_PORTA_BASE
  7086. #define SSI0CLK_PIN GPIO_PIN_2
  7087. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  7088. #define SSI0FSS_PORT GPIO_PORTA_BASE
  7089. #define SSI0FSS_PIN GPIO_PIN_3
  7090. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  7091. #define SSI0RX_PORT GPIO_PORTA_BASE
  7092. #define SSI0RX_PIN GPIO_PIN_4
  7093. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  7094. #define SSI0TX_PORT GPIO_PORTA_BASE
  7095. #define SSI0TX_PIN GPIO_PIN_5
  7096. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  7097. #define SSI1CLK_PORT GPIO_PORTE_BASE
  7098. #define SSI1CLK_PIN GPIO_PIN_0
  7099. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  7100. #define SSI1FSS_PORT GPIO_PORTE_BASE
  7101. #define SSI1FSS_PIN GPIO_PIN_1
  7102. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  7103. #define SSI1RX_PORT GPIO_PORTE_BASE
  7104. #define SSI1RX_PIN GPIO_PIN_2
  7105. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  7106. #define SSI1TX_PORT GPIO_PORTE_BASE
  7107. #define SSI1TX_PIN GPIO_PIN_3
  7108. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  7109. #define SWCLK_PORT GPIO_PORTC_BASE
  7110. #define SWCLK_PIN GPIO_PIN_0
  7111. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  7112. #define SWDIO_PORT GPIO_PORTC_BASE
  7113. #define SWDIO_PIN GPIO_PIN_1
  7114. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  7115. #define SWO_PORT GPIO_PORTC_BASE
  7116. #define SWO_PIN GPIO_PIN_3
  7117. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  7118. #define TCK_PORT GPIO_PORTC_BASE
  7119. #define TCK_PIN GPIO_PIN_0
  7120. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  7121. #define TDI_PORT GPIO_PORTC_BASE
  7122. #define TDI_PIN GPIO_PIN_2
  7123. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  7124. #define TDO_PORT GPIO_PORTC_BASE
  7125. #define TDO_PIN GPIO_PIN_3
  7126. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  7127. #define TMS_PORT GPIO_PORTC_BASE
  7128. #define TMS_PIN GPIO_PIN_1
  7129. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  7130. #define TRST_PORT GPIO_PORTB_BASE
  7131. #define TRST_PIN GPIO_PIN_7
  7132. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  7133. #define U0RX_PORT GPIO_PORTA_BASE
  7134. #define U0RX_PIN GPIO_PIN_0
  7135. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  7136. #define U0TX_PORT GPIO_PORTA_BASE
  7137. #define U0TX_PIN GPIO_PIN_1
  7138. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  7139. #define U1RX_PORT GPIO_PORTD_BASE
  7140. #define U1RX_PIN GPIO_PIN_2
  7141. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  7142. #define U1TX_PORT GPIO_PORTD_BASE
  7143. #define U1TX_PIN GPIO_PIN_3
  7144. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  7145. #define U2RX_PORT GPIO_PORTG_BASE
  7146. #define U2RX_PIN GPIO_PIN_0
  7147. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  7148. #define U2TX_PORT GPIO_PORTG_BASE
  7149. #define U2TX_PIN GPIO_PIN_1
  7150. #endif // PART_LM3S1960
  7151. //*****************************************************************************
  7152. //
  7153. // LM3S1968 Port/Pin Mapping Definitions
  7154. //
  7155. //*****************************************************************************
  7156. #ifdef PART_LM3S1968
  7157. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  7158. #define C0O_PORT GPIO_PORTF_BASE
  7159. #define C0O_PIN GPIO_PIN_4
  7160. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  7161. #define C0_MINUS_PORT GPIO_PORTB_BASE
  7162. #define C0_MINUS_PIN GPIO_PIN_4
  7163. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  7164. #define C0_PLUS_PORT GPIO_PORTB_BASE
  7165. #define C0_PLUS_PIN GPIO_PIN_6
  7166. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  7167. #define C1_MINUS_PORT GPIO_PORTB_BASE
  7168. #define C1_MINUS_PIN GPIO_PIN_5
  7169. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  7170. #define C1_PLUS_PORT GPIO_PORTC_BASE
  7171. #define C1_PLUS_PIN GPIO_PIN_5
  7172. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  7173. #define C2_MINUS_PORT GPIO_PORTC_BASE
  7174. #define C2_MINUS_PIN GPIO_PIN_7
  7175. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  7176. #define C2_PLUS_PORT GPIO_PORTC_BASE
  7177. #define C2_PLUS_PIN GPIO_PIN_6
  7178. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  7179. #define CCP0_PORT GPIO_PORTB_BASE
  7180. #define CCP0_PIN GPIO_PIN_0
  7181. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOF
  7182. #define CCP1_PORT GPIO_PORTF_BASE
  7183. #define CCP1_PIN GPIO_PIN_6
  7184. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  7185. #define CCP2_PORT GPIO_PORTB_BASE
  7186. #define CCP2_PIN GPIO_PIN_1
  7187. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOG
  7188. #define CCP3_PORT GPIO_PORTG_BASE
  7189. #define CCP3_PIN GPIO_PIN_4
  7190. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOH
  7191. #define FAULT_PORT GPIO_PORTH_BASE
  7192. #define FAULT_PIN GPIO_PIN_3
  7193. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  7194. #define I2C0SCL_PORT GPIO_PORTB_BASE
  7195. #define I2C0SCL_PIN GPIO_PIN_2
  7196. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  7197. #define I2C0SDA_PORT GPIO_PORTB_BASE
  7198. #define I2C0SDA_PIN GPIO_PIN_3
  7199. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  7200. #define I2C1SCL_PORT GPIO_PORTA_BASE
  7201. #define I2C1SCL_PIN GPIO_PIN_6
  7202. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  7203. #define I2C1SDA_PORT GPIO_PORTA_BASE
  7204. #define I2C1SDA_PIN GPIO_PIN_7
  7205. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  7206. #define IDX0_PORT GPIO_PORTD_BASE
  7207. #define IDX0_PIN GPIO_PIN_0
  7208. #define IDX1_PERIPH SYSCTL_PERIPH_GPIOF
  7209. #define IDX1_PORT GPIO_PORTF_BASE
  7210. #define IDX1_PIN GPIO_PIN_1
  7211. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  7212. #define PHA0_PORT GPIO_PORTC_BASE
  7213. #define PHA0_PIN GPIO_PIN_4
  7214. #define PHA1_PERIPH SYSCTL_PERIPH_GPIOG
  7215. #define PHA1_PORT GPIO_PORTG_BASE
  7216. #define PHA1_PIN GPIO_PIN_6
  7217. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOF
  7218. #define PHB0_PORT GPIO_PORTF_BASE
  7219. #define PHB0_PIN GPIO_PIN_0
  7220. #define PHB1_PERIPH SYSCTL_PERIPH_GPIOG
  7221. #define PHB1_PORT GPIO_PORTG_BASE
  7222. #define PHB1_PIN GPIO_PIN_7
  7223. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOG
  7224. #define PWM0_PORT GPIO_PORTG_BASE
  7225. #define PWM0_PIN GPIO_PIN_2
  7226. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  7227. #define PWM1_PORT GPIO_PORTD_BASE
  7228. #define PWM1_PIN GPIO_PIN_1
  7229. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  7230. #define PWM2_PORT GPIO_PORTH_BASE
  7231. #define PWM2_PIN GPIO_PIN_0
  7232. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  7233. #define PWM3_PORT GPIO_PORTH_BASE
  7234. #define PWM3_PIN GPIO_PIN_1
  7235. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOF
  7236. #define PWM4_PORT GPIO_PORTF_BASE
  7237. #define PWM4_PIN GPIO_PIN_2
  7238. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOF
  7239. #define PWM5_PORT GPIO_PORTF_BASE
  7240. #define PWM5_PIN GPIO_PIN_3
  7241. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  7242. #define SSI0CLK_PORT GPIO_PORTA_BASE
  7243. #define SSI0CLK_PIN GPIO_PIN_2
  7244. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  7245. #define SSI0FSS_PORT GPIO_PORTA_BASE
  7246. #define SSI0FSS_PIN GPIO_PIN_3
  7247. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  7248. #define SSI0RX_PORT GPIO_PORTA_BASE
  7249. #define SSI0RX_PIN GPIO_PIN_4
  7250. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  7251. #define SSI0TX_PORT GPIO_PORTA_BASE
  7252. #define SSI0TX_PIN GPIO_PIN_5
  7253. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  7254. #define SSI1CLK_PORT GPIO_PORTE_BASE
  7255. #define SSI1CLK_PIN GPIO_PIN_0
  7256. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  7257. #define SSI1FSS_PORT GPIO_PORTE_BASE
  7258. #define SSI1FSS_PIN GPIO_PIN_1
  7259. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  7260. #define SSI1RX_PORT GPIO_PORTE_BASE
  7261. #define SSI1RX_PIN GPIO_PIN_2
  7262. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  7263. #define SSI1TX_PORT GPIO_PORTE_BASE
  7264. #define SSI1TX_PIN GPIO_PIN_3
  7265. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  7266. #define SWCLK_PORT GPIO_PORTC_BASE
  7267. #define SWCLK_PIN GPIO_PIN_0
  7268. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  7269. #define SWDIO_PORT GPIO_PORTC_BASE
  7270. #define SWDIO_PIN GPIO_PIN_1
  7271. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  7272. #define SWO_PORT GPIO_PORTC_BASE
  7273. #define SWO_PIN GPIO_PIN_3
  7274. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  7275. #define TCK_PORT GPIO_PORTC_BASE
  7276. #define TCK_PIN GPIO_PIN_0
  7277. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  7278. #define TDI_PORT GPIO_PORTC_BASE
  7279. #define TDI_PIN GPIO_PIN_2
  7280. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  7281. #define TDO_PORT GPIO_PORTC_BASE
  7282. #define TDO_PIN GPIO_PIN_3
  7283. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  7284. #define TMS_PORT GPIO_PORTC_BASE
  7285. #define TMS_PIN GPIO_PIN_1
  7286. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  7287. #define TRST_PORT GPIO_PORTB_BASE
  7288. #define TRST_PIN GPIO_PIN_7
  7289. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  7290. #define U0RX_PORT GPIO_PORTA_BASE
  7291. #define U0RX_PIN GPIO_PIN_0
  7292. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  7293. #define U0TX_PORT GPIO_PORTA_BASE
  7294. #define U0TX_PIN GPIO_PIN_1
  7295. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  7296. #define U1RX_PORT GPIO_PORTD_BASE
  7297. #define U1RX_PIN GPIO_PIN_2
  7298. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  7299. #define U1TX_PORT GPIO_PORTD_BASE
  7300. #define U1TX_PIN GPIO_PIN_3
  7301. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  7302. #define U2RX_PORT GPIO_PORTG_BASE
  7303. #define U2RX_PIN GPIO_PIN_0
  7304. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  7305. #define U2TX_PORT GPIO_PORTG_BASE
  7306. #define U2TX_PIN GPIO_PIN_1
  7307. #endif // PART_LM3S1968
  7308. //*****************************************************************************
  7309. //
  7310. // LM3S1B21 Port/Pin Mapping Definitions
  7311. //
  7312. //*****************************************************************************
  7313. #ifdef PART_LM3S1B21
  7314. #define GPIO_PA0_U0RX 0x00000001
  7315. #define GPIO_PA0_I2C1SCL 0x00000008
  7316. #define GPIO_PA0_U1RX 0x00000009
  7317. #define GPIO_PA1_U0TX 0x00000401
  7318. #define GPIO_PA1_I2C1SDA 0x00000408
  7319. #define GPIO_PA1_U1TX 0x00000409
  7320. #define GPIO_PA2_SSI0CLK 0x00000801
  7321. #define GPIO_PA3_SSI0FSS 0x00000C01
  7322. #define GPIO_PA4_SSI0RX 0x00001001
  7323. #define GPIO_PA5_SSI0TX 0x00001401
  7324. #define GPIO_PA6_I2C1SCL 0x00001801
  7325. #define GPIO_PA6_CCP1 0x00001802
  7326. #define GPIO_PA6_U1CTS 0x00001809
  7327. #define GPIO_PA7_I2C1SDA 0x00001C01
  7328. #define GPIO_PA7_CCP4 0x00001C02
  7329. #define GPIO_PA7_CCP3 0x00001C07
  7330. #define GPIO_PA7_U1DCD 0x00001C09
  7331. #define GPIO_PB0_CCP0 0x00010001
  7332. #define GPIO_PB0_U1RX 0x00010005
  7333. #define GPIO_PB1_CCP2 0x00010401
  7334. #define GPIO_PB1_CCP1 0x00010404
  7335. #define GPIO_PB1_U1TX 0x00010405
  7336. #define GPIO_PB2_I2C0SCL 0x00010801
  7337. #define GPIO_PB2_CCP3 0x00010804
  7338. #define GPIO_PB2_CCP0 0x00010805
  7339. #define GPIO_PB3_I2C0SDA 0x00010C01
  7340. #define GPIO_PB4_U2RX 0x00011004
  7341. #define GPIO_PB4_U1RX 0x00011007
  7342. #define GPIO_PB4_EPI0S23 0x00011008
  7343. #define GPIO_PB5_C0O 0x00011401
  7344. #define GPIO_PB5_CCP5 0x00011402
  7345. #define GPIO_PB5_CCP6 0x00011403
  7346. #define GPIO_PB5_CCP0 0x00011404
  7347. #define GPIO_PB5_CCP2 0x00011406
  7348. #define GPIO_PB5_U1TX 0x00011407
  7349. #define GPIO_PB5_EPI0S22 0x00011408
  7350. #define GPIO_PB6_CCP1 0x00011801
  7351. #define GPIO_PB6_CCP7 0x00011802
  7352. #define GPIO_PB6_C0O 0x00011803
  7353. #define GPIO_PB6_CCP5 0x00011806
  7354. #define GPIO_PB7_NMI 0x00011C04
  7355. #define GPIO_PC0_TCK 0x00020003
  7356. #define GPIO_PC0_SWCLK 0x00020003
  7357. #define GPIO_PC1_TMS 0x00020403
  7358. #define GPIO_PC1_SWDIO 0x00020403
  7359. #define GPIO_PC2_TDI 0x00020803
  7360. #define GPIO_PC3_SWO 0x00020C03
  7361. #define GPIO_PC3_TDO 0x00020C03
  7362. #define GPIO_PC4_CCP5 0x00021001
  7363. #define GPIO_PC4_CCP2 0x00021005
  7364. #define GPIO_PC4_CCP4 0x00021006
  7365. #define GPIO_PC4_EPI0S2 0x00021008
  7366. #define GPIO_PC4_CCP1 0x00021009
  7367. #define GPIO_PC5_CCP1 0x00021401
  7368. #define GPIO_PC5_C1O 0x00021402
  7369. #define GPIO_PC5_C0O 0x00021403
  7370. #define GPIO_PC5_CCP3 0x00021405
  7371. #define GPIO_PC5_EPI0S3 0x00021408
  7372. #define GPIO_PC6_CCP3 0x00021801
  7373. #define GPIO_PC6_U1RX 0x00021805
  7374. #define GPIO_PC6_CCP0 0x00021806
  7375. #define GPIO_PC6_EPI0S4 0x00021808
  7376. #define GPIO_PC7_CCP4 0x00021C01
  7377. #define GPIO_PC7_CCP0 0x00021C04
  7378. #define GPIO_PC7_U1TX 0x00021C05
  7379. #define GPIO_PC7_C1O 0x00021C07
  7380. #define GPIO_PC7_EPI0S5 0x00021C08
  7381. #define GPIO_PD0_U2RX 0x00030004
  7382. #define GPIO_PD0_U1RX 0x00030005
  7383. #define GPIO_PD0_CCP6 0x00030006
  7384. #define GPIO_PD0_U1CTS 0x00030009
  7385. #define GPIO_PD1_U2TX 0x00030404
  7386. #define GPIO_PD1_U1TX 0x00030405
  7387. #define GPIO_PD1_CCP7 0x00030406
  7388. #define GPIO_PD1_U1DCD 0x00030409
  7389. #define GPIO_PD1_CCP2 0x0003040A
  7390. #define GPIO_PD2_U1RX 0x00030801
  7391. #define GPIO_PD2_CCP6 0x00030802
  7392. #define GPIO_PD2_CCP5 0x00030804
  7393. #define GPIO_PD2_EPI0S20 0x00030808
  7394. #define GPIO_PD3_U1TX 0x00030C01
  7395. #define GPIO_PD3_CCP7 0x00030C02
  7396. #define GPIO_PD3_CCP0 0x00030C04
  7397. #define GPIO_PD3_EPI0S21 0x00030C08
  7398. #define GPIO_PD4_CCP0 0x00031001
  7399. #define GPIO_PD4_CCP3 0x00031002
  7400. #define GPIO_PD4_U1RI 0x00031009
  7401. #define GPIO_PD4_EPI0S19 0x0003100A
  7402. #define GPIO_PD5_CCP2 0x00031401
  7403. #define GPIO_PD5_CCP4 0x00031402
  7404. #define GPIO_PD5_U2RX 0x00031409
  7405. #define GPIO_PD5_EPI0S28 0x0003140A
  7406. #define GPIO_PD6_U2TX 0x00031809
  7407. #define GPIO_PD6_EPI0S29 0x0003180A
  7408. #define GPIO_PD7_C0O 0x00031C02
  7409. #define GPIO_PD7_CCP1 0x00031C03
  7410. #define GPIO_PD7_U1DTR 0x00031C09
  7411. #define GPIO_PD7_EPI0S30 0x00031C0A
  7412. #define GPIO_PE0_SSI1CLK 0x00040002
  7413. #define GPIO_PE0_CCP3 0x00040003
  7414. #define GPIO_PE0_EPI0S8 0x00040008
  7415. #define GPIO_PE1_SSI1FSS 0x00040402
  7416. #define GPIO_PE1_CCP2 0x00040404
  7417. #define GPIO_PE1_CCP6 0x00040405
  7418. #define GPIO_PE1_EPI0S9 0x00040408
  7419. #define GPIO_PE2_CCP4 0x00040801
  7420. #define GPIO_PE2_SSI1RX 0x00040802
  7421. #define GPIO_PE2_CCP2 0x00040805
  7422. #define GPIO_PE2_EPI0S24 0x00040808
  7423. #define GPIO_PE3_CCP1 0x00040C01
  7424. #define GPIO_PE3_SSI1TX 0x00040C02
  7425. #define GPIO_PE3_CCP7 0x00040C05
  7426. #define GPIO_PE3_EPI0S25 0x00040C08
  7427. #define GPIO_PE4_CCP3 0x00041001
  7428. #define GPIO_PE4_U2TX 0x00041005
  7429. #define GPIO_PE4_CCP2 0x00041006
  7430. #define GPIO_PE5_CCP5 0x00041401
  7431. #define GPIO_PE6_C1O 0x00041802
  7432. #define GPIO_PE6_U1CTS 0x00041809
  7433. #define GPIO_PE7_U1DCD 0x00041C09
  7434. #define GPIO_PF0_U1DSR 0x00050009
  7435. #define GPIO_PF1_U1RTS 0x00050409
  7436. #define GPIO_PF1_CCP3 0x0005040A
  7437. #define GPIO_PF2_SSI1CLK 0x00050809
  7438. #define GPIO_PF3_SSI1FSS 0x00050C09
  7439. #define GPIO_PF4_CCP0 0x00051001
  7440. #define GPIO_PF4_C0O 0x00051002
  7441. #define GPIO_PF4_EPI0S12 0x00051008
  7442. #define GPIO_PF4_SSI1RX 0x00051009
  7443. #define GPIO_PF5_CCP2 0x00051401
  7444. #define GPIO_PF5_C1O 0x00051402
  7445. #define GPIO_PF5_EPI0S15 0x00051408
  7446. #define GPIO_PF5_SSI1TX 0x00051409
  7447. #define GPIO_PF6_CCP1 0x00051801
  7448. #define GPIO_PF6_U1RTS 0x0005180A
  7449. #define GPIO_PF7_CCP4 0x00051C01
  7450. #define GPIO_PF7_EPI0S12 0x00051C08
  7451. #define GPIO_PG0_U2RX 0x00060001
  7452. #define GPIO_PG0_I2C1SCL 0x00060003
  7453. #define GPIO_PG0_EPI0S13 0x00060008
  7454. #define GPIO_PG1_U2TX 0x00060401
  7455. #define GPIO_PG1_I2C1SDA 0x00060403
  7456. #define GPIO_PG1_EPI0S14 0x00060408
  7457. #define GPIO_PG4_CCP3 0x00061001
  7458. #define GPIO_PG4_EPI0S15 0x00061008
  7459. #define GPIO_PG4_U1RI 0x0006100A
  7460. #define GPIO_PG5_CCP5 0x00061401
  7461. #define GPIO_PG5_U1DTR 0x0006140A
  7462. #define GPIO_PG6_U1RI 0x0006180A
  7463. #define GPIO_PG7_CCP5 0x00061C08
  7464. #define GPIO_PG7_EPI0S31 0x00061C09
  7465. #define GPIO_PH0_CCP6 0x00070001
  7466. #define GPIO_PH0_EPI0S6 0x00070008
  7467. #define GPIO_PH1_CCP7 0x00070401
  7468. #define GPIO_PH1_EPI0S7 0x00070408
  7469. #define GPIO_PH2_C1O 0x00070802
  7470. #define GPIO_PH2_EPI0S1 0x00070808
  7471. #define GPIO_PH3_EPI0S0 0x00070C08
  7472. #define GPIO_PH4_EPI0S10 0x00071008
  7473. #define GPIO_PH4_SSI1CLK 0x0007100B
  7474. #define GPIO_PH5_EPI0S11 0x00071408
  7475. #define GPIO_PH5_SSI1FSS 0x0007140B
  7476. #define GPIO_PH6_EPI0S26 0x00071808
  7477. #define GPIO_PH6_SSI1RX 0x0007180B
  7478. #define GPIO_PH7_EPI0S27 0x00071C08
  7479. #define GPIO_PH7_SSI1TX 0x00071C0B
  7480. #define GPIO_PJ0_EPI0S16 0x00080008
  7481. #define GPIO_PJ0_I2C1SCL 0x0008000B
  7482. #define GPIO_PJ1_EPI0S17 0x00080408
  7483. #define GPIO_PJ1_I2C1SDA 0x0008040B
  7484. #define GPIO_PJ2_EPI0S18 0x00080808
  7485. #define GPIO_PJ2_CCP0 0x00080809
  7486. #endif // PART_LM3S1B21
  7487. //*****************************************************************************
  7488. //
  7489. // LM3S1C21 Port/Pin Mapping Definitions
  7490. //
  7491. //*****************************************************************************
  7492. #ifdef PART_LM3S1C21
  7493. #define GPIO_PA0_U0RX 0x00000001
  7494. #define GPIO_PA0_I2C1SCL 0x00000008
  7495. #define GPIO_PA0_U1RX 0x00000009
  7496. #define GPIO_PA1_U0TX 0x00000401
  7497. #define GPIO_PA1_I2C1SDA 0x00000408
  7498. #define GPIO_PA1_U1TX 0x00000409
  7499. #define GPIO_PA2_SSI0CLK 0x00000801
  7500. #define GPIO_PA3_SSI0FSS 0x00000C01
  7501. #define GPIO_PA4_SSI0RX 0x00001001
  7502. #define GPIO_PA5_SSI0TX 0x00001401
  7503. #define GPIO_PA6_I2C1SCL 0x00001801
  7504. #define GPIO_PA6_CCP1 0x00001802
  7505. #define GPIO_PA6_U1CTS 0x00001809
  7506. #define GPIO_PA7_I2C1SDA 0x00001C01
  7507. #define GPIO_PA7_CCP4 0x00001C02
  7508. #define GPIO_PA7_CCP3 0x00001C07
  7509. #define GPIO_PA7_U1DCD 0x00001C09
  7510. #define GPIO_PB0_CCP0 0x00010001
  7511. #define GPIO_PB0_U1RX 0x00010005
  7512. #define GPIO_PB1_CCP2 0x00010401
  7513. #define GPIO_PB1_CCP1 0x00010404
  7514. #define GPIO_PB1_U1TX 0x00010405
  7515. #define GPIO_PB2_I2C0SCL 0x00010801
  7516. #define GPIO_PB2_CCP3 0x00010804
  7517. #define GPIO_PB2_CCP0 0x00010805
  7518. #define GPIO_PB3_I2C0SDA 0x00010C01
  7519. #define GPIO_PB4_U2RX 0x00011004
  7520. #define GPIO_PB4_U1RX 0x00011007
  7521. #define GPIO_PB4_EPI0S23 0x00011008
  7522. #define GPIO_PB5_C0O 0x00011401
  7523. #define GPIO_PB5_CCP5 0x00011402
  7524. #define GPIO_PB5_CCP6 0x00011403
  7525. #define GPIO_PB5_CCP0 0x00011404
  7526. #define GPIO_PB5_CCP2 0x00011406
  7527. #define GPIO_PB5_U1TX 0x00011407
  7528. #define GPIO_PB5_EPI0S22 0x00011408
  7529. #define GPIO_PB6_CCP1 0x00011801
  7530. #define GPIO_PB6_CCP7 0x00011802
  7531. #define GPIO_PB6_C0O 0x00011803
  7532. #define GPIO_PB6_CCP5 0x00011806
  7533. #define GPIO_PB7_NMI 0x00011C04
  7534. #define GPIO_PC0_TCK 0x00020003
  7535. #define GPIO_PC0_SWCLK 0x00020003
  7536. #define GPIO_PC1_TMS 0x00020403
  7537. #define GPIO_PC1_SWDIO 0x00020403
  7538. #define GPIO_PC2_TDI 0x00020803
  7539. #define GPIO_PC3_SWO 0x00020C03
  7540. #define GPIO_PC3_TDO 0x00020C03
  7541. #define GPIO_PC4_CCP5 0x00021001
  7542. #define GPIO_PC4_CCP2 0x00021005
  7543. #define GPIO_PC4_CCP4 0x00021006
  7544. #define GPIO_PC4_EPI0S2 0x00021008
  7545. #define GPIO_PC4_CCP1 0x00021009
  7546. #define GPIO_PC5_CCP1 0x00021401
  7547. #define GPIO_PC5_C1O 0x00021402
  7548. #define GPIO_PC5_C0O 0x00021403
  7549. #define GPIO_PC5_CCP3 0x00021405
  7550. #define GPIO_PC5_EPI0S3 0x00021408
  7551. #define GPIO_PC6_CCP3 0x00021801
  7552. #define GPIO_PC6_U1RX 0x00021805
  7553. #define GPIO_PC6_CCP0 0x00021806
  7554. #define GPIO_PC6_EPI0S4 0x00021808
  7555. #define GPIO_PC7_CCP4 0x00021C01
  7556. #define GPIO_PC7_CCP0 0x00021C04
  7557. #define GPIO_PC7_U1TX 0x00021C05
  7558. #define GPIO_PC7_C1O 0x00021C07
  7559. #define GPIO_PC7_EPI0S5 0x00021C08
  7560. #define GPIO_PD0_U2RX 0x00030004
  7561. #define GPIO_PD0_U1RX 0x00030005
  7562. #define GPIO_PD0_CCP6 0x00030006
  7563. #define GPIO_PD0_U1CTS 0x00030009
  7564. #define GPIO_PD1_U2TX 0x00030404
  7565. #define GPIO_PD1_U1TX 0x00030405
  7566. #define GPIO_PD1_CCP7 0x00030406
  7567. #define GPIO_PD1_U1DCD 0x00030409
  7568. #define GPIO_PD1_CCP2 0x0003040A
  7569. #define GPIO_PD2_U1RX 0x00030801
  7570. #define GPIO_PD2_CCP6 0x00030802
  7571. #define GPIO_PD2_CCP5 0x00030804
  7572. #define GPIO_PD2_EPI0S20 0x00030808
  7573. #define GPIO_PD3_U1TX 0x00030C01
  7574. #define GPIO_PD3_CCP7 0x00030C02
  7575. #define GPIO_PD3_CCP0 0x00030C04
  7576. #define GPIO_PD3_EPI0S21 0x00030C08
  7577. #define GPIO_PD4_CCP0 0x00031001
  7578. #define GPIO_PD4_CCP3 0x00031002
  7579. #define GPIO_PD4_U1RI 0x00031009
  7580. #define GPIO_PD4_EPI0S19 0x0003100A
  7581. #define GPIO_PD5_CCP2 0x00031401
  7582. #define GPIO_PD5_CCP4 0x00031402
  7583. #define GPIO_PD5_U2RX 0x00031409
  7584. #define GPIO_PD5_EPI0S28 0x0003140A
  7585. #define GPIO_PD6_U2TX 0x00031809
  7586. #define GPIO_PD6_EPI0S29 0x0003180A
  7587. #define GPIO_PD7_C0O 0x00031C02
  7588. #define GPIO_PD7_CCP1 0x00031C03
  7589. #define GPIO_PD7_U1DTR 0x00031C09
  7590. #define GPIO_PD7_EPI0S30 0x00031C0A
  7591. #define GPIO_PE0_SSI1CLK 0x00040002
  7592. #define GPIO_PE0_CCP3 0x00040003
  7593. #define GPIO_PE0_EPI0S8 0x00040008
  7594. #define GPIO_PE1_SSI1FSS 0x00040402
  7595. #define GPIO_PE1_CCP2 0x00040404
  7596. #define GPIO_PE1_CCP6 0x00040405
  7597. #define GPIO_PE1_EPI0S9 0x00040408
  7598. #define GPIO_PE2_CCP4 0x00040801
  7599. #define GPIO_PE2_SSI1RX 0x00040802
  7600. #define GPIO_PE2_CCP2 0x00040805
  7601. #define GPIO_PE2_EPI0S24 0x00040808
  7602. #define GPIO_PE3_CCP1 0x00040C01
  7603. #define GPIO_PE3_SSI1TX 0x00040C02
  7604. #define GPIO_PE3_CCP7 0x00040C05
  7605. #define GPIO_PE3_EPI0S25 0x00040C08
  7606. #define GPIO_PE4_CCP3 0x00041001
  7607. #define GPIO_PE4_U2TX 0x00041005
  7608. #define GPIO_PE4_CCP2 0x00041006
  7609. #define GPIO_PE5_CCP5 0x00041401
  7610. #define GPIO_PE6_C1O 0x00041802
  7611. #define GPIO_PE6_U1CTS 0x00041809
  7612. #define GPIO_PE7_U1DCD 0x00041C09
  7613. #define GPIO_PF0_U1DSR 0x00050009
  7614. #define GPIO_PF1_U1RTS 0x00050409
  7615. #define GPIO_PF1_CCP3 0x0005040A
  7616. #define GPIO_PF2_SSI1CLK 0x00050809
  7617. #define GPIO_PF3_SSI1FSS 0x00050C09
  7618. #define GPIO_PF4_CCP0 0x00051001
  7619. #define GPIO_PF4_C0O 0x00051002
  7620. #define GPIO_PF4_EPI0S12 0x00051008
  7621. #define GPIO_PF4_SSI1RX 0x00051009
  7622. #define GPIO_PF5_CCP2 0x00051401
  7623. #define GPIO_PF5_C1O 0x00051402
  7624. #define GPIO_PF5_EPI0S15 0x00051408
  7625. #define GPIO_PF5_SSI1TX 0x00051409
  7626. #define GPIO_PF6_CCP1 0x00051801
  7627. #define GPIO_PF6_U1RTS 0x0005180A
  7628. #define GPIO_PF7_CCP4 0x00051C01
  7629. #define GPIO_PF7_EPI0S12 0x00051C08
  7630. #define GPIO_PG0_U2RX 0x00060001
  7631. #define GPIO_PG0_I2C1SCL 0x00060003
  7632. #define GPIO_PG0_EPI0S13 0x00060008
  7633. #define GPIO_PG1_U2TX 0x00060401
  7634. #define GPIO_PG1_I2C1SDA 0x00060403
  7635. #define GPIO_PG1_EPI0S14 0x00060408
  7636. #define GPIO_PG4_CCP3 0x00061001
  7637. #define GPIO_PG4_EPI0S15 0x00061008
  7638. #define GPIO_PG4_U1RI 0x0006100A
  7639. #define GPIO_PG5_CCP5 0x00061401
  7640. #define GPIO_PG5_U1DTR 0x0006140A
  7641. #define GPIO_PG6_U1RI 0x0006180A
  7642. #define GPIO_PG7_CCP5 0x00061C08
  7643. #define GPIO_PG7_EPI0S31 0x00061C09
  7644. #define GPIO_PH0_CCP6 0x00070001
  7645. #define GPIO_PH0_EPI0S6 0x00070008
  7646. #define GPIO_PH1_CCP7 0x00070401
  7647. #define GPIO_PH1_EPI0S7 0x00070408
  7648. #define GPIO_PH2_C1O 0x00070802
  7649. #define GPIO_PH2_EPI0S1 0x00070808
  7650. #define GPIO_PH3_EPI0S0 0x00070C08
  7651. #define GPIO_PH4_EPI0S10 0x00071008
  7652. #define GPIO_PH4_SSI1CLK 0x0007100B
  7653. #define GPIO_PH5_EPI0S11 0x00071408
  7654. #define GPIO_PH5_SSI1FSS 0x0007140B
  7655. #define GPIO_PH6_EPI0S26 0x00071808
  7656. #define GPIO_PH6_SSI1RX 0x0007180B
  7657. #define GPIO_PH7_EPI0S27 0x00071C08
  7658. #define GPIO_PH7_SSI1TX 0x00071C0B
  7659. #define GPIO_PJ0_EPI0S16 0x00080008
  7660. #define GPIO_PJ0_I2C1SCL 0x0008000B
  7661. #define GPIO_PJ1_EPI0S17 0x00080408
  7662. #define GPIO_PJ1_I2C1SDA 0x0008040B
  7663. #define GPIO_PJ2_EPI0S18 0x00080808
  7664. #define GPIO_PJ2_CCP0 0x00080809
  7665. #endif // PART_LM3S1C21
  7666. //*****************************************************************************
  7667. //
  7668. // LM3S1C26 Port/Pin Mapping Definitions
  7669. //
  7670. //*****************************************************************************
  7671. #ifdef PART_LM3S1C26
  7672. #define GPIO_PA0_U0RX 0x00000001
  7673. #define GPIO_PA0_I2C1SCL 0x00000008
  7674. #define GPIO_PA0_U1RX 0x00000009
  7675. #define GPIO_PA1_U0TX 0x00000401
  7676. #define GPIO_PA1_I2C1SDA 0x00000408
  7677. #define GPIO_PA1_U1TX 0x00000409
  7678. #define GPIO_PA2_SSI0CLK 0x00000801
  7679. #define GPIO_PA3_SSI0FSS 0x00000C01
  7680. #define GPIO_PA4_SSI0RX 0x00001001
  7681. #define GPIO_PA5_SSI0TX 0x00001401
  7682. #define GPIO_PA6_I2C1SCL 0x00001801
  7683. #define GPIO_PA6_CCP1 0x00001802
  7684. #define GPIO_PA7_I2C1SDA 0x00001C01
  7685. #define GPIO_PA7_CCP4 0x00001C02
  7686. #define GPIO_PA7_CCP3 0x00001C07
  7687. #define GPIO_PB0_CCP0 0x00010001
  7688. #define GPIO_PB0_U1RX 0x00010005
  7689. #define GPIO_PB1_CCP2 0x00010401
  7690. #define GPIO_PB1_CCP1 0x00010404
  7691. #define GPIO_PB1_U1TX 0x00010405
  7692. #define GPIO_PB2_I2C0SCL 0x00010801
  7693. #define GPIO_PB2_CCP3 0x00010804
  7694. #define GPIO_PB2_CCP0 0x00010805
  7695. #define GPIO_PB3_I2C0SDA 0x00010C01
  7696. #define GPIO_PB4_U2RX 0x00011004
  7697. #define GPIO_PB4_U1RX 0x00011007
  7698. #define GPIO_PB5_C0O 0x00011401
  7699. #define GPIO_PB5_CCP5 0x00011402
  7700. #define GPIO_PB5_CCP6 0x00011403
  7701. #define GPIO_PB5_CCP0 0x00011404
  7702. #define GPIO_PB5_CCP2 0x00011406
  7703. #define GPIO_PB5_U1TX 0x00011407
  7704. #define GPIO_PB6_CCP1 0x00011801
  7705. #define GPIO_PB6_CCP7 0x00011802
  7706. #define GPIO_PB6_C0O 0x00011803
  7707. #define GPIO_PB6_CCP5 0x00011806
  7708. #define GPIO_PB7_NMI 0x00011C04
  7709. #define GPIO_PC0_TCK 0x00020003
  7710. #define GPIO_PC0_SWCLK 0x00020003
  7711. #define GPIO_PC1_TMS 0x00020403
  7712. #define GPIO_PC1_SWDIO 0x00020403
  7713. #define GPIO_PC2_TDI 0x00020803
  7714. #define GPIO_PC3_SWO 0x00020C03
  7715. #define GPIO_PC3_TDO 0x00020C03
  7716. #define GPIO_PC4_CCP5 0x00021001
  7717. #define GPIO_PC4_CCP2 0x00021005
  7718. #define GPIO_PC4_CCP4 0x00021006
  7719. #define GPIO_PC4_CCP1 0x00021009
  7720. #define GPIO_PC5_CCP1 0x00021401
  7721. #define GPIO_PC5_C1O 0x00021402
  7722. #define GPIO_PC5_C0O 0x00021403
  7723. #define GPIO_PC5_CCP3 0x00021405
  7724. #define GPIO_PC6_CCP3 0x00021801
  7725. #define GPIO_PC6_U1RX 0x00021805
  7726. #define GPIO_PC6_CCP0 0x00021806
  7727. #define GPIO_PC7_CCP4 0x00021C01
  7728. #define GPIO_PC7_CCP0 0x00021C04
  7729. #define GPIO_PC7_U1TX 0x00021C05
  7730. #define GPIO_PC7_C1O 0x00021C07
  7731. #define GPIO_PD0_U2RX 0x00030004
  7732. #define GPIO_PD0_U1RX 0x00030005
  7733. #define GPIO_PD0_CCP6 0x00030006
  7734. #define GPIO_PD1_U2TX 0x00030404
  7735. #define GPIO_PD1_U1TX 0x00030405
  7736. #define GPIO_PD1_CCP7 0x00030406
  7737. #define GPIO_PD1_CCP2 0x0003040A
  7738. #define GPIO_PD2_U1RX 0x00030801
  7739. #define GPIO_PD2_CCP6 0x00030802
  7740. #define GPIO_PD2_CCP5 0x00030804
  7741. #define GPIO_PD3_U1TX 0x00030C01
  7742. #define GPIO_PD3_CCP7 0x00030C02
  7743. #define GPIO_PD3_CCP0 0x00030C04
  7744. #define GPIO_PE0_SSI1CLK 0x00040002
  7745. #define GPIO_PE0_CCP3 0x00040003
  7746. #define GPIO_PE1_SSI1FSS 0x00040402
  7747. #define GPIO_PE1_CCP2 0x00040404
  7748. #define GPIO_PE1_CCP6 0x00040405
  7749. #define GPIO_PE2_CCP4 0x00040801
  7750. #define GPIO_PE2_SSI1RX 0x00040802
  7751. #define GPIO_PE2_CCP2 0x00040805
  7752. #define GPIO_PE3_CCP1 0x00040C01
  7753. #define GPIO_PE3_SSI1TX 0x00040C02
  7754. #define GPIO_PE3_CCP7 0x00040C05
  7755. #define GPIO_PE4_CCP3 0x00041001
  7756. #define GPIO_PE4_U2TX 0x00041005
  7757. #define GPIO_PE4_CCP2 0x00041006
  7758. #endif // PART_LM3S1C26
  7759. //*****************************************************************************
  7760. //
  7761. // LM3S1C58 Port/Pin Mapping Definitions
  7762. //
  7763. //*****************************************************************************
  7764. #ifdef PART_LM3S1C58
  7765. #define GPIO_PA0_U0RX 0x00000001
  7766. #define GPIO_PA0_I2C1SCL 0x00000008
  7767. #define GPIO_PA0_U1RX 0x00000009
  7768. #define GPIO_PA1_U0TX 0x00000401
  7769. #define GPIO_PA1_I2C1SDA 0x00000408
  7770. #define GPIO_PA1_U1TX 0x00000409
  7771. #define GPIO_PA2_SSI0CLK 0x00000801
  7772. #define GPIO_PA3_SSI0FSS 0x00000C01
  7773. #define GPIO_PA4_SSI0RX 0x00001001
  7774. #define GPIO_PA5_SSI0TX 0x00001401
  7775. #define GPIO_PA6_I2C1SCL 0x00001801
  7776. #define GPIO_PA6_CCP1 0x00001802
  7777. #define GPIO_PA7_I2C1SDA 0x00001C01
  7778. #define GPIO_PA7_CCP4 0x00001C02
  7779. #define GPIO_PA7_CCP3 0x00001C07
  7780. #define GPIO_PB0_CCP0 0x00010001
  7781. #define GPIO_PB0_U1RX 0x00010005
  7782. #define GPIO_PB1_CCP2 0x00010401
  7783. #define GPIO_PB1_CCP1 0x00010404
  7784. #define GPIO_PB1_U1TX 0x00010405
  7785. #define GPIO_PB2_I2C0SCL 0x00010801
  7786. #define GPIO_PB2_CCP3 0x00010804
  7787. #define GPIO_PB2_CCP0 0x00010805
  7788. #define GPIO_PB3_I2C0SDA 0x00010C01
  7789. #define GPIO_PB4_U2RX 0x00011004
  7790. #define GPIO_PB4_U1RX 0x00011007
  7791. #define GPIO_PB5_CCP5 0x00011402
  7792. #define GPIO_PB5_CCP6 0x00011403
  7793. #define GPIO_PB5_CCP0 0x00011404
  7794. #define GPIO_PB5_CCP2 0x00011406
  7795. #define GPIO_PB5_U1TX 0x00011407
  7796. #define GPIO_PB6_CCP1 0x00011801
  7797. #define GPIO_PB6_CCP7 0x00011802
  7798. #define GPIO_PB6_CCP5 0x00011806
  7799. #define GPIO_PB7_NMI 0x00011C04
  7800. #define GPIO_PC0_TCK 0x00020003
  7801. #define GPIO_PC0_SWCLK 0x00020003
  7802. #define GPIO_PC1_TMS 0x00020403
  7803. #define GPIO_PC1_SWDIO 0x00020403
  7804. #define GPIO_PC2_TDI 0x00020803
  7805. #define GPIO_PC3_SWO 0x00020C03
  7806. #define GPIO_PC3_TDO 0x00020C03
  7807. #define GPIO_PC4_CCP5 0x00021001
  7808. #define GPIO_PC4_CCP2 0x00021005
  7809. #define GPIO_PC4_CCP4 0x00021006
  7810. #define GPIO_PC4_CCP1 0x00021009
  7811. #define GPIO_PC5_CCP1 0x00021401
  7812. #define GPIO_PC5_CCP3 0x00021405
  7813. #define GPIO_PC6_CCP3 0x00021801
  7814. #define GPIO_PC6_U1RX 0x00021805
  7815. #define GPIO_PC6_CCP0 0x00021806
  7816. #define GPIO_PC7_CCP4 0x00021C01
  7817. #define GPIO_PC7_CCP0 0x00021C04
  7818. #define GPIO_PC7_U1TX 0x00021C05
  7819. #define GPIO_PD0_U2RX 0x00030004
  7820. #define GPIO_PD0_U1RX 0x00030005
  7821. #define GPIO_PD0_CCP6 0x00030006
  7822. #define GPIO_PD1_U2TX 0x00030404
  7823. #define GPIO_PD1_U1TX 0x00030405
  7824. #define GPIO_PD1_CCP7 0x00030406
  7825. #define GPIO_PD1_CCP2 0x0003040A
  7826. #define GPIO_PD2_U1RX 0x00030801
  7827. #define GPIO_PD2_CCP6 0x00030802
  7828. #define GPIO_PD2_CCP5 0x00030804
  7829. #define GPIO_PD3_U1TX 0x00030C01
  7830. #define GPIO_PD3_CCP7 0x00030C02
  7831. #define GPIO_PD3_CCP0 0x00030C04
  7832. #define GPIO_PD4_CCP0 0x00031001
  7833. #define GPIO_PD4_CCP3 0x00031002
  7834. #define GPIO_PD5_CCP2 0x00031401
  7835. #define GPIO_PD5_CCP4 0x00031402
  7836. #define GPIO_PD5_U2RX 0x00031409
  7837. #define GPIO_PD6_U2TX 0x00031809
  7838. #define GPIO_PD7_CCP1 0x00031C03
  7839. #define GPIO_PE0_SSI1CLK 0x00040002
  7840. #define GPIO_PE0_CCP3 0x00040003
  7841. #define GPIO_PE1_SSI1FSS 0x00040402
  7842. #define GPIO_PE1_CCP2 0x00040404
  7843. #define GPIO_PE1_CCP6 0x00040405
  7844. #define GPIO_PE2_CCP4 0x00040801
  7845. #define GPIO_PE2_SSI1RX 0x00040802
  7846. #define GPIO_PE2_CCP2 0x00040805
  7847. #define GPIO_PE3_CCP1 0x00040C01
  7848. #define GPIO_PE3_SSI1TX 0x00040C02
  7849. #define GPIO_PE3_CCP7 0x00040C05
  7850. #define GPIO_PE4_CCP3 0x00041001
  7851. #define GPIO_PE4_U2TX 0x00041005
  7852. #define GPIO_PE4_CCP2 0x00041006
  7853. #define GPIO_PE5_CCP5 0x00041401
  7854. #define GPIO_PF0_U1DSR 0x00050009
  7855. #define GPIO_PF1_CCP3 0x0005040A
  7856. #define GPIO_PF2_SSI1CLK 0x00050809
  7857. #define GPIO_PF3_SSI1FSS 0x00050C09
  7858. #define GPIO_PF4_CCP0 0x00051001
  7859. #define GPIO_PF4_SSI1RX 0x00051009
  7860. #define GPIO_PF5_CCP2 0x00051401
  7861. #define GPIO_PF5_SSI1TX 0x00051409
  7862. #define GPIO_PF6_CCP1 0x00051801
  7863. #define GPIO_PF7_CCP4 0x00051C01
  7864. #define GPIO_PG0_U2RX 0x00060001
  7865. #define GPIO_PG0_I2C1SCL 0x00060003
  7866. #define GPIO_PG1_U2TX 0x00060401
  7867. #define GPIO_PG1_I2C1SDA 0x00060403
  7868. #define GPIO_PG4_CCP3 0x00061001
  7869. #define GPIO_PG5_CCP5 0x00061401
  7870. #define GPIO_PG7_CCP5 0x00061C08
  7871. #define GPIO_PH0_CCP6 0x00070001
  7872. #define GPIO_PH1_CCP7 0x00070401
  7873. #endif // PART_LM3S1C58
  7874. //*****************************************************************************
  7875. //
  7876. // LM3S1D21 Port/Pin Mapping Definitions
  7877. //
  7878. //*****************************************************************************
  7879. #ifdef PART_LM3S1D21
  7880. #define GPIO_PA0_U0RX 0x00000001
  7881. #define GPIO_PA0_I2C1SCL 0x00000008
  7882. #define GPIO_PA0_U1RX 0x00000009
  7883. #define GPIO_PA1_U0TX 0x00000401
  7884. #define GPIO_PA1_I2C1SDA 0x00000408
  7885. #define GPIO_PA1_U1TX 0x00000409
  7886. #define GPIO_PA2_SSI0CLK 0x00000801
  7887. #define GPIO_PA3_SSI0FSS 0x00000C01
  7888. #define GPIO_PA4_SSI0RX 0x00001001
  7889. #define GPIO_PA5_SSI0TX 0x00001401
  7890. #define GPIO_PA6_I2C1SCL 0x00001801
  7891. #define GPIO_PA6_CCP1 0x00001802
  7892. #define GPIO_PA6_U1CTS 0x00001809
  7893. #define GPIO_PA7_I2C1SDA 0x00001C01
  7894. #define GPIO_PA7_CCP4 0x00001C02
  7895. #define GPIO_PA7_CCP3 0x00001C07
  7896. #define GPIO_PA7_U1DCD 0x00001C09
  7897. #define GPIO_PB0_CCP0 0x00010001
  7898. #define GPIO_PB0_U1RX 0x00010005
  7899. #define GPIO_PB1_CCP2 0x00010401
  7900. #define GPIO_PB1_CCP1 0x00010404
  7901. #define GPIO_PB1_U1TX 0x00010405
  7902. #define GPIO_PB2_I2C0SCL 0x00010801
  7903. #define GPIO_PB2_CCP3 0x00010804
  7904. #define GPIO_PB2_CCP0 0x00010805
  7905. #define GPIO_PB3_I2C0SDA 0x00010C01
  7906. #define GPIO_PB4_U2RX 0x00011004
  7907. #define GPIO_PB4_U1RX 0x00011007
  7908. #define GPIO_PB4_EPI0S23 0x00011008
  7909. #define GPIO_PB5_C0O 0x00011401
  7910. #define GPIO_PB5_CCP5 0x00011402
  7911. #define GPIO_PB5_CCP6 0x00011403
  7912. #define GPIO_PB5_CCP0 0x00011404
  7913. #define GPIO_PB5_CCP2 0x00011406
  7914. #define GPIO_PB5_U1TX 0x00011407
  7915. #define GPIO_PB5_EPI0S22 0x00011408
  7916. #define GPIO_PB6_CCP1 0x00011801
  7917. #define GPIO_PB6_CCP7 0x00011802
  7918. #define GPIO_PB6_C0O 0x00011803
  7919. #define GPIO_PB6_CCP5 0x00011806
  7920. #define GPIO_PB7_NMI 0x00011C04
  7921. #define GPIO_PC0_TCK 0x00020003
  7922. #define GPIO_PC0_SWCLK 0x00020003
  7923. #define GPIO_PC1_TMS 0x00020403
  7924. #define GPIO_PC1_SWDIO 0x00020403
  7925. #define GPIO_PC2_TDI 0x00020803
  7926. #define GPIO_PC3_SWO 0x00020C03
  7927. #define GPIO_PC3_TDO 0x00020C03
  7928. #define GPIO_PC4_CCP5 0x00021001
  7929. #define GPIO_PC4_CCP2 0x00021005
  7930. #define GPIO_PC4_CCP4 0x00021006
  7931. #define GPIO_PC4_EPI0S2 0x00021008
  7932. #define GPIO_PC4_CCP1 0x00021009
  7933. #define GPIO_PC5_CCP1 0x00021401
  7934. #define GPIO_PC5_C1O 0x00021402
  7935. #define GPIO_PC5_C0O 0x00021403
  7936. #define GPIO_PC5_CCP3 0x00021405
  7937. #define GPIO_PC5_EPI0S3 0x00021408
  7938. #define GPIO_PC6_CCP3 0x00021801
  7939. #define GPIO_PC6_U1RX 0x00021805
  7940. #define GPIO_PC6_CCP0 0x00021806
  7941. #define GPIO_PC6_EPI0S4 0x00021808
  7942. #define GPIO_PC7_CCP4 0x00021C01
  7943. #define GPIO_PC7_CCP0 0x00021C04
  7944. #define GPIO_PC7_U1TX 0x00021C05
  7945. #define GPIO_PC7_C1O 0x00021C07
  7946. #define GPIO_PC7_EPI0S5 0x00021C08
  7947. #define GPIO_PD0_U2RX 0x00030004
  7948. #define GPIO_PD0_U1RX 0x00030005
  7949. #define GPIO_PD0_CCP6 0x00030006
  7950. #define GPIO_PD0_U1CTS 0x00030009
  7951. #define GPIO_PD1_U2TX 0x00030404
  7952. #define GPIO_PD1_U1TX 0x00030405
  7953. #define GPIO_PD1_CCP7 0x00030406
  7954. #define GPIO_PD1_U1DCD 0x00030409
  7955. #define GPIO_PD1_CCP2 0x0003040A
  7956. #define GPIO_PD2_U1RX 0x00030801
  7957. #define GPIO_PD2_CCP6 0x00030802
  7958. #define GPIO_PD2_CCP5 0x00030804
  7959. #define GPIO_PD2_EPI0S20 0x00030808
  7960. #define GPIO_PD3_U1TX 0x00030C01
  7961. #define GPIO_PD3_CCP7 0x00030C02
  7962. #define GPIO_PD3_CCP0 0x00030C04
  7963. #define GPIO_PD3_EPI0S21 0x00030C08
  7964. #define GPIO_PD4_CCP0 0x00031001
  7965. #define GPIO_PD4_CCP3 0x00031002
  7966. #define GPIO_PD4_U1RI 0x00031009
  7967. #define GPIO_PD4_EPI0S19 0x0003100A
  7968. #define GPIO_PD5_CCP2 0x00031401
  7969. #define GPIO_PD5_CCP4 0x00031402
  7970. #define GPIO_PD5_U2RX 0x00031409
  7971. #define GPIO_PD5_EPI0S28 0x0003140A
  7972. #define GPIO_PD6_U2TX 0x00031809
  7973. #define GPIO_PD6_EPI0S29 0x0003180A
  7974. #define GPIO_PD7_C0O 0x00031C02
  7975. #define GPIO_PD7_CCP1 0x00031C03
  7976. #define GPIO_PD7_U1DTR 0x00031C09
  7977. #define GPIO_PD7_EPI0S30 0x00031C0A
  7978. #define GPIO_PE0_SSI1CLK 0x00040002
  7979. #define GPIO_PE0_CCP3 0x00040003
  7980. #define GPIO_PE0_EPI0S8 0x00040008
  7981. #define GPIO_PE1_SSI1FSS 0x00040402
  7982. #define GPIO_PE1_CCP2 0x00040404
  7983. #define GPIO_PE1_CCP6 0x00040405
  7984. #define GPIO_PE1_EPI0S9 0x00040408
  7985. #define GPIO_PE2_CCP4 0x00040801
  7986. #define GPIO_PE2_SSI1RX 0x00040802
  7987. #define GPIO_PE2_CCP2 0x00040805
  7988. #define GPIO_PE2_EPI0S24 0x00040808
  7989. #define GPIO_PE3_CCP1 0x00040C01
  7990. #define GPIO_PE3_SSI1TX 0x00040C02
  7991. #define GPIO_PE3_CCP7 0x00040C05
  7992. #define GPIO_PE3_EPI0S25 0x00040C08
  7993. #define GPIO_PE4_CCP3 0x00041001
  7994. #define GPIO_PE4_U2TX 0x00041005
  7995. #define GPIO_PE4_CCP2 0x00041006
  7996. #define GPIO_PE5_CCP5 0x00041401
  7997. #define GPIO_PE6_C1O 0x00041802
  7998. #define GPIO_PE6_U1CTS 0x00041809
  7999. #define GPIO_PE7_U1DCD 0x00041C09
  8000. #define GPIO_PF0_U1DSR 0x00050009
  8001. #define GPIO_PF1_U1RTS 0x00050409
  8002. #define GPIO_PF1_CCP3 0x0005040A
  8003. #define GPIO_PF2_SSI1CLK 0x00050809
  8004. #define GPIO_PF3_SSI1FSS 0x00050C09
  8005. #define GPIO_PF4_CCP0 0x00051001
  8006. #define GPIO_PF4_C0O 0x00051002
  8007. #define GPIO_PF4_EPI0S12 0x00051008
  8008. #define GPIO_PF4_SSI1RX 0x00051009
  8009. #define GPIO_PF5_CCP2 0x00051401
  8010. #define GPIO_PF5_C1O 0x00051402
  8011. #define GPIO_PF5_EPI0S15 0x00051408
  8012. #define GPIO_PF5_SSI1TX 0x00051409
  8013. #define GPIO_PF6_CCP1 0x00051801
  8014. #define GPIO_PF6_U1RTS 0x0005180A
  8015. #define GPIO_PF7_CCP4 0x00051C01
  8016. #define GPIO_PF7_EPI0S12 0x00051C08
  8017. #define GPIO_PG0_U2RX 0x00060001
  8018. #define GPIO_PG0_I2C1SCL 0x00060003
  8019. #define GPIO_PG0_EPI0S13 0x00060008
  8020. #define GPIO_PG1_U2TX 0x00060401
  8021. #define GPIO_PG1_I2C1SDA 0x00060403
  8022. #define GPIO_PG1_EPI0S14 0x00060408
  8023. #define GPIO_PG4_CCP3 0x00061001
  8024. #define GPIO_PG4_EPI0S15 0x00061008
  8025. #define GPIO_PG4_U1RI 0x0006100A
  8026. #define GPIO_PG5_CCP5 0x00061401
  8027. #define GPIO_PG5_U1DTR 0x0006140A
  8028. #define GPIO_PG6_U1RI 0x0006180A
  8029. #define GPIO_PG7_CCP5 0x00061C08
  8030. #define GPIO_PG7_EPI0S31 0x00061C09
  8031. #define GPIO_PH0_CCP6 0x00070001
  8032. #define GPIO_PH0_EPI0S6 0x00070008
  8033. #define GPIO_PH1_CCP7 0x00070401
  8034. #define GPIO_PH1_EPI0S7 0x00070408
  8035. #define GPIO_PH2_C1O 0x00070802
  8036. #define GPIO_PH2_EPI0S1 0x00070808
  8037. #define GPIO_PH3_EPI0S0 0x00070C08
  8038. #define GPIO_PH4_EPI0S10 0x00071008
  8039. #define GPIO_PH4_SSI1CLK 0x0007100B
  8040. #define GPIO_PH5_EPI0S11 0x00071408
  8041. #define GPIO_PH5_SSI1FSS 0x0007140B
  8042. #define GPIO_PH6_EPI0S26 0x00071808
  8043. #define GPIO_PH6_SSI1RX 0x0007180B
  8044. #define GPIO_PH7_EPI0S27 0x00071C08
  8045. #define GPIO_PH7_SSI1TX 0x00071C0B
  8046. #define GPIO_PJ0_EPI0S16 0x00080008
  8047. #define GPIO_PJ0_I2C1SCL 0x0008000B
  8048. #define GPIO_PJ1_EPI0S17 0x00080408
  8049. #define GPIO_PJ1_I2C1SDA 0x0008040B
  8050. #define GPIO_PJ2_EPI0S18 0x00080808
  8051. #define GPIO_PJ2_CCP0 0x00080809
  8052. #endif // PART_LM3S1D21
  8053. //*****************************************************************************
  8054. //
  8055. // LM3S1D26 Port/Pin Mapping Definitions
  8056. //
  8057. //*****************************************************************************
  8058. #ifdef PART_LM3S1D26
  8059. #define GPIO_PA0_U0RX 0x00000001
  8060. #define GPIO_PA0_I2C1SCL 0x00000008
  8061. #define GPIO_PA0_U1RX 0x00000009
  8062. #define GPIO_PA1_U0TX 0x00000401
  8063. #define GPIO_PA1_I2C1SDA 0x00000408
  8064. #define GPIO_PA1_U1TX 0x00000409
  8065. #define GPIO_PA2_SSI0CLK 0x00000801
  8066. #define GPIO_PA3_SSI0FSS 0x00000C01
  8067. #define GPIO_PA4_SSI0RX 0x00001001
  8068. #define GPIO_PA5_SSI0TX 0x00001401
  8069. #define GPIO_PA6_I2C1SCL 0x00001801
  8070. #define GPIO_PA6_CCP1 0x00001802
  8071. #define GPIO_PA7_I2C1SDA 0x00001C01
  8072. #define GPIO_PA7_CCP4 0x00001C02
  8073. #define GPIO_PA7_CCP3 0x00001C07
  8074. #define GPIO_PB0_CCP0 0x00010001
  8075. #define GPIO_PB0_U1RX 0x00010005
  8076. #define GPIO_PB1_CCP2 0x00010401
  8077. #define GPIO_PB1_CCP1 0x00010404
  8078. #define GPIO_PB1_U1TX 0x00010405
  8079. #define GPIO_PB2_I2C0SCL 0x00010801
  8080. #define GPIO_PB2_CCP3 0x00010804
  8081. #define GPIO_PB2_CCP0 0x00010805
  8082. #define GPIO_PB3_I2C0SDA 0x00010C01
  8083. #define GPIO_PB4_U2RX 0x00011004
  8084. #define GPIO_PB4_U1RX 0x00011007
  8085. #define GPIO_PB5_C0O 0x00011401
  8086. #define GPIO_PB5_CCP5 0x00011402
  8087. #define GPIO_PB5_CCP6 0x00011403
  8088. #define GPIO_PB5_CCP0 0x00011404
  8089. #define GPIO_PB5_CCP2 0x00011406
  8090. #define GPIO_PB5_U1TX 0x00011407
  8091. #define GPIO_PB6_CCP1 0x00011801
  8092. #define GPIO_PB6_CCP7 0x00011802
  8093. #define GPIO_PB6_C0O 0x00011803
  8094. #define GPIO_PB6_CCP5 0x00011806
  8095. #define GPIO_PB7_NMI 0x00011C04
  8096. #define GPIO_PC0_TCK 0x00020003
  8097. #define GPIO_PC0_SWCLK 0x00020003
  8098. #define GPIO_PC1_TMS 0x00020403
  8099. #define GPIO_PC1_SWDIO 0x00020403
  8100. #define GPIO_PC2_TDI 0x00020803
  8101. #define GPIO_PC3_SWO 0x00020C03
  8102. #define GPIO_PC3_TDO 0x00020C03
  8103. #define GPIO_PC4_CCP5 0x00021001
  8104. #define GPIO_PC4_CCP2 0x00021005
  8105. #define GPIO_PC4_CCP4 0x00021006
  8106. #define GPIO_PC4_CCP1 0x00021009
  8107. #define GPIO_PC5_CCP1 0x00021401
  8108. #define GPIO_PC5_C1O 0x00021402
  8109. #define GPIO_PC5_C0O 0x00021403
  8110. #define GPIO_PC5_CCP3 0x00021405
  8111. #define GPIO_PC6_CCP3 0x00021801
  8112. #define GPIO_PC6_U1RX 0x00021805
  8113. #define GPIO_PC6_CCP0 0x00021806
  8114. #define GPIO_PC7_CCP4 0x00021C01
  8115. #define GPIO_PC7_CCP0 0x00021C04
  8116. #define GPIO_PC7_U1TX 0x00021C05
  8117. #define GPIO_PC7_C1O 0x00021C07
  8118. #define GPIO_PD0_U2RX 0x00030004
  8119. #define GPIO_PD0_U1RX 0x00030005
  8120. #define GPIO_PD0_CCP6 0x00030006
  8121. #define GPIO_PD1_U2TX 0x00030404
  8122. #define GPIO_PD1_U1TX 0x00030405
  8123. #define GPIO_PD1_CCP7 0x00030406
  8124. #define GPIO_PD1_CCP2 0x0003040A
  8125. #define GPIO_PD2_U1RX 0x00030801
  8126. #define GPIO_PD2_CCP6 0x00030802
  8127. #define GPIO_PD2_CCP5 0x00030804
  8128. #define GPIO_PD3_U1TX 0x00030C01
  8129. #define GPIO_PD3_CCP7 0x00030C02
  8130. #define GPIO_PD3_CCP0 0x00030C04
  8131. #define GPIO_PE0_SSI1CLK 0x00040002
  8132. #define GPIO_PE0_CCP3 0x00040003
  8133. #define GPIO_PE1_SSI1FSS 0x00040402
  8134. #define GPIO_PE1_CCP2 0x00040404
  8135. #define GPIO_PE1_CCP6 0x00040405
  8136. #define GPIO_PE2_CCP4 0x00040801
  8137. #define GPIO_PE2_SSI1RX 0x00040802
  8138. #define GPIO_PE2_CCP2 0x00040805
  8139. #define GPIO_PE3_CCP1 0x00040C01
  8140. #define GPIO_PE3_SSI1TX 0x00040C02
  8141. #define GPIO_PE3_CCP7 0x00040C05
  8142. #define GPIO_PE4_CCP3 0x00041001
  8143. #define GPIO_PE4_U2TX 0x00041005
  8144. #define GPIO_PE4_CCP2 0x00041006
  8145. #endif // PART_LM3S1D26
  8146. //*****************************************************************************
  8147. //
  8148. // LM3S1F11 Port/Pin Mapping Definitions
  8149. //
  8150. //*****************************************************************************
  8151. #ifdef PART_LM3S1F11
  8152. #define GPIO_PA0_U0RX 0x00000001
  8153. #define GPIO_PA0_I2C1SCL 0x00000008
  8154. #define GPIO_PA0_U1RX 0x00000009
  8155. #define GPIO_PA1_U0TX 0x00000401
  8156. #define GPIO_PA1_I2C1SDA 0x00000408
  8157. #define GPIO_PA1_U1TX 0x00000409
  8158. #define GPIO_PA2_SSI0CLK 0x00000801
  8159. #define GPIO_PA3_SSI0FSS 0x00000C01
  8160. #define GPIO_PA4_SSI0RX 0x00001001
  8161. #define GPIO_PA5_SSI0TX 0x00001401
  8162. #define GPIO_PA6_I2C1SCL 0x00001801
  8163. #define GPIO_PA6_CCP1 0x00001802
  8164. #define GPIO_PA6_U1CTS 0x00001809
  8165. #define GPIO_PA7_I2C1SDA 0x00001C01
  8166. #define GPIO_PA7_CCP4 0x00001C02
  8167. #define GPIO_PA7_CCP3 0x00001C07
  8168. #define GPIO_PA7_U1DCD 0x00001C09
  8169. #define GPIO_PB0_CCP0 0x00010001
  8170. #define GPIO_PB0_U1RX 0x00010005
  8171. #define GPIO_PB1_CCP2 0x00010401
  8172. #define GPIO_PB1_CCP1 0x00010404
  8173. #define GPIO_PB1_U1TX 0x00010405
  8174. #define GPIO_PB2_I2C0SCL 0x00010801
  8175. #define GPIO_PB2_CCP3 0x00010804
  8176. #define GPIO_PB2_CCP0 0x00010805
  8177. #define GPIO_PB3_I2C0SDA 0x00010C01
  8178. #define GPIO_PB4_U2RX 0x00011004
  8179. #define GPIO_PB4_U1RX 0x00011007
  8180. #define GPIO_PB4_EPI0S23 0x00011008
  8181. #define GPIO_PB5_C0O 0x00011401
  8182. #define GPIO_PB5_CCP5 0x00011402
  8183. #define GPIO_PB5_CCP6 0x00011403
  8184. #define GPIO_PB5_CCP0 0x00011404
  8185. #define GPIO_PB5_CCP2 0x00011406
  8186. #define GPIO_PB5_U1TX 0x00011407
  8187. #define GPIO_PB5_EPI0S22 0x00011408
  8188. #define GPIO_PB6_CCP1 0x00011801
  8189. #define GPIO_PB6_CCP7 0x00011802
  8190. #define GPIO_PB6_C0O 0x00011803
  8191. #define GPIO_PB6_CCP5 0x00011806
  8192. #define GPIO_PB7_NMI 0x00011C04
  8193. #define GPIO_PC0_TCK 0x00020003
  8194. #define GPIO_PC0_SWCLK 0x00020003
  8195. #define GPIO_PC1_TMS 0x00020403
  8196. #define GPIO_PC1_SWDIO 0x00020403
  8197. #define GPIO_PC2_TDI 0x00020803
  8198. #define GPIO_PC3_SWO 0x00020C03
  8199. #define GPIO_PC3_TDO 0x00020C03
  8200. #define GPIO_PC4_CCP5 0x00021001
  8201. #define GPIO_PC4_CCP2 0x00021005
  8202. #define GPIO_PC4_CCP4 0x00021006
  8203. #define GPIO_PC4_EPI0S2 0x00021008
  8204. #define GPIO_PC4_CCP1 0x00021009
  8205. #define GPIO_PC5_CCP1 0x00021401
  8206. #define GPIO_PC5_C1O 0x00021402
  8207. #define GPIO_PC5_C0O 0x00021403
  8208. #define GPIO_PC5_CCP3 0x00021405
  8209. #define GPIO_PC5_EPI0S3 0x00021408
  8210. #define GPIO_PC6_CCP3 0x00021801
  8211. #define GPIO_PC6_U1RX 0x00021805
  8212. #define GPIO_PC6_CCP0 0x00021806
  8213. #define GPIO_PC6_EPI0S4 0x00021808
  8214. #define GPIO_PC7_CCP4 0x00021C01
  8215. #define GPIO_PC7_CCP0 0x00021C04
  8216. #define GPIO_PC7_U1TX 0x00021C05
  8217. #define GPIO_PC7_C1O 0x00021C07
  8218. #define GPIO_PC7_EPI0S5 0x00021C08
  8219. #define GPIO_PD0_U2RX 0x00030004
  8220. #define GPIO_PD0_U1RX 0x00030005
  8221. #define GPIO_PD0_CCP6 0x00030006
  8222. #define GPIO_PD0_U1CTS 0x00030009
  8223. #define GPIO_PD1_U2TX 0x00030404
  8224. #define GPIO_PD1_U1TX 0x00030405
  8225. #define GPIO_PD1_CCP7 0x00030406
  8226. #define GPIO_PD1_U1DCD 0x00030409
  8227. #define GPIO_PD1_CCP2 0x0003040A
  8228. #define GPIO_PD2_U1RX 0x00030801
  8229. #define GPIO_PD2_CCP6 0x00030802
  8230. #define GPIO_PD2_CCP5 0x00030804
  8231. #define GPIO_PD2_EPI0S20 0x00030808
  8232. #define GPIO_PD3_U1TX 0x00030C01
  8233. #define GPIO_PD3_CCP7 0x00030C02
  8234. #define GPIO_PD3_CCP0 0x00030C04
  8235. #define GPIO_PD3_EPI0S21 0x00030C08
  8236. #define GPIO_PD4_CCP0 0x00031001
  8237. #define GPIO_PD4_CCP3 0x00031002
  8238. #define GPIO_PD4_U1RI 0x00031009
  8239. #define GPIO_PD4_EPI0S19 0x0003100A
  8240. #define GPIO_PD5_CCP2 0x00031401
  8241. #define GPIO_PD5_CCP4 0x00031402
  8242. #define GPIO_PD5_U2RX 0x00031409
  8243. #define GPIO_PD5_EPI0S28 0x0003140A
  8244. #define GPIO_PD6_U2TX 0x00031809
  8245. #define GPIO_PD6_EPI0S29 0x0003180A
  8246. #define GPIO_PD7_C0O 0x00031C02
  8247. #define GPIO_PD7_CCP1 0x00031C03
  8248. #define GPIO_PD7_U1DTR 0x00031C09
  8249. #define GPIO_PD7_EPI0S30 0x00031C0A
  8250. #define GPIO_PE0_SSI1CLK 0x00040002
  8251. #define GPIO_PE0_CCP3 0x00040003
  8252. #define GPIO_PE0_EPI0S8 0x00040008
  8253. #define GPIO_PE1_SSI1FSS 0x00040402
  8254. #define GPIO_PE1_CCP2 0x00040404
  8255. #define GPIO_PE1_CCP6 0x00040405
  8256. #define GPIO_PE1_EPI0S9 0x00040408
  8257. #define GPIO_PE2_CCP4 0x00040801
  8258. #define GPIO_PE2_SSI1RX 0x00040802
  8259. #define GPIO_PE2_CCP2 0x00040805
  8260. #define GPIO_PE2_EPI0S24 0x00040808
  8261. #define GPIO_PE3_CCP1 0x00040C01
  8262. #define GPIO_PE3_SSI1TX 0x00040C02
  8263. #define GPIO_PE3_CCP7 0x00040C05
  8264. #define GPIO_PE3_EPI0S25 0x00040C08
  8265. #define GPIO_PE4_CCP3 0x00041001
  8266. #define GPIO_PE4_U2TX 0x00041005
  8267. #define GPIO_PE4_CCP2 0x00041006
  8268. #define GPIO_PE5_CCP5 0x00041401
  8269. #define GPIO_PE6_C1O 0x00041802
  8270. #define GPIO_PE6_U1CTS 0x00041809
  8271. #define GPIO_PE7_U1DCD 0x00041C09
  8272. #define GPIO_PF0_U1DSR 0x00050009
  8273. #define GPIO_PF1_U1RTS 0x00050409
  8274. #define GPIO_PF1_CCP3 0x0005040A
  8275. #define GPIO_PF2_SSI1CLK 0x00050809
  8276. #define GPIO_PF3_SSI1FSS 0x00050C09
  8277. #define GPIO_PF4_CCP0 0x00051001
  8278. #define GPIO_PF4_C0O 0x00051002
  8279. #define GPIO_PF4_EPI0S12 0x00051008
  8280. #define GPIO_PF4_SSI1RX 0x00051009
  8281. #define GPIO_PF5_CCP2 0x00051401
  8282. #define GPIO_PF5_C1O 0x00051402
  8283. #define GPIO_PF5_EPI0S15 0x00051408
  8284. #define GPIO_PF5_SSI1TX 0x00051409
  8285. #define GPIO_PF6_CCP1 0x00051801
  8286. #define GPIO_PF6_U1RTS 0x0005180A
  8287. #define GPIO_PF7_CCP4 0x00051C01
  8288. #define GPIO_PF7_EPI0S12 0x00051C08
  8289. #define GPIO_PG0_U2RX 0x00060001
  8290. #define GPIO_PG0_I2C1SCL 0x00060003
  8291. #define GPIO_PG0_EPI0S13 0x00060008
  8292. #define GPIO_PG1_U2TX 0x00060401
  8293. #define GPIO_PG1_I2C1SDA 0x00060403
  8294. #define GPIO_PG1_EPI0S14 0x00060408
  8295. #define GPIO_PG4_CCP3 0x00061001
  8296. #define GPIO_PG4_EPI0S15 0x00061008
  8297. #define GPIO_PG4_U1RI 0x0006100A
  8298. #define GPIO_PG5_CCP5 0x00061401
  8299. #define GPIO_PG5_U1DTR 0x0006140A
  8300. #define GPIO_PG6_U1RI 0x0006180A
  8301. #define GPIO_PG7_CCP5 0x00061C08
  8302. #define GPIO_PG7_EPI0S31 0x00061C09
  8303. #define GPIO_PH0_CCP6 0x00070001
  8304. #define GPIO_PH0_EPI0S6 0x00070008
  8305. #define GPIO_PH1_CCP7 0x00070401
  8306. #define GPIO_PH1_EPI0S7 0x00070408
  8307. #define GPIO_PH2_C1O 0x00070802
  8308. #define GPIO_PH2_EPI0S1 0x00070808
  8309. #define GPIO_PH3_EPI0S0 0x00070C08
  8310. #define GPIO_PH4_EPI0S10 0x00071008
  8311. #define GPIO_PH4_SSI1CLK 0x0007100B
  8312. #define GPIO_PH5_EPI0S11 0x00071408
  8313. #define GPIO_PH5_SSI1FSS 0x0007140B
  8314. #define GPIO_PH6_EPI0S26 0x00071808
  8315. #define GPIO_PH6_SSI1RX 0x0007180B
  8316. #define GPIO_PH7_EPI0S27 0x00071C08
  8317. #define GPIO_PH7_SSI1TX 0x00071C0B
  8318. #define GPIO_PJ0_EPI0S16 0x00080008
  8319. #define GPIO_PJ0_I2C1SCL 0x0008000B
  8320. #define GPIO_PJ1_EPI0S17 0x00080408
  8321. #define GPIO_PJ1_I2C1SDA 0x0008040B
  8322. #define GPIO_PJ2_EPI0S18 0x00080808
  8323. #define GPIO_PJ2_CCP0 0x00080809
  8324. #endif // PART_LM3S1F11
  8325. //*****************************************************************************
  8326. //
  8327. // LM3S1F16 Port/Pin Mapping Definitions
  8328. //
  8329. //*****************************************************************************
  8330. #ifdef PART_LM3S1F16
  8331. #define GPIO_PA0_U0RX 0x00000001
  8332. #define GPIO_PA0_I2C1SCL 0x00000008
  8333. #define GPIO_PA0_U1RX 0x00000009
  8334. #define GPIO_PA1_U0TX 0x00000401
  8335. #define GPIO_PA1_I2C1SDA 0x00000408
  8336. #define GPIO_PA1_U1TX 0x00000409
  8337. #define GPIO_PA2_SSI0CLK 0x00000801
  8338. #define GPIO_PA3_SSI0FSS 0x00000C01
  8339. #define GPIO_PA4_SSI0RX 0x00001001
  8340. #define GPIO_PA5_SSI0TX 0x00001401
  8341. #define GPIO_PA6_I2C1SCL 0x00001801
  8342. #define GPIO_PA6_CCP1 0x00001802
  8343. #define GPIO_PA7_I2C1SDA 0x00001C01
  8344. #define GPIO_PA7_CCP4 0x00001C02
  8345. #define GPIO_PA7_CCP3 0x00001C07
  8346. #define GPIO_PB0_CCP0 0x00010001
  8347. #define GPIO_PB0_U1RX 0x00010005
  8348. #define GPIO_PB1_CCP2 0x00010401
  8349. #define GPIO_PB1_CCP1 0x00010404
  8350. #define GPIO_PB1_U1TX 0x00010405
  8351. #define GPIO_PB2_I2C0SCL 0x00010801
  8352. #define GPIO_PB2_CCP3 0x00010804
  8353. #define GPIO_PB2_CCP0 0x00010805
  8354. #define GPIO_PB3_I2C0SDA 0x00010C01
  8355. #define GPIO_PB4_U2RX 0x00011004
  8356. #define GPIO_PB4_U1RX 0x00011007
  8357. #define GPIO_PB5_C0O 0x00011401
  8358. #define GPIO_PB5_CCP5 0x00011402
  8359. #define GPIO_PB5_CCP6 0x00011403
  8360. #define GPIO_PB5_CCP0 0x00011404
  8361. #define GPIO_PB5_CCP2 0x00011406
  8362. #define GPIO_PB5_U1TX 0x00011407
  8363. #define GPIO_PB6_CCP1 0x00011801
  8364. #define GPIO_PB6_CCP7 0x00011802
  8365. #define GPIO_PB6_C0O 0x00011803
  8366. #define GPIO_PB6_CCP5 0x00011806
  8367. #define GPIO_PB7_NMI 0x00011C04
  8368. #define GPIO_PC0_TCK 0x00020003
  8369. #define GPIO_PC0_SWCLK 0x00020003
  8370. #define GPIO_PC1_TMS 0x00020403
  8371. #define GPIO_PC1_SWDIO 0x00020403
  8372. #define GPIO_PC2_TDI 0x00020803
  8373. #define GPIO_PC3_SWO 0x00020C03
  8374. #define GPIO_PC3_TDO 0x00020C03
  8375. #define GPIO_PC4_CCP5 0x00021001
  8376. #define GPIO_PC4_CCP2 0x00021005
  8377. #define GPIO_PC4_CCP4 0x00021006
  8378. #define GPIO_PC4_CCP1 0x00021009
  8379. #define GPIO_PC5_CCP1 0x00021401
  8380. #define GPIO_PC5_C1O 0x00021402
  8381. #define GPIO_PC5_C0O 0x00021403
  8382. #define GPIO_PC5_CCP3 0x00021405
  8383. #define GPIO_PC6_CCP3 0x00021801
  8384. #define GPIO_PC6_U1RX 0x00021805
  8385. #define GPIO_PC6_CCP0 0x00021806
  8386. #define GPIO_PC7_CCP4 0x00021C01
  8387. #define GPIO_PC7_CCP0 0x00021C04
  8388. #define GPIO_PC7_U1TX 0x00021C05
  8389. #define GPIO_PC7_C1O 0x00021C07
  8390. #define GPIO_PD0_U2RX 0x00030004
  8391. #define GPIO_PD0_U1RX 0x00030005
  8392. #define GPIO_PD0_CCP6 0x00030006
  8393. #define GPIO_PD1_U2TX 0x00030404
  8394. #define GPIO_PD1_U1TX 0x00030405
  8395. #define GPIO_PD1_CCP7 0x00030406
  8396. #define GPIO_PD1_CCP2 0x0003040A
  8397. #define GPIO_PD2_U1RX 0x00030801
  8398. #define GPIO_PD2_CCP6 0x00030802
  8399. #define GPIO_PD2_CCP5 0x00030804
  8400. #define GPIO_PD3_U1TX 0x00030C01
  8401. #define GPIO_PD3_CCP7 0x00030C02
  8402. #define GPIO_PD3_CCP0 0x00030C04
  8403. #define GPIO_PE0_SSI1CLK 0x00040002
  8404. #define GPIO_PE0_CCP3 0x00040003
  8405. #define GPIO_PE1_SSI1FSS 0x00040402
  8406. #define GPIO_PE1_CCP2 0x00040404
  8407. #define GPIO_PE1_CCP6 0x00040405
  8408. #define GPIO_PE2_CCP4 0x00040801
  8409. #define GPIO_PE2_SSI1RX 0x00040802
  8410. #define GPIO_PE2_CCP2 0x00040805
  8411. #define GPIO_PE3_CCP1 0x00040C01
  8412. #define GPIO_PE3_SSI1TX 0x00040C02
  8413. #define GPIO_PE3_CCP7 0x00040C05
  8414. #define GPIO_PE4_CCP3 0x00041001
  8415. #define GPIO_PE4_U2TX 0x00041005
  8416. #define GPIO_PE4_CCP2 0x00041006
  8417. #endif // PART_LM3S1F16
  8418. //*****************************************************************************
  8419. //
  8420. // LM3S1G21 Port/Pin Mapping Definitions
  8421. //
  8422. //*****************************************************************************
  8423. #ifdef PART_LM3S1G21
  8424. #define GPIO_PA0_U0RX 0x00000001
  8425. #define GPIO_PA0_I2C1SCL 0x00000008
  8426. #define GPIO_PA0_U1RX 0x00000009
  8427. #define GPIO_PA1_U0TX 0x00000401
  8428. #define GPIO_PA1_I2C1SDA 0x00000408
  8429. #define GPIO_PA1_U1TX 0x00000409
  8430. #define GPIO_PA2_SSI0CLK 0x00000801
  8431. #define GPIO_PA3_SSI0FSS 0x00000C01
  8432. #define GPIO_PA4_SSI0RX 0x00001001
  8433. #define GPIO_PA5_SSI0TX 0x00001401
  8434. #define GPIO_PA6_I2C1SCL 0x00001801
  8435. #define GPIO_PA6_CCP1 0x00001802
  8436. #define GPIO_PA6_U1CTS 0x00001809
  8437. #define GPIO_PA7_I2C1SDA 0x00001C01
  8438. #define GPIO_PA7_CCP4 0x00001C02
  8439. #define GPIO_PA7_CCP3 0x00001C07
  8440. #define GPIO_PA7_U1DCD 0x00001C09
  8441. #define GPIO_PB0_CCP0 0x00010001
  8442. #define GPIO_PB0_U1RX 0x00010005
  8443. #define GPIO_PB1_CCP2 0x00010401
  8444. #define GPIO_PB1_CCP1 0x00010404
  8445. #define GPIO_PB1_U1TX 0x00010405
  8446. #define GPIO_PB2_I2C0SCL 0x00010801
  8447. #define GPIO_PB2_CCP3 0x00010804
  8448. #define GPIO_PB2_CCP0 0x00010805
  8449. #define GPIO_PB3_I2C0SDA 0x00010C01
  8450. #define GPIO_PB4_U2RX 0x00011004
  8451. #define GPIO_PB4_U1RX 0x00011007
  8452. #define GPIO_PB4_EPI0S23 0x00011008
  8453. #define GPIO_PB5_C0O 0x00011401
  8454. #define GPIO_PB5_CCP5 0x00011402
  8455. #define GPIO_PB5_CCP6 0x00011403
  8456. #define GPIO_PB5_CCP0 0x00011404
  8457. #define GPIO_PB5_CCP2 0x00011406
  8458. #define GPIO_PB5_U1TX 0x00011407
  8459. #define GPIO_PB5_EPI0S22 0x00011408
  8460. #define GPIO_PB6_CCP1 0x00011801
  8461. #define GPIO_PB6_CCP7 0x00011802
  8462. #define GPIO_PB6_C0O 0x00011803
  8463. #define GPIO_PB6_CCP5 0x00011806
  8464. #define GPIO_PB7_NMI 0x00011C04
  8465. #define GPIO_PC0_TCK 0x00020003
  8466. #define GPIO_PC0_SWCLK 0x00020003
  8467. #define GPIO_PC1_TMS 0x00020403
  8468. #define GPIO_PC1_SWDIO 0x00020403
  8469. #define GPIO_PC2_TDI 0x00020803
  8470. #define GPIO_PC3_SWO 0x00020C03
  8471. #define GPIO_PC3_TDO 0x00020C03
  8472. #define GPIO_PC4_CCP5 0x00021001
  8473. #define GPIO_PC4_CCP2 0x00021005
  8474. #define GPIO_PC4_CCP4 0x00021006
  8475. #define GPIO_PC4_EPI0S2 0x00021008
  8476. #define GPIO_PC4_CCP1 0x00021009
  8477. #define GPIO_PC5_CCP1 0x00021401
  8478. #define GPIO_PC5_C1O 0x00021402
  8479. #define GPIO_PC5_C0O 0x00021403
  8480. #define GPIO_PC5_CCP3 0x00021405
  8481. #define GPIO_PC5_EPI0S3 0x00021408
  8482. #define GPIO_PC6_CCP3 0x00021801
  8483. #define GPIO_PC6_U1RX 0x00021805
  8484. #define GPIO_PC6_CCP0 0x00021806
  8485. #define GPIO_PC6_EPI0S4 0x00021808
  8486. #define GPIO_PC7_CCP4 0x00021C01
  8487. #define GPIO_PC7_CCP0 0x00021C04
  8488. #define GPIO_PC7_U1TX 0x00021C05
  8489. #define GPIO_PC7_C1O 0x00021C07
  8490. #define GPIO_PC7_EPI0S5 0x00021C08
  8491. #define GPIO_PD0_U2RX 0x00030004
  8492. #define GPIO_PD0_U1RX 0x00030005
  8493. #define GPIO_PD0_CCP6 0x00030006
  8494. #define GPIO_PD0_U1CTS 0x00030009
  8495. #define GPIO_PD1_U2TX 0x00030404
  8496. #define GPIO_PD1_U1TX 0x00030405
  8497. #define GPIO_PD1_CCP7 0x00030406
  8498. #define GPIO_PD1_U1DCD 0x00030409
  8499. #define GPIO_PD1_CCP2 0x0003040A
  8500. #define GPIO_PD2_U1RX 0x00030801
  8501. #define GPIO_PD2_CCP6 0x00030802
  8502. #define GPIO_PD2_CCP5 0x00030804
  8503. #define GPIO_PD2_EPI0S20 0x00030808
  8504. #define GPIO_PD3_U1TX 0x00030C01
  8505. #define GPIO_PD3_CCP7 0x00030C02
  8506. #define GPIO_PD3_CCP0 0x00030C04
  8507. #define GPIO_PD3_EPI0S21 0x00030C08
  8508. #define GPIO_PD4_CCP0 0x00031001
  8509. #define GPIO_PD4_CCP3 0x00031002
  8510. #define GPIO_PD4_U1RI 0x00031009
  8511. #define GPIO_PD4_EPI0S19 0x0003100A
  8512. #define GPIO_PD5_CCP2 0x00031401
  8513. #define GPIO_PD5_CCP4 0x00031402
  8514. #define GPIO_PD5_U2RX 0x00031409
  8515. #define GPIO_PD5_EPI0S28 0x0003140A
  8516. #define GPIO_PD6_U2TX 0x00031809
  8517. #define GPIO_PD6_EPI0S29 0x0003180A
  8518. #define GPIO_PD7_C0O 0x00031C02
  8519. #define GPIO_PD7_CCP1 0x00031C03
  8520. #define GPIO_PD7_U1DTR 0x00031C09
  8521. #define GPIO_PD7_EPI0S30 0x00031C0A
  8522. #define GPIO_PE0_SSI1CLK 0x00040002
  8523. #define GPIO_PE0_CCP3 0x00040003
  8524. #define GPIO_PE0_EPI0S8 0x00040008
  8525. #define GPIO_PE1_SSI1FSS 0x00040402
  8526. #define GPIO_PE1_CCP2 0x00040404
  8527. #define GPIO_PE1_CCP6 0x00040405
  8528. #define GPIO_PE1_EPI0S9 0x00040408
  8529. #define GPIO_PE2_CCP4 0x00040801
  8530. #define GPIO_PE2_SSI1RX 0x00040802
  8531. #define GPIO_PE2_CCP2 0x00040805
  8532. #define GPIO_PE2_EPI0S24 0x00040808
  8533. #define GPIO_PE3_CCP1 0x00040C01
  8534. #define GPIO_PE3_SSI1TX 0x00040C02
  8535. #define GPIO_PE3_CCP7 0x00040C05
  8536. #define GPIO_PE3_EPI0S25 0x00040C08
  8537. #define GPIO_PE4_CCP3 0x00041001
  8538. #define GPIO_PE4_U2TX 0x00041005
  8539. #define GPIO_PE4_CCP2 0x00041006
  8540. #define GPIO_PE5_CCP5 0x00041401
  8541. #define GPIO_PE6_C1O 0x00041802
  8542. #define GPIO_PE6_U1CTS 0x00041809
  8543. #define GPIO_PE7_U1DCD 0x00041C09
  8544. #define GPIO_PF0_U1DSR 0x00050009
  8545. #define GPIO_PF1_U1RTS 0x00050409
  8546. #define GPIO_PF1_CCP3 0x0005040A
  8547. #define GPIO_PF2_SSI1CLK 0x00050809
  8548. #define GPIO_PF3_SSI1FSS 0x00050C09
  8549. #define GPIO_PF4_CCP0 0x00051001
  8550. #define GPIO_PF4_C0O 0x00051002
  8551. #define GPIO_PF4_EPI0S12 0x00051008
  8552. #define GPIO_PF4_SSI1RX 0x00051009
  8553. #define GPIO_PF5_CCP2 0x00051401
  8554. #define GPIO_PF5_C1O 0x00051402
  8555. #define GPIO_PF5_EPI0S15 0x00051408
  8556. #define GPIO_PF5_SSI1TX 0x00051409
  8557. #define GPIO_PF6_CCP1 0x00051801
  8558. #define GPIO_PF6_U1RTS 0x0005180A
  8559. #define GPIO_PF7_CCP4 0x00051C01
  8560. #define GPIO_PF7_EPI0S12 0x00051C08
  8561. #define GPIO_PG0_U2RX 0x00060001
  8562. #define GPIO_PG0_I2C1SCL 0x00060003
  8563. #define GPIO_PG0_EPI0S13 0x00060008
  8564. #define GPIO_PG1_U2TX 0x00060401
  8565. #define GPIO_PG1_I2C1SDA 0x00060403
  8566. #define GPIO_PG1_EPI0S14 0x00060408
  8567. #define GPIO_PG4_CCP3 0x00061001
  8568. #define GPIO_PG4_EPI0S15 0x00061008
  8569. #define GPIO_PG4_U1RI 0x0006100A
  8570. #define GPIO_PG5_CCP5 0x00061401
  8571. #define GPIO_PG5_U1DTR 0x0006140A
  8572. #define GPIO_PG6_U1RI 0x0006180A
  8573. #define GPIO_PG7_CCP5 0x00061C08
  8574. #define GPIO_PG7_EPI0S31 0x00061C09
  8575. #define GPIO_PH0_CCP6 0x00070001
  8576. #define GPIO_PH0_EPI0S6 0x00070008
  8577. #define GPIO_PH1_CCP7 0x00070401
  8578. #define GPIO_PH1_EPI0S7 0x00070408
  8579. #define GPIO_PH2_C1O 0x00070802
  8580. #define GPIO_PH2_EPI0S1 0x00070808
  8581. #define GPIO_PH3_EPI0S0 0x00070C08
  8582. #define GPIO_PH4_EPI0S10 0x00071008
  8583. #define GPIO_PH4_SSI1CLK 0x0007100B
  8584. #define GPIO_PH5_EPI0S11 0x00071408
  8585. #define GPIO_PH5_SSI1FSS 0x0007140B
  8586. #define GPIO_PH6_EPI0S26 0x00071808
  8587. #define GPIO_PH6_SSI1RX 0x0007180B
  8588. #define GPIO_PH7_EPI0S27 0x00071C08
  8589. #define GPIO_PH7_SSI1TX 0x00071C0B
  8590. #define GPIO_PJ0_EPI0S16 0x00080008
  8591. #define GPIO_PJ0_I2C1SCL 0x0008000B
  8592. #define GPIO_PJ1_EPI0S17 0x00080408
  8593. #define GPIO_PJ1_I2C1SDA 0x0008040B
  8594. #define GPIO_PJ2_EPI0S18 0x00080808
  8595. #define GPIO_PJ2_CCP0 0x00080809
  8596. #endif // PART_LM3S1G21
  8597. //*****************************************************************************
  8598. //
  8599. // LM3S1G58 Port/Pin Mapping Definitions
  8600. //
  8601. //*****************************************************************************
  8602. #ifdef PART_LM3S1G58
  8603. #define GPIO_PA0_U0RX 0x00000001
  8604. #define GPIO_PA0_I2C1SCL 0x00000008
  8605. #define GPIO_PA0_U1RX 0x00000009
  8606. #define GPIO_PA1_U0TX 0x00000401
  8607. #define GPIO_PA1_I2C1SDA 0x00000408
  8608. #define GPIO_PA1_U1TX 0x00000409
  8609. #define GPIO_PA2_SSI0CLK 0x00000801
  8610. #define GPIO_PA3_SSI0FSS 0x00000C01
  8611. #define GPIO_PA4_SSI0RX 0x00001001
  8612. #define GPIO_PA5_SSI0TX 0x00001401
  8613. #define GPIO_PA6_I2C1SCL 0x00001801
  8614. #define GPIO_PA6_CCP1 0x00001802
  8615. #define GPIO_PA7_I2C1SDA 0x00001C01
  8616. #define GPIO_PA7_CCP4 0x00001C02
  8617. #define GPIO_PA7_CCP3 0x00001C07
  8618. #define GPIO_PB0_CCP0 0x00010001
  8619. #define GPIO_PB0_U1RX 0x00010005
  8620. #define GPIO_PB1_CCP2 0x00010401
  8621. #define GPIO_PB1_CCP1 0x00010404
  8622. #define GPIO_PB1_U1TX 0x00010405
  8623. #define GPIO_PB2_I2C0SCL 0x00010801
  8624. #define GPIO_PB2_CCP3 0x00010804
  8625. #define GPIO_PB2_CCP0 0x00010805
  8626. #define GPIO_PB3_I2C0SDA 0x00010C01
  8627. #define GPIO_PB4_U2RX 0x00011004
  8628. #define GPIO_PB4_U1RX 0x00011007
  8629. #define GPIO_PB5_CCP5 0x00011402
  8630. #define GPIO_PB5_CCP6 0x00011403
  8631. #define GPIO_PB5_CCP0 0x00011404
  8632. #define GPIO_PB5_CCP2 0x00011406
  8633. #define GPIO_PB5_U1TX 0x00011407
  8634. #define GPIO_PB6_CCP1 0x00011801
  8635. #define GPIO_PB6_CCP7 0x00011802
  8636. #define GPIO_PB6_CCP5 0x00011806
  8637. #define GPIO_PB7_NMI 0x00011C04
  8638. #define GPIO_PC0_TCK 0x00020003
  8639. #define GPIO_PC0_SWCLK 0x00020003
  8640. #define GPIO_PC1_TMS 0x00020403
  8641. #define GPIO_PC1_SWDIO 0x00020403
  8642. #define GPIO_PC2_TDI 0x00020803
  8643. #define GPIO_PC3_SWO 0x00020C03
  8644. #define GPIO_PC3_TDO 0x00020C03
  8645. #define GPIO_PC4_CCP5 0x00021001
  8646. #define GPIO_PC4_CCP2 0x00021005
  8647. #define GPIO_PC4_CCP4 0x00021006
  8648. #define GPIO_PC4_CCP1 0x00021009
  8649. #define GPIO_PC5_CCP1 0x00021401
  8650. #define GPIO_PC5_CCP3 0x00021405
  8651. #define GPIO_PC6_CCP3 0x00021801
  8652. #define GPIO_PC6_U1RX 0x00021805
  8653. #define GPIO_PC6_CCP0 0x00021806
  8654. #define GPIO_PC7_CCP4 0x00021C01
  8655. #define GPIO_PC7_CCP0 0x00021C04
  8656. #define GPIO_PC7_U1TX 0x00021C05
  8657. #define GPIO_PD0_U2RX 0x00030004
  8658. #define GPIO_PD0_U1RX 0x00030005
  8659. #define GPIO_PD0_CCP6 0x00030006
  8660. #define GPIO_PD1_U2TX 0x00030404
  8661. #define GPIO_PD1_U1TX 0x00030405
  8662. #define GPIO_PD1_CCP7 0x00030406
  8663. #define GPIO_PD1_CCP2 0x0003040A
  8664. #define GPIO_PD2_U1RX 0x00030801
  8665. #define GPIO_PD2_CCP6 0x00030802
  8666. #define GPIO_PD2_CCP5 0x00030804
  8667. #define GPIO_PD3_U1TX 0x00030C01
  8668. #define GPIO_PD3_CCP7 0x00030C02
  8669. #define GPIO_PD3_CCP0 0x00030C04
  8670. #define GPIO_PD4_CCP0 0x00031001
  8671. #define GPIO_PD4_CCP3 0x00031002
  8672. #define GPIO_PD5_CCP2 0x00031401
  8673. #define GPIO_PD5_CCP4 0x00031402
  8674. #define GPIO_PD5_U2RX 0x00031409
  8675. #define GPIO_PD6_U2TX 0x00031809
  8676. #define GPIO_PD7_CCP1 0x00031C03
  8677. #define GPIO_PE0_SSI1CLK 0x00040002
  8678. #define GPIO_PE0_CCP3 0x00040003
  8679. #define GPIO_PE1_SSI1FSS 0x00040402
  8680. #define GPIO_PE1_CCP2 0x00040404
  8681. #define GPIO_PE1_CCP6 0x00040405
  8682. #define GPIO_PE2_CCP4 0x00040801
  8683. #define GPIO_PE2_SSI1RX 0x00040802
  8684. #define GPIO_PE2_CCP2 0x00040805
  8685. #define GPIO_PE3_CCP1 0x00040C01
  8686. #define GPIO_PE3_SSI1TX 0x00040C02
  8687. #define GPIO_PE3_CCP7 0x00040C05
  8688. #define GPIO_PE4_CCP3 0x00041001
  8689. #define GPIO_PE4_U2TX 0x00041005
  8690. #define GPIO_PE4_CCP2 0x00041006
  8691. #define GPIO_PE5_CCP5 0x00041401
  8692. #define GPIO_PF0_U1DSR 0x00050009
  8693. #define GPIO_PF1_CCP3 0x0005040A
  8694. #define GPIO_PF2_SSI1CLK 0x00050809
  8695. #define GPIO_PF3_SSI1FSS 0x00050C09
  8696. #define GPIO_PF4_CCP0 0x00051001
  8697. #define GPIO_PF4_SSI1RX 0x00051009
  8698. #define GPIO_PF5_CCP2 0x00051401
  8699. #define GPIO_PF5_SSI1TX 0x00051409
  8700. #define GPIO_PF6_CCP1 0x00051801
  8701. #define GPIO_PF7_CCP4 0x00051C01
  8702. #define GPIO_PG0_U2RX 0x00060001
  8703. #define GPIO_PG0_I2C1SCL 0x00060003
  8704. #define GPIO_PG1_U2TX 0x00060401
  8705. #define GPIO_PG1_I2C1SDA 0x00060403
  8706. #define GPIO_PG4_CCP3 0x00061001
  8707. #define GPIO_PG5_CCP5 0x00061401
  8708. #define GPIO_PG7_CCP5 0x00061C08
  8709. #define GPIO_PH0_CCP6 0x00070001
  8710. #define GPIO_PH1_CCP7 0x00070401
  8711. #endif // PART_LM3S1G58
  8712. //*****************************************************************************
  8713. //
  8714. // LM3S1H11 Port/Pin Mapping Definitions
  8715. //
  8716. //*****************************************************************************
  8717. #ifdef PART_LM3S1H11
  8718. #define GPIO_PA0_U0RX 0x00000001
  8719. #define GPIO_PA0_I2C1SCL 0x00000008
  8720. #define GPIO_PA0_U1RX 0x00000009
  8721. #define GPIO_PA1_U0TX 0x00000401
  8722. #define GPIO_PA1_I2C1SDA 0x00000408
  8723. #define GPIO_PA1_U1TX 0x00000409
  8724. #define GPIO_PA2_SSI0CLK 0x00000801
  8725. #define GPIO_PA3_SSI0FSS 0x00000C01
  8726. #define GPIO_PA4_SSI0RX 0x00001001
  8727. #define GPIO_PA5_SSI0TX 0x00001401
  8728. #define GPIO_PA6_I2C1SCL 0x00001801
  8729. #define GPIO_PA6_CCP1 0x00001802
  8730. #define GPIO_PA6_U1CTS 0x00001809
  8731. #define GPIO_PA7_I2C1SDA 0x00001C01
  8732. #define GPIO_PA7_CCP4 0x00001C02
  8733. #define GPIO_PA7_CCP3 0x00001C07
  8734. #define GPIO_PA7_U1DCD 0x00001C09
  8735. #define GPIO_PB0_CCP0 0x00010001
  8736. #define GPIO_PB0_U1RX 0x00010005
  8737. #define GPIO_PB1_CCP2 0x00010401
  8738. #define GPIO_PB1_CCP1 0x00010404
  8739. #define GPIO_PB1_U1TX 0x00010405
  8740. #define GPIO_PB2_I2C0SCL 0x00010801
  8741. #define GPIO_PB2_CCP3 0x00010804
  8742. #define GPIO_PB2_CCP0 0x00010805
  8743. #define GPIO_PB3_I2C0SDA 0x00010C01
  8744. #define GPIO_PB4_U2RX 0x00011004
  8745. #define GPIO_PB4_U1RX 0x00011007
  8746. #define GPIO_PB4_EPI0S23 0x00011008
  8747. #define GPIO_PB5_C0O 0x00011401
  8748. #define GPIO_PB5_CCP5 0x00011402
  8749. #define GPIO_PB5_CCP6 0x00011403
  8750. #define GPIO_PB5_CCP0 0x00011404
  8751. #define GPIO_PB5_CCP2 0x00011406
  8752. #define GPIO_PB5_U1TX 0x00011407
  8753. #define GPIO_PB5_EPI0S22 0x00011408
  8754. #define GPIO_PB6_CCP1 0x00011801
  8755. #define GPIO_PB6_CCP7 0x00011802
  8756. #define GPIO_PB6_C0O 0x00011803
  8757. #define GPIO_PB6_CCP5 0x00011806
  8758. #define GPIO_PB7_NMI 0x00011C04
  8759. #define GPIO_PC0_TCK 0x00020003
  8760. #define GPIO_PC0_SWCLK 0x00020003
  8761. #define GPIO_PC1_TMS 0x00020403
  8762. #define GPIO_PC1_SWDIO 0x00020403
  8763. #define GPIO_PC2_TDI 0x00020803
  8764. #define GPIO_PC3_SWO 0x00020C03
  8765. #define GPIO_PC3_TDO 0x00020C03
  8766. #define GPIO_PC4_CCP5 0x00021001
  8767. #define GPIO_PC4_CCP2 0x00021005
  8768. #define GPIO_PC4_CCP4 0x00021006
  8769. #define GPIO_PC4_EPI0S2 0x00021008
  8770. #define GPIO_PC4_CCP1 0x00021009
  8771. #define GPIO_PC5_CCP1 0x00021401
  8772. #define GPIO_PC5_C1O 0x00021402
  8773. #define GPIO_PC5_C0O 0x00021403
  8774. #define GPIO_PC5_CCP3 0x00021405
  8775. #define GPIO_PC5_EPI0S3 0x00021408
  8776. #define GPIO_PC6_CCP3 0x00021801
  8777. #define GPIO_PC6_U1RX 0x00021805
  8778. #define GPIO_PC6_CCP0 0x00021806
  8779. #define GPIO_PC6_EPI0S4 0x00021808
  8780. #define GPIO_PC7_CCP4 0x00021C01
  8781. #define GPIO_PC7_CCP0 0x00021C04
  8782. #define GPIO_PC7_U1TX 0x00021C05
  8783. #define GPIO_PC7_C1O 0x00021C07
  8784. #define GPIO_PC7_EPI0S5 0x00021C08
  8785. #define GPIO_PD0_U2RX 0x00030004
  8786. #define GPIO_PD0_U1RX 0x00030005
  8787. #define GPIO_PD0_CCP6 0x00030006
  8788. #define GPIO_PD0_U1CTS 0x00030009
  8789. #define GPIO_PD1_U2TX 0x00030404
  8790. #define GPIO_PD1_U1TX 0x00030405
  8791. #define GPIO_PD1_CCP7 0x00030406
  8792. #define GPIO_PD1_U1DCD 0x00030409
  8793. #define GPIO_PD1_CCP2 0x0003040A
  8794. #define GPIO_PD2_U1RX 0x00030801
  8795. #define GPIO_PD2_CCP6 0x00030802
  8796. #define GPIO_PD2_CCP5 0x00030804
  8797. #define GPIO_PD2_EPI0S20 0x00030808
  8798. #define GPIO_PD3_U1TX 0x00030C01
  8799. #define GPIO_PD3_CCP7 0x00030C02
  8800. #define GPIO_PD3_CCP0 0x00030C04
  8801. #define GPIO_PD3_EPI0S21 0x00030C08
  8802. #define GPIO_PD4_CCP0 0x00031001
  8803. #define GPIO_PD4_CCP3 0x00031002
  8804. #define GPIO_PD4_U1RI 0x00031009
  8805. #define GPIO_PD4_EPI0S19 0x0003100A
  8806. #define GPIO_PD5_CCP2 0x00031401
  8807. #define GPIO_PD5_CCP4 0x00031402
  8808. #define GPIO_PD5_U2RX 0x00031409
  8809. #define GPIO_PD5_EPI0S28 0x0003140A
  8810. #define GPIO_PD6_U2TX 0x00031809
  8811. #define GPIO_PD6_EPI0S29 0x0003180A
  8812. #define GPIO_PD7_C0O 0x00031C02
  8813. #define GPIO_PD7_CCP1 0x00031C03
  8814. #define GPIO_PD7_U1DTR 0x00031C09
  8815. #define GPIO_PD7_EPI0S30 0x00031C0A
  8816. #define GPIO_PE0_SSI1CLK 0x00040002
  8817. #define GPIO_PE0_CCP3 0x00040003
  8818. #define GPIO_PE0_EPI0S8 0x00040008
  8819. #define GPIO_PE1_SSI1FSS 0x00040402
  8820. #define GPIO_PE1_CCP2 0x00040404
  8821. #define GPIO_PE1_CCP6 0x00040405
  8822. #define GPIO_PE1_EPI0S9 0x00040408
  8823. #define GPIO_PE2_CCP4 0x00040801
  8824. #define GPIO_PE2_SSI1RX 0x00040802
  8825. #define GPIO_PE2_CCP2 0x00040805
  8826. #define GPIO_PE2_EPI0S24 0x00040808
  8827. #define GPIO_PE3_CCP1 0x00040C01
  8828. #define GPIO_PE3_SSI1TX 0x00040C02
  8829. #define GPIO_PE3_CCP7 0x00040C05
  8830. #define GPIO_PE3_EPI0S25 0x00040C08
  8831. #define GPIO_PE4_CCP3 0x00041001
  8832. #define GPIO_PE4_U2TX 0x00041005
  8833. #define GPIO_PE4_CCP2 0x00041006
  8834. #define GPIO_PE5_CCP5 0x00041401
  8835. #define GPIO_PE6_C1O 0x00041802
  8836. #define GPIO_PE6_U1CTS 0x00041809
  8837. #define GPIO_PE7_U1DCD 0x00041C09
  8838. #define GPIO_PF0_U1DSR 0x00050009
  8839. #define GPIO_PF1_U1RTS 0x00050409
  8840. #define GPIO_PF1_CCP3 0x0005040A
  8841. #define GPIO_PF2_SSI1CLK 0x00050809
  8842. #define GPIO_PF3_SSI1FSS 0x00050C09
  8843. #define GPIO_PF4_CCP0 0x00051001
  8844. #define GPIO_PF4_C0O 0x00051002
  8845. #define GPIO_PF4_EPI0S12 0x00051008
  8846. #define GPIO_PF4_SSI1RX 0x00051009
  8847. #define GPIO_PF5_CCP2 0x00051401
  8848. #define GPIO_PF5_C1O 0x00051402
  8849. #define GPIO_PF5_EPI0S15 0x00051408
  8850. #define GPIO_PF5_SSI1TX 0x00051409
  8851. #define GPIO_PF6_CCP1 0x00051801
  8852. #define GPIO_PF6_U1RTS 0x0005180A
  8853. #define GPIO_PF7_CCP4 0x00051C01
  8854. #define GPIO_PF7_EPI0S12 0x00051C08
  8855. #define GPIO_PG0_U2RX 0x00060001
  8856. #define GPIO_PG0_I2C1SCL 0x00060003
  8857. #define GPIO_PG0_EPI0S13 0x00060008
  8858. #define GPIO_PG1_U2TX 0x00060401
  8859. #define GPIO_PG1_I2C1SDA 0x00060403
  8860. #define GPIO_PG1_EPI0S14 0x00060408
  8861. #define GPIO_PG4_CCP3 0x00061001
  8862. #define GPIO_PG4_EPI0S15 0x00061008
  8863. #define GPIO_PG4_U1RI 0x0006100A
  8864. #define GPIO_PG5_CCP5 0x00061401
  8865. #define GPIO_PG5_U1DTR 0x0006140A
  8866. #define GPIO_PG6_U1RI 0x0006180A
  8867. #define GPIO_PG7_CCP5 0x00061C08
  8868. #define GPIO_PG7_EPI0S31 0x00061C09
  8869. #define GPIO_PH0_CCP6 0x00070001
  8870. #define GPIO_PH0_EPI0S6 0x00070008
  8871. #define GPIO_PH1_CCP7 0x00070401
  8872. #define GPIO_PH1_EPI0S7 0x00070408
  8873. #define GPIO_PH2_C1O 0x00070802
  8874. #define GPIO_PH2_EPI0S1 0x00070808
  8875. #define GPIO_PH3_EPI0S0 0x00070C08
  8876. #define GPIO_PH4_EPI0S10 0x00071008
  8877. #define GPIO_PH4_SSI1CLK 0x0007100B
  8878. #define GPIO_PH5_EPI0S11 0x00071408
  8879. #define GPIO_PH5_SSI1FSS 0x0007140B
  8880. #define GPIO_PH6_EPI0S26 0x00071808
  8881. #define GPIO_PH6_SSI1RX 0x0007180B
  8882. #define GPIO_PH7_EPI0S27 0x00071C08
  8883. #define GPIO_PH7_SSI1TX 0x00071C0B
  8884. #define GPIO_PJ0_EPI0S16 0x00080008
  8885. #define GPIO_PJ0_I2C1SCL 0x0008000B
  8886. #define GPIO_PJ1_EPI0S17 0x00080408
  8887. #define GPIO_PJ1_I2C1SDA 0x0008040B
  8888. #define GPIO_PJ2_EPI0S18 0x00080808
  8889. #define GPIO_PJ2_CCP0 0x00080809
  8890. #endif // PART_LM3S1H11
  8891. //*****************************************************************************
  8892. //
  8893. // LM3S1H16 Port/Pin Mapping Definitions
  8894. //
  8895. //*****************************************************************************
  8896. #ifdef PART_LM3S1H16
  8897. #define GPIO_PA0_U0RX 0x00000001
  8898. #define GPIO_PA0_I2C1SCL 0x00000008
  8899. #define GPIO_PA0_U1RX 0x00000009
  8900. #define GPIO_PA1_U0TX 0x00000401
  8901. #define GPIO_PA1_I2C1SDA 0x00000408
  8902. #define GPIO_PA1_U1TX 0x00000409
  8903. #define GPIO_PA2_SSI0CLK 0x00000801
  8904. #define GPIO_PA3_SSI0FSS 0x00000C01
  8905. #define GPIO_PA4_SSI0RX 0x00001001
  8906. #define GPIO_PA5_SSI0TX 0x00001401
  8907. #define GPIO_PA6_I2C1SCL 0x00001801
  8908. #define GPIO_PA6_CCP1 0x00001802
  8909. #define GPIO_PA7_I2C1SDA 0x00001C01
  8910. #define GPIO_PA7_CCP4 0x00001C02
  8911. #define GPIO_PA7_CCP3 0x00001C07
  8912. #define GPIO_PB0_CCP0 0x00010001
  8913. #define GPIO_PB0_U1RX 0x00010005
  8914. #define GPIO_PB1_CCP2 0x00010401
  8915. #define GPIO_PB1_CCP1 0x00010404
  8916. #define GPIO_PB1_U1TX 0x00010405
  8917. #define GPIO_PB2_I2C0SCL 0x00010801
  8918. #define GPIO_PB2_CCP3 0x00010804
  8919. #define GPIO_PB2_CCP0 0x00010805
  8920. #define GPIO_PB3_I2C0SDA 0x00010C01
  8921. #define GPIO_PB4_U2RX 0x00011004
  8922. #define GPIO_PB4_U1RX 0x00011007
  8923. #define GPIO_PB5_C0O 0x00011401
  8924. #define GPIO_PB5_CCP5 0x00011402
  8925. #define GPIO_PB5_CCP6 0x00011403
  8926. #define GPIO_PB5_CCP0 0x00011404
  8927. #define GPIO_PB5_CCP2 0x00011406
  8928. #define GPIO_PB5_U1TX 0x00011407
  8929. #define GPIO_PB6_CCP1 0x00011801
  8930. #define GPIO_PB6_CCP7 0x00011802
  8931. #define GPIO_PB6_C0O 0x00011803
  8932. #define GPIO_PB6_CCP5 0x00011806
  8933. #define GPIO_PB7_NMI 0x00011C04
  8934. #define GPIO_PC0_TCK 0x00020003
  8935. #define GPIO_PC0_SWCLK 0x00020003
  8936. #define GPIO_PC1_TMS 0x00020403
  8937. #define GPIO_PC1_SWDIO 0x00020403
  8938. #define GPIO_PC2_TDI 0x00020803
  8939. #define GPIO_PC3_SWO 0x00020C03
  8940. #define GPIO_PC3_TDO 0x00020C03
  8941. #define GPIO_PC4_CCP5 0x00021001
  8942. #define GPIO_PC4_CCP2 0x00021005
  8943. #define GPIO_PC4_CCP4 0x00021006
  8944. #define GPIO_PC4_CCP1 0x00021009
  8945. #define GPIO_PC5_CCP1 0x00021401
  8946. #define GPIO_PC5_C1O 0x00021402
  8947. #define GPIO_PC5_C0O 0x00021403
  8948. #define GPIO_PC5_CCP3 0x00021405
  8949. #define GPIO_PC6_CCP3 0x00021801
  8950. #define GPIO_PC6_U1RX 0x00021805
  8951. #define GPIO_PC6_CCP0 0x00021806
  8952. #define GPIO_PC7_CCP4 0x00021C01
  8953. #define GPIO_PC7_CCP0 0x00021C04
  8954. #define GPIO_PC7_U1TX 0x00021C05
  8955. #define GPIO_PC7_C1O 0x00021C07
  8956. #define GPIO_PD0_U2RX 0x00030004
  8957. #define GPIO_PD0_U1RX 0x00030005
  8958. #define GPIO_PD0_CCP6 0x00030006
  8959. #define GPIO_PD1_U2TX 0x00030404
  8960. #define GPIO_PD1_U1TX 0x00030405
  8961. #define GPIO_PD1_CCP7 0x00030406
  8962. #define GPIO_PD1_CCP2 0x0003040A
  8963. #define GPIO_PD2_U1RX 0x00030801
  8964. #define GPIO_PD2_CCP6 0x00030802
  8965. #define GPIO_PD2_CCP5 0x00030804
  8966. #define GPIO_PD3_U1TX 0x00030C01
  8967. #define GPIO_PD3_CCP7 0x00030C02
  8968. #define GPIO_PD3_CCP0 0x00030C04
  8969. #define GPIO_PE0_SSI1CLK 0x00040002
  8970. #define GPIO_PE0_CCP3 0x00040003
  8971. #define GPIO_PE1_SSI1FSS 0x00040402
  8972. #define GPIO_PE1_CCP2 0x00040404
  8973. #define GPIO_PE1_CCP6 0x00040405
  8974. #define GPIO_PE2_CCP4 0x00040801
  8975. #define GPIO_PE2_SSI1RX 0x00040802
  8976. #define GPIO_PE2_CCP2 0x00040805
  8977. #define GPIO_PE3_CCP1 0x00040C01
  8978. #define GPIO_PE3_SSI1TX 0x00040C02
  8979. #define GPIO_PE3_CCP7 0x00040C05
  8980. #define GPIO_PE4_CCP3 0x00041001
  8981. #define GPIO_PE4_U2TX 0x00041005
  8982. #define GPIO_PE4_CCP2 0x00041006
  8983. #endif // PART_LM3S1H16
  8984. //*****************************************************************************
  8985. //
  8986. // LM3S1J11 Port/Pin Mapping Definitions
  8987. //
  8988. //*****************************************************************************
  8989. #ifdef PART_LM3S1J11
  8990. #define GPIO_PA0_U0RX 0x00000001
  8991. #define GPIO_PA0_I2C1SCL 0x00000008
  8992. #define GPIO_PA0_U1RX 0x00000009
  8993. #define GPIO_PA1_U0TX 0x00000401
  8994. #define GPIO_PA1_I2C1SDA 0x00000408
  8995. #define GPIO_PA1_U1TX 0x00000409
  8996. #define GPIO_PA2_SSI0CLK 0x00000801
  8997. #define GPIO_PA3_SSI0FSS 0x00000C01
  8998. #define GPIO_PA4_SSI0RX 0x00001001
  8999. #define GPIO_PA5_SSI0TX 0x00001401
  9000. #define GPIO_PA6_I2C1SCL 0x00001801
  9001. #define GPIO_PA6_CCP1 0x00001802
  9002. #define GPIO_PA6_U1CTS 0x00001809
  9003. #define GPIO_PA7_I2C1SDA 0x00001C01
  9004. #define GPIO_PA7_CCP4 0x00001C02
  9005. #define GPIO_PA7_CCP3 0x00001C07
  9006. #define GPIO_PA7_U1DCD 0x00001C09
  9007. #define GPIO_PB0_CCP0 0x00010001
  9008. #define GPIO_PB0_U1RX 0x00010005
  9009. #define GPIO_PB1_CCP2 0x00010401
  9010. #define GPIO_PB1_CCP1 0x00010404
  9011. #define GPIO_PB1_U1TX 0x00010405
  9012. #define GPIO_PB2_I2C0SCL 0x00010801
  9013. #define GPIO_PB2_CCP3 0x00010804
  9014. #define GPIO_PB2_CCP0 0x00010805
  9015. #define GPIO_PB3_I2C0SDA 0x00010C01
  9016. #define GPIO_PB4_U2RX 0x00011004
  9017. #define GPIO_PB4_U1RX 0x00011007
  9018. #define GPIO_PB5_C0O 0x00011401
  9019. #define GPIO_PB5_CCP5 0x00011402
  9020. #define GPIO_PB5_CCP0 0x00011404
  9021. #define GPIO_PB5_CCP2 0x00011406
  9022. #define GPIO_PB5_U1TX 0x00011407
  9023. #define GPIO_PB6_CCP1 0x00011801
  9024. #define GPIO_PB6_C0O 0x00011803
  9025. #define GPIO_PB6_CCP5 0x00011806
  9026. #define GPIO_PB7_NMI 0x00011C04
  9027. #define GPIO_PC0_TCK 0x00020003
  9028. #define GPIO_PC0_SWCLK 0x00020003
  9029. #define GPIO_PC1_TMS 0x00020403
  9030. #define GPIO_PC1_SWDIO 0x00020403
  9031. #define GPIO_PC2_TDI 0x00020803
  9032. #define GPIO_PC3_SWO 0x00020C03
  9033. #define GPIO_PC3_TDO 0x00020C03
  9034. #define GPIO_PC4_CCP5 0x00021001
  9035. #define GPIO_PC4_CCP2 0x00021005
  9036. #define GPIO_PC4_CCP4 0x00021006
  9037. #define GPIO_PC4_CCP1 0x00021009
  9038. #define GPIO_PC5_CCP1 0x00021401
  9039. #define GPIO_PC5_C1O 0x00021402
  9040. #define GPIO_PC5_C0O 0x00021403
  9041. #define GPIO_PC5_CCP3 0x00021405
  9042. #define GPIO_PC6_CCP3 0x00021801
  9043. #define GPIO_PC6_U1RX 0x00021805
  9044. #define GPIO_PC6_CCP0 0x00021806
  9045. #define GPIO_PC7_CCP4 0x00021C01
  9046. #define GPIO_PC7_CCP0 0x00021C04
  9047. #define GPIO_PC7_U1TX 0x00021C05
  9048. #define GPIO_PC7_C1O 0x00021C07
  9049. #define GPIO_PD0_U2RX 0x00030004
  9050. #define GPIO_PD0_U1RX 0x00030005
  9051. #define GPIO_PD0_U1CTS 0x00030009
  9052. #define GPIO_PD1_U2TX 0x00030404
  9053. #define GPIO_PD1_U1TX 0x00030405
  9054. #define GPIO_PD1_U1DCD 0x00030409
  9055. #define GPIO_PD1_CCP2 0x0003040A
  9056. #define GPIO_PD2_U1RX 0x00030801
  9057. #define GPIO_PD2_CCP5 0x00030804
  9058. #define GPIO_PD3_U1TX 0x00030C01
  9059. #define GPIO_PD3_CCP0 0x00030C04
  9060. #define GPIO_PD4_CCP0 0x00031001
  9061. #define GPIO_PD4_CCP3 0x00031002
  9062. #define GPIO_PD4_U1RI 0x00031009
  9063. #define GPIO_PD5_CCP2 0x00031401
  9064. #define GPIO_PD5_CCP4 0x00031402
  9065. #define GPIO_PD5_U2RX 0x00031409
  9066. #define GPIO_PD6_U2TX 0x00031809
  9067. #define GPIO_PD7_C0O 0x00031C02
  9068. #define GPIO_PD7_CCP1 0x00031C03
  9069. #define GPIO_PD7_U1DTR 0x00031C09
  9070. #define GPIO_PE0_SSI1CLK 0x00040002
  9071. #define GPIO_PE0_CCP3 0x00040003
  9072. #define GPIO_PE1_SSI1FSS 0x00040402
  9073. #define GPIO_PE1_CCP2 0x00040404
  9074. #define GPIO_PE2_CCP4 0x00040801
  9075. #define GPIO_PE2_SSI1RX 0x00040802
  9076. #define GPIO_PE2_CCP2 0x00040805
  9077. #define GPIO_PE3_CCP1 0x00040C01
  9078. #define GPIO_PE3_SSI1TX 0x00040C02
  9079. #define GPIO_PE4_CCP3 0x00041001
  9080. #define GPIO_PE4_U2TX 0x00041005
  9081. #define GPIO_PE4_CCP2 0x00041006
  9082. #define GPIO_PE5_CCP5 0x00041401
  9083. #define GPIO_PE6_C1O 0x00041802
  9084. #define GPIO_PE6_U1CTS 0x00041809
  9085. #define GPIO_PE7_U1DCD 0x00041C09
  9086. #define GPIO_PF0_U1DSR 0x00050009
  9087. #define GPIO_PF1_U1RTS 0x00050409
  9088. #define GPIO_PF1_CCP3 0x0005040A
  9089. #define GPIO_PF2_SSI1CLK 0x00050809
  9090. #define GPIO_PF3_SSI1FSS 0x00050C09
  9091. #define GPIO_PF4_CCP0 0x00051001
  9092. #define GPIO_PF4_C0O 0x00051002
  9093. #define GPIO_PF4_SSI1RX 0x00051009
  9094. #define GPIO_PF5_CCP2 0x00051401
  9095. #define GPIO_PF5_C1O 0x00051402
  9096. #define GPIO_PF5_SSI1TX 0x00051409
  9097. #define GPIO_PF6_CCP1 0x00051801
  9098. #define GPIO_PF6_U1RTS 0x0005180A
  9099. #define GPIO_PF7_CCP4 0x00051C01
  9100. #define GPIO_PG0_U2RX 0x00060001
  9101. #define GPIO_PG0_I2C1SCL 0x00060003
  9102. #define GPIO_PG1_U2TX 0x00060401
  9103. #define GPIO_PG1_I2C1SDA 0x00060403
  9104. #define GPIO_PG4_CCP3 0x00061001
  9105. #define GPIO_PG4_U1RI 0x0006100A
  9106. #define GPIO_PG5_CCP5 0x00061401
  9107. #define GPIO_PG5_U1DTR 0x0006140A
  9108. #define GPIO_PG6_U1RI 0x0006180A
  9109. #define GPIO_PG7_CCP5 0x00061C08
  9110. #define GPIO_PH2_C1O 0x00070802
  9111. #define GPIO_PH4_SSI1CLK 0x0007100B
  9112. #define GPIO_PH5_SSI1FSS 0x0007140B
  9113. #define GPIO_PH6_SSI1RX 0x0007180B
  9114. #define GPIO_PH7_SSI1TX 0x00071C0B
  9115. #define GPIO_PJ0_I2C1SCL 0x0008000B
  9116. #define GPIO_PJ1_I2C1SDA 0x0008040B
  9117. #define GPIO_PJ2_CCP0 0x00080809
  9118. #endif // PART_LM3S1J11
  9119. //*****************************************************************************
  9120. //
  9121. // LM3S1J16 Port/Pin Mapping Definitions
  9122. //
  9123. //*****************************************************************************
  9124. #ifdef PART_LM3S1J16
  9125. #define GPIO_PA0_U0RX 0x00000001
  9126. #define GPIO_PA0_I2C1SCL 0x00000008
  9127. #define GPIO_PA0_U1RX 0x00000009
  9128. #define GPIO_PA1_U0TX 0x00000401
  9129. #define GPIO_PA1_I2C1SDA 0x00000408
  9130. #define GPIO_PA1_U1TX 0x00000409
  9131. #define GPIO_PA2_SSI0CLK 0x00000801
  9132. #define GPIO_PA3_SSI0FSS 0x00000C01
  9133. #define GPIO_PA4_SSI0RX 0x00001001
  9134. #define GPIO_PA5_SSI0TX 0x00001401
  9135. #define GPIO_PA6_I2C1SCL 0x00001801
  9136. #define GPIO_PA6_CCP1 0x00001802
  9137. #define GPIO_PA7_I2C1SDA 0x00001C01
  9138. #define GPIO_PA7_CCP4 0x00001C02
  9139. #define GPIO_PA7_CCP3 0x00001C07
  9140. #define GPIO_PB0_CCP0 0x00010001
  9141. #define GPIO_PB0_U1RX 0x00010005
  9142. #define GPIO_PB1_CCP2 0x00010401
  9143. #define GPIO_PB1_CCP1 0x00010404
  9144. #define GPIO_PB1_U1TX 0x00010405
  9145. #define GPIO_PB2_I2C0SCL 0x00010801
  9146. #define GPIO_PB2_CCP3 0x00010804
  9147. #define GPIO_PB2_CCP0 0x00010805
  9148. #define GPIO_PB3_I2C0SDA 0x00010C01
  9149. #define GPIO_PB4_U2RX 0x00011004
  9150. #define GPIO_PB4_U1RX 0x00011007
  9151. #define GPIO_PB5_C0O 0x00011401
  9152. #define GPIO_PB5_CCP5 0x00011402
  9153. #define GPIO_PB5_CCP0 0x00011404
  9154. #define GPIO_PB5_CCP2 0x00011406
  9155. #define GPIO_PB5_U1TX 0x00011407
  9156. #define GPIO_PB6_CCP1 0x00011801
  9157. #define GPIO_PB6_C0O 0x00011803
  9158. #define GPIO_PB6_CCP5 0x00011806
  9159. #define GPIO_PB7_NMI 0x00011C04
  9160. #define GPIO_PC0_TCK 0x00020003
  9161. #define GPIO_PC0_SWCLK 0x00020003
  9162. #define GPIO_PC1_TMS 0x00020403
  9163. #define GPIO_PC1_SWDIO 0x00020403
  9164. #define GPIO_PC2_TDI 0x00020803
  9165. #define GPIO_PC3_SWO 0x00020C03
  9166. #define GPIO_PC3_TDO 0x00020C03
  9167. #define GPIO_PC4_CCP5 0x00021001
  9168. #define GPIO_PC4_CCP2 0x00021005
  9169. #define GPIO_PC4_CCP4 0x00021006
  9170. #define GPIO_PC4_CCP1 0x00021009
  9171. #define GPIO_PC5_CCP1 0x00021401
  9172. #define GPIO_PC5_C1O 0x00021402
  9173. #define GPIO_PC5_C0O 0x00021403
  9174. #define GPIO_PC5_CCP3 0x00021405
  9175. #define GPIO_PC6_CCP3 0x00021801
  9176. #define GPIO_PC6_U1RX 0x00021805
  9177. #define GPIO_PC6_CCP0 0x00021806
  9178. #define GPIO_PC7_CCP4 0x00021C01
  9179. #define GPIO_PC7_CCP0 0x00021C04
  9180. #define GPIO_PC7_U1TX 0x00021C05
  9181. #define GPIO_PC7_C1O 0x00021C07
  9182. #define GPIO_PD0_U2RX 0x00030004
  9183. #define GPIO_PD0_U1RX 0x00030005
  9184. #define GPIO_PD1_U2TX 0x00030404
  9185. #define GPIO_PD1_U1TX 0x00030405
  9186. #define GPIO_PD1_CCP2 0x0003040A
  9187. #define GPIO_PD2_U1RX 0x00030801
  9188. #define GPIO_PD2_CCP5 0x00030804
  9189. #define GPIO_PD3_U1TX 0x00030C01
  9190. #define GPIO_PD3_CCP0 0x00030C04
  9191. #define GPIO_PE0_SSI1CLK 0x00040002
  9192. #define GPIO_PE0_CCP3 0x00040003
  9193. #define GPIO_PE1_SSI1FSS 0x00040402
  9194. #define GPIO_PE1_CCP2 0x00040404
  9195. #define GPIO_PE2_CCP4 0x00040801
  9196. #define GPIO_PE2_SSI1RX 0x00040802
  9197. #define GPIO_PE2_CCP2 0x00040805
  9198. #define GPIO_PE3_CCP1 0x00040C01
  9199. #define GPIO_PE3_SSI1TX 0x00040C02
  9200. #define GPIO_PE4_CCP3 0x00041001
  9201. #define GPIO_PE4_U2TX 0x00041005
  9202. #define GPIO_PE4_CCP2 0x00041006
  9203. #endif // PART_LM3S1J16
  9204. //*****************************************************************************
  9205. //
  9206. // LM3S1N11 Port/Pin Mapping Definitions
  9207. //
  9208. //*****************************************************************************
  9209. #ifdef PART_LM3S1N11
  9210. #define GPIO_PA0_U0RX 0x00000001
  9211. #define GPIO_PA0_I2C1SCL 0x00000008
  9212. #define GPIO_PA0_U1RX 0x00000009
  9213. #define GPIO_PA1_U0TX 0x00000401
  9214. #define GPIO_PA1_I2C1SDA 0x00000408
  9215. #define GPIO_PA1_U1TX 0x00000409
  9216. #define GPIO_PA2_SSI0CLK 0x00000801
  9217. #define GPIO_PA3_SSI0FSS 0x00000C01
  9218. #define GPIO_PA4_SSI0RX 0x00001001
  9219. #define GPIO_PA5_SSI0TX 0x00001401
  9220. #define GPIO_PA6_I2C1SCL 0x00001801
  9221. #define GPIO_PA6_CCP1 0x00001802
  9222. #define GPIO_PA6_U1CTS 0x00001809
  9223. #define GPIO_PA7_I2C1SDA 0x00001C01
  9224. #define GPIO_PA7_CCP4 0x00001C02
  9225. #define GPIO_PA7_CCP3 0x00001C07
  9226. #define GPIO_PA7_U1DCD 0x00001C09
  9227. #define GPIO_PB0_CCP0 0x00010001
  9228. #define GPIO_PB0_U1RX 0x00010005
  9229. #define GPIO_PB1_CCP2 0x00010401
  9230. #define GPIO_PB1_CCP1 0x00010404
  9231. #define GPIO_PB1_U1TX 0x00010405
  9232. #define GPIO_PB2_I2C0SCL 0x00010801
  9233. #define GPIO_PB2_CCP3 0x00010804
  9234. #define GPIO_PB2_CCP0 0x00010805
  9235. #define GPIO_PB3_I2C0SDA 0x00010C01
  9236. #define GPIO_PB4_U2RX 0x00011004
  9237. #define GPIO_PB4_U1RX 0x00011007
  9238. #define GPIO_PB5_C0O 0x00011401
  9239. #define GPIO_PB5_CCP5 0x00011402
  9240. #define GPIO_PB5_CCP0 0x00011404
  9241. #define GPIO_PB5_CCP2 0x00011406
  9242. #define GPIO_PB5_U1TX 0x00011407
  9243. #define GPIO_PB6_CCP1 0x00011801
  9244. #define GPIO_PB6_C0O 0x00011803
  9245. #define GPIO_PB6_CCP5 0x00011806
  9246. #define GPIO_PB7_NMI 0x00011C04
  9247. #define GPIO_PC0_TCK 0x00020003
  9248. #define GPIO_PC0_SWCLK 0x00020003
  9249. #define GPIO_PC1_TMS 0x00020403
  9250. #define GPIO_PC1_SWDIO 0x00020403
  9251. #define GPIO_PC2_TDI 0x00020803
  9252. #define GPIO_PC3_SWO 0x00020C03
  9253. #define GPIO_PC3_TDO 0x00020C03
  9254. #define GPIO_PC4_CCP5 0x00021001
  9255. #define GPIO_PC4_CCP2 0x00021005
  9256. #define GPIO_PC4_CCP4 0x00021006
  9257. #define GPIO_PC4_CCP1 0x00021009
  9258. #define GPIO_PC5_CCP1 0x00021401
  9259. #define GPIO_PC5_C1O 0x00021402
  9260. #define GPIO_PC5_C0O 0x00021403
  9261. #define GPIO_PC5_CCP3 0x00021405
  9262. #define GPIO_PC6_CCP3 0x00021801
  9263. #define GPIO_PC6_U1RX 0x00021805
  9264. #define GPIO_PC6_CCP0 0x00021806
  9265. #define GPIO_PC7_CCP4 0x00021C01
  9266. #define GPIO_PC7_CCP0 0x00021C04
  9267. #define GPIO_PC7_U1TX 0x00021C05
  9268. #define GPIO_PC7_C1O 0x00021C07
  9269. #define GPIO_PD0_U2RX 0x00030004
  9270. #define GPIO_PD0_U1RX 0x00030005
  9271. #define GPIO_PD0_U1CTS 0x00030009
  9272. #define GPIO_PD1_U2TX 0x00030404
  9273. #define GPIO_PD1_U1TX 0x00030405
  9274. #define GPIO_PD1_U1DCD 0x00030409
  9275. #define GPIO_PD1_CCP2 0x0003040A
  9276. #define GPIO_PD2_U1RX 0x00030801
  9277. #define GPIO_PD2_CCP5 0x00030804
  9278. #define GPIO_PD3_U1TX 0x00030C01
  9279. #define GPIO_PD3_CCP0 0x00030C04
  9280. #define GPIO_PD4_CCP0 0x00031001
  9281. #define GPIO_PD4_CCP3 0x00031002
  9282. #define GPIO_PD4_U1RI 0x00031009
  9283. #define GPIO_PD5_CCP2 0x00031401
  9284. #define GPIO_PD5_CCP4 0x00031402
  9285. #define GPIO_PD5_U2RX 0x00031409
  9286. #define GPIO_PD6_U2TX 0x00031809
  9287. #define GPIO_PD7_C0O 0x00031C02
  9288. #define GPIO_PD7_CCP1 0x00031C03
  9289. #define GPIO_PD7_U1DTR 0x00031C09
  9290. #define GPIO_PE0_SSI1CLK 0x00040002
  9291. #define GPIO_PE0_CCP3 0x00040003
  9292. #define GPIO_PE1_SSI1FSS 0x00040402
  9293. #define GPIO_PE1_CCP2 0x00040404
  9294. #define GPIO_PE2_CCP4 0x00040801
  9295. #define GPIO_PE2_SSI1RX 0x00040802
  9296. #define GPIO_PE2_CCP2 0x00040805
  9297. #define GPIO_PE3_CCP1 0x00040C01
  9298. #define GPIO_PE3_SSI1TX 0x00040C02
  9299. #define GPIO_PE4_CCP3 0x00041001
  9300. #define GPIO_PE4_U2TX 0x00041005
  9301. #define GPIO_PE4_CCP2 0x00041006
  9302. #define GPIO_PE5_CCP5 0x00041401
  9303. #define GPIO_PE6_C1O 0x00041802
  9304. #define GPIO_PE6_U1CTS 0x00041809
  9305. #define GPIO_PE7_U1DCD 0x00041C09
  9306. #define GPIO_PF0_U1DSR 0x00050009
  9307. #define GPIO_PF1_U1RTS 0x00050409
  9308. #define GPIO_PF1_CCP3 0x0005040A
  9309. #define GPIO_PF2_SSI1CLK 0x00050809
  9310. #define GPIO_PF3_SSI1FSS 0x00050C09
  9311. #define GPIO_PF4_CCP0 0x00051001
  9312. #define GPIO_PF4_C0O 0x00051002
  9313. #define GPIO_PF4_SSI1RX 0x00051009
  9314. #define GPIO_PF5_CCP2 0x00051401
  9315. #define GPIO_PF5_C1O 0x00051402
  9316. #define GPIO_PF5_SSI1TX 0x00051409
  9317. #define GPIO_PF6_CCP1 0x00051801
  9318. #define GPIO_PF6_U1RTS 0x0005180A
  9319. #define GPIO_PF7_CCP4 0x00051C01
  9320. #define GPIO_PG0_U2RX 0x00060001
  9321. #define GPIO_PG0_I2C1SCL 0x00060003
  9322. #define GPIO_PG1_U2TX 0x00060401
  9323. #define GPIO_PG1_I2C1SDA 0x00060403
  9324. #define GPIO_PG4_CCP3 0x00061001
  9325. #define GPIO_PG4_U1RI 0x0006100A
  9326. #define GPIO_PG5_CCP5 0x00061401
  9327. #define GPIO_PG5_U1DTR 0x0006140A
  9328. #define GPIO_PG6_U1RI 0x0006180A
  9329. #define GPIO_PG7_CCP5 0x00061C08
  9330. #define GPIO_PH2_C1O 0x00070802
  9331. #define GPIO_PH4_SSI1CLK 0x0007100B
  9332. #define GPIO_PH5_SSI1FSS 0x0007140B
  9333. #define GPIO_PH6_SSI1RX 0x0007180B
  9334. #define GPIO_PH7_SSI1TX 0x00071C0B
  9335. #define GPIO_PJ0_I2C1SCL 0x0008000B
  9336. #define GPIO_PJ1_I2C1SDA 0x0008040B
  9337. #define GPIO_PJ2_CCP0 0x00080809
  9338. #endif // PART_LM3S1N11
  9339. //*****************************************************************************
  9340. //
  9341. // LM3S1N16 Port/Pin Mapping Definitions
  9342. //
  9343. //*****************************************************************************
  9344. #ifdef PART_LM3S1N16
  9345. #define GPIO_PA0_U0RX 0x00000001
  9346. #define GPIO_PA0_I2C1SCL 0x00000008
  9347. #define GPIO_PA0_U1RX 0x00000009
  9348. #define GPIO_PA1_U0TX 0x00000401
  9349. #define GPIO_PA1_I2C1SDA 0x00000408
  9350. #define GPIO_PA1_U1TX 0x00000409
  9351. #define GPIO_PA2_SSI0CLK 0x00000801
  9352. #define GPIO_PA3_SSI0FSS 0x00000C01
  9353. #define GPIO_PA4_SSI0RX 0x00001001
  9354. #define GPIO_PA5_SSI0TX 0x00001401
  9355. #define GPIO_PA6_I2C1SCL 0x00001801
  9356. #define GPIO_PA6_CCP1 0x00001802
  9357. #define GPIO_PA7_I2C1SDA 0x00001C01
  9358. #define GPIO_PA7_CCP4 0x00001C02
  9359. #define GPIO_PA7_CCP3 0x00001C07
  9360. #define GPIO_PB0_CCP0 0x00010001
  9361. #define GPIO_PB0_U1RX 0x00010005
  9362. #define GPIO_PB1_CCP2 0x00010401
  9363. #define GPIO_PB1_CCP1 0x00010404
  9364. #define GPIO_PB1_U1TX 0x00010405
  9365. #define GPIO_PB2_I2C0SCL 0x00010801
  9366. #define GPIO_PB2_CCP3 0x00010804
  9367. #define GPIO_PB2_CCP0 0x00010805
  9368. #define GPIO_PB3_I2C0SDA 0x00010C01
  9369. #define GPIO_PB4_U2RX 0x00011004
  9370. #define GPIO_PB4_U1RX 0x00011007
  9371. #define GPIO_PB5_C0O 0x00011401
  9372. #define GPIO_PB5_CCP5 0x00011402
  9373. #define GPIO_PB5_CCP0 0x00011404
  9374. #define GPIO_PB5_CCP2 0x00011406
  9375. #define GPIO_PB5_U1TX 0x00011407
  9376. #define GPIO_PB6_CCP1 0x00011801
  9377. #define GPIO_PB6_C0O 0x00011803
  9378. #define GPIO_PB6_CCP5 0x00011806
  9379. #define GPIO_PB7_NMI 0x00011C04
  9380. #define GPIO_PC0_TCK 0x00020003
  9381. #define GPIO_PC0_SWCLK 0x00020003
  9382. #define GPIO_PC1_TMS 0x00020403
  9383. #define GPIO_PC1_SWDIO 0x00020403
  9384. #define GPIO_PC2_TDI 0x00020803
  9385. #define GPIO_PC3_SWO 0x00020C03
  9386. #define GPIO_PC3_TDO 0x00020C03
  9387. #define GPIO_PC4_CCP5 0x00021001
  9388. #define GPIO_PC4_CCP2 0x00021005
  9389. #define GPIO_PC4_CCP4 0x00021006
  9390. #define GPIO_PC4_CCP1 0x00021009
  9391. #define GPIO_PC5_CCP1 0x00021401
  9392. #define GPIO_PC5_C1O 0x00021402
  9393. #define GPIO_PC5_C0O 0x00021403
  9394. #define GPIO_PC5_CCP3 0x00021405
  9395. #define GPIO_PC6_CCP3 0x00021801
  9396. #define GPIO_PC6_U1RX 0x00021805
  9397. #define GPIO_PC6_CCP0 0x00021806
  9398. #define GPIO_PC7_CCP4 0x00021C01
  9399. #define GPIO_PC7_CCP0 0x00021C04
  9400. #define GPIO_PC7_U1TX 0x00021C05
  9401. #define GPIO_PC7_C1O 0x00021C07
  9402. #define GPIO_PD0_U2RX 0x00030004
  9403. #define GPIO_PD0_U1RX 0x00030005
  9404. #define GPIO_PD1_U2TX 0x00030404
  9405. #define GPIO_PD1_U1TX 0x00030405
  9406. #define GPIO_PD1_CCP2 0x0003040A
  9407. #define GPIO_PD2_U1RX 0x00030801
  9408. #define GPIO_PD2_CCP5 0x00030804
  9409. #define GPIO_PD3_U1TX 0x00030C01
  9410. #define GPIO_PD3_CCP0 0x00030C04
  9411. #define GPIO_PE0_SSI1CLK 0x00040002
  9412. #define GPIO_PE0_CCP3 0x00040003
  9413. #define GPIO_PE1_SSI1FSS 0x00040402
  9414. #define GPIO_PE1_CCP2 0x00040404
  9415. #define GPIO_PE2_CCP4 0x00040801
  9416. #define GPIO_PE2_SSI1RX 0x00040802
  9417. #define GPIO_PE2_CCP2 0x00040805
  9418. #define GPIO_PE3_CCP1 0x00040C01
  9419. #define GPIO_PE3_SSI1TX 0x00040C02
  9420. #define GPIO_PE4_CCP3 0x00041001
  9421. #define GPIO_PE4_U2TX 0x00041005
  9422. #define GPIO_PE4_CCP2 0x00041006
  9423. #endif // PART_LM3S1N16
  9424. //*****************************************************************************
  9425. //
  9426. // LM3S1P51 Port/Pin Mapping Definitions
  9427. //
  9428. //*****************************************************************************
  9429. #ifdef PART_LM3S1P51
  9430. #define GPIO_PA0_U0RX 0x00000001
  9431. #define GPIO_PA0_I2C1SCL 0x00000008
  9432. #define GPIO_PA0_U1RX 0x00000009
  9433. #define GPIO_PA1_U0TX 0x00000401
  9434. #define GPIO_PA1_I2C1SDA 0x00000408
  9435. #define GPIO_PA1_U1TX 0x00000409
  9436. #define GPIO_PA2_SSI0CLK 0x00000801
  9437. #define GPIO_PA2_PWM4 0x00000804
  9438. #define GPIO_PA2_I2S0RXSD 0x00000809
  9439. #define GPIO_PA3_SSI0FSS 0x00000C01
  9440. #define GPIO_PA3_PWM5 0x00000C04
  9441. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  9442. #define GPIO_PA4_SSI0RX 0x00001001
  9443. #define GPIO_PA4_I2S0TXSCK 0x00001009
  9444. #define GPIO_PA5_SSI0TX 0x00001401
  9445. #define GPIO_PA5_I2S0TXWS 0x00001409
  9446. #define GPIO_PA6_I2C1SCL 0x00001801
  9447. #define GPIO_PA6_CCP1 0x00001802
  9448. #define GPIO_PA6_PWM0 0x00001804
  9449. #define GPIO_PA6_PWM4 0x00001805
  9450. #define GPIO_PA6_U1CTS 0x00001809
  9451. #define GPIO_PA7_I2C1SDA 0x00001C01
  9452. #define GPIO_PA7_CCP4 0x00001C02
  9453. #define GPIO_PA7_PWM1 0x00001C04
  9454. #define GPIO_PA7_PWM5 0x00001C05
  9455. #define GPIO_PA7_CCP3 0x00001C07
  9456. #define GPIO_PA7_U1DCD 0x00001C09
  9457. #define GPIO_PB0_CCP0 0x00010001
  9458. #define GPIO_PB0_PWM2 0x00010002
  9459. #define GPIO_PB0_U1RX 0x00010005
  9460. #define GPIO_PB1_CCP2 0x00010401
  9461. #define GPIO_PB1_PWM3 0x00010402
  9462. #define GPIO_PB1_CCP1 0x00010404
  9463. #define GPIO_PB1_U1TX 0x00010405
  9464. #define GPIO_PB2_I2C0SCL 0x00010801
  9465. #define GPIO_PB2_IDX0 0x00010802
  9466. #define GPIO_PB2_CCP3 0x00010804
  9467. #define GPIO_PB2_CCP0 0x00010805
  9468. #define GPIO_PB3_I2C0SDA 0x00010C01
  9469. #define GPIO_PB3_FAULT0 0x00010C02
  9470. #define GPIO_PB3_FAULT3 0x00010C04
  9471. #define GPIO_PB4_U2RX 0x00011004
  9472. #define GPIO_PB4_IDX0 0x00011006
  9473. #define GPIO_PB4_U1RX 0x00011007
  9474. #define GPIO_PB5_C0O 0x00011401
  9475. #define GPIO_PB5_CCP5 0x00011402
  9476. #define GPIO_PB5_CCP6 0x00011403
  9477. #define GPIO_PB5_CCP0 0x00011404
  9478. #define GPIO_PB5_CCP2 0x00011406
  9479. #define GPIO_PB5_U1TX 0x00011407
  9480. #define GPIO_PB6_CCP1 0x00011801
  9481. #define GPIO_PB6_CCP7 0x00011802
  9482. #define GPIO_PB6_C0O 0x00011803
  9483. #define GPIO_PB6_FAULT1 0x00011804
  9484. #define GPIO_PB6_IDX0 0x00011805
  9485. #define GPIO_PB6_CCP5 0x00011806
  9486. #define GPIO_PB6_I2S0TXSCK 0x00011809
  9487. #define GPIO_PB7_NMI 0x00011C04
  9488. #define GPIO_PC0_TCK 0x00020003
  9489. #define GPIO_PC0_SWCLK 0x00020003
  9490. #define GPIO_PC1_TMS 0x00020403
  9491. #define GPIO_PC1_SWDIO 0x00020403
  9492. #define GPIO_PC2_TDI 0x00020803
  9493. #define GPIO_PC3_SWO 0x00020C03
  9494. #define GPIO_PC3_TDO 0x00020C03
  9495. #define GPIO_PC4_CCP5 0x00021001
  9496. #define GPIO_PC4_PHA0 0x00021002
  9497. #define GPIO_PC4_CCP2 0x00021005
  9498. #define GPIO_PC4_CCP4 0x00021006
  9499. #define GPIO_PC4_CCP1 0x00021009
  9500. #define GPIO_PC5_CCP1 0x00021401
  9501. #define GPIO_PC5_C1O 0x00021402
  9502. #define GPIO_PC5_C0O 0x00021403
  9503. #define GPIO_PC5_FAULT2 0x00021404
  9504. #define GPIO_PC5_CCP3 0x00021405
  9505. #define GPIO_PC6_CCP3 0x00021801
  9506. #define GPIO_PC6_PHB0 0x00021802
  9507. #define GPIO_PC6_U1RX 0x00021805
  9508. #define GPIO_PC6_CCP0 0x00021806
  9509. #define GPIO_PC7_CCP4 0x00021C01
  9510. #define GPIO_PC7_PHB0 0x00021C02
  9511. #define GPIO_PC7_CCP0 0x00021C04
  9512. #define GPIO_PC7_U1TX 0x00021C05
  9513. #define GPIO_PC7_C1O 0x00021C07
  9514. #define GPIO_PD0_PWM0 0x00030001
  9515. #define GPIO_PD0_IDX0 0x00030003
  9516. #define GPIO_PD0_U2RX 0x00030004
  9517. #define GPIO_PD0_U1RX 0x00030005
  9518. #define GPIO_PD0_CCP6 0x00030006
  9519. #define GPIO_PD0_I2S0RXSCK 0x00030008
  9520. #define GPIO_PD0_U1CTS 0x00030009
  9521. #define GPIO_PD1_PWM1 0x00030401
  9522. #define GPIO_PD1_PHA0 0x00030403
  9523. #define GPIO_PD1_U2TX 0x00030404
  9524. #define GPIO_PD1_U1TX 0x00030405
  9525. #define GPIO_PD1_CCP7 0x00030406
  9526. #define GPIO_PD1_I2S0RXWS 0x00030408
  9527. #define GPIO_PD1_U1DCD 0x00030409
  9528. #define GPIO_PD1_CCP2 0x0003040A
  9529. #define GPIO_PD1_PHB1 0x0003040B
  9530. #define GPIO_PD2_U1RX 0x00030801
  9531. #define GPIO_PD2_CCP6 0x00030802
  9532. #define GPIO_PD2_PWM2 0x00030803
  9533. #define GPIO_PD2_CCP5 0x00030804
  9534. #define GPIO_PD3_U1TX 0x00030C01
  9535. #define GPIO_PD3_CCP7 0x00030C02
  9536. #define GPIO_PD3_PWM3 0x00030C03
  9537. #define GPIO_PD3_CCP0 0x00030C04
  9538. #define GPIO_PD4_CCP0 0x00031001
  9539. #define GPIO_PD4_CCP3 0x00031002
  9540. #define GPIO_PD4_I2S0RXSD 0x00031008
  9541. #define GPIO_PD4_U1RI 0x00031009
  9542. #define GPIO_PD5_CCP2 0x00031401
  9543. #define GPIO_PD5_CCP4 0x00031402
  9544. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  9545. #define GPIO_PD5_U2RX 0x00031409
  9546. #define GPIO_PD6_FAULT0 0x00031801
  9547. #define GPIO_PD6_I2S0TXSCK 0x00031808
  9548. #define GPIO_PD6_U2TX 0x00031809
  9549. #define GPIO_PD7_IDX0 0x00031C01
  9550. #define GPIO_PD7_C0O 0x00031C02
  9551. #define GPIO_PD7_CCP1 0x00031C03
  9552. #define GPIO_PD7_I2S0TXWS 0x00031C08
  9553. #define GPIO_PD7_U1DTR 0x00031C09
  9554. #define GPIO_PE0_PWM4 0x00040001
  9555. #define GPIO_PE0_SSI1CLK 0x00040002
  9556. #define GPIO_PE0_CCP3 0x00040003
  9557. #define GPIO_PE1_PWM5 0x00040401
  9558. #define GPIO_PE1_SSI1FSS 0x00040402
  9559. #define GPIO_PE1_FAULT0 0x00040403
  9560. #define GPIO_PE1_CCP2 0x00040404
  9561. #define GPIO_PE1_CCP6 0x00040405
  9562. #define GPIO_PE2_CCP4 0x00040801
  9563. #define GPIO_PE2_SSI1RX 0x00040802
  9564. #define GPIO_PE2_PHB1 0x00040803
  9565. #define GPIO_PE2_PHA0 0x00040804
  9566. #define GPIO_PE2_CCP2 0x00040805
  9567. #define GPIO_PE3_CCP1 0x00040C01
  9568. #define GPIO_PE3_SSI1TX 0x00040C02
  9569. #define GPIO_PE3_PHA1 0x00040C03
  9570. #define GPIO_PE3_PHB0 0x00040C04
  9571. #define GPIO_PE3_CCP7 0x00040C05
  9572. #define GPIO_PE4_CCP3 0x00041001
  9573. #define GPIO_PE4_FAULT0 0x00041004
  9574. #define GPIO_PE4_U2TX 0x00041005
  9575. #define GPIO_PE4_CCP2 0x00041006
  9576. #define GPIO_PE4_I2S0TXWS 0x00041009
  9577. #define GPIO_PE5_CCP5 0x00041401
  9578. #define GPIO_PE5_I2S0TXSD 0x00041409
  9579. #define GPIO_PE6_PWM4 0x00041801
  9580. #define GPIO_PE6_C1O 0x00041802
  9581. #define GPIO_PE6_U1CTS 0x00041809
  9582. #define GPIO_PE7_PWM5 0x00041C01
  9583. #define GPIO_PE7_U1DCD 0x00041C09
  9584. #define GPIO_PF0_PHB0 0x00050002
  9585. #define GPIO_PF0_PWM0 0x00050003
  9586. #define GPIO_PF0_I2S0TXSD 0x00050008
  9587. #define GPIO_PF0_U1DSR 0x00050009
  9588. #define GPIO_PF1_IDX1 0x00050402
  9589. #define GPIO_PF1_PWM1 0x00050403
  9590. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  9591. #define GPIO_PF1_U1RTS 0x00050409
  9592. #define GPIO_PF1_CCP3 0x0005040A
  9593. #define GPIO_PF2_PWM4 0x00050802
  9594. #define GPIO_PF2_PWM2 0x00050804
  9595. #define GPIO_PF2_SSI1CLK 0x00050809
  9596. #define GPIO_PF3_PWM5 0x00050C02
  9597. #define GPIO_PF3_PWM3 0x00050C04
  9598. #define GPIO_PF3_SSI1FSS 0x00050C09
  9599. #define GPIO_PF4_CCP0 0x00051001
  9600. #define GPIO_PF4_C0O 0x00051002
  9601. #define GPIO_PF4_FAULT0 0x00051004
  9602. #define GPIO_PF4_SSI1RX 0x00051009
  9603. #define GPIO_PF5_CCP2 0x00051401
  9604. #define GPIO_PF5_C1O 0x00051402
  9605. #define GPIO_PF5_SSI1TX 0x00051409
  9606. #define GPIO_PF6_CCP1 0x00051801
  9607. #define GPIO_PF6_PHA0 0x00051804
  9608. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  9609. #define GPIO_PF6_U1RTS 0x0005180A
  9610. #define GPIO_PF7_CCP4 0x00051C01
  9611. #define GPIO_PF7_PHB0 0x00051C04
  9612. #define GPIO_PF7_FAULT1 0x00051C09
  9613. #define GPIO_PG0_U2RX 0x00060001
  9614. #define GPIO_PG0_PWM0 0x00060002
  9615. #define GPIO_PG0_I2C1SCL 0x00060003
  9616. #define GPIO_PG0_PWM4 0x00060004
  9617. #define GPIO_PG1_U2TX 0x00060401
  9618. #define GPIO_PG1_PWM1 0x00060402
  9619. #define GPIO_PG1_I2C1SDA 0x00060403
  9620. #define GPIO_PG1_PWM5 0x00060404
  9621. #define GPIO_PG2_PWM0 0x00060801
  9622. #define GPIO_PG2_FAULT0 0x00060804
  9623. #define GPIO_PG2_IDX1 0x00060808
  9624. #define GPIO_PG2_I2S0RXSD 0x00060809
  9625. #define GPIO_PG3_PWM1 0x00060C01
  9626. #define GPIO_PG3_FAULT2 0x00060C04
  9627. #define GPIO_PG3_FAULT0 0x00060C08
  9628. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  9629. #define GPIO_PG4_CCP3 0x00061001
  9630. #define GPIO_PG4_FAULT1 0x00061004
  9631. #define GPIO_PG4_U1RI 0x0006100A
  9632. #define GPIO_PG5_CCP5 0x00061401
  9633. #define GPIO_PG5_IDX0 0x00061404
  9634. #define GPIO_PG5_FAULT1 0x00061405
  9635. #define GPIO_PG5_I2S0RXSCK 0x00061409
  9636. #define GPIO_PG5_U1DTR 0x0006140A
  9637. #define GPIO_PG6_PHA1 0x00061801
  9638. #define GPIO_PG6_FAULT1 0x00061808
  9639. #define GPIO_PG6_I2S0RXWS 0x00061809
  9640. #define GPIO_PG6_U1RI 0x0006180A
  9641. #define GPIO_PG7_PHB1 0x00061C01
  9642. #define GPIO_PG7_CCP5 0x00061C08
  9643. #define GPIO_PH0_CCP6 0x00070001
  9644. #define GPIO_PH0_PWM2 0x00070002
  9645. #define GPIO_PH0_PWM4 0x00070009
  9646. #define GPIO_PH1_CCP7 0x00070401
  9647. #define GPIO_PH1_PWM3 0x00070402
  9648. #define GPIO_PH1_PWM5 0x00070409
  9649. #define GPIO_PH2_IDX1 0x00070801
  9650. #define GPIO_PH2_C1O 0x00070802
  9651. #define GPIO_PH2_FAULT3 0x00070804
  9652. #define GPIO_PH3_PHB0 0x00070C01
  9653. #define GPIO_PH3_FAULT0 0x00070C02
  9654. #define GPIO_PH4_SSI1CLK 0x0007100B
  9655. #define GPIO_PH5_FAULT2 0x0007140A
  9656. #define GPIO_PH5_SSI1FSS 0x0007140B
  9657. #define GPIO_PH6_PWM4 0x0007180A
  9658. #define GPIO_PH6_SSI1RX 0x0007180B
  9659. #define GPIO_PH7_PWM5 0x00071C0A
  9660. #define GPIO_PH7_SSI1TX 0x00071C0B
  9661. #define GPIO_PJ0_PWM0 0x0008000A
  9662. #define GPIO_PJ0_I2C1SCL 0x0008000B
  9663. #define GPIO_PJ1_PWM1 0x0008040A
  9664. #define GPIO_PJ1_I2C1SDA 0x0008040B
  9665. #define GPIO_PJ2_CCP0 0x00080809
  9666. #define GPIO_PJ2_FAULT0 0x0008080A
  9667. #endif // PART_LM3S1P51
  9668. //*****************************************************************************
  9669. //
  9670. // LM3S1R21 Port/Pin Mapping Definitions
  9671. //
  9672. //*****************************************************************************
  9673. #ifdef PART_LM3S1R21
  9674. #define GPIO_PA0_U0RX 0x00000001
  9675. #define GPIO_PA0_I2C1SCL 0x00000008
  9676. #define GPIO_PA0_U1RX 0x00000009
  9677. #define GPIO_PA1_U0TX 0x00000401
  9678. #define GPIO_PA1_I2C1SDA 0x00000408
  9679. #define GPIO_PA1_U1TX 0x00000409
  9680. #define GPIO_PA2_SSI0CLK 0x00000801
  9681. #define GPIO_PA3_SSI0FSS 0x00000C01
  9682. #define GPIO_PA4_SSI0RX 0x00001001
  9683. #define GPIO_PA5_SSI0TX 0x00001401
  9684. #define GPIO_PA6_I2C1SCL 0x00001801
  9685. #define GPIO_PA6_CCP1 0x00001802
  9686. #define GPIO_PA6_U1CTS 0x00001809
  9687. #define GPIO_PA7_I2C1SDA 0x00001C01
  9688. #define GPIO_PA7_CCP4 0x00001C02
  9689. #define GPIO_PA7_CCP3 0x00001C07
  9690. #define GPIO_PA7_U1DCD 0x00001C09
  9691. #define GPIO_PB0_CCP0 0x00010001
  9692. #define GPIO_PB0_U1RX 0x00010005
  9693. #define GPIO_PB1_CCP2 0x00010401
  9694. #define GPIO_PB1_CCP1 0x00010404
  9695. #define GPIO_PB1_U1TX 0x00010405
  9696. #define GPIO_PB2_I2C0SCL 0x00010801
  9697. #define GPIO_PB2_CCP3 0x00010804
  9698. #define GPIO_PB2_CCP0 0x00010805
  9699. #define GPIO_PB3_I2C0SDA 0x00010C01
  9700. #define GPIO_PB4_U2RX 0x00011004
  9701. #define GPIO_PB4_U1RX 0x00011007
  9702. #define GPIO_PB4_EPI0S23 0x00011008
  9703. #define GPIO_PB5_C0O 0x00011401
  9704. #define GPIO_PB5_CCP5 0x00011402
  9705. #define GPIO_PB5_CCP6 0x00011403
  9706. #define GPIO_PB5_CCP0 0x00011404
  9707. #define GPIO_PB5_CCP2 0x00011406
  9708. #define GPIO_PB5_U1TX 0x00011407
  9709. #define GPIO_PB5_EPI0S22 0x00011408
  9710. #define GPIO_PB6_CCP1 0x00011801
  9711. #define GPIO_PB6_CCP7 0x00011802
  9712. #define GPIO_PB6_C0O 0x00011803
  9713. #define GPIO_PB6_CCP5 0x00011806
  9714. #define GPIO_PB7_NMI 0x00011C04
  9715. #define GPIO_PC0_TCK 0x00020003
  9716. #define GPIO_PC0_SWCLK 0x00020003
  9717. #define GPIO_PC1_TMS 0x00020403
  9718. #define GPIO_PC1_SWDIO 0x00020403
  9719. #define GPIO_PC2_TDI 0x00020803
  9720. #define GPIO_PC3_SWO 0x00020C03
  9721. #define GPIO_PC3_TDO 0x00020C03
  9722. #define GPIO_PC4_CCP5 0x00021001
  9723. #define GPIO_PC4_CCP2 0x00021005
  9724. #define GPIO_PC4_CCP4 0x00021006
  9725. #define GPIO_PC4_EPI0S2 0x00021008
  9726. #define GPIO_PC4_CCP1 0x00021009
  9727. #define GPIO_PC5_CCP1 0x00021401
  9728. #define GPIO_PC5_C1O 0x00021402
  9729. #define GPIO_PC5_C0O 0x00021403
  9730. #define GPIO_PC5_CCP3 0x00021405
  9731. #define GPIO_PC5_EPI0S3 0x00021408
  9732. #define GPIO_PC6_CCP3 0x00021801
  9733. #define GPIO_PC6_U1RX 0x00021805
  9734. #define GPIO_PC6_CCP0 0x00021806
  9735. #define GPIO_PC6_EPI0S4 0x00021808
  9736. #define GPIO_PC7_CCP4 0x00021C01
  9737. #define GPIO_PC7_CCP0 0x00021C04
  9738. #define GPIO_PC7_U1TX 0x00021C05
  9739. #define GPIO_PC7_C1O 0x00021C07
  9740. #define GPIO_PC7_EPI0S5 0x00021C08
  9741. #define GPIO_PD0_U2RX 0x00030004
  9742. #define GPIO_PD0_U1RX 0x00030005
  9743. #define GPIO_PD0_CCP6 0x00030006
  9744. #define GPIO_PD0_U1CTS 0x00030009
  9745. #define GPIO_PD1_U2TX 0x00030404
  9746. #define GPIO_PD1_U1TX 0x00030405
  9747. #define GPIO_PD1_CCP7 0x00030406
  9748. #define GPIO_PD1_U1DCD 0x00030409
  9749. #define GPIO_PD1_CCP2 0x0003040A
  9750. #define GPIO_PD2_U1RX 0x00030801
  9751. #define GPIO_PD2_CCP6 0x00030802
  9752. #define GPIO_PD2_CCP5 0x00030804
  9753. #define GPIO_PD2_EPI0S20 0x00030808
  9754. #define GPIO_PD3_U1TX 0x00030C01
  9755. #define GPIO_PD3_CCP7 0x00030C02
  9756. #define GPIO_PD3_CCP0 0x00030C04
  9757. #define GPIO_PD3_EPI0S21 0x00030C08
  9758. #define GPIO_PD4_CCP0 0x00031001
  9759. #define GPIO_PD4_CCP3 0x00031002
  9760. #define GPIO_PD4_U1RI 0x00031009
  9761. #define GPIO_PD4_EPI0S19 0x0003100A
  9762. #define GPIO_PD5_CCP2 0x00031401
  9763. #define GPIO_PD5_CCP4 0x00031402
  9764. #define GPIO_PD5_U2RX 0x00031409
  9765. #define GPIO_PD5_EPI0S28 0x0003140A
  9766. #define GPIO_PD6_U2TX 0x00031809
  9767. #define GPIO_PD6_EPI0S29 0x0003180A
  9768. #define GPIO_PD7_C0O 0x00031C02
  9769. #define GPIO_PD7_CCP1 0x00031C03
  9770. #define GPIO_PD7_U1DTR 0x00031C09
  9771. #define GPIO_PD7_EPI0S30 0x00031C0A
  9772. #define GPIO_PE0_SSI1CLK 0x00040002
  9773. #define GPIO_PE0_CCP3 0x00040003
  9774. #define GPIO_PE0_EPI0S8 0x00040008
  9775. #define GPIO_PE1_SSI1FSS 0x00040402
  9776. #define GPIO_PE1_CCP2 0x00040404
  9777. #define GPIO_PE1_CCP6 0x00040405
  9778. #define GPIO_PE1_EPI0S9 0x00040408
  9779. #define GPIO_PE2_CCP4 0x00040801
  9780. #define GPIO_PE2_SSI1RX 0x00040802
  9781. #define GPIO_PE2_CCP2 0x00040805
  9782. #define GPIO_PE2_EPI0S24 0x00040808
  9783. #define GPIO_PE3_CCP1 0x00040C01
  9784. #define GPIO_PE3_SSI1TX 0x00040C02
  9785. #define GPIO_PE3_CCP7 0x00040C05
  9786. #define GPIO_PE3_EPI0S25 0x00040C08
  9787. #define GPIO_PE4_CCP3 0x00041001
  9788. #define GPIO_PE4_U2TX 0x00041005
  9789. #define GPIO_PE4_CCP2 0x00041006
  9790. #define GPIO_PE5_CCP5 0x00041401
  9791. #define GPIO_PE6_C1O 0x00041802
  9792. #define GPIO_PE6_U1CTS 0x00041809
  9793. #define GPIO_PE7_U1DCD 0x00041C09
  9794. #define GPIO_PF0_U1DSR 0x00050009
  9795. #define GPIO_PF1_U1RTS 0x00050409
  9796. #define GPIO_PF1_CCP3 0x0005040A
  9797. #define GPIO_PF2_SSI1CLK 0x00050809
  9798. #define GPIO_PF3_SSI1FSS 0x00050C09
  9799. #define GPIO_PF4_CCP0 0x00051001
  9800. #define GPIO_PF4_C0O 0x00051002
  9801. #define GPIO_PF4_EPI0S12 0x00051008
  9802. #define GPIO_PF4_SSI1RX 0x00051009
  9803. #define GPIO_PF5_CCP2 0x00051401
  9804. #define GPIO_PF5_C1O 0x00051402
  9805. #define GPIO_PF5_EPI0S15 0x00051408
  9806. #define GPIO_PF5_SSI1TX 0x00051409
  9807. #define GPIO_PF6_CCP1 0x00051801
  9808. #define GPIO_PF6_U1RTS 0x0005180A
  9809. #define GPIO_PF7_CCP4 0x00051C01
  9810. #define GPIO_PF7_EPI0S12 0x00051C08
  9811. #define GPIO_PG0_U2RX 0x00060001
  9812. #define GPIO_PG0_I2C1SCL 0x00060003
  9813. #define GPIO_PG0_EPI0S13 0x00060008
  9814. #define GPIO_PG1_U2TX 0x00060401
  9815. #define GPIO_PG1_I2C1SDA 0x00060403
  9816. #define GPIO_PG1_EPI0S14 0x00060408
  9817. #define GPIO_PG4_CCP3 0x00061001
  9818. #define GPIO_PG4_EPI0S15 0x00061008
  9819. #define GPIO_PG4_U1RI 0x0006100A
  9820. #define GPIO_PG5_CCP5 0x00061401
  9821. #define GPIO_PG5_U1DTR 0x0006140A
  9822. #define GPIO_PG6_U1RI 0x0006180A
  9823. #define GPIO_PG7_CCP5 0x00061C08
  9824. #define GPIO_PG7_EPI0S31 0x00061C09
  9825. #define GPIO_PH0_CCP6 0x00070001
  9826. #define GPIO_PH0_EPI0S6 0x00070008
  9827. #define GPIO_PH1_CCP7 0x00070401
  9828. #define GPIO_PH1_EPI0S7 0x00070408
  9829. #define GPIO_PH2_C1O 0x00070802
  9830. #define GPIO_PH2_EPI0S1 0x00070808
  9831. #define GPIO_PH3_EPI0S0 0x00070C08
  9832. #define GPIO_PH4_EPI0S10 0x00071008
  9833. #define GPIO_PH4_SSI1CLK 0x0007100B
  9834. #define GPIO_PH5_EPI0S11 0x00071408
  9835. #define GPIO_PH5_SSI1FSS 0x0007140B
  9836. #define GPIO_PH6_EPI0S26 0x00071808
  9837. #define GPIO_PH6_SSI1RX 0x0007180B
  9838. #define GPIO_PH7_EPI0S27 0x00071C08
  9839. #define GPIO_PH7_SSI1TX 0x00071C0B
  9840. #define GPIO_PJ0_EPI0S16 0x00080008
  9841. #define GPIO_PJ0_I2C1SCL 0x0008000B
  9842. #define GPIO_PJ1_EPI0S17 0x00080408
  9843. #define GPIO_PJ1_I2C1SDA 0x0008040B
  9844. #define GPIO_PJ2_EPI0S18 0x00080808
  9845. #define GPIO_PJ2_CCP0 0x00080809
  9846. #endif // PART_LM3S1R21
  9847. //*****************************************************************************
  9848. //
  9849. // LM3S1R26 Port/Pin Mapping Definitions
  9850. //
  9851. //*****************************************************************************
  9852. #ifdef PART_LM3S1R26
  9853. #define GPIO_PA0_U0RX 0x00000001
  9854. #define GPIO_PA0_I2C1SCL 0x00000008
  9855. #define GPIO_PA0_U1RX 0x00000009
  9856. #define GPIO_PA1_U0TX 0x00000401
  9857. #define GPIO_PA1_I2C1SDA 0x00000408
  9858. #define GPIO_PA1_U1TX 0x00000409
  9859. #define GPIO_PA2_SSI0CLK 0x00000801
  9860. #define GPIO_PA3_SSI0FSS 0x00000C01
  9861. #define GPIO_PA4_SSI0RX 0x00001001
  9862. #define GPIO_PA5_SSI0TX 0x00001401
  9863. #define GPIO_PA6_I2C1SCL 0x00001801
  9864. #define GPIO_PA6_CCP1 0x00001802
  9865. #define GPIO_PA7_I2C1SDA 0x00001C01
  9866. #define GPIO_PA7_CCP4 0x00001C02
  9867. #define GPIO_PA7_CCP3 0x00001C07
  9868. #define GPIO_PB0_CCP0 0x00010001
  9869. #define GPIO_PB0_U1RX 0x00010005
  9870. #define GPIO_PB1_CCP2 0x00010401
  9871. #define GPIO_PB1_CCP1 0x00010404
  9872. #define GPIO_PB1_U1TX 0x00010405
  9873. #define GPIO_PB2_I2C0SCL 0x00010801
  9874. #define GPIO_PB2_CCP3 0x00010804
  9875. #define GPIO_PB2_CCP0 0x00010805
  9876. #define GPIO_PB3_I2C0SDA 0x00010C01
  9877. #define GPIO_PB4_U2RX 0x00011004
  9878. #define GPIO_PB4_U1RX 0x00011007
  9879. #define GPIO_PB5_C0O 0x00011401
  9880. #define GPIO_PB5_CCP5 0x00011402
  9881. #define GPIO_PB5_CCP6 0x00011403
  9882. #define GPIO_PB5_CCP0 0x00011404
  9883. #define GPIO_PB5_CCP2 0x00011406
  9884. #define GPIO_PB5_U1TX 0x00011407
  9885. #define GPIO_PB6_CCP1 0x00011801
  9886. #define GPIO_PB6_CCP7 0x00011802
  9887. #define GPIO_PB6_C0O 0x00011803
  9888. #define GPIO_PB6_CCP5 0x00011806
  9889. #define GPIO_PB7_NMI 0x00011C04
  9890. #define GPIO_PC0_TCK 0x00020003
  9891. #define GPIO_PC0_SWCLK 0x00020003
  9892. #define GPIO_PC1_TMS 0x00020403
  9893. #define GPIO_PC1_SWDIO 0x00020403
  9894. #define GPIO_PC2_TDI 0x00020803
  9895. #define GPIO_PC3_SWO 0x00020C03
  9896. #define GPIO_PC3_TDO 0x00020C03
  9897. #define GPIO_PC4_CCP5 0x00021001
  9898. #define GPIO_PC4_CCP2 0x00021005
  9899. #define GPIO_PC4_CCP4 0x00021006
  9900. #define GPIO_PC4_CCP1 0x00021009
  9901. #define GPIO_PC5_CCP1 0x00021401
  9902. #define GPIO_PC5_C1O 0x00021402
  9903. #define GPIO_PC5_C0O 0x00021403
  9904. #define GPIO_PC5_CCP3 0x00021405
  9905. #define GPIO_PC6_CCP3 0x00021801
  9906. #define GPIO_PC6_U1RX 0x00021805
  9907. #define GPIO_PC6_CCP0 0x00021806
  9908. #define GPIO_PC7_CCP4 0x00021C01
  9909. #define GPIO_PC7_CCP0 0x00021C04
  9910. #define GPIO_PC7_U1TX 0x00021C05
  9911. #define GPIO_PC7_C1O 0x00021C07
  9912. #define GPIO_PD0_U2RX 0x00030004
  9913. #define GPIO_PD0_U1RX 0x00030005
  9914. #define GPIO_PD0_CCP6 0x00030006
  9915. #define GPIO_PD1_U2TX 0x00030404
  9916. #define GPIO_PD1_U1TX 0x00030405
  9917. #define GPIO_PD1_CCP7 0x00030406
  9918. #define GPIO_PD1_CCP2 0x0003040A
  9919. #define GPIO_PD2_U1RX 0x00030801
  9920. #define GPIO_PD2_CCP6 0x00030802
  9921. #define GPIO_PD2_CCP5 0x00030804
  9922. #define GPIO_PD3_U1TX 0x00030C01
  9923. #define GPIO_PD3_CCP7 0x00030C02
  9924. #define GPIO_PD3_CCP0 0x00030C04
  9925. #define GPIO_PE0_SSI1CLK 0x00040002
  9926. #define GPIO_PE0_CCP3 0x00040003
  9927. #define GPIO_PE1_SSI1FSS 0x00040402
  9928. #define GPIO_PE1_CCP2 0x00040404
  9929. #define GPIO_PE1_CCP6 0x00040405
  9930. #define GPIO_PE2_CCP4 0x00040801
  9931. #define GPIO_PE2_SSI1RX 0x00040802
  9932. #define GPIO_PE2_CCP2 0x00040805
  9933. #define GPIO_PE3_CCP1 0x00040C01
  9934. #define GPIO_PE3_SSI1TX 0x00040C02
  9935. #define GPIO_PE3_CCP7 0x00040C05
  9936. #define GPIO_PE4_CCP3 0x00041001
  9937. #define GPIO_PE4_U2TX 0x00041005
  9938. #define GPIO_PE4_CCP2 0x00041006
  9939. #endif // PART_LM3S1R26
  9940. //*****************************************************************************
  9941. //
  9942. // LM3S1W16 Port/Pin Mapping Definitions
  9943. //
  9944. //*****************************************************************************
  9945. #ifdef PART_LM3S1W16
  9946. #define GPIO_PA0_U0RX 0x00000001
  9947. #define GPIO_PA0_I2C1SCL 0x00000008
  9948. #define GPIO_PA0_U1RX 0x00000009
  9949. #define GPIO_PA1_U0TX 0x00000401
  9950. #define GPIO_PA1_I2C1SDA 0x00000408
  9951. #define GPIO_PA1_U1TX 0x00000409
  9952. #define GPIO_PA2_SSI0CLK 0x00000801
  9953. #define GPIO_PA3_SSI0FSS 0x00000C01
  9954. #define GPIO_PA4_SSI0RX 0x00001001
  9955. #define GPIO_PA5_SSI0TX 0x00001401
  9956. #define GPIO_PA6_I2C1SCL 0x00001801
  9957. #define GPIO_PA6_CCP1 0x00001802
  9958. #define GPIO_PA7_I2C1SDA 0x00001C01
  9959. #define GPIO_PA7_CCP4 0x00001C02
  9960. #define GPIO_PA7_CCP3 0x00001C07
  9961. #define GPIO_PB0_CCP0 0x00010001
  9962. #define GPIO_PB0_U1RX 0x00010005
  9963. #define GPIO_PB1_CCP2 0x00010401
  9964. #define GPIO_PB1_CCP1 0x00010404
  9965. #define GPIO_PB1_U1TX 0x00010405
  9966. #define GPIO_PB2_I2C0SCL 0x00010801
  9967. #define GPIO_PB2_CCP3 0x00010804
  9968. #define GPIO_PB2_CCP0 0x00010805
  9969. #define GPIO_PB3_I2C0SDA 0x00010C01
  9970. #define GPIO_PB4_U2RX 0x00011004
  9971. #define GPIO_PB4_U1RX 0x00011007
  9972. #define GPIO_PB5_C0O 0x00011401
  9973. #define GPIO_PB5_CCP5 0x00011402
  9974. #define GPIO_PB5_CCP0 0x00011404
  9975. #define GPIO_PB5_CCP2 0x00011406
  9976. #define GPIO_PB5_U1TX 0x00011407
  9977. #define GPIO_PB6_CCP1 0x00011801
  9978. #define GPIO_PB6_C0O 0x00011803
  9979. #define GPIO_PB6_CCP5 0x00011806
  9980. #define GPIO_PB7_NMI 0x00011C04
  9981. #define GPIO_PC0_TCK 0x00020003
  9982. #define GPIO_PC0_SWCLK 0x00020003
  9983. #define GPIO_PC1_TMS 0x00020403
  9984. #define GPIO_PC1_SWDIO 0x00020403
  9985. #define GPIO_PC2_TDI 0x00020803
  9986. #define GPIO_PC3_SWO 0x00020C03
  9987. #define GPIO_PC3_TDO 0x00020C03
  9988. #define GPIO_PC4_CCP5 0x00021001
  9989. #define GPIO_PC4_CCP2 0x00021005
  9990. #define GPIO_PC4_CCP4 0x00021006
  9991. #define GPIO_PC4_CCP1 0x00021009
  9992. #define GPIO_PC5_CCP1 0x00021401
  9993. #define GPIO_PC5_C1O 0x00021402
  9994. #define GPIO_PC5_C0O 0x00021403
  9995. #define GPIO_PC5_CCP3 0x00021405
  9996. #define GPIO_PC6_CCP3 0x00021801
  9997. #define GPIO_PC6_U1RX 0x00021805
  9998. #define GPIO_PC6_CCP0 0x00021806
  9999. #define GPIO_PC7_CCP4 0x00021C01
  10000. #define GPIO_PC7_CCP0 0x00021C04
  10001. #define GPIO_PC7_U1TX 0x00021C05
  10002. #define GPIO_PC7_C1O 0x00021C07
  10003. #define GPIO_PD0_U2RX 0x00030004
  10004. #define GPIO_PD0_U1RX 0x00030005
  10005. #define GPIO_PD1_U2TX 0x00030404
  10006. #define GPIO_PD1_U1TX 0x00030405
  10007. #define GPIO_PD1_CCP2 0x0003040A
  10008. #define GPIO_PD2_U1RX 0x00030801
  10009. #define GPIO_PD2_CCP5 0x00030804
  10010. #define GPIO_PD3_U1TX 0x00030C01
  10011. #define GPIO_PD3_CCP0 0x00030C04
  10012. #define GPIO_PE0_SSI1CLK 0x00040002
  10013. #define GPIO_PE0_CCP3 0x00040003
  10014. #define GPIO_PE1_SSI1FSS 0x00040402
  10015. #define GPIO_PE1_CCP2 0x00040404
  10016. #define GPIO_PE2_CCP4 0x00040801
  10017. #define GPIO_PE2_SSI1RX 0x00040802
  10018. #define GPIO_PE2_CCP2 0x00040805
  10019. #define GPIO_PE3_CCP1 0x00040C01
  10020. #define GPIO_PE3_SSI1TX 0x00040C02
  10021. #define GPIO_PE4_CCP3 0x00041001
  10022. #define GPIO_PE4_U2TX 0x00041005
  10023. #define GPIO_PE4_CCP2 0x00041006
  10024. #endif // PART_LM3S1W16
  10025. //*****************************************************************************
  10026. //
  10027. // LM3S1Z16 Port/Pin Mapping Definitions
  10028. //
  10029. //*****************************************************************************
  10030. #ifdef PART_LM3S1Z16
  10031. #define GPIO_PA0_U0RX 0x00000001
  10032. #define GPIO_PA0_I2C1SCL 0x00000008
  10033. #define GPIO_PA0_U1RX 0x00000009
  10034. #define GPIO_PA1_U0TX 0x00000401
  10035. #define GPIO_PA1_I2C1SDA 0x00000408
  10036. #define GPIO_PA1_U1TX 0x00000409
  10037. #define GPIO_PA2_SSI0CLK 0x00000801
  10038. #define GPIO_PA3_SSI0FSS 0x00000C01
  10039. #define GPIO_PA4_SSI0RX 0x00001001
  10040. #define GPIO_PA5_SSI0TX 0x00001401
  10041. #define GPIO_PA6_I2C1SCL 0x00001801
  10042. #define GPIO_PA6_CCP1 0x00001802
  10043. #define GPIO_PA7_I2C1SDA 0x00001C01
  10044. #define GPIO_PA7_CCP4 0x00001C02
  10045. #define GPIO_PA7_CCP3 0x00001C07
  10046. #define GPIO_PB0_CCP0 0x00010001
  10047. #define GPIO_PB0_U1RX 0x00010005
  10048. #define GPIO_PB1_CCP2 0x00010401
  10049. #define GPIO_PB1_CCP1 0x00010404
  10050. #define GPIO_PB1_U1TX 0x00010405
  10051. #define GPIO_PB2_I2C0SCL 0x00010801
  10052. #define GPIO_PB2_CCP3 0x00010804
  10053. #define GPIO_PB2_CCP0 0x00010805
  10054. #define GPIO_PB3_I2C0SDA 0x00010C01
  10055. #define GPIO_PB4_U2RX 0x00011004
  10056. #define GPIO_PB4_U1RX 0x00011007
  10057. #define GPIO_PB5_C0O 0x00011401
  10058. #define GPIO_PB5_CCP5 0x00011402
  10059. #define GPIO_PB5_CCP0 0x00011404
  10060. #define GPIO_PB5_CCP2 0x00011406
  10061. #define GPIO_PB5_U1TX 0x00011407
  10062. #define GPIO_PB6_CCP1 0x00011801
  10063. #define GPIO_PB6_C0O 0x00011803
  10064. #define GPIO_PB6_CCP5 0x00011806
  10065. #define GPIO_PB7_NMI 0x00011C04
  10066. #define GPIO_PC0_TCK 0x00020003
  10067. #define GPIO_PC0_SWCLK 0x00020003
  10068. #define GPIO_PC1_TMS 0x00020403
  10069. #define GPIO_PC1_SWDIO 0x00020403
  10070. #define GPIO_PC2_TDI 0x00020803
  10071. #define GPIO_PC3_SWO 0x00020C03
  10072. #define GPIO_PC3_TDO 0x00020C03
  10073. #define GPIO_PC4_CCP5 0x00021001
  10074. #define GPIO_PC4_CCP2 0x00021005
  10075. #define GPIO_PC4_CCP4 0x00021006
  10076. #define GPIO_PC4_CCP1 0x00021009
  10077. #define GPIO_PC5_CCP1 0x00021401
  10078. #define GPIO_PC5_C1O 0x00021402
  10079. #define GPIO_PC5_C0O 0x00021403
  10080. #define GPIO_PC5_CCP3 0x00021405
  10081. #define GPIO_PC6_CCP3 0x00021801
  10082. #define GPIO_PC6_U1RX 0x00021805
  10083. #define GPIO_PC6_CCP0 0x00021806
  10084. #define GPIO_PC7_CCP4 0x00021C01
  10085. #define GPIO_PC7_CCP0 0x00021C04
  10086. #define GPIO_PC7_U1TX 0x00021C05
  10087. #define GPIO_PC7_C1O 0x00021C07
  10088. #define GPIO_PD0_U2RX 0x00030004
  10089. #define GPIO_PD0_U1RX 0x00030005
  10090. #define GPIO_PD1_U2TX 0x00030404
  10091. #define GPIO_PD1_U1TX 0x00030405
  10092. #define GPIO_PD1_CCP2 0x0003040A
  10093. #define GPIO_PD2_U1RX 0x00030801
  10094. #define GPIO_PD2_CCP5 0x00030804
  10095. #define GPIO_PD3_U1TX 0x00030C01
  10096. #define GPIO_PD3_CCP0 0x00030C04
  10097. #define GPIO_PE0_SSI1CLK 0x00040002
  10098. #define GPIO_PE0_CCP3 0x00040003
  10099. #define GPIO_PE1_SSI1FSS 0x00040402
  10100. #define GPIO_PE1_CCP2 0x00040404
  10101. #define GPIO_PE2_CCP4 0x00040801
  10102. #define GPIO_PE2_SSI1RX 0x00040802
  10103. #define GPIO_PE2_CCP2 0x00040805
  10104. #define GPIO_PE3_CCP1 0x00040C01
  10105. #define GPIO_PE3_SSI1TX 0x00040C02
  10106. #define GPIO_PE4_CCP3 0x00041001
  10107. #define GPIO_PE4_U2TX 0x00041005
  10108. #define GPIO_PE4_CCP2 0x00041006
  10109. #endif // PART_LM3S1Z16
  10110. //*****************************************************************************
  10111. //
  10112. // LM3S2016 Port/Pin Mapping Definitions
  10113. //
  10114. //*****************************************************************************
  10115. #ifdef PART_LM3S2016
  10116. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  10117. #define CAN0RX_PORT GPIO_PORTD_BASE
  10118. #define CAN0RX_PIN GPIO_PIN_0
  10119. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  10120. #define CAN0TX_PORT GPIO_PORTD_BASE
  10121. #define CAN0TX_PIN GPIO_PIN_1
  10122. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  10123. #define CCP0_PORT GPIO_PORTB_BASE
  10124. #define CCP0_PIN GPIO_PIN_0
  10125. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  10126. #define CCP1_PORT GPIO_PORTA_BASE
  10127. #define CCP1_PIN GPIO_PIN_6
  10128. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  10129. #define CCP2_PORT GPIO_PORTB_BASE
  10130. #define CCP2_PIN GPIO_PIN_1
  10131. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  10132. #define CCP3_PORT GPIO_PORTC_BASE
  10133. #define CCP3_PIN GPIO_PIN_6
  10134. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  10135. #define I2C0SCL_PORT GPIO_PORTB_BASE
  10136. #define I2C0SCL_PIN GPIO_PIN_2
  10137. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  10138. #define I2C0SDA_PORT GPIO_PORTB_BASE
  10139. #define I2C0SDA_PIN GPIO_PIN_3
  10140. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  10141. #define SSI0CLK_PORT GPIO_PORTA_BASE
  10142. #define SSI0CLK_PIN GPIO_PIN_2
  10143. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  10144. #define SSI0FSS_PORT GPIO_PORTA_BASE
  10145. #define SSI0FSS_PIN GPIO_PIN_3
  10146. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10147. #define SSI0RX_PORT GPIO_PORTA_BASE
  10148. #define SSI0RX_PIN GPIO_PIN_4
  10149. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10150. #define SSI0TX_PORT GPIO_PORTA_BASE
  10151. #define SSI0TX_PIN GPIO_PIN_5
  10152. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  10153. #define SWCLK_PORT GPIO_PORTC_BASE
  10154. #define SWCLK_PIN GPIO_PIN_0
  10155. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  10156. #define SWDIO_PORT GPIO_PORTC_BASE
  10157. #define SWDIO_PIN GPIO_PIN_1
  10158. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  10159. #define SWO_PORT GPIO_PORTC_BASE
  10160. #define SWO_PIN GPIO_PIN_3
  10161. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  10162. #define TCK_PORT GPIO_PORTC_BASE
  10163. #define TCK_PIN GPIO_PIN_0
  10164. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  10165. #define TDI_PORT GPIO_PORTC_BASE
  10166. #define TDI_PIN GPIO_PIN_2
  10167. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  10168. #define TDO_PORT GPIO_PORTC_BASE
  10169. #define TDO_PIN GPIO_PIN_3
  10170. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  10171. #define TMS_PORT GPIO_PORTC_BASE
  10172. #define TMS_PIN GPIO_PIN_1
  10173. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  10174. #define TRST_PORT GPIO_PORTB_BASE
  10175. #define TRST_PIN GPIO_PIN_7
  10176. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10177. #define U0RX_PORT GPIO_PORTA_BASE
  10178. #define U0RX_PIN GPIO_PIN_0
  10179. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10180. #define U0TX_PORT GPIO_PORTA_BASE
  10181. #define U0TX_PIN GPIO_PIN_1
  10182. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  10183. #define U1RX_PORT GPIO_PORTD_BASE
  10184. #define U1RX_PIN GPIO_PIN_2
  10185. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  10186. #define U1TX_PORT GPIO_PORTD_BASE
  10187. #define U1TX_PIN GPIO_PIN_3
  10188. #endif // PART_LM3S2016
  10189. //*****************************************************************************
  10190. //
  10191. // LM3S2110 Port/Pin Mapping Definitions
  10192. //
  10193. //*****************************************************************************
  10194. #ifdef PART_LM3S2110
  10195. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  10196. #define C0O_PORT GPIO_PORTD_BASE
  10197. #define C0O_PIN GPIO_PIN_7
  10198. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10199. #define C0_MINUS_PORT GPIO_PORTB_BASE
  10200. #define C0_MINUS_PIN GPIO_PIN_4
  10201. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  10202. #define C0_PLUS_PORT GPIO_PORTB_BASE
  10203. #define C0_PLUS_PIN GPIO_PIN_6
  10204. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10205. #define C1_MINUS_PORT GPIO_PORTB_BASE
  10206. #define C1_MINUS_PIN GPIO_PIN_5
  10207. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  10208. #define C1_PLUS_PORT GPIO_PORTC_BASE
  10209. #define C1_PLUS_PIN GPIO_PIN_5
  10210. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  10211. #define C2_MINUS_PORT GPIO_PORTC_BASE
  10212. #define C2_MINUS_PIN GPIO_PIN_7
  10213. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  10214. #define C2_PLUS_PORT GPIO_PORTC_BASE
  10215. #define C2_PLUS_PIN GPIO_PIN_6
  10216. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  10217. #define CAN0RX_PORT GPIO_PORTD_BASE
  10218. #define CAN0RX_PIN GPIO_PIN_0
  10219. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  10220. #define CAN0TX_PORT GPIO_PORTD_BASE
  10221. #define CAN0TX_PIN GPIO_PIN_1
  10222. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  10223. #define CCP0_PORT GPIO_PORTB_BASE
  10224. #define CCP0_PIN GPIO_PIN_0
  10225. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  10226. #define CCP1_PORT GPIO_PORTA_BASE
  10227. #define CCP1_PIN GPIO_PIN_6
  10228. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  10229. #define CCP2_PORT GPIO_PORTB_BASE
  10230. #define CCP2_PIN GPIO_PIN_1
  10231. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  10232. #define CCP3_PORT GPIO_PORTD_BASE
  10233. #define CCP3_PIN GPIO_PIN_4
  10234. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  10235. #define FAULT_PORT GPIO_PORTD_BASE
  10236. #define FAULT_PIN GPIO_PIN_6
  10237. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  10238. #define I2C0SCL_PORT GPIO_PORTB_BASE
  10239. #define I2C0SCL_PIN GPIO_PIN_2
  10240. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  10241. #define I2C0SDA_PORT GPIO_PORTB_BASE
  10242. #define I2C0SDA_PIN GPIO_PIN_3
  10243. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  10244. #define PWM0_PORT GPIO_PORTF_BASE
  10245. #define PWM0_PIN GPIO_PIN_0
  10246. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  10247. #define PWM1_PORT GPIO_PORTF_BASE
  10248. #define PWM1_PIN GPIO_PIN_1
  10249. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  10250. #define SSI0CLK_PORT GPIO_PORTA_BASE
  10251. #define SSI0CLK_PIN GPIO_PIN_2
  10252. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  10253. #define SSI0FSS_PORT GPIO_PORTA_BASE
  10254. #define SSI0FSS_PIN GPIO_PIN_3
  10255. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10256. #define SSI0RX_PORT GPIO_PORTA_BASE
  10257. #define SSI0RX_PIN GPIO_PIN_4
  10258. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10259. #define SSI0TX_PORT GPIO_PORTA_BASE
  10260. #define SSI0TX_PIN GPIO_PIN_5
  10261. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  10262. #define SWCLK_PORT GPIO_PORTC_BASE
  10263. #define SWCLK_PIN GPIO_PIN_0
  10264. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  10265. #define SWDIO_PORT GPIO_PORTC_BASE
  10266. #define SWDIO_PIN GPIO_PIN_1
  10267. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  10268. #define SWO_PORT GPIO_PORTC_BASE
  10269. #define SWO_PIN GPIO_PIN_3
  10270. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  10271. #define TCK_PORT GPIO_PORTC_BASE
  10272. #define TCK_PIN GPIO_PIN_0
  10273. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  10274. #define TDI_PORT GPIO_PORTC_BASE
  10275. #define TDI_PIN GPIO_PIN_2
  10276. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  10277. #define TDO_PORT GPIO_PORTC_BASE
  10278. #define TDO_PIN GPIO_PIN_3
  10279. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  10280. #define TMS_PORT GPIO_PORTC_BASE
  10281. #define TMS_PIN GPIO_PIN_1
  10282. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  10283. #define TRST_PORT GPIO_PORTB_BASE
  10284. #define TRST_PIN GPIO_PIN_7
  10285. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10286. #define U0RX_PORT GPIO_PORTA_BASE
  10287. #define U0RX_PIN GPIO_PIN_0
  10288. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10289. #define U0TX_PORT GPIO_PORTA_BASE
  10290. #define U0TX_PIN GPIO_PIN_1
  10291. #endif // PART_LM3S2110
  10292. //*****************************************************************************
  10293. //
  10294. // LM3S2139 Port/Pin Mapping Definitions
  10295. //
  10296. //*****************************************************************************
  10297. #ifdef PART_LM3S2139
  10298. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  10299. #define C0O_PORT GPIO_PORTD_BASE
  10300. #define C0O_PIN GPIO_PIN_7
  10301. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10302. #define C0_MINUS_PORT GPIO_PORTB_BASE
  10303. #define C0_MINUS_PIN GPIO_PIN_4
  10304. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  10305. #define C0_PLUS_PORT GPIO_PORTB_BASE
  10306. #define C0_PLUS_PIN GPIO_PIN_6
  10307. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10308. #define C1_MINUS_PORT GPIO_PORTB_BASE
  10309. #define C1_MINUS_PIN GPIO_PIN_5
  10310. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  10311. #define C1_PLUS_PORT GPIO_PORTC_BASE
  10312. #define C1_PLUS_PIN GPIO_PIN_5
  10313. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  10314. #define C2_MINUS_PORT GPIO_PORTC_BASE
  10315. #define C2_MINUS_PIN GPIO_PIN_7
  10316. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  10317. #define C2_PLUS_PORT GPIO_PORTC_BASE
  10318. #define C2_PLUS_PIN GPIO_PIN_6
  10319. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  10320. #define CAN0RX_PORT GPIO_PORTD_BASE
  10321. #define CAN0RX_PIN GPIO_PIN_0
  10322. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  10323. #define CAN0TX_PORT GPIO_PORTD_BASE
  10324. #define CAN0TX_PIN GPIO_PIN_1
  10325. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  10326. #define CCP0_PORT GPIO_PORTB_BASE
  10327. #define CCP0_PIN GPIO_PIN_0
  10328. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  10329. #define CCP1_PORT GPIO_PORTA_BASE
  10330. #define CCP1_PIN GPIO_PIN_6
  10331. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  10332. #define CCP2_PORT GPIO_PORTB_BASE
  10333. #define CCP2_PIN GPIO_PIN_1
  10334. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  10335. #define CCP3_PORT GPIO_PORTD_BASE
  10336. #define CCP3_PIN GPIO_PIN_4
  10337. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  10338. #define CCP4_PORT GPIO_PORTA_BASE
  10339. #define CCP4_PIN GPIO_PIN_7
  10340. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  10341. #define CCP5_PORT GPIO_PORTC_BASE
  10342. #define CCP5_PIN GPIO_PIN_4
  10343. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  10344. #define I2C0SCL_PORT GPIO_PORTB_BASE
  10345. #define I2C0SCL_PIN GPIO_PIN_2
  10346. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  10347. #define I2C0SDA_PORT GPIO_PORTB_BASE
  10348. #define I2C0SDA_PIN GPIO_PIN_3
  10349. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  10350. #define SSI0CLK_PORT GPIO_PORTA_BASE
  10351. #define SSI0CLK_PIN GPIO_PIN_2
  10352. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  10353. #define SSI0FSS_PORT GPIO_PORTA_BASE
  10354. #define SSI0FSS_PIN GPIO_PIN_3
  10355. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10356. #define SSI0RX_PORT GPIO_PORTA_BASE
  10357. #define SSI0RX_PIN GPIO_PIN_4
  10358. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10359. #define SSI0TX_PORT GPIO_PORTA_BASE
  10360. #define SSI0TX_PIN GPIO_PIN_5
  10361. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  10362. #define SWCLK_PORT GPIO_PORTC_BASE
  10363. #define SWCLK_PIN GPIO_PIN_0
  10364. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  10365. #define SWDIO_PORT GPIO_PORTC_BASE
  10366. #define SWDIO_PIN GPIO_PIN_1
  10367. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  10368. #define SWO_PORT GPIO_PORTC_BASE
  10369. #define SWO_PIN GPIO_PIN_3
  10370. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  10371. #define TCK_PORT GPIO_PORTC_BASE
  10372. #define TCK_PIN GPIO_PIN_0
  10373. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  10374. #define TDI_PORT GPIO_PORTC_BASE
  10375. #define TDI_PIN GPIO_PIN_2
  10376. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  10377. #define TDO_PORT GPIO_PORTC_BASE
  10378. #define TDO_PIN GPIO_PIN_3
  10379. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  10380. #define TMS_PORT GPIO_PORTC_BASE
  10381. #define TMS_PIN GPIO_PIN_1
  10382. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  10383. #define TRST_PORT GPIO_PORTB_BASE
  10384. #define TRST_PIN GPIO_PIN_7
  10385. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10386. #define U0RX_PORT GPIO_PORTA_BASE
  10387. #define U0RX_PIN GPIO_PIN_0
  10388. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10389. #define U0TX_PORT GPIO_PORTA_BASE
  10390. #define U0TX_PIN GPIO_PIN_1
  10391. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  10392. #define U1RX_PORT GPIO_PORTD_BASE
  10393. #define U1RX_PIN GPIO_PIN_2
  10394. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  10395. #define U1TX_PORT GPIO_PORTD_BASE
  10396. #define U1TX_PIN GPIO_PIN_3
  10397. #endif // PART_LM3S2139
  10398. //*****************************************************************************
  10399. //
  10400. // LM3S2276 Port/Pin Mapping Definitions
  10401. //
  10402. //*****************************************************************************
  10403. #ifdef PART_LM3S2276
  10404. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  10405. #define ADC0_PORT GPIO_PORTE_BASE
  10406. #define ADC0_PIN GPIO_PIN_3
  10407. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  10408. #define ADC1_PORT GPIO_PORTE_BASE
  10409. #define ADC1_PIN GPIO_PIN_2
  10410. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  10411. #define ADC2_PORT GPIO_PORTE_BASE
  10412. #define ADC2_PIN GPIO_PIN_1
  10413. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  10414. #define ADC3_PORT GPIO_PORTE_BASE
  10415. #define ADC3_PIN GPIO_PIN_0
  10416. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  10417. #define ADC4_PORT GPIO_PORTD_BASE
  10418. #define ADC4_PIN GPIO_PIN_3
  10419. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  10420. #define ADC5_PORT GPIO_PORTD_BASE
  10421. #define ADC5_PIN GPIO_PIN_2
  10422. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOB
  10423. #define CAN0RX_PORT GPIO_PORTB_BASE
  10424. #define CAN0RX_PIN GPIO_PIN_4
  10425. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOB
  10426. #define CAN0TX_PORT GPIO_PORTB_BASE
  10427. #define CAN0TX_PIN GPIO_PIN_5
  10428. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOC
  10429. #define CCP0_PORT GPIO_PORTC_BASE
  10430. #define CCP0_PIN GPIO_PIN_7
  10431. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOE
  10432. #define FAULT0_PORT GPIO_PORTE_BASE
  10433. #define FAULT0_PIN GPIO_PIN_4
  10434. #define FAULT1_PERIPH SYSCTL_PERIPH_GPIOB
  10435. #define FAULT1_PORT GPIO_PORTB_BASE
  10436. #define FAULT1_PIN GPIO_PIN_6
  10437. #define FAULT2_PERIPH SYSCTL_PERIPH_GPIOC
  10438. #define FAULT2_PORT GPIO_PORTC_BASE
  10439. #define FAULT2_PIN GPIO_PIN_5
  10440. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  10441. #define I2C0SCL_PORT GPIO_PORTB_BASE
  10442. #define I2C0SCL_PIN GPIO_PIN_2
  10443. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  10444. #define I2C0SDA_PORT GPIO_PORTB_BASE
  10445. #define I2C0SDA_PIN GPIO_PIN_3
  10446. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  10447. #define NMI_PORT GPIO_PORTB_BASE
  10448. #define NMI_PIN GPIO_PIN_7
  10449. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  10450. #define PWM0_PORT GPIO_PORTD_BASE
  10451. #define PWM0_PIN GPIO_PIN_0
  10452. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  10453. #define PWM1_PORT GPIO_PORTD_BASE
  10454. #define PWM1_PIN GPIO_PIN_1
  10455. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  10456. #define PWM2_PORT GPIO_PORTB_BASE
  10457. #define PWM2_PIN GPIO_PIN_0
  10458. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  10459. #define PWM3_PORT GPIO_PORTB_BASE
  10460. #define PWM3_PIN GPIO_PIN_1
  10461. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOA
  10462. #define PWM4_PORT GPIO_PORTA_BASE
  10463. #define PWM4_PIN GPIO_PIN_6
  10464. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOA
  10465. #define PWM5_PORT GPIO_PORTA_BASE
  10466. #define PWM5_PIN GPIO_PIN_7
  10467. #define PWM6_PERIPH SYSCTL_PERIPH_GPIOC
  10468. #define PWM6_PORT GPIO_PORTC_BASE
  10469. #define PWM6_PIN GPIO_PIN_4
  10470. #define PWM7_PERIPH SYSCTL_PERIPH_GPIOC
  10471. #define PWM7_PORT GPIO_PORTC_BASE
  10472. #define PWM7_PIN GPIO_PIN_6
  10473. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  10474. #define SSI0CLK_PORT GPIO_PORTA_BASE
  10475. #define SSI0CLK_PIN GPIO_PIN_2
  10476. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  10477. #define SSI0FSS_PORT GPIO_PORTA_BASE
  10478. #define SSI0FSS_PIN GPIO_PIN_3
  10479. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10480. #define SSI0RX_PORT GPIO_PORTA_BASE
  10481. #define SSI0RX_PIN GPIO_PIN_4
  10482. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10483. #define SSI0TX_PORT GPIO_PORTA_BASE
  10484. #define SSI0TX_PIN GPIO_PIN_5
  10485. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  10486. #define SWCLK_PORT GPIO_PORTC_BASE
  10487. #define SWCLK_PIN GPIO_PIN_0
  10488. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  10489. #define SWDIO_PORT GPIO_PORTC_BASE
  10490. #define SWDIO_PIN GPIO_PIN_1
  10491. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  10492. #define SWO_PORT GPIO_PORTC_BASE
  10493. #define SWO_PIN GPIO_PIN_3
  10494. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  10495. #define TCK_PORT GPIO_PORTC_BASE
  10496. #define TCK_PIN GPIO_PIN_0
  10497. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  10498. #define TDI_PORT GPIO_PORTC_BASE
  10499. #define TDI_PIN GPIO_PIN_2
  10500. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  10501. #define TDO_PORT GPIO_PORTC_BASE
  10502. #define TDO_PIN GPIO_PIN_3
  10503. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  10504. #define TMS_PORT GPIO_PORTC_BASE
  10505. #define TMS_PIN GPIO_PIN_1
  10506. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10507. #define U0RX_PORT GPIO_PORTA_BASE
  10508. #define U0RX_PIN GPIO_PIN_0
  10509. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10510. #define U0TX_PORT GPIO_PORTA_BASE
  10511. #define U0TX_PIN GPIO_PIN_1
  10512. #endif // PART_LM3S2276
  10513. //*****************************************************************************
  10514. //
  10515. // LM3S2410 Port/Pin Mapping Definitions
  10516. //
  10517. //*****************************************************************************
  10518. #ifdef PART_LM3S2410
  10519. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  10520. #define C0O_PORT GPIO_PORTD_BASE
  10521. #define C0O_PIN GPIO_PIN_7
  10522. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10523. #define C0_MINUS_PORT GPIO_PORTB_BASE
  10524. #define C0_MINUS_PIN GPIO_PIN_4
  10525. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  10526. #define C0_PLUS_PORT GPIO_PORTB_BASE
  10527. #define C0_PLUS_PIN GPIO_PIN_6
  10528. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  10529. #define C1O_PORT GPIO_PORTE_BASE
  10530. #define C1O_PIN GPIO_PIN_6
  10531. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10532. #define C1_MINUS_PORT GPIO_PORTB_BASE
  10533. #define C1_MINUS_PIN GPIO_PIN_5
  10534. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  10535. #define C1_PLUS_PORT GPIO_PORTC_BASE
  10536. #define C1_PLUS_PIN GPIO_PIN_5
  10537. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  10538. #define CAN0RX_PORT GPIO_PORTD_BASE
  10539. #define CAN0RX_PIN GPIO_PIN_0
  10540. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  10541. #define CAN0TX_PORT GPIO_PORTD_BASE
  10542. #define CAN0TX_PIN GPIO_PIN_1
  10543. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  10544. #define CCP0_PORT GPIO_PORTB_BASE
  10545. #define CCP0_PIN GPIO_PIN_0
  10546. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  10547. #define CCP1_PORT GPIO_PORTA_BASE
  10548. #define CCP1_PIN GPIO_PIN_6
  10549. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  10550. #define CCP2_PORT GPIO_PORTB_BASE
  10551. #define CCP2_PIN GPIO_PIN_1
  10552. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  10553. #define CCP3_PORT GPIO_PORTC_BASE
  10554. #define CCP3_PIN GPIO_PIN_6
  10555. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  10556. #define SSI0CLK_PORT GPIO_PORTA_BASE
  10557. #define SSI0CLK_PIN GPIO_PIN_2
  10558. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  10559. #define SSI0FSS_PORT GPIO_PORTA_BASE
  10560. #define SSI0FSS_PIN GPIO_PIN_3
  10561. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10562. #define SSI0RX_PORT GPIO_PORTA_BASE
  10563. #define SSI0RX_PIN GPIO_PIN_4
  10564. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10565. #define SSI0TX_PORT GPIO_PORTA_BASE
  10566. #define SSI0TX_PIN GPIO_PIN_5
  10567. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  10568. #define SWCLK_PORT GPIO_PORTC_BASE
  10569. #define SWCLK_PIN GPIO_PIN_0
  10570. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  10571. #define SWDIO_PORT GPIO_PORTC_BASE
  10572. #define SWDIO_PIN GPIO_PIN_1
  10573. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  10574. #define SWO_PORT GPIO_PORTC_BASE
  10575. #define SWO_PIN GPIO_PIN_3
  10576. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  10577. #define TCK_PORT GPIO_PORTC_BASE
  10578. #define TCK_PIN GPIO_PIN_0
  10579. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  10580. #define TDI_PORT GPIO_PORTC_BASE
  10581. #define TDI_PIN GPIO_PIN_2
  10582. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  10583. #define TDO_PORT GPIO_PORTC_BASE
  10584. #define TDO_PIN GPIO_PIN_3
  10585. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  10586. #define TMS_PORT GPIO_PORTC_BASE
  10587. #define TMS_PIN GPIO_PIN_1
  10588. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  10589. #define TRST_PORT GPIO_PORTB_BASE
  10590. #define TRST_PIN GPIO_PIN_7
  10591. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10592. #define U0RX_PORT GPIO_PORTA_BASE
  10593. #define U0RX_PIN GPIO_PIN_0
  10594. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10595. #define U0TX_PORT GPIO_PORTA_BASE
  10596. #define U0TX_PIN GPIO_PIN_1
  10597. #endif // PART_LM3S2410
  10598. //*****************************************************************************
  10599. //
  10600. // LM3S2412 Port/Pin Mapping Definitions
  10601. //
  10602. //*****************************************************************************
  10603. #ifdef PART_LM3S2412
  10604. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  10605. #define C0O_PORT GPIO_PORTD_BASE
  10606. #define C0O_PIN GPIO_PIN_7
  10607. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10608. #define C0_MINUS_PORT GPIO_PORTB_BASE
  10609. #define C0_MINUS_PIN GPIO_PIN_4
  10610. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  10611. #define C0_PLUS_PORT GPIO_PORTB_BASE
  10612. #define C0_PLUS_PIN GPIO_PIN_6
  10613. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10614. #define C1_MINUS_PORT GPIO_PORTB_BASE
  10615. #define C1_MINUS_PIN GPIO_PIN_5
  10616. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  10617. #define C1_PLUS_PORT GPIO_PORTC_BASE
  10618. #define C1_PLUS_PIN GPIO_PIN_5
  10619. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  10620. #define CAN0RX_PORT GPIO_PORTD_BASE
  10621. #define CAN0RX_PIN GPIO_PIN_0
  10622. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  10623. #define CAN0TX_PORT GPIO_PORTD_BASE
  10624. #define CAN0TX_PIN GPIO_PIN_1
  10625. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  10626. #define CCP0_PORT GPIO_PORTB_BASE
  10627. #define CCP0_PIN GPIO_PIN_0
  10628. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  10629. #define CCP1_PORT GPIO_PORTA_BASE
  10630. #define CCP1_PIN GPIO_PIN_6
  10631. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  10632. #define CCP2_PORT GPIO_PORTB_BASE
  10633. #define CCP2_PIN GPIO_PIN_1
  10634. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  10635. #define CCP3_PORT GPIO_PORTC_BASE
  10636. #define CCP3_PIN GPIO_PIN_6
  10637. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  10638. #define FAULT_PORT GPIO_PORTD_BASE
  10639. #define FAULT_PIN GPIO_PIN_6
  10640. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  10641. #define I2C0SCL_PORT GPIO_PORTB_BASE
  10642. #define I2C0SCL_PIN GPIO_PIN_2
  10643. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  10644. #define I2C0SDA_PORT GPIO_PORTB_BASE
  10645. #define I2C0SDA_PIN GPIO_PIN_3
  10646. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  10647. #define PWM0_PORT GPIO_PORTF_BASE
  10648. #define PWM0_PIN GPIO_PIN_0
  10649. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  10650. #define PWM1_PORT GPIO_PORTF_BASE
  10651. #define PWM1_PIN GPIO_PIN_1
  10652. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  10653. #define SSI0CLK_PORT GPIO_PORTA_BASE
  10654. #define SSI0CLK_PIN GPIO_PIN_2
  10655. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  10656. #define SSI0FSS_PORT GPIO_PORTA_BASE
  10657. #define SSI0FSS_PIN GPIO_PIN_3
  10658. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10659. #define SSI0RX_PORT GPIO_PORTA_BASE
  10660. #define SSI0RX_PIN GPIO_PIN_4
  10661. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10662. #define SSI0TX_PORT GPIO_PORTA_BASE
  10663. #define SSI0TX_PIN GPIO_PIN_5
  10664. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  10665. #define SWCLK_PORT GPIO_PORTC_BASE
  10666. #define SWCLK_PIN GPIO_PIN_0
  10667. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  10668. #define SWDIO_PORT GPIO_PORTC_BASE
  10669. #define SWDIO_PIN GPIO_PIN_1
  10670. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  10671. #define SWO_PORT GPIO_PORTC_BASE
  10672. #define SWO_PIN GPIO_PIN_3
  10673. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  10674. #define TCK_PORT GPIO_PORTC_BASE
  10675. #define TCK_PIN GPIO_PIN_0
  10676. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  10677. #define TDI_PORT GPIO_PORTC_BASE
  10678. #define TDI_PIN GPIO_PIN_2
  10679. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  10680. #define TDO_PORT GPIO_PORTC_BASE
  10681. #define TDO_PIN GPIO_PIN_3
  10682. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  10683. #define TMS_PORT GPIO_PORTC_BASE
  10684. #define TMS_PIN GPIO_PIN_1
  10685. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  10686. #define TRST_PORT GPIO_PORTB_BASE
  10687. #define TRST_PIN GPIO_PIN_7
  10688. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10689. #define U0RX_PORT GPIO_PORTA_BASE
  10690. #define U0RX_PIN GPIO_PIN_0
  10691. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10692. #define U0TX_PORT GPIO_PORTA_BASE
  10693. #define U0TX_PIN GPIO_PIN_1
  10694. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  10695. #define U1RX_PORT GPIO_PORTD_BASE
  10696. #define U1RX_PIN GPIO_PIN_2
  10697. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  10698. #define U1TX_PORT GPIO_PORTD_BASE
  10699. #define U1TX_PIN GPIO_PIN_3
  10700. #endif // PART_LM3S2412
  10701. //*****************************************************************************
  10702. //
  10703. // LM3S2432 Port/Pin Mapping Definitions
  10704. //
  10705. //*****************************************************************************
  10706. #ifdef PART_LM3S2432
  10707. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  10708. #define C0O_PORT GPIO_PORTD_BASE
  10709. #define C0O_PIN GPIO_PIN_7
  10710. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10711. #define C0_MINUS_PORT GPIO_PORTB_BASE
  10712. #define C0_MINUS_PIN GPIO_PIN_4
  10713. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  10714. #define C0_PLUS_PORT GPIO_PORTB_BASE
  10715. #define C0_PLUS_PIN GPIO_PIN_6
  10716. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10717. #define C1_MINUS_PORT GPIO_PORTB_BASE
  10718. #define C1_MINUS_PIN GPIO_PIN_5
  10719. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  10720. #define C1_PLUS_PORT GPIO_PORTC_BASE
  10721. #define C1_PLUS_PIN GPIO_PIN_5
  10722. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  10723. #define CAN0RX_PORT GPIO_PORTD_BASE
  10724. #define CAN0RX_PIN GPIO_PIN_0
  10725. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  10726. #define CAN0TX_PORT GPIO_PORTD_BASE
  10727. #define CAN0TX_PIN GPIO_PIN_1
  10728. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  10729. #define CCP0_PORT GPIO_PORTB_BASE
  10730. #define CCP0_PIN GPIO_PIN_0
  10731. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  10732. #define CCP1_PORT GPIO_PORTA_BASE
  10733. #define CCP1_PIN GPIO_PIN_6
  10734. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  10735. #define CCP2_PORT GPIO_PORTB_BASE
  10736. #define CCP2_PIN GPIO_PIN_1
  10737. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  10738. #define CCP3_PORT GPIO_PORTC_BASE
  10739. #define CCP3_PIN GPIO_PIN_6
  10740. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  10741. #define FAULT_PORT GPIO_PORTD_BASE
  10742. #define FAULT_PIN GPIO_PIN_6
  10743. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  10744. #define I2C0SCL_PORT GPIO_PORTB_BASE
  10745. #define I2C0SCL_PIN GPIO_PIN_2
  10746. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  10747. #define I2C0SDA_PORT GPIO_PORTB_BASE
  10748. #define I2C0SDA_PIN GPIO_PIN_3
  10749. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  10750. #define PWM0_PORT GPIO_PORTF_BASE
  10751. #define PWM0_PIN GPIO_PIN_0
  10752. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  10753. #define PWM1_PORT GPIO_PORTF_BASE
  10754. #define PWM1_PIN GPIO_PIN_1
  10755. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  10756. #define SSI0CLK_PORT GPIO_PORTA_BASE
  10757. #define SSI0CLK_PIN GPIO_PIN_2
  10758. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  10759. #define SSI0FSS_PORT GPIO_PORTA_BASE
  10760. #define SSI0FSS_PIN GPIO_PIN_3
  10761. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10762. #define SSI0RX_PORT GPIO_PORTA_BASE
  10763. #define SSI0RX_PIN GPIO_PIN_4
  10764. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10765. #define SSI0TX_PORT GPIO_PORTA_BASE
  10766. #define SSI0TX_PIN GPIO_PIN_5
  10767. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  10768. #define SWCLK_PORT GPIO_PORTC_BASE
  10769. #define SWCLK_PIN GPIO_PIN_0
  10770. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  10771. #define SWDIO_PORT GPIO_PORTC_BASE
  10772. #define SWDIO_PIN GPIO_PIN_1
  10773. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  10774. #define SWO_PORT GPIO_PORTC_BASE
  10775. #define SWO_PIN GPIO_PIN_3
  10776. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  10777. #define TCK_PORT GPIO_PORTC_BASE
  10778. #define TCK_PIN GPIO_PIN_0
  10779. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  10780. #define TDI_PORT GPIO_PORTC_BASE
  10781. #define TDI_PIN GPIO_PIN_2
  10782. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  10783. #define TDO_PORT GPIO_PORTC_BASE
  10784. #define TDO_PIN GPIO_PIN_3
  10785. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  10786. #define TMS_PORT GPIO_PORTC_BASE
  10787. #define TMS_PIN GPIO_PIN_1
  10788. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  10789. #define TRST_PORT GPIO_PORTB_BASE
  10790. #define TRST_PIN GPIO_PIN_7
  10791. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10792. #define U0RX_PORT GPIO_PORTA_BASE
  10793. #define U0RX_PIN GPIO_PIN_0
  10794. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10795. #define U0TX_PORT GPIO_PORTA_BASE
  10796. #define U0TX_PIN GPIO_PIN_1
  10797. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  10798. #define U1RX_PORT GPIO_PORTD_BASE
  10799. #define U1RX_PIN GPIO_PIN_2
  10800. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  10801. #define U1TX_PORT GPIO_PORTD_BASE
  10802. #define U1TX_PIN GPIO_PIN_3
  10803. #endif // PART_LM3S2432
  10804. //*****************************************************************************
  10805. //
  10806. // LM3S2533 Port/Pin Mapping Definitions
  10807. //
  10808. //*****************************************************************************
  10809. #ifdef PART_LM3S2533
  10810. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  10811. #define C0O_PORT GPIO_PORTD_BASE
  10812. #define C0O_PIN GPIO_PIN_7
  10813. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10814. #define C0_MINUS_PORT GPIO_PORTB_BASE
  10815. #define C0_MINUS_PIN GPIO_PIN_4
  10816. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  10817. #define C0_PLUS_PORT GPIO_PORTB_BASE
  10818. #define C0_PLUS_PIN GPIO_PIN_6
  10819. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10820. #define C1_MINUS_PORT GPIO_PORTB_BASE
  10821. #define C1_MINUS_PIN GPIO_PIN_5
  10822. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  10823. #define C1_PLUS_PORT GPIO_PORTC_BASE
  10824. #define C1_PLUS_PIN GPIO_PIN_5
  10825. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  10826. #define C2_MINUS_PORT GPIO_PORTC_BASE
  10827. #define C2_MINUS_PIN GPIO_PIN_7
  10828. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  10829. #define C2_PLUS_PORT GPIO_PORTC_BASE
  10830. #define C2_PLUS_PIN GPIO_PIN_6
  10831. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  10832. #define CAN0RX_PORT GPIO_PORTD_BASE
  10833. #define CAN0RX_PIN GPIO_PIN_0
  10834. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  10835. #define CAN0TX_PORT GPIO_PORTD_BASE
  10836. #define CAN0TX_PIN GPIO_PIN_1
  10837. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  10838. #define CCP0_PORT GPIO_PORTB_BASE
  10839. #define CCP0_PIN GPIO_PIN_0
  10840. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  10841. #define CCP1_PORT GPIO_PORTA_BASE
  10842. #define CCP1_PIN GPIO_PIN_6
  10843. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  10844. #define CCP2_PORT GPIO_PORTB_BASE
  10845. #define CCP2_PIN GPIO_PIN_1
  10846. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  10847. #define CCP3_PORT GPIO_PORTD_BASE
  10848. #define CCP3_PIN GPIO_PIN_4
  10849. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  10850. #define CCP4_PORT GPIO_PORTA_BASE
  10851. #define CCP4_PIN GPIO_PIN_7
  10852. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  10853. #define CCP5_PORT GPIO_PORTC_BASE
  10854. #define CCP5_PIN GPIO_PIN_4
  10855. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  10856. #define FAULT_PORT GPIO_PORTD_BASE
  10857. #define FAULT_PIN GPIO_PIN_6
  10858. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  10859. #define I2C0SCL_PORT GPIO_PORTB_BASE
  10860. #define I2C0SCL_PIN GPIO_PIN_2
  10861. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  10862. #define I2C0SDA_PORT GPIO_PORTB_BASE
  10863. #define I2C0SDA_PIN GPIO_PIN_3
  10864. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  10865. #define PWM0_PORT GPIO_PORTF_BASE
  10866. #define PWM0_PIN GPIO_PIN_0
  10867. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  10868. #define PWM1_PORT GPIO_PORTF_BASE
  10869. #define PWM1_PIN GPIO_PIN_1
  10870. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  10871. #define PWM2_PORT GPIO_PORTH_BASE
  10872. #define PWM2_PIN GPIO_PIN_0
  10873. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  10874. #define PWM3_PORT GPIO_PORTH_BASE
  10875. #define PWM3_PIN GPIO_PIN_1
  10876. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  10877. #define PWM4_PORT GPIO_PORTE_BASE
  10878. #define PWM4_PIN GPIO_PIN_0
  10879. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  10880. #define PWM5_PORT GPIO_PORTE_BASE
  10881. #define PWM5_PIN GPIO_PIN_1
  10882. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  10883. #define SSI0CLK_PORT GPIO_PORTA_BASE
  10884. #define SSI0CLK_PIN GPIO_PIN_2
  10885. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  10886. #define SSI0FSS_PORT GPIO_PORTA_BASE
  10887. #define SSI0FSS_PIN GPIO_PIN_3
  10888. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10889. #define SSI0RX_PORT GPIO_PORTA_BASE
  10890. #define SSI0RX_PIN GPIO_PIN_4
  10891. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10892. #define SSI0TX_PORT GPIO_PORTA_BASE
  10893. #define SSI0TX_PIN GPIO_PIN_5
  10894. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  10895. #define SWCLK_PORT GPIO_PORTC_BASE
  10896. #define SWCLK_PIN GPIO_PIN_0
  10897. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  10898. #define SWDIO_PORT GPIO_PORTC_BASE
  10899. #define SWDIO_PIN GPIO_PIN_1
  10900. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  10901. #define SWO_PORT GPIO_PORTC_BASE
  10902. #define SWO_PIN GPIO_PIN_3
  10903. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  10904. #define TCK_PORT GPIO_PORTC_BASE
  10905. #define TCK_PIN GPIO_PIN_0
  10906. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  10907. #define TDI_PORT GPIO_PORTC_BASE
  10908. #define TDI_PIN GPIO_PIN_2
  10909. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  10910. #define TDO_PORT GPIO_PORTC_BASE
  10911. #define TDO_PIN GPIO_PIN_3
  10912. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  10913. #define TMS_PORT GPIO_PORTC_BASE
  10914. #define TMS_PIN GPIO_PIN_1
  10915. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  10916. #define TRST_PORT GPIO_PORTB_BASE
  10917. #define TRST_PIN GPIO_PIN_7
  10918. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  10919. #define U0RX_PORT GPIO_PORTA_BASE
  10920. #define U0RX_PIN GPIO_PIN_0
  10921. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  10922. #define U0TX_PORT GPIO_PORTA_BASE
  10923. #define U0TX_PIN GPIO_PIN_1
  10924. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  10925. #define U1RX_PORT GPIO_PORTD_BASE
  10926. #define U1RX_PIN GPIO_PIN_2
  10927. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  10928. #define U1TX_PORT GPIO_PORTD_BASE
  10929. #define U1TX_PIN GPIO_PIN_3
  10930. #endif // PART_LM3S2533
  10931. //*****************************************************************************
  10932. //
  10933. // LM3S2601 Port/Pin Mapping Definitions
  10934. //
  10935. //*****************************************************************************
  10936. #ifdef PART_LM3S2601
  10937. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  10938. #define C0O_PORT GPIO_PORTF_BASE
  10939. #define C0O_PIN GPIO_PIN_4
  10940. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10941. #define C0_MINUS_PORT GPIO_PORTB_BASE
  10942. #define C0_MINUS_PIN GPIO_PIN_4
  10943. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  10944. #define C0_PLUS_PORT GPIO_PORTB_BASE
  10945. #define C0_PLUS_PIN GPIO_PIN_6
  10946. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  10947. #define C1O_PORT GPIO_PORTE_BASE
  10948. #define C1O_PIN GPIO_PIN_6
  10949. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  10950. #define C1_MINUS_PORT GPIO_PORTB_BASE
  10951. #define C1_MINUS_PIN GPIO_PIN_5
  10952. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  10953. #define C1_PLUS_PORT GPIO_PORTC_BASE
  10954. #define C1_PLUS_PIN GPIO_PIN_5
  10955. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  10956. #define CAN0RX_PORT GPIO_PORTD_BASE
  10957. #define CAN0RX_PIN GPIO_PIN_0
  10958. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  10959. #define CAN0TX_PORT GPIO_PORTD_BASE
  10960. #define CAN0TX_PIN GPIO_PIN_1
  10961. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  10962. #define CCP0_PORT GPIO_PORTB_BASE
  10963. #define CCP0_PIN GPIO_PIN_0
  10964. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOD
  10965. #define CCP1_PORT GPIO_PORTD_BASE
  10966. #define CCP1_PIN GPIO_PIN_7
  10967. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  10968. #define CCP2_PORT GPIO_PORTB_BASE
  10969. #define CCP2_PIN GPIO_PIN_1
  10970. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  10971. #define CCP3_PORT GPIO_PORTC_BASE
  10972. #define CCP3_PIN GPIO_PIN_6
  10973. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  10974. #define CCP4_PORT GPIO_PORTC_BASE
  10975. #define CCP4_PIN GPIO_PIN_7
  10976. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  10977. #define CCP5_PORT GPIO_PORTC_BASE
  10978. #define CCP5_PIN GPIO_PIN_4
  10979. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  10980. #define CCP6_PORT GPIO_PORTH_BASE
  10981. #define CCP6_PIN GPIO_PIN_0
  10982. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  10983. #define CCP7_PORT GPIO_PORTH_BASE
  10984. #define CCP7_PIN GPIO_PIN_1
  10985. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  10986. #define I2C0SCL_PORT GPIO_PORTB_BASE
  10987. #define I2C0SCL_PIN GPIO_PIN_2
  10988. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  10989. #define I2C0SDA_PORT GPIO_PORTB_BASE
  10990. #define I2C0SDA_PIN GPIO_PIN_3
  10991. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  10992. #define I2C1SCL_PORT GPIO_PORTA_BASE
  10993. #define I2C1SCL_PIN GPIO_PIN_6
  10994. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  10995. #define I2C1SDA_PORT GPIO_PORTA_BASE
  10996. #define I2C1SDA_PIN GPIO_PIN_7
  10997. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  10998. #define SSI0CLK_PORT GPIO_PORTA_BASE
  10999. #define SSI0CLK_PIN GPIO_PIN_2
  11000. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  11001. #define SSI0FSS_PORT GPIO_PORTA_BASE
  11002. #define SSI0FSS_PIN GPIO_PIN_3
  11003. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11004. #define SSI0RX_PORT GPIO_PORTA_BASE
  11005. #define SSI0RX_PIN GPIO_PIN_4
  11006. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11007. #define SSI0TX_PORT GPIO_PORTA_BASE
  11008. #define SSI0TX_PIN GPIO_PIN_5
  11009. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  11010. #define SSI1CLK_PORT GPIO_PORTE_BASE
  11011. #define SSI1CLK_PIN GPIO_PIN_0
  11012. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  11013. #define SSI1FSS_PORT GPIO_PORTE_BASE
  11014. #define SSI1FSS_PIN GPIO_PIN_1
  11015. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  11016. #define SSI1RX_PORT GPIO_PORTE_BASE
  11017. #define SSI1RX_PIN GPIO_PIN_2
  11018. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  11019. #define SSI1TX_PORT GPIO_PORTE_BASE
  11020. #define SSI1TX_PIN GPIO_PIN_3
  11021. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  11022. #define SWCLK_PORT GPIO_PORTC_BASE
  11023. #define SWCLK_PIN GPIO_PIN_0
  11024. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  11025. #define SWDIO_PORT GPIO_PORTC_BASE
  11026. #define SWDIO_PIN GPIO_PIN_1
  11027. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  11028. #define SWO_PORT GPIO_PORTC_BASE
  11029. #define SWO_PIN GPIO_PIN_3
  11030. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  11031. #define TCK_PORT GPIO_PORTC_BASE
  11032. #define TCK_PIN GPIO_PIN_0
  11033. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  11034. #define TDI_PORT GPIO_PORTC_BASE
  11035. #define TDI_PIN GPIO_PIN_2
  11036. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  11037. #define TDO_PORT GPIO_PORTC_BASE
  11038. #define TDO_PIN GPIO_PIN_3
  11039. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  11040. #define TMS_PORT GPIO_PORTC_BASE
  11041. #define TMS_PIN GPIO_PIN_1
  11042. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  11043. #define TRST_PORT GPIO_PORTB_BASE
  11044. #define TRST_PIN GPIO_PIN_7
  11045. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11046. #define U0RX_PORT GPIO_PORTA_BASE
  11047. #define U0RX_PIN GPIO_PIN_0
  11048. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11049. #define U0TX_PORT GPIO_PORTA_BASE
  11050. #define U0TX_PIN GPIO_PIN_1
  11051. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  11052. #define U1RX_PORT GPIO_PORTD_BASE
  11053. #define U1RX_PIN GPIO_PIN_2
  11054. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  11055. #define U1TX_PORT GPIO_PORTD_BASE
  11056. #define U1TX_PIN GPIO_PIN_3
  11057. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  11058. #define U2RX_PORT GPIO_PORTG_BASE
  11059. #define U2RX_PIN GPIO_PIN_0
  11060. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  11061. #define U2TX_PORT GPIO_PORTG_BASE
  11062. #define U2TX_PIN GPIO_PIN_1
  11063. #endif // PART_LM3S2601
  11064. //*****************************************************************************
  11065. //
  11066. // LM3S2608 Port/Pin Mapping Definitions
  11067. //
  11068. //*****************************************************************************
  11069. #ifdef PART_LM3S2608
  11070. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  11071. #define C0O_PORT GPIO_PORTF_BASE
  11072. #define C0O_PIN GPIO_PIN_4
  11073. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11074. #define C0_MINUS_PORT GPIO_PORTB_BASE
  11075. #define C0_MINUS_PIN GPIO_PIN_4
  11076. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  11077. #define C0_PLUS_PORT GPIO_PORTB_BASE
  11078. #define C0_PLUS_PIN GPIO_PIN_6
  11079. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  11080. #define C1O_PORT GPIO_PORTF_BASE
  11081. #define C1O_PIN GPIO_PIN_5
  11082. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11083. #define C1_MINUS_PORT GPIO_PORTB_BASE
  11084. #define C1_MINUS_PIN GPIO_PIN_5
  11085. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  11086. #define C1_PLUS_PORT GPIO_PORTC_BASE
  11087. #define C1_PLUS_PIN GPIO_PIN_5
  11088. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  11089. #define CAN0RX_PORT GPIO_PORTD_BASE
  11090. #define CAN0RX_PIN GPIO_PIN_0
  11091. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  11092. #define CAN0TX_PORT GPIO_PORTD_BASE
  11093. #define CAN0TX_PIN GPIO_PIN_1
  11094. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  11095. #define CCP0_PORT GPIO_PORTB_BASE
  11096. #define CCP0_PIN GPIO_PIN_0
  11097. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOF
  11098. #define CCP1_PORT GPIO_PORTF_BASE
  11099. #define CCP1_PIN GPIO_PIN_6
  11100. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  11101. #define CCP2_PORT GPIO_PORTB_BASE
  11102. #define CCP2_PIN GPIO_PIN_1
  11103. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  11104. #define CCP3_PORT GPIO_PORTC_BASE
  11105. #define CCP3_PIN GPIO_PIN_6
  11106. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  11107. #define CCP4_PORT GPIO_PORTC_BASE
  11108. #define CCP4_PIN GPIO_PIN_7
  11109. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  11110. #define CCP5_PORT GPIO_PORTC_BASE
  11111. #define CCP5_PIN GPIO_PIN_4
  11112. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  11113. #define CCP6_PORT GPIO_PORTH_BASE
  11114. #define CCP6_PIN GPIO_PIN_0
  11115. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  11116. #define CCP7_PORT GPIO_PORTH_BASE
  11117. #define CCP7_PIN GPIO_PIN_1
  11118. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  11119. #define I2C0SCL_PORT GPIO_PORTB_BASE
  11120. #define I2C0SCL_PIN GPIO_PIN_2
  11121. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  11122. #define I2C0SDA_PORT GPIO_PORTB_BASE
  11123. #define I2C0SDA_PIN GPIO_PIN_3
  11124. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  11125. #define I2C1SCL_PORT GPIO_PORTA_BASE
  11126. #define I2C1SCL_PIN GPIO_PIN_6
  11127. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  11128. #define I2C1SDA_PORT GPIO_PORTA_BASE
  11129. #define I2C1SDA_PIN GPIO_PIN_7
  11130. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  11131. #define SSI0CLK_PORT GPIO_PORTA_BASE
  11132. #define SSI0CLK_PIN GPIO_PIN_2
  11133. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  11134. #define SSI0FSS_PORT GPIO_PORTA_BASE
  11135. #define SSI0FSS_PIN GPIO_PIN_3
  11136. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11137. #define SSI0RX_PORT GPIO_PORTA_BASE
  11138. #define SSI0RX_PIN GPIO_PIN_4
  11139. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11140. #define SSI0TX_PORT GPIO_PORTA_BASE
  11141. #define SSI0TX_PIN GPIO_PIN_5
  11142. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  11143. #define SSI1CLK_PORT GPIO_PORTE_BASE
  11144. #define SSI1CLK_PIN GPIO_PIN_0
  11145. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  11146. #define SSI1FSS_PORT GPIO_PORTE_BASE
  11147. #define SSI1FSS_PIN GPIO_PIN_1
  11148. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  11149. #define SSI1RX_PORT GPIO_PORTE_BASE
  11150. #define SSI1RX_PIN GPIO_PIN_2
  11151. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  11152. #define SSI1TX_PORT GPIO_PORTE_BASE
  11153. #define SSI1TX_PIN GPIO_PIN_3
  11154. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  11155. #define SWCLK_PORT GPIO_PORTC_BASE
  11156. #define SWCLK_PIN GPIO_PIN_0
  11157. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  11158. #define SWDIO_PORT GPIO_PORTC_BASE
  11159. #define SWDIO_PIN GPIO_PIN_1
  11160. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  11161. #define SWO_PORT GPIO_PORTC_BASE
  11162. #define SWO_PIN GPIO_PIN_3
  11163. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  11164. #define TCK_PORT GPIO_PORTC_BASE
  11165. #define TCK_PIN GPIO_PIN_0
  11166. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  11167. #define TDI_PORT GPIO_PORTC_BASE
  11168. #define TDI_PIN GPIO_PIN_2
  11169. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  11170. #define TDO_PORT GPIO_PORTC_BASE
  11171. #define TDO_PIN GPIO_PIN_3
  11172. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  11173. #define TMS_PORT GPIO_PORTC_BASE
  11174. #define TMS_PIN GPIO_PIN_1
  11175. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  11176. #define TRST_PORT GPIO_PORTB_BASE
  11177. #define TRST_PIN GPIO_PIN_7
  11178. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11179. #define U0RX_PORT GPIO_PORTA_BASE
  11180. #define U0RX_PIN GPIO_PIN_0
  11181. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11182. #define U0TX_PORT GPIO_PORTA_BASE
  11183. #define U0TX_PIN GPIO_PIN_1
  11184. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  11185. #define U1RX_PORT GPIO_PORTD_BASE
  11186. #define U1RX_PIN GPIO_PIN_2
  11187. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  11188. #define U1TX_PORT GPIO_PORTD_BASE
  11189. #define U1TX_PIN GPIO_PIN_3
  11190. #endif // PART_LM3S2608
  11191. //*****************************************************************************
  11192. //
  11193. // LM3S2616 Port/Pin Mapping Definitions
  11194. //
  11195. //*****************************************************************************
  11196. #ifdef PART_LM3S2616
  11197. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  11198. #define ADC0_PORT GPIO_PORTE_BASE
  11199. #define ADC0_PIN GPIO_PIN_3
  11200. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  11201. #define ADC1_PORT GPIO_PORTE_BASE
  11202. #define ADC1_PIN GPIO_PIN_2
  11203. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  11204. #define ADC2_PORT GPIO_PORTE_BASE
  11205. #define ADC2_PIN GPIO_PIN_1
  11206. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  11207. #define ADC3_PORT GPIO_PORTE_BASE
  11208. #define ADC3_PIN GPIO_PIN_0
  11209. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  11210. #define ADC4_PORT GPIO_PORTD_BASE
  11211. #define ADC4_PIN GPIO_PIN_3
  11212. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  11213. #define ADC5_PORT GPIO_PORTD_BASE
  11214. #define ADC5_PIN GPIO_PIN_2
  11215. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  11216. #define C0O_PORT GPIO_PORTC_BASE
  11217. #define C0O_PIN GPIO_PIN_5
  11218. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11219. #define C0_MINUS_PORT GPIO_PORTB_BASE
  11220. #define C0_MINUS_PIN GPIO_PIN_4
  11221. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  11222. #define C0_PLUS_PORT GPIO_PORTB_BASE
  11223. #define C0_PLUS_PIN GPIO_PIN_6
  11224. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  11225. #define C1O_PORT GPIO_PORTC_BASE
  11226. #define C1O_PIN GPIO_PIN_7
  11227. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11228. #define C1_MINUS_PORT GPIO_PORTB_BASE
  11229. #define C1_MINUS_PIN GPIO_PIN_5
  11230. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  11231. #define C1_PLUS_PORT GPIO_PORTC_BASE
  11232. #define C1_PLUS_PIN GPIO_PIN_7
  11233. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11234. #define CAN0RX_PORT GPIO_PORTA_BASE
  11235. #define CAN0RX_PIN GPIO_PIN_4
  11236. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11237. #define CAN0TX_PORT GPIO_PORTA_BASE
  11238. #define CAN0TX_PIN GPIO_PIN_5
  11239. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOE
  11240. #define FAULT0_PORT GPIO_PORTE_BASE
  11241. #define FAULT0_PIN GPIO_PIN_4
  11242. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  11243. #define I2C0SCL_PORT GPIO_PORTB_BASE
  11244. #define I2C0SCL_PIN GPIO_PIN_2
  11245. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  11246. #define I2C0SDA_PORT GPIO_PORTB_BASE
  11247. #define I2C0SDA_PIN GPIO_PIN_3
  11248. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  11249. #define IDX0_PORT GPIO_PORTD_BASE
  11250. #define IDX0_PIN GPIO_PIN_0
  11251. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  11252. #define NMI_PORT GPIO_PORTB_BASE
  11253. #define NMI_PIN GPIO_PIN_7
  11254. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  11255. #define PHA0_PORT GPIO_PORTC_BASE
  11256. #define PHA0_PIN GPIO_PIN_4
  11257. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  11258. #define PHB0_PORT GPIO_PORTC_BASE
  11259. #define PHB0_PIN GPIO_PIN_6
  11260. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOA
  11261. #define PWM0_PORT GPIO_PORTA_BASE
  11262. #define PWM0_PIN GPIO_PIN_6
  11263. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOA
  11264. #define PWM1_PORT GPIO_PORTA_BASE
  11265. #define PWM1_PIN GPIO_PIN_7
  11266. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  11267. #define PWM2_PORT GPIO_PORTB_BASE
  11268. #define PWM2_PIN GPIO_PIN_0
  11269. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  11270. #define PWM3_PORT GPIO_PORTB_BASE
  11271. #define PWM3_PIN GPIO_PIN_1
  11272. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOA
  11273. #define PWM4_PORT GPIO_PORTA_BASE
  11274. #define PWM4_PIN GPIO_PIN_2
  11275. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOA
  11276. #define PWM5_PORT GPIO_PORTA_BASE
  11277. #define PWM5_PIN GPIO_PIN_3
  11278. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  11279. #define SWCLK_PORT GPIO_PORTC_BASE
  11280. #define SWCLK_PIN GPIO_PIN_0
  11281. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  11282. #define SWDIO_PORT GPIO_PORTC_BASE
  11283. #define SWDIO_PIN GPIO_PIN_1
  11284. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  11285. #define SWO_PORT GPIO_PORTC_BASE
  11286. #define SWO_PIN GPIO_PIN_3
  11287. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  11288. #define TCK_PORT GPIO_PORTC_BASE
  11289. #define TCK_PIN GPIO_PIN_0
  11290. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  11291. #define TDI_PORT GPIO_PORTC_BASE
  11292. #define TDI_PIN GPIO_PIN_2
  11293. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  11294. #define TDO_PORT GPIO_PORTC_BASE
  11295. #define TDO_PIN GPIO_PIN_3
  11296. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  11297. #define TMS_PORT GPIO_PORTC_BASE
  11298. #define TMS_PIN GPIO_PIN_1
  11299. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11300. #define U0RX_PORT GPIO_PORTA_BASE
  11301. #define U0RX_PIN GPIO_PIN_0
  11302. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11303. #define U0TX_PORT GPIO_PORTA_BASE
  11304. #define U0TX_PIN GPIO_PIN_1
  11305. #endif // PART_LM3S2616
  11306. //*****************************************************************************
  11307. //
  11308. // LM3S2620 Port/Pin Mapping Definitions
  11309. //
  11310. //*****************************************************************************
  11311. #ifdef PART_LM3S2620
  11312. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  11313. #define C0O_PORT GPIO_PORTF_BASE
  11314. #define C0O_PIN GPIO_PIN_4
  11315. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11316. #define C0_MINUS_PORT GPIO_PORTB_BASE
  11317. #define C0_MINUS_PIN GPIO_PIN_4
  11318. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  11319. #define C0_PLUS_PORT GPIO_PORTB_BASE
  11320. #define C0_PLUS_PIN GPIO_PIN_6
  11321. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  11322. #define C1O_PORT GPIO_PORTE_BASE
  11323. #define C1O_PIN GPIO_PIN_6
  11324. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11325. #define C1_MINUS_PORT GPIO_PORTB_BASE
  11326. #define C1_MINUS_PIN GPIO_PIN_5
  11327. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  11328. #define C1_PLUS_PORT GPIO_PORTC_BASE
  11329. #define C1_PLUS_PIN GPIO_PIN_5
  11330. #define C2O_PERIPH SYSCTL_PERIPH_GPIOE
  11331. #define C2O_PORT GPIO_PORTE_BASE
  11332. #define C2O_PIN GPIO_PIN_7
  11333. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  11334. #define C2_MINUS_PORT GPIO_PORTC_BASE
  11335. #define C2_MINUS_PIN GPIO_PIN_7
  11336. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  11337. #define C2_PLUS_PORT GPIO_PORTC_BASE
  11338. #define C2_PLUS_PIN GPIO_PIN_6
  11339. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  11340. #define CAN0RX_PORT GPIO_PORTD_BASE
  11341. #define CAN0RX_PIN GPIO_PIN_0
  11342. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  11343. #define CAN0TX_PORT GPIO_PORTD_BASE
  11344. #define CAN0TX_PIN GPIO_PIN_1
  11345. #define CAN1RX_PERIPH SYSCTL_PERIPH_GPIOF
  11346. #define CAN1RX_PORT GPIO_PORTF_BASE
  11347. #define CAN1RX_PIN GPIO_PIN_0
  11348. #define CAN1TX_PERIPH SYSCTL_PERIPH_GPIOF
  11349. #define CAN1TX_PORT GPIO_PORTF_BASE
  11350. #define CAN1TX_PIN GPIO_PIN_1
  11351. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  11352. #define CCP0_PORT GPIO_PORTB_BASE
  11353. #define CCP0_PIN GPIO_PIN_0
  11354. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  11355. #define CCP1_PORT GPIO_PORTA_BASE
  11356. #define CCP1_PIN GPIO_PIN_6
  11357. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  11358. #define CCP2_PORT GPIO_PORTB_BASE
  11359. #define CCP2_PIN GPIO_PIN_1
  11360. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  11361. #define CCP3_PORT GPIO_PORTD_BASE
  11362. #define CCP3_PIN GPIO_PIN_4
  11363. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  11364. #define CCP4_PORT GPIO_PORTA_BASE
  11365. #define CCP4_PIN GPIO_PIN_7
  11366. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOE
  11367. #define CCP5_PORT GPIO_PORTE_BASE
  11368. #define CCP5_PIN GPIO_PIN_5
  11369. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  11370. #define FAULT_PORT GPIO_PORTD_BASE
  11371. #define FAULT_PIN GPIO_PIN_6
  11372. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  11373. #define I2C0SCL_PORT GPIO_PORTB_BASE
  11374. #define I2C0SCL_PIN GPIO_PIN_2
  11375. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  11376. #define I2C0SDA_PORT GPIO_PORTB_BASE
  11377. #define I2C0SDA_PIN GPIO_PIN_3
  11378. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  11379. #define IDX0_PORT GPIO_PORTD_BASE
  11380. #define IDX0_PIN GPIO_PIN_7
  11381. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  11382. #define PHA0_PORT GPIO_PORTC_BASE
  11383. #define PHA0_PIN GPIO_PIN_4
  11384. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOH
  11385. #define PHB0_PORT GPIO_PORTH_BASE
  11386. #define PHB0_PIN GPIO_PIN_3
  11387. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOG
  11388. #define PWM0_PORT GPIO_PORTG_BASE
  11389. #define PWM0_PIN GPIO_PIN_0
  11390. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOG
  11391. #define PWM1_PORT GPIO_PORTG_BASE
  11392. #define PWM1_PIN GPIO_PIN_1
  11393. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOD
  11394. #define PWM2_PORT GPIO_PORTD_BASE
  11395. #define PWM2_PIN GPIO_PIN_2
  11396. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOD
  11397. #define PWM3_PORT GPIO_PORTD_BASE
  11398. #define PWM3_PIN GPIO_PIN_3
  11399. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  11400. #define SSI0CLK_PORT GPIO_PORTA_BASE
  11401. #define SSI0CLK_PIN GPIO_PIN_2
  11402. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  11403. #define SSI0FSS_PORT GPIO_PORTA_BASE
  11404. #define SSI0FSS_PIN GPIO_PIN_3
  11405. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11406. #define SSI0RX_PORT GPIO_PORTA_BASE
  11407. #define SSI0RX_PIN GPIO_PIN_4
  11408. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11409. #define SSI0TX_PORT GPIO_PORTA_BASE
  11410. #define SSI0TX_PIN GPIO_PIN_5
  11411. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  11412. #define SWCLK_PORT GPIO_PORTC_BASE
  11413. #define SWCLK_PIN GPIO_PIN_0
  11414. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  11415. #define SWDIO_PORT GPIO_PORTC_BASE
  11416. #define SWDIO_PIN GPIO_PIN_1
  11417. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  11418. #define SWO_PORT GPIO_PORTC_BASE
  11419. #define SWO_PIN GPIO_PIN_3
  11420. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  11421. #define TCK_PORT GPIO_PORTC_BASE
  11422. #define TCK_PIN GPIO_PIN_0
  11423. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  11424. #define TDI_PORT GPIO_PORTC_BASE
  11425. #define TDI_PIN GPIO_PIN_2
  11426. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  11427. #define TDO_PORT GPIO_PORTC_BASE
  11428. #define TDO_PIN GPIO_PIN_3
  11429. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  11430. #define TMS_PORT GPIO_PORTC_BASE
  11431. #define TMS_PIN GPIO_PIN_1
  11432. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  11433. #define TRST_PORT GPIO_PORTB_BASE
  11434. #define TRST_PIN GPIO_PIN_7
  11435. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11436. #define U0RX_PORT GPIO_PORTA_BASE
  11437. #define U0RX_PIN GPIO_PIN_0
  11438. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11439. #define U0TX_PORT GPIO_PORTA_BASE
  11440. #define U0TX_PIN GPIO_PIN_1
  11441. #endif // PART_LM3S2620
  11442. //*****************************************************************************
  11443. //
  11444. // LM3S2637 Port/Pin Mapping Definitions
  11445. //
  11446. //*****************************************************************************
  11447. #ifdef PART_LM3S2637
  11448. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  11449. #define C0O_PORT GPIO_PORTD_BASE
  11450. #define C0O_PIN GPIO_PIN_7
  11451. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11452. #define C0_MINUS_PORT GPIO_PORTB_BASE
  11453. #define C0_MINUS_PIN GPIO_PIN_4
  11454. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  11455. #define C0_PLUS_PORT GPIO_PORTB_BASE
  11456. #define C0_PLUS_PIN GPIO_PIN_6
  11457. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  11458. #define C1O_PORT GPIO_PORTF_BASE
  11459. #define C1O_PIN GPIO_PIN_5
  11460. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11461. #define C1_MINUS_PORT GPIO_PORTB_BASE
  11462. #define C1_MINUS_PIN GPIO_PIN_5
  11463. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  11464. #define C1_PLUS_PORT GPIO_PORTC_BASE
  11465. #define C1_PLUS_PIN GPIO_PIN_5
  11466. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  11467. #define C2_MINUS_PORT GPIO_PORTC_BASE
  11468. #define C2_MINUS_PIN GPIO_PIN_7
  11469. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  11470. #define C2_PLUS_PORT GPIO_PORTC_BASE
  11471. #define C2_PLUS_PIN GPIO_PIN_6
  11472. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  11473. #define CAN0RX_PORT GPIO_PORTD_BASE
  11474. #define CAN0RX_PIN GPIO_PIN_0
  11475. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  11476. #define CAN0TX_PORT GPIO_PORTD_BASE
  11477. #define CAN0TX_PIN GPIO_PIN_1
  11478. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  11479. #define CCP0_PORT GPIO_PORTB_BASE
  11480. #define CCP0_PIN GPIO_PIN_0
  11481. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  11482. #define CCP1_PORT GPIO_PORTA_BASE
  11483. #define CCP1_PIN GPIO_PIN_6
  11484. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  11485. #define CCP2_PORT GPIO_PORTB_BASE
  11486. #define CCP2_PIN GPIO_PIN_1
  11487. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  11488. #define CCP3_PORT GPIO_PORTD_BASE
  11489. #define CCP3_PIN GPIO_PIN_4
  11490. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  11491. #define CCP4_PORT GPIO_PORTA_BASE
  11492. #define CCP4_PIN GPIO_PIN_7
  11493. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  11494. #define CCP5_PORT GPIO_PORTC_BASE
  11495. #define CCP5_PIN GPIO_PIN_4
  11496. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  11497. #define I2C0SCL_PORT GPIO_PORTB_BASE
  11498. #define I2C0SCL_PIN GPIO_PIN_2
  11499. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  11500. #define I2C0SDA_PORT GPIO_PORTB_BASE
  11501. #define I2C0SDA_PIN GPIO_PIN_3
  11502. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  11503. #define SSI0CLK_PORT GPIO_PORTA_BASE
  11504. #define SSI0CLK_PIN GPIO_PIN_2
  11505. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  11506. #define SSI0FSS_PORT GPIO_PORTA_BASE
  11507. #define SSI0FSS_PIN GPIO_PIN_3
  11508. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11509. #define SSI0RX_PORT GPIO_PORTA_BASE
  11510. #define SSI0RX_PIN GPIO_PIN_4
  11511. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11512. #define SSI0TX_PORT GPIO_PORTA_BASE
  11513. #define SSI0TX_PIN GPIO_PIN_5
  11514. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  11515. #define SWCLK_PORT GPIO_PORTC_BASE
  11516. #define SWCLK_PIN GPIO_PIN_0
  11517. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  11518. #define SWDIO_PORT GPIO_PORTC_BASE
  11519. #define SWDIO_PIN GPIO_PIN_1
  11520. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  11521. #define SWO_PORT GPIO_PORTC_BASE
  11522. #define SWO_PIN GPIO_PIN_3
  11523. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  11524. #define TCK_PORT GPIO_PORTC_BASE
  11525. #define TCK_PIN GPIO_PIN_0
  11526. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  11527. #define TDI_PORT GPIO_PORTC_BASE
  11528. #define TDI_PIN GPIO_PIN_2
  11529. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  11530. #define TDO_PORT GPIO_PORTC_BASE
  11531. #define TDO_PIN GPIO_PIN_3
  11532. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  11533. #define TMS_PORT GPIO_PORTC_BASE
  11534. #define TMS_PIN GPIO_PIN_1
  11535. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  11536. #define TRST_PORT GPIO_PORTB_BASE
  11537. #define TRST_PIN GPIO_PIN_7
  11538. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11539. #define U0RX_PORT GPIO_PORTA_BASE
  11540. #define U0RX_PIN GPIO_PIN_0
  11541. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11542. #define U0TX_PORT GPIO_PORTA_BASE
  11543. #define U0TX_PIN GPIO_PIN_1
  11544. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  11545. #define U1RX_PORT GPIO_PORTD_BASE
  11546. #define U1RX_PIN GPIO_PIN_2
  11547. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  11548. #define U1TX_PORT GPIO_PORTD_BASE
  11549. #define U1TX_PIN GPIO_PIN_3
  11550. #endif // PART_LM3S2637
  11551. //*****************************************************************************
  11552. //
  11553. // LM3S2651 Port/Pin Mapping Definitions
  11554. //
  11555. //*****************************************************************************
  11556. #ifdef PART_LM3S2651
  11557. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  11558. #define C0O_PORT GPIO_PORTC_BASE
  11559. #define C0O_PIN GPIO_PIN_5
  11560. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11561. #define C0_MINUS_PORT GPIO_PORTB_BASE
  11562. #define C0_MINUS_PIN GPIO_PIN_4
  11563. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  11564. #define C0_PLUS_PORT GPIO_PORTB_BASE
  11565. #define C0_PLUS_PIN GPIO_PIN_6
  11566. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  11567. #define CAN0RX_PORT GPIO_PORTD_BASE
  11568. #define CAN0RX_PIN GPIO_PIN_0
  11569. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  11570. #define CAN0TX_PORT GPIO_PORTD_BASE
  11571. #define CAN0TX_PIN GPIO_PIN_1
  11572. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  11573. #define CCP0_PORT GPIO_PORTB_BASE
  11574. #define CCP0_PIN GPIO_PIN_0
  11575. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  11576. #define CCP1_PORT GPIO_PORTA_BASE
  11577. #define CCP1_PIN GPIO_PIN_6
  11578. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  11579. #define CCP2_PORT GPIO_PORTB_BASE
  11580. #define CCP2_PIN GPIO_PIN_1
  11581. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  11582. #define CCP3_PORT GPIO_PORTC_BASE
  11583. #define CCP3_PIN GPIO_PIN_6
  11584. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  11585. #define CCP4_PORT GPIO_PORTA_BASE
  11586. #define CCP4_PIN GPIO_PIN_7
  11587. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  11588. #define CCP5_PORT GPIO_PORTB_BASE
  11589. #define CCP5_PIN GPIO_PIN_5
  11590. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  11591. #define FAULT_PORT GPIO_PORTD_BASE
  11592. #define FAULT_PIN GPIO_PIN_6
  11593. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  11594. #define I2C0SCL_PORT GPIO_PORTB_BASE
  11595. #define I2C0SCL_PIN GPIO_PIN_2
  11596. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  11597. #define I2C0SDA_PORT GPIO_PORTB_BASE
  11598. #define I2C0SDA_PIN GPIO_PIN_3
  11599. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  11600. #define PWM0_PORT GPIO_PORTF_BASE
  11601. #define PWM0_PIN GPIO_PIN_0
  11602. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  11603. #define PWM1_PORT GPIO_PORTF_BASE
  11604. #define PWM1_PIN GPIO_PIN_1
  11605. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  11606. #define PWM2_PORT GPIO_PORTH_BASE
  11607. #define PWM2_PIN GPIO_PIN_0
  11608. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  11609. #define PWM3_PORT GPIO_PORTH_BASE
  11610. #define PWM3_PIN GPIO_PIN_1
  11611. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  11612. #define SSI0CLK_PORT GPIO_PORTA_BASE
  11613. #define SSI0CLK_PIN GPIO_PIN_2
  11614. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  11615. #define SSI0FSS_PORT GPIO_PORTA_BASE
  11616. #define SSI0FSS_PIN GPIO_PIN_3
  11617. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11618. #define SSI0RX_PORT GPIO_PORTA_BASE
  11619. #define SSI0RX_PIN GPIO_PIN_4
  11620. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11621. #define SSI0TX_PORT GPIO_PORTA_BASE
  11622. #define SSI0TX_PIN GPIO_PIN_5
  11623. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  11624. #define SSI1CLK_PORT GPIO_PORTE_BASE
  11625. #define SSI1CLK_PIN GPIO_PIN_0
  11626. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  11627. #define SSI1FSS_PORT GPIO_PORTE_BASE
  11628. #define SSI1FSS_PIN GPIO_PIN_1
  11629. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  11630. #define SSI1RX_PORT GPIO_PORTE_BASE
  11631. #define SSI1RX_PIN GPIO_PIN_2
  11632. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  11633. #define SSI1TX_PORT GPIO_PORTE_BASE
  11634. #define SSI1TX_PIN GPIO_PIN_3
  11635. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  11636. #define SWCLK_PORT GPIO_PORTC_BASE
  11637. #define SWCLK_PIN GPIO_PIN_0
  11638. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  11639. #define SWDIO_PORT GPIO_PORTC_BASE
  11640. #define SWDIO_PIN GPIO_PIN_1
  11641. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  11642. #define SWO_PORT GPIO_PORTC_BASE
  11643. #define SWO_PIN GPIO_PIN_3
  11644. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  11645. #define TCK_PORT GPIO_PORTC_BASE
  11646. #define TCK_PIN GPIO_PIN_0
  11647. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  11648. #define TDI_PORT GPIO_PORTC_BASE
  11649. #define TDI_PIN GPIO_PIN_2
  11650. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  11651. #define TDO_PORT GPIO_PORTC_BASE
  11652. #define TDO_PIN GPIO_PIN_3
  11653. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  11654. #define TMS_PORT GPIO_PORTC_BASE
  11655. #define TMS_PIN GPIO_PIN_1
  11656. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  11657. #define TRST_PORT GPIO_PORTB_BASE
  11658. #define TRST_PIN GPIO_PIN_7
  11659. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11660. #define U0RX_PORT GPIO_PORTA_BASE
  11661. #define U0RX_PIN GPIO_PIN_0
  11662. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11663. #define U0TX_PORT GPIO_PORTA_BASE
  11664. #define U0TX_PIN GPIO_PIN_1
  11665. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  11666. #define U1RX_PORT GPIO_PORTD_BASE
  11667. #define U1RX_PIN GPIO_PIN_2
  11668. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  11669. #define U1TX_PORT GPIO_PORTD_BASE
  11670. #define U1TX_PIN GPIO_PIN_3
  11671. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  11672. #define U2RX_PORT GPIO_PORTG_BASE
  11673. #define U2RX_PIN GPIO_PIN_0
  11674. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  11675. #define U2TX_PORT GPIO_PORTG_BASE
  11676. #define U2TX_PIN GPIO_PIN_1
  11677. #endif // PART_LM3S2651
  11678. //*****************************************************************************
  11679. //
  11680. // LM3S2671 Port/Pin Mapping Definitions
  11681. //
  11682. //*****************************************************************************
  11683. #ifdef PART_LM3S2671
  11684. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  11685. #define ADC0_PORT GPIO_PORTE_BASE
  11686. #define ADC0_PIN GPIO_PIN_3
  11687. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  11688. #define ADC1_PORT GPIO_PORTE_BASE
  11689. #define ADC1_PIN GPIO_PIN_2
  11690. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  11691. #define ADC2_PORT GPIO_PORTE_BASE
  11692. #define ADC2_PIN GPIO_PIN_1
  11693. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  11694. #define ADC3_PORT GPIO_PORTE_BASE
  11695. #define ADC3_PIN GPIO_PIN_0
  11696. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  11697. #define C0O_PORT GPIO_PORTB_BASE
  11698. #define C0O_PIN GPIO_PIN_6
  11699. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11700. #define C0_MINUS_PORT GPIO_PORTB_BASE
  11701. #define C0_MINUS_PIN GPIO_PIN_4
  11702. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  11703. #define C0_PLUS_PORT GPIO_PORTB_BASE
  11704. #define C0_PLUS_PIN GPIO_PIN_6
  11705. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  11706. #define C1O_PORT GPIO_PORTC_BASE
  11707. #define C1O_PIN GPIO_PIN_7
  11708. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11709. #define C1_MINUS_PORT GPIO_PORTB_BASE
  11710. #define C1_MINUS_PIN GPIO_PIN_5
  11711. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  11712. #define C1_PLUS_PORT GPIO_PORTC_BASE
  11713. #define C1_PLUS_PIN GPIO_PIN_7
  11714. #define C2O_PERIPH SYSCTL_PERIPH_GPIOC
  11715. #define C2O_PORT GPIO_PORTC_BASE
  11716. #define C2O_PIN GPIO_PIN_6
  11717. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  11718. #define C2_MINUS_PORT GPIO_PORTC_BASE
  11719. #define C2_MINUS_PIN GPIO_PIN_5
  11720. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  11721. #define C2_PLUS_PORT GPIO_PORTC_BASE
  11722. #define C2_PLUS_PIN GPIO_PIN_6
  11723. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  11724. #define CAN0RX_PORT GPIO_PORTD_BASE
  11725. #define CAN0RX_PIN GPIO_PIN_0
  11726. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  11727. #define CAN0TX_PORT GPIO_PORTD_BASE
  11728. #define CAN0TX_PIN GPIO_PIN_1
  11729. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  11730. #define CCP0_PORT GPIO_PORTB_BASE
  11731. #define CCP0_PIN GPIO_PIN_0
  11732. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  11733. #define CCP1_PORT GPIO_PORTB_BASE
  11734. #define CCP1_PIN GPIO_PIN_1
  11735. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOE
  11736. #define FAULT0_PORT GPIO_PORTE_BASE
  11737. #define FAULT0_PIN GPIO_PIN_4
  11738. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  11739. #define I2C0SCL_PORT GPIO_PORTB_BASE
  11740. #define I2C0SCL_PIN GPIO_PIN_2
  11741. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  11742. #define I2C0SDA_PORT GPIO_PORTB_BASE
  11743. #define I2C0SDA_PIN GPIO_PIN_3
  11744. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  11745. #define NMI_PORT GPIO_PORTB_BASE
  11746. #define NMI_PIN GPIO_PIN_7
  11747. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOA
  11748. #define PWM0_PORT GPIO_PORTA_BASE
  11749. #define PWM0_PIN GPIO_PIN_6
  11750. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOA
  11751. #define PWM1_PORT GPIO_PORTA_BASE
  11752. #define PWM1_PIN GPIO_PIN_7
  11753. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  11754. #define SSI0CLK_PORT GPIO_PORTA_BASE
  11755. #define SSI0CLK_PIN GPIO_PIN_2
  11756. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  11757. #define SSI0FSS_PORT GPIO_PORTA_BASE
  11758. #define SSI0FSS_PIN GPIO_PIN_3
  11759. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11760. #define SSI0RX_PORT GPIO_PORTA_BASE
  11761. #define SSI0RX_PIN GPIO_PIN_4
  11762. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11763. #define SSI0TX_PORT GPIO_PORTA_BASE
  11764. #define SSI0TX_PIN GPIO_PIN_5
  11765. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  11766. #define SWCLK_PORT GPIO_PORTC_BASE
  11767. #define SWCLK_PIN GPIO_PIN_0
  11768. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  11769. #define SWDIO_PORT GPIO_PORTC_BASE
  11770. #define SWDIO_PIN GPIO_PIN_1
  11771. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  11772. #define SWO_PORT GPIO_PORTC_BASE
  11773. #define SWO_PIN GPIO_PIN_3
  11774. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  11775. #define TCK_PORT GPIO_PORTC_BASE
  11776. #define TCK_PIN GPIO_PIN_0
  11777. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  11778. #define TDI_PORT GPIO_PORTC_BASE
  11779. #define TDI_PIN GPIO_PIN_2
  11780. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  11781. #define TDO_PORT GPIO_PORTC_BASE
  11782. #define TDO_PIN GPIO_PIN_3
  11783. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  11784. #define TMS_PORT GPIO_PORTC_BASE
  11785. #define TMS_PIN GPIO_PIN_1
  11786. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11787. #define U0RX_PORT GPIO_PORTA_BASE
  11788. #define U0RX_PIN GPIO_PIN_0
  11789. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11790. #define U0TX_PORT GPIO_PORTA_BASE
  11791. #define U0TX_PIN GPIO_PIN_1
  11792. #endif // PART_LM3S2671
  11793. //*****************************************************************************
  11794. //
  11795. // LM3S2678 Port/Pin Mapping Definitions
  11796. //
  11797. //*****************************************************************************
  11798. #ifdef PART_LM3S2678
  11799. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  11800. #define ADC0_PORT GPIO_PORTE_BASE
  11801. #define ADC0_PIN GPIO_PIN_3
  11802. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  11803. #define ADC1_PORT GPIO_PORTE_BASE
  11804. #define ADC1_PIN GPIO_PIN_2
  11805. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  11806. #define ADC2_PORT GPIO_PORTE_BASE
  11807. #define ADC2_PIN GPIO_PIN_1
  11808. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  11809. #define ADC3_PORT GPIO_PORTE_BASE
  11810. #define ADC3_PIN GPIO_PIN_0
  11811. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  11812. #define ADC4_PORT GPIO_PORTD_BASE
  11813. #define ADC4_PIN GPIO_PIN_3
  11814. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  11815. #define ADC5_PORT GPIO_PORTD_BASE
  11816. #define ADC5_PIN GPIO_PIN_2
  11817. #define ADC6_PERIPH SYSCTL_PERIPH_GPIOD
  11818. #define ADC6_PORT GPIO_PORTD_BASE
  11819. #define ADC6_PIN GPIO_PIN_1
  11820. #define ADC7_PERIPH SYSCTL_PERIPH_GPIOD
  11821. #define ADC7_PORT GPIO_PORTD_BASE
  11822. #define ADC7_PIN GPIO_PIN_0
  11823. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOB
  11824. #define CAN0RX_PORT GPIO_PORTB_BASE
  11825. #define CAN0RX_PIN GPIO_PIN_4
  11826. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOB
  11827. #define CAN0TX_PORT GPIO_PORTB_BASE
  11828. #define CAN0TX_PIN GPIO_PIN_5
  11829. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOC
  11830. #define CCP0_PORT GPIO_PORTC_BASE
  11831. #define CCP0_PIN GPIO_PIN_6
  11832. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOC
  11833. #define CCP1_PORT GPIO_PORTC_BASE
  11834. #define CCP1_PIN GPIO_PIN_5
  11835. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOB
  11836. #define FAULT0_PORT GPIO_PORTB_BASE
  11837. #define FAULT0_PIN GPIO_PIN_3
  11838. #define FAULT1_PERIPH SYSCTL_PERIPH_GPIOB
  11839. #define FAULT1_PORT GPIO_PORTB_BASE
  11840. #define FAULT1_PIN GPIO_PIN_6
  11841. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOB
  11842. #define IDX0_PORT GPIO_PORTB_BASE
  11843. #define IDX0_PIN GPIO_PIN_2
  11844. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  11845. #define NMI_PORT GPIO_PORTB_BASE
  11846. #define NMI_PIN GPIO_PIN_7
  11847. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  11848. #define PHA0_PORT GPIO_PORTC_BASE
  11849. #define PHA0_PIN GPIO_PIN_4
  11850. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  11851. #define PHB0_PORT GPIO_PORTC_BASE
  11852. #define PHB0_PIN GPIO_PIN_7
  11853. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOA
  11854. #define PWM0_PORT GPIO_PORTA_BASE
  11855. #define PWM0_PIN GPIO_PIN_6
  11856. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOA
  11857. #define PWM1_PORT GPIO_PORTA_BASE
  11858. #define PWM1_PIN GPIO_PIN_7
  11859. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  11860. #define PWM2_PORT GPIO_PORTB_BASE
  11861. #define PWM2_PIN GPIO_PIN_0
  11862. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  11863. #define PWM3_PORT GPIO_PORTB_BASE
  11864. #define PWM3_PIN GPIO_PIN_1
  11865. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  11866. #define SSI0CLK_PORT GPIO_PORTA_BASE
  11867. #define SSI0CLK_PIN GPIO_PIN_2
  11868. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  11869. #define SSI0FSS_PORT GPIO_PORTA_BASE
  11870. #define SSI0FSS_PIN GPIO_PIN_3
  11871. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11872. #define SSI0RX_PORT GPIO_PORTA_BASE
  11873. #define SSI0RX_PIN GPIO_PIN_4
  11874. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11875. #define SSI0TX_PORT GPIO_PORTA_BASE
  11876. #define SSI0TX_PIN GPIO_PIN_5
  11877. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  11878. #define SWCLK_PORT GPIO_PORTC_BASE
  11879. #define SWCLK_PIN GPIO_PIN_0
  11880. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  11881. #define SWDIO_PORT GPIO_PORTC_BASE
  11882. #define SWDIO_PIN GPIO_PIN_1
  11883. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  11884. #define SWO_PORT GPIO_PORTC_BASE
  11885. #define SWO_PIN GPIO_PIN_3
  11886. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  11887. #define TCK_PORT GPIO_PORTC_BASE
  11888. #define TCK_PIN GPIO_PIN_0
  11889. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  11890. #define TDI_PORT GPIO_PORTC_BASE
  11891. #define TDI_PIN GPIO_PIN_2
  11892. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  11893. #define TDO_PORT GPIO_PORTC_BASE
  11894. #define TDO_PIN GPIO_PIN_3
  11895. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  11896. #define TMS_PORT GPIO_PORTC_BASE
  11897. #define TMS_PIN GPIO_PIN_1
  11898. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11899. #define U0RX_PORT GPIO_PORTA_BASE
  11900. #define U0RX_PIN GPIO_PIN_0
  11901. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11902. #define U0TX_PORT GPIO_PORTA_BASE
  11903. #define U0TX_PIN GPIO_PIN_1
  11904. #endif // PART_LM3S2678
  11905. //*****************************************************************************
  11906. //
  11907. // LM3S2730 Port/Pin Mapping Definitions
  11908. //
  11909. //*****************************************************************************
  11910. #ifdef PART_LM3S2730
  11911. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  11912. #define C0O_PORT GPIO_PORTD_BASE
  11913. #define C0O_PIN GPIO_PIN_7
  11914. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11915. #define C0_MINUS_PORT GPIO_PORTB_BASE
  11916. #define C0_MINUS_PIN GPIO_PIN_4
  11917. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  11918. #define C0_PLUS_PORT GPIO_PORTB_BASE
  11919. #define C0_PLUS_PIN GPIO_PIN_6
  11920. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  11921. #define C1O_PORT GPIO_PORTE_BASE
  11922. #define C1O_PIN GPIO_PIN_6
  11923. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  11924. #define C1_MINUS_PORT GPIO_PORTB_BASE
  11925. #define C1_MINUS_PIN GPIO_PIN_5
  11926. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  11927. #define C1_PLUS_PORT GPIO_PORTC_BASE
  11928. #define C1_PLUS_PIN GPIO_PIN_5
  11929. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  11930. #define CAN0RX_PORT GPIO_PORTD_BASE
  11931. #define CAN0RX_PIN GPIO_PIN_0
  11932. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  11933. #define CAN0TX_PORT GPIO_PORTD_BASE
  11934. #define CAN0TX_PIN GPIO_PIN_1
  11935. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  11936. #define CCP0_PORT GPIO_PORTB_BASE
  11937. #define CCP0_PIN GPIO_PIN_0
  11938. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  11939. #define CCP1_PORT GPIO_PORTA_BASE
  11940. #define CCP1_PIN GPIO_PIN_6
  11941. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  11942. #define CCP2_PORT GPIO_PORTB_BASE
  11943. #define CCP2_PIN GPIO_PIN_1
  11944. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  11945. #define CCP3_PORT GPIO_PORTC_BASE
  11946. #define CCP3_PIN GPIO_PIN_6
  11947. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  11948. #define SSI0CLK_PORT GPIO_PORTA_BASE
  11949. #define SSI0CLK_PIN GPIO_PIN_2
  11950. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  11951. #define SSI0FSS_PORT GPIO_PORTA_BASE
  11952. #define SSI0FSS_PIN GPIO_PIN_3
  11953. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11954. #define SSI0RX_PORT GPIO_PORTA_BASE
  11955. #define SSI0RX_PIN GPIO_PIN_4
  11956. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11957. #define SSI0TX_PORT GPIO_PORTA_BASE
  11958. #define SSI0TX_PIN GPIO_PIN_5
  11959. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  11960. #define SWCLK_PORT GPIO_PORTC_BASE
  11961. #define SWCLK_PIN GPIO_PIN_0
  11962. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  11963. #define SWDIO_PORT GPIO_PORTC_BASE
  11964. #define SWDIO_PIN GPIO_PIN_1
  11965. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  11966. #define SWO_PORT GPIO_PORTC_BASE
  11967. #define SWO_PIN GPIO_PIN_3
  11968. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  11969. #define TCK_PORT GPIO_PORTC_BASE
  11970. #define TCK_PIN GPIO_PIN_0
  11971. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  11972. #define TDI_PORT GPIO_PORTC_BASE
  11973. #define TDI_PIN GPIO_PIN_2
  11974. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  11975. #define TDO_PORT GPIO_PORTC_BASE
  11976. #define TDO_PIN GPIO_PIN_3
  11977. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  11978. #define TMS_PORT GPIO_PORTC_BASE
  11979. #define TMS_PIN GPIO_PIN_1
  11980. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  11981. #define TRST_PORT GPIO_PORTB_BASE
  11982. #define TRST_PIN GPIO_PIN_7
  11983. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  11984. #define U0RX_PORT GPIO_PORTA_BASE
  11985. #define U0RX_PIN GPIO_PIN_0
  11986. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  11987. #define U0TX_PORT GPIO_PORTA_BASE
  11988. #define U0TX_PIN GPIO_PIN_1
  11989. #endif // PART_LM3S2730
  11990. //*****************************************************************************
  11991. //
  11992. // LM3S2739 Port/Pin Mapping Definitions
  11993. //
  11994. //*****************************************************************************
  11995. #ifdef PART_LM3S2739
  11996. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  11997. #define C0O_PORT GPIO_PORTC_BASE
  11998. #define C0O_PIN GPIO_PIN_5
  11999. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  12000. #define C0_MINUS_PORT GPIO_PORTB_BASE
  12001. #define C0_MINUS_PIN GPIO_PIN_4
  12002. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  12003. #define C0_PLUS_PORT GPIO_PORTB_BASE
  12004. #define C0_PLUS_PIN GPIO_PIN_6
  12005. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  12006. #define CAN0RX_PORT GPIO_PORTD_BASE
  12007. #define CAN0RX_PIN GPIO_PIN_0
  12008. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  12009. #define CAN0TX_PORT GPIO_PORTD_BASE
  12010. #define CAN0TX_PIN GPIO_PIN_1
  12011. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  12012. #define CCP0_PORT GPIO_PORTB_BASE
  12013. #define CCP0_PIN GPIO_PIN_0
  12014. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  12015. #define CCP1_PORT GPIO_PORTA_BASE
  12016. #define CCP1_PIN GPIO_PIN_6
  12017. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  12018. #define CCP2_PORT GPIO_PORTB_BASE
  12019. #define CCP2_PIN GPIO_PIN_1
  12020. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  12021. #define CCP3_PORT GPIO_PORTC_BASE
  12022. #define CCP3_PIN GPIO_PIN_6
  12023. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  12024. #define CCP4_PORT GPIO_PORTA_BASE
  12025. #define CCP4_PIN GPIO_PIN_7
  12026. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  12027. #define CCP5_PORT GPIO_PORTB_BASE
  12028. #define CCP5_PIN GPIO_PIN_5
  12029. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  12030. #define FAULT_PORT GPIO_PORTD_BASE
  12031. #define FAULT_PIN GPIO_PIN_6
  12032. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  12033. #define I2C0SCL_PORT GPIO_PORTB_BASE
  12034. #define I2C0SCL_PIN GPIO_PIN_2
  12035. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  12036. #define I2C0SDA_PORT GPIO_PORTB_BASE
  12037. #define I2C0SDA_PIN GPIO_PIN_3
  12038. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  12039. #define IDX0_PORT GPIO_PORTD_BASE
  12040. #define IDX0_PIN GPIO_PIN_7
  12041. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  12042. #define PHA0_PORT GPIO_PORTC_BASE
  12043. #define PHA0_PIN GPIO_PIN_4
  12044. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  12045. #define PHB0_PORT GPIO_PORTC_BASE
  12046. #define PHB0_PIN GPIO_PIN_7
  12047. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  12048. #define PWM0_PORT GPIO_PORTF_BASE
  12049. #define PWM0_PIN GPIO_PIN_0
  12050. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  12051. #define PWM1_PORT GPIO_PORTF_BASE
  12052. #define PWM1_PIN GPIO_PIN_1
  12053. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  12054. #define PWM2_PORT GPIO_PORTH_BASE
  12055. #define PWM2_PIN GPIO_PIN_0
  12056. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  12057. #define PWM3_PORT GPIO_PORTH_BASE
  12058. #define PWM3_PIN GPIO_PIN_1
  12059. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  12060. #define PWM4_PORT GPIO_PORTE_BASE
  12061. #define PWM4_PIN GPIO_PIN_0
  12062. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  12063. #define PWM5_PORT GPIO_PORTE_BASE
  12064. #define PWM5_PIN GPIO_PIN_1
  12065. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  12066. #define SSI0CLK_PORT GPIO_PORTA_BASE
  12067. #define SSI0CLK_PIN GPIO_PIN_2
  12068. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  12069. #define SSI0FSS_PORT GPIO_PORTA_BASE
  12070. #define SSI0FSS_PIN GPIO_PIN_3
  12071. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  12072. #define SSI0RX_PORT GPIO_PORTA_BASE
  12073. #define SSI0RX_PIN GPIO_PIN_4
  12074. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  12075. #define SSI0TX_PORT GPIO_PORTA_BASE
  12076. #define SSI0TX_PIN GPIO_PIN_5
  12077. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  12078. #define SWCLK_PORT GPIO_PORTC_BASE
  12079. #define SWCLK_PIN GPIO_PIN_0
  12080. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  12081. #define SWDIO_PORT GPIO_PORTC_BASE
  12082. #define SWDIO_PIN GPIO_PIN_1
  12083. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  12084. #define SWO_PORT GPIO_PORTC_BASE
  12085. #define SWO_PIN GPIO_PIN_3
  12086. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  12087. #define TCK_PORT GPIO_PORTC_BASE
  12088. #define TCK_PIN GPIO_PIN_0
  12089. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  12090. #define TDI_PORT GPIO_PORTC_BASE
  12091. #define TDI_PIN GPIO_PIN_2
  12092. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  12093. #define TDO_PORT GPIO_PORTC_BASE
  12094. #define TDO_PIN GPIO_PIN_3
  12095. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  12096. #define TMS_PORT GPIO_PORTC_BASE
  12097. #define TMS_PIN GPIO_PIN_1
  12098. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  12099. #define TRST_PORT GPIO_PORTB_BASE
  12100. #define TRST_PIN GPIO_PIN_7
  12101. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  12102. #define U0RX_PORT GPIO_PORTA_BASE
  12103. #define U0RX_PIN GPIO_PIN_0
  12104. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  12105. #define U0TX_PORT GPIO_PORTA_BASE
  12106. #define U0TX_PIN GPIO_PIN_1
  12107. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  12108. #define U1RX_PORT GPIO_PORTD_BASE
  12109. #define U1RX_PIN GPIO_PIN_2
  12110. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  12111. #define U1TX_PORT GPIO_PORTD_BASE
  12112. #define U1TX_PIN GPIO_PIN_3
  12113. #endif // PART_LM3S2739
  12114. //*****************************************************************************
  12115. //
  12116. // LM3S2776 Port/Pin Mapping Definitions
  12117. //
  12118. //*****************************************************************************
  12119. #ifdef PART_LM3S2776
  12120. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  12121. #define ADC0_PORT GPIO_PORTE_BASE
  12122. #define ADC0_PIN GPIO_PIN_3
  12123. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  12124. #define ADC1_PORT GPIO_PORTE_BASE
  12125. #define ADC1_PIN GPIO_PIN_2
  12126. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  12127. #define ADC2_PORT GPIO_PORTE_BASE
  12128. #define ADC2_PIN GPIO_PIN_1
  12129. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  12130. #define ADC3_PORT GPIO_PORTE_BASE
  12131. #define ADC3_PIN GPIO_PIN_0
  12132. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  12133. #define ADC4_PORT GPIO_PORTD_BASE
  12134. #define ADC4_PIN GPIO_PIN_3
  12135. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  12136. #define ADC5_PORT GPIO_PORTD_BASE
  12137. #define ADC5_PIN GPIO_PIN_2
  12138. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOB
  12139. #define CAN0RX_PORT GPIO_PORTB_BASE
  12140. #define CAN0RX_PIN GPIO_PIN_4
  12141. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOB
  12142. #define CAN0TX_PORT GPIO_PORTB_BASE
  12143. #define CAN0TX_PIN GPIO_PIN_5
  12144. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOC
  12145. #define CCP0_PORT GPIO_PORTC_BASE
  12146. #define CCP0_PIN GPIO_PIN_7
  12147. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOE
  12148. #define FAULT0_PORT GPIO_PORTE_BASE
  12149. #define FAULT0_PIN GPIO_PIN_4
  12150. #define FAULT1_PERIPH SYSCTL_PERIPH_GPIOB
  12151. #define FAULT1_PORT GPIO_PORTB_BASE
  12152. #define FAULT1_PIN GPIO_PIN_6
  12153. #define FAULT2_PERIPH SYSCTL_PERIPH_GPIOC
  12154. #define FAULT2_PORT GPIO_PORTC_BASE
  12155. #define FAULT2_PIN GPIO_PIN_5
  12156. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  12157. #define I2C0SCL_PORT GPIO_PORTB_BASE
  12158. #define I2C0SCL_PIN GPIO_PIN_2
  12159. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  12160. #define I2C0SDA_PORT GPIO_PORTB_BASE
  12161. #define I2C0SDA_PIN GPIO_PIN_3
  12162. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  12163. #define NMI_PORT GPIO_PORTB_BASE
  12164. #define NMI_PIN GPIO_PIN_7
  12165. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  12166. #define PWM0_PORT GPIO_PORTD_BASE
  12167. #define PWM0_PIN GPIO_PIN_0
  12168. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  12169. #define PWM1_PORT GPIO_PORTD_BASE
  12170. #define PWM1_PIN GPIO_PIN_1
  12171. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  12172. #define PWM2_PORT GPIO_PORTB_BASE
  12173. #define PWM2_PIN GPIO_PIN_0
  12174. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  12175. #define PWM3_PORT GPIO_PORTB_BASE
  12176. #define PWM3_PIN GPIO_PIN_1
  12177. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOA
  12178. #define PWM4_PORT GPIO_PORTA_BASE
  12179. #define PWM4_PIN GPIO_PIN_6
  12180. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOA
  12181. #define PWM5_PORT GPIO_PORTA_BASE
  12182. #define PWM5_PIN GPIO_PIN_7
  12183. #define PWM6_PERIPH SYSCTL_PERIPH_GPIOC
  12184. #define PWM6_PORT GPIO_PORTC_BASE
  12185. #define PWM6_PIN GPIO_PIN_4
  12186. #define PWM7_PERIPH SYSCTL_PERIPH_GPIOC
  12187. #define PWM7_PORT GPIO_PORTC_BASE
  12188. #define PWM7_PIN GPIO_PIN_6
  12189. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  12190. #define SSI0CLK_PORT GPIO_PORTA_BASE
  12191. #define SSI0CLK_PIN GPIO_PIN_2
  12192. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  12193. #define SSI0FSS_PORT GPIO_PORTA_BASE
  12194. #define SSI0FSS_PIN GPIO_PIN_3
  12195. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  12196. #define SSI0RX_PORT GPIO_PORTA_BASE
  12197. #define SSI0RX_PIN GPIO_PIN_4
  12198. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  12199. #define SSI0TX_PORT GPIO_PORTA_BASE
  12200. #define SSI0TX_PIN GPIO_PIN_5
  12201. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  12202. #define SWCLK_PORT GPIO_PORTC_BASE
  12203. #define SWCLK_PIN GPIO_PIN_0
  12204. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  12205. #define SWDIO_PORT GPIO_PORTC_BASE
  12206. #define SWDIO_PIN GPIO_PIN_1
  12207. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  12208. #define SWO_PORT GPIO_PORTC_BASE
  12209. #define SWO_PIN GPIO_PIN_3
  12210. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  12211. #define TCK_PORT GPIO_PORTC_BASE
  12212. #define TCK_PIN GPIO_PIN_0
  12213. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  12214. #define TDI_PORT GPIO_PORTC_BASE
  12215. #define TDI_PIN GPIO_PIN_2
  12216. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  12217. #define TDO_PORT GPIO_PORTC_BASE
  12218. #define TDO_PIN GPIO_PIN_3
  12219. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  12220. #define TMS_PORT GPIO_PORTC_BASE
  12221. #define TMS_PIN GPIO_PIN_1
  12222. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  12223. #define U0RX_PORT GPIO_PORTA_BASE
  12224. #define U0RX_PIN GPIO_PIN_0
  12225. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  12226. #define U0TX_PORT GPIO_PORTA_BASE
  12227. #define U0TX_PIN GPIO_PIN_1
  12228. #endif // PART_LM3S2776
  12229. //*****************************************************************************
  12230. //
  12231. // LM3S2793 Port/Pin Mapping Definitions
  12232. //
  12233. //*****************************************************************************
  12234. #ifdef PART_LM3S2793
  12235. #define GPIO_PA0_U0RX 0x00000001
  12236. #define GPIO_PA0_I2C1SCL 0x00000008
  12237. #define GPIO_PA0_U1RX 0x00000009
  12238. #define GPIO_PA1_U0TX 0x00000401
  12239. #define GPIO_PA1_I2C1SDA 0x00000408
  12240. #define GPIO_PA1_U1TX 0x00000409
  12241. #define GPIO_PA2_SSI0CLK 0x00000801
  12242. #define GPIO_PA2_PWM4 0x00000804
  12243. #define GPIO_PA2_I2S0RXSD 0x00000809
  12244. #define GPIO_PA3_SSI0FSS 0x00000C01
  12245. #define GPIO_PA3_PWM5 0x00000C04
  12246. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  12247. #define GPIO_PA4_SSI0RX 0x00001001
  12248. #define GPIO_PA4_PWM6 0x00001004
  12249. #define GPIO_PA4_CAN0RX 0x00001005
  12250. #define GPIO_PA4_I2S0TXSCK 0x00001009
  12251. #define GPIO_PA5_SSI0TX 0x00001401
  12252. #define GPIO_PA5_PWM7 0x00001404
  12253. #define GPIO_PA5_CAN0TX 0x00001405
  12254. #define GPIO_PA5_I2S0TXWS 0x00001409
  12255. #define GPIO_PA6_I2C1SCL 0x00001801
  12256. #define GPIO_PA6_CCP1 0x00001802
  12257. #define GPIO_PA6_PWM0 0x00001804
  12258. #define GPIO_PA6_PWM4 0x00001805
  12259. #define GPIO_PA6_CAN0RX 0x00001806
  12260. #define GPIO_PA6_U1CTS 0x00001809
  12261. #define GPIO_PA7_I2C1SDA 0x00001C01
  12262. #define GPIO_PA7_CCP4 0x00001C02
  12263. #define GPIO_PA7_PWM1 0x00001C04
  12264. #define GPIO_PA7_PWM5 0x00001C05
  12265. #define GPIO_PA7_CAN0TX 0x00001C06
  12266. #define GPIO_PA7_CCP3 0x00001C07
  12267. #define GPIO_PA7_U1DCD 0x00001C09
  12268. #define GPIO_PB0_CCP0 0x00010001
  12269. #define GPIO_PB0_PWM2 0x00010002
  12270. #define GPIO_PB0_U1RX 0x00010005
  12271. #define GPIO_PB1_CCP2 0x00010401
  12272. #define GPIO_PB1_PWM3 0x00010402
  12273. #define GPIO_PB1_CCP1 0x00010404
  12274. #define GPIO_PB1_U1TX 0x00010405
  12275. #define GPIO_PB2_I2C0SCL 0x00010801
  12276. #define GPIO_PB2_IDX0 0x00010802
  12277. #define GPIO_PB2_CCP3 0x00010804
  12278. #define GPIO_PB2_CCP0 0x00010805
  12279. #define GPIO_PB3_I2C0SDA 0x00010C01
  12280. #define GPIO_PB3_FAULT0 0x00010C02
  12281. #define GPIO_PB3_FAULT3 0x00010C04
  12282. #define GPIO_PB4_U2RX 0x00011004
  12283. #define GPIO_PB4_CAN0RX 0x00011005
  12284. #define GPIO_PB4_IDX0 0x00011006
  12285. #define GPIO_PB4_U1RX 0x00011007
  12286. #define GPIO_PB4_EPI0S23 0x00011008
  12287. #define GPIO_PB5_C0O 0x00011401
  12288. #define GPIO_PB5_CCP5 0x00011402
  12289. #define GPIO_PB5_CCP6 0x00011403
  12290. #define GPIO_PB5_CCP0 0x00011404
  12291. #define GPIO_PB5_CAN0TX 0x00011405
  12292. #define GPIO_PB5_CCP2 0x00011406
  12293. #define GPIO_PB5_U1TX 0x00011407
  12294. #define GPIO_PB5_EPI0S22 0x00011408
  12295. #define GPIO_PB6_CCP1 0x00011801
  12296. #define GPIO_PB6_CCP7 0x00011802
  12297. #define GPIO_PB6_C0O 0x00011803
  12298. #define GPIO_PB6_FAULT1 0x00011804
  12299. #define GPIO_PB6_IDX0 0x00011805
  12300. #define GPIO_PB6_CCP5 0x00011806
  12301. #define GPIO_PB6_I2S0TXSCK 0x00011809
  12302. #define GPIO_PB7_NMI 0x00011C04
  12303. #define GPIO_PC0_TCK 0x00020003
  12304. #define GPIO_PC0_SWCLK 0x00020003
  12305. #define GPIO_PC1_TMS 0x00020403
  12306. #define GPIO_PC1_SWDIO 0x00020403
  12307. #define GPIO_PC2_TDI 0x00020803
  12308. #define GPIO_PC3_SWO 0x00020C03
  12309. #define GPIO_PC3_TDO 0x00020C03
  12310. #define GPIO_PC4_CCP5 0x00021001
  12311. #define GPIO_PC4_PHA0 0x00021002
  12312. #define GPIO_PC4_PWM6 0x00021004
  12313. #define GPIO_PC4_CCP2 0x00021005
  12314. #define GPIO_PC4_CCP4 0x00021006
  12315. #define GPIO_PC4_EPI0S2 0x00021008
  12316. #define GPIO_PC4_CCP1 0x00021009
  12317. #define GPIO_PC5_CCP1 0x00021401
  12318. #define GPIO_PC5_C1O 0x00021402
  12319. #define GPIO_PC5_C0O 0x00021403
  12320. #define GPIO_PC5_FAULT2 0x00021404
  12321. #define GPIO_PC5_CCP3 0x00021405
  12322. #define GPIO_PC5_EPI0S3 0x00021408
  12323. #define GPIO_PC6_CCP3 0x00021801
  12324. #define GPIO_PC6_PHB0 0x00021802
  12325. #define GPIO_PC6_C2O 0x00021803
  12326. #define GPIO_PC6_PWM7 0x00021804
  12327. #define GPIO_PC6_U1RX 0x00021805
  12328. #define GPIO_PC6_CCP0 0x00021806
  12329. #define GPIO_PC6_EPI0S4 0x00021808
  12330. #define GPIO_PC7_CCP4 0x00021C01
  12331. #define GPIO_PC7_PHB0 0x00021C02
  12332. #define GPIO_PC7_CCP0 0x00021C04
  12333. #define GPIO_PC7_U1TX 0x00021C05
  12334. #define GPIO_PC7_C1O 0x00021C07
  12335. #define GPIO_PC7_EPI0S5 0x00021C08
  12336. #define GPIO_PD0_PWM0 0x00030001
  12337. #define GPIO_PD0_CAN0RX 0x00030002
  12338. #define GPIO_PD0_IDX0 0x00030003
  12339. #define GPIO_PD0_U2RX 0x00030004
  12340. #define GPIO_PD0_U1RX 0x00030005
  12341. #define GPIO_PD0_CCP6 0x00030006
  12342. #define GPIO_PD0_I2S0RXSCK 0x00030008
  12343. #define GPIO_PD0_U1CTS 0x00030009
  12344. #define GPIO_PD1_PWM1 0x00030401
  12345. #define GPIO_PD1_CAN0TX 0x00030402
  12346. #define GPIO_PD1_PHA0 0x00030403
  12347. #define GPIO_PD1_U2TX 0x00030404
  12348. #define GPIO_PD1_U1TX 0x00030405
  12349. #define GPIO_PD1_CCP7 0x00030406
  12350. #define GPIO_PD1_I2S0RXWS 0x00030408
  12351. #define GPIO_PD1_U1DCD 0x00030409
  12352. #define GPIO_PD1_CCP2 0x0003040A
  12353. #define GPIO_PD1_PHB1 0x0003040B
  12354. #define GPIO_PD2_U1RX 0x00030801
  12355. #define GPIO_PD2_CCP6 0x00030802
  12356. #define GPIO_PD2_PWM2 0x00030803
  12357. #define GPIO_PD2_CCP5 0x00030804
  12358. #define GPIO_PD2_EPI0S20 0x00030808
  12359. #define GPIO_PD3_U1TX 0x00030C01
  12360. #define GPIO_PD3_CCP7 0x00030C02
  12361. #define GPIO_PD3_PWM3 0x00030C03
  12362. #define GPIO_PD3_CCP0 0x00030C04
  12363. #define GPIO_PD3_EPI0S21 0x00030C08
  12364. #define GPIO_PD4_CCP0 0x00031001
  12365. #define GPIO_PD4_CCP3 0x00031002
  12366. #define GPIO_PD4_I2S0RXSD 0x00031008
  12367. #define GPIO_PD4_U1RI 0x00031009
  12368. #define GPIO_PD4_EPI0S19 0x0003100A
  12369. #define GPIO_PD5_CCP2 0x00031401
  12370. #define GPIO_PD5_CCP4 0x00031402
  12371. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  12372. #define GPIO_PD5_U2RX 0x00031409
  12373. #define GPIO_PD5_EPI0S28 0x0003140A
  12374. #define GPIO_PD6_FAULT0 0x00031801
  12375. #define GPIO_PD6_I2S0TXSCK 0x00031808
  12376. #define GPIO_PD6_U2TX 0x00031809
  12377. #define GPIO_PD6_EPI0S29 0x0003180A
  12378. #define GPIO_PD7_IDX0 0x00031C01
  12379. #define GPIO_PD7_C0O 0x00031C02
  12380. #define GPIO_PD7_CCP1 0x00031C03
  12381. #define GPIO_PD7_I2S0TXWS 0x00031C08
  12382. #define GPIO_PD7_U1DTR 0x00031C09
  12383. #define GPIO_PD7_EPI0S30 0x00031C0A
  12384. #define GPIO_PE0_PWM4 0x00040001
  12385. #define GPIO_PE0_SSI1CLK 0x00040002
  12386. #define GPIO_PE0_CCP3 0x00040003
  12387. #define GPIO_PE0_EPI0S8 0x00040008
  12388. #define GPIO_PE1_PWM5 0x00040401
  12389. #define GPIO_PE1_SSI1FSS 0x00040402
  12390. #define GPIO_PE1_FAULT0 0x00040403
  12391. #define GPIO_PE1_CCP2 0x00040404
  12392. #define GPIO_PE1_CCP6 0x00040405
  12393. #define GPIO_PE1_EPI0S9 0x00040408
  12394. #define GPIO_PE2_CCP4 0x00040801
  12395. #define GPIO_PE2_SSI1RX 0x00040802
  12396. #define GPIO_PE2_PHB1 0x00040803
  12397. #define GPIO_PE2_PHA0 0x00040804
  12398. #define GPIO_PE2_CCP2 0x00040805
  12399. #define GPIO_PE2_EPI0S24 0x00040808
  12400. #define GPIO_PE3_CCP1 0x00040C01
  12401. #define GPIO_PE3_SSI1TX 0x00040C02
  12402. #define GPIO_PE3_PHA1 0x00040C03
  12403. #define GPIO_PE3_PHB0 0x00040C04
  12404. #define GPIO_PE3_CCP7 0x00040C05
  12405. #define GPIO_PE3_EPI0S25 0x00040C08
  12406. #define GPIO_PE4_CCP3 0x00041001
  12407. #define GPIO_PE4_FAULT0 0x00041004
  12408. #define GPIO_PE4_U2TX 0x00041005
  12409. #define GPIO_PE4_CCP2 0x00041006
  12410. #define GPIO_PE4_I2S0TXWS 0x00041009
  12411. #define GPIO_PE5_CCP5 0x00041401
  12412. #define GPIO_PE5_I2S0TXSD 0x00041409
  12413. #define GPIO_PE6_PWM4 0x00041801
  12414. #define GPIO_PE6_C1O 0x00041802
  12415. #define GPIO_PE6_U1CTS 0x00041809
  12416. #define GPIO_PE7_PWM5 0x00041C01
  12417. #define GPIO_PE7_C2O 0x00041C02
  12418. #define GPIO_PE7_U1DCD 0x00041C09
  12419. #define GPIO_PF0_CAN1RX 0x00050001
  12420. #define GPIO_PF0_PHB0 0x00050002
  12421. #define GPIO_PF0_PWM0 0x00050003
  12422. #define GPIO_PF0_I2S0TXSD 0x00050008
  12423. #define GPIO_PF0_U1DSR 0x00050009
  12424. #define GPIO_PF1_CAN1TX 0x00050401
  12425. #define GPIO_PF1_IDX1 0x00050402
  12426. #define GPIO_PF1_PWM1 0x00050403
  12427. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  12428. #define GPIO_PF1_U1RTS 0x00050409
  12429. #define GPIO_PF1_CCP3 0x0005040A
  12430. #define GPIO_PF2_PWM4 0x00050802
  12431. #define GPIO_PF2_PWM2 0x00050804
  12432. #define GPIO_PF2_SSI1CLK 0x00050809
  12433. #define GPIO_PF3_PWM5 0x00050C02
  12434. #define GPIO_PF3_PWM3 0x00050C04
  12435. #define GPIO_PF3_SSI1FSS 0x00050C09
  12436. #define GPIO_PF4_CCP0 0x00051001
  12437. #define GPIO_PF4_C0O 0x00051002
  12438. #define GPIO_PF4_FAULT0 0x00051004
  12439. #define GPIO_PF4_EPI0S12 0x00051008
  12440. #define GPIO_PF4_SSI1RX 0x00051009
  12441. #define GPIO_PF5_CCP2 0x00051401
  12442. #define GPIO_PF5_C1O 0x00051402
  12443. #define GPIO_PF5_EPI0S15 0x00051408
  12444. #define GPIO_PF5_SSI1TX 0x00051409
  12445. #define GPIO_PF6_CCP1 0x00051801
  12446. #define GPIO_PF6_C2O 0x00051802
  12447. #define GPIO_PF6_PHA0 0x00051804
  12448. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  12449. #define GPIO_PF6_U1RTS 0x0005180A
  12450. #define GPIO_PF7_CCP4 0x00051C01
  12451. #define GPIO_PF7_PHB0 0x00051C04
  12452. #define GPIO_PF7_EPI0S12 0x00051C08
  12453. #define GPIO_PF7_FAULT1 0x00051C09
  12454. #define GPIO_PG0_U2RX 0x00060001
  12455. #define GPIO_PG0_PWM0 0x00060002
  12456. #define GPIO_PG0_I2C1SCL 0x00060003
  12457. #define GPIO_PG0_PWM4 0x00060004
  12458. #define GPIO_PG0_EPI0S13 0x00060008
  12459. #define GPIO_PG1_U2TX 0x00060401
  12460. #define GPIO_PG1_PWM1 0x00060402
  12461. #define GPIO_PG1_I2C1SDA 0x00060403
  12462. #define GPIO_PG1_PWM5 0x00060404
  12463. #define GPIO_PG1_EPI0S14 0x00060408
  12464. #define GPIO_PG2_PWM0 0x00060801
  12465. #define GPIO_PG2_FAULT0 0x00060804
  12466. #define GPIO_PG2_IDX1 0x00060808
  12467. #define GPIO_PG2_I2S0RXSD 0x00060809
  12468. #define GPIO_PG3_PWM1 0x00060C01
  12469. #define GPIO_PG3_FAULT2 0x00060C04
  12470. #define GPIO_PG3_FAULT0 0x00060C08
  12471. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  12472. #define GPIO_PG4_CCP3 0x00061001
  12473. #define GPIO_PG4_FAULT1 0x00061004
  12474. #define GPIO_PG4_EPI0S15 0x00061008
  12475. #define GPIO_PG4_PWM6 0x00061009
  12476. #define GPIO_PG4_U1RI 0x0006100A
  12477. #define GPIO_PG5_CCP5 0x00061401
  12478. #define GPIO_PG5_IDX0 0x00061404
  12479. #define GPIO_PG5_FAULT1 0x00061405
  12480. #define GPIO_PG5_PWM7 0x00061408
  12481. #define GPIO_PG5_I2S0RXSCK 0x00061409
  12482. #define GPIO_PG5_U1DTR 0x0006140A
  12483. #define GPIO_PG6_PHA1 0x00061801
  12484. #define GPIO_PG6_PWM6 0x00061804
  12485. #define GPIO_PG6_FAULT1 0x00061808
  12486. #define GPIO_PG6_I2S0RXWS 0x00061809
  12487. #define GPIO_PG6_U1RI 0x0006180A
  12488. #define GPIO_PG7_PHB1 0x00061C01
  12489. #define GPIO_PG7_PWM7 0x00061C04
  12490. #define GPIO_PG7_CCP5 0x00061C08
  12491. #define GPIO_PG7_EPI0S31 0x00061C09
  12492. #define GPIO_PH0_CCP6 0x00070001
  12493. #define GPIO_PH0_PWM2 0x00070002
  12494. #define GPIO_PH0_EPI0S6 0x00070008
  12495. #define GPIO_PH0_PWM4 0x00070009
  12496. #define GPIO_PH1_CCP7 0x00070401
  12497. #define GPIO_PH1_PWM3 0x00070402
  12498. #define GPIO_PH1_EPI0S7 0x00070408
  12499. #define GPIO_PH1_PWM5 0x00070409
  12500. #define GPIO_PH2_IDX1 0x00070801
  12501. #define GPIO_PH2_C1O 0x00070802
  12502. #define GPIO_PH2_FAULT3 0x00070804
  12503. #define GPIO_PH2_EPI0S1 0x00070808
  12504. #define GPIO_PH3_PHB0 0x00070C01
  12505. #define GPIO_PH3_FAULT0 0x00070C02
  12506. #define GPIO_PH3_EPI0S0 0x00070C08
  12507. #define GPIO_PH4_EPI0S10 0x00071008
  12508. #define GPIO_PH4_SSI1CLK 0x0007100B
  12509. #define GPIO_PH5_EPI0S11 0x00071408
  12510. #define GPIO_PH5_FAULT2 0x0007140A
  12511. #define GPIO_PH5_SSI1FSS 0x0007140B
  12512. #define GPIO_PH6_EPI0S26 0x00071808
  12513. #define GPIO_PH6_PWM4 0x0007180A
  12514. #define GPIO_PH6_SSI1RX 0x0007180B
  12515. #define GPIO_PH7_EPI0S27 0x00071C08
  12516. #define GPIO_PH7_PWM5 0x00071C0A
  12517. #define GPIO_PH7_SSI1TX 0x00071C0B
  12518. #define GPIO_PJ0_EPI0S16 0x00080008
  12519. #define GPIO_PJ0_PWM0 0x0008000A
  12520. #define GPIO_PJ0_I2C1SCL 0x0008000B
  12521. #define GPIO_PJ1_EPI0S17 0x00080408
  12522. #define GPIO_PJ1_PWM1 0x0008040A
  12523. #define GPIO_PJ1_I2C1SDA 0x0008040B
  12524. #define GPIO_PJ2_EPI0S18 0x00080808
  12525. #define GPIO_PJ2_CCP0 0x00080809
  12526. #define GPIO_PJ2_FAULT0 0x0008080A
  12527. #endif // PART_LM3S2793
  12528. //*****************************************************************************
  12529. //
  12530. // LM3S2911 Port/Pin Mapping Definitions
  12531. //
  12532. //*****************************************************************************
  12533. #ifdef PART_LM3S2911
  12534. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  12535. #define C0O_PORT GPIO_PORTF_BASE
  12536. #define C0O_PIN GPIO_PIN_4
  12537. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  12538. #define C0_MINUS_PORT GPIO_PORTB_BASE
  12539. #define C0_MINUS_PIN GPIO_PIN_4
  12540. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  12541. #define C0_PLUS_PORT GPIO_PORTB_BASE
  12542. #define C0_PLUS_PIN GPIO_PIN_6
  12543. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  12544. #define C1O_PORT GPIO_PORTE_BASE
  12545. #define C1O_PIN GPIO_PIN_6
  12546. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  12547. #define C1_MINUS_PORT GPIO_PORTB_BASE
  12548. #define C1_MINUS_PIN GPIO_PIN_5
  12549. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  12550. #define C1_PLUS_PORT GPIO_PORTC_BASE
  12551. #define C1_PLUS_PIN GPIO_PIN_5
  12552. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  12553. #define CAN0RX_PORT GPIO_PORTD_BASE
  12554. #define CAN0RX_PIN GPIO_PIN_0
  12555. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  12556. #define CAN0TX_PORT GPIO_PORTD_BASE
  12557. #define CAN0TX_PIN GPIO_PIN_1
  12558. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  12559. #define CCP0_PORT GPIO_PORTB_BASE
  12560. #define CCP0_PIN GPIO_PIN_0
  12561. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOD
  12562. #define CCP1_PORT GPIO_PORTD_BASE
  12563. #define CCP1_PIN GPIO_PIN_7
  12564. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  12565. #define CCP2_PORT GPIO_PORTB_BASE
  12566. #define CCP2_PIN GPIO_PIN_1
  12567. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  12568. #define CCP3_PORT GPIO_PORTC_BASE
  12569. #define CCP3_PIN GPIO_PIN_6
  12570. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  12571. #define CCP4_PORT GPIO_PORTC_BASE
  12572. #define CCP4_PIN GPIO_PIN_7
  12573. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  12574. #define CCP5_PORT GPIO_PORTC_BASE
  12575. #define CCP5_PIN GPIO_PIN_4
  12576. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  12577. #define CCP6_PORT GPIO_PORTH_BASE
  12578. #define CCP6_PIN GPIO_PIN_0
  12579. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  12580. #define CCP7_PORT GPIO_PORTH_BASE
  12581. #define CCP7_PIN GPIO_PIN_1
  12582. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  12583. #define I2C0SCL_PORT GPIO_PORTB_BASE
  12584. #define I2C0SCL_PIN GPIO_PIN_2
  12585. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  12586. #define I2C0SDA_PORT GPIO_PORTB_BASE
  12587. #define I2C0SDA_PIN GPIO_PIN_3
  12588. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  12589. #define I2C1SCL_PORT GPIO_PORTA_BASE
  12590. #define I2C1SCL_PIN GPIO_PIN_6
  12591. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  12592. #define I2C1SDA_PORT GPIO_PORTA_BASE
  12593. #define I2C1SDA_PIN GPIO_PIN_7
  12594. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  12595. #define SSI0CLK_PORT GPIO_PORTA_BASE
  12596. #define SSI0CLK_PIN GPIO_PIN_2
  12597. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  12598. #define SSI0FSS_PORT GPIO_PORTA_BASE
  12599. #define SSI0FSS_PIN GPIO_PIN_3
  12600. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  12601. #define SSI0RX_PORT GPIO_PORTA_BASE
  12602. #define SSI0RX_PIN GPIO_PIN_4
  12603. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  12604. #define SSI0TX_PORT GPIO_PORTA_BASE
  12605. #define SSI0TX_PIN GPIO_PIN_5
  12606. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  12607. #define SSI1CLK_PORT GPIO_PORTE_BASE
  12608. #define SSI1CLK_PIN GPIO_PIN_0
  12609. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  12610. #define SSI1FSS_PORT GPIO_PORTE_BASE
  12611. #define SSI1FSS_PIN GPIO_PIN_1
  12612. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  12613. #define SSI1RX_PORT GPIO_PORTE_BASE
  12614. #define SSI1RX_PIN GPIO_PIN_2
  12615. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  12616. #define SSI1TX_PORT GPIO_PORTE_BASE
  12617. #define SSI1TX_PIN GPIO_PIN_3
  12618. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  12619. #define SWCLK_PORT GPIO_PORTC_BASE
  12620. #define SWCLK_PIN GPIO_PIN_0
  12621. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  12622. #define SWDIO_PORT GPIO_PORTC_BASE
  12623. #define SWDIO_PIN GPIO_PIN_1
  12624. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  12625. #define SWO_PORT GPIO_PORTC_BASE
  12626. #define SWO_PIN GPIO_PIN_3
  12627. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  12628. #define TCK_PORT GPIO_PORTC_BASE
  12629. #define TCK_PIN GPIO_PIN_0
  12630. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  12631. #define TDI_PORT GPIO_PORTC_BASE
  12632. #define TDI_PIN GPIO_PIN_2
  12633. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  12634. #define TDO_PORT GPIO_PORTC_BASE
  12635. #define TDO_PIN GPIO_PIN_3
  12636. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  12637. #define TMS_PORT GPIO_PORTC_BASE
  12638. #define TMS_PIN GPIO_PIN_1
  12639. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  12640. #define TRST_PORT GPIO_PORTB_BASE
  12641. #define TRST_PIN GPIO_PIN_7
  12642. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  12643. #define U0RX_PORT GPIO_PORTA_BASE
  12644. #define U0RX_PIN GPIO_PIN_0
  12645. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  12646. #define U0TX_PORT GPIO_PORTA_BASE
  12647. #define U0TX_PIN GPIO_PIN_1
  12648. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  12649. #define U1RX_PORT GPIO_PORTD_BASE
  12650. #define U1RX_PIN GPIO_PIN_2
  12651. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  12652. #define U1TX_PORT GPIO_PORTD_BASE
  12653. #define U1TX_PIN GPIO_PIN_3
  12654. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  12655. #define U2RX_PORT GPIO_PORTG_BASE
  12656. #define U2RX_PIN GPIO_PIN_0
  12657. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  12658. #define U2TX_PORT GPIO_PORTG_BASE
  12659. #define U2TX_PIN GPIO_PIN_1
  12660. #endif // PART_LM3S2911
  12661. //*****************************************************************************
  12662. //
  12663. // LM3S2918 Port/Pin Mapping Definitions
  12664. //
  12665. //*****************************************************************************
  12666. #ifdef PART_LM3S2918
  12667. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  12668. #define C0O_PORT GPIO_PORTF_BASE
  12669. #define C0O_PIN GPIO_PIN_4
  12670. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  12671. #define C0_MINUS_PORT GPIO_PORTB_BASE
  12672. #define C0_MINUS_PIN GPIO_PIN_4
  12673. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  12674. #define C0_PLUS_PORT GPIO_PORTB_BASE
  12675. #define C0_PLUS_PIN GPIO_PIN_6
  12676. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  12677. #define C1O_PORT GPIO_PORTF_BASE
  12678. #define C1O_PIN GPIO_PIN_5
  12679. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  12680. #define C1_MINUS_PORT GPIO_PORTB_BASE
  12681. #define C1_MINUS_PIN GPIO_PIN_5
  12682. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  12683. #define C1_PLUS_PORT GPIO_PORTC_BASE
  12684. #define C1_PLUS_PIN GPIO_PIN_5
  12685. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  12686. #define CAN0RX_PORT GPIO_PORTD_BASE
  12687. #define CAN0RX_PIN GPIO_PIN_0
  12688. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  12689. #define CAN0TX_PORT GPIO_PORTD_BASE
  12690. #define CAN0TX_PIN GPIO_PIN_1
  12691. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  12692. #define CCP0_PORT GPIO_PORTB_BASE
  12693. #define CCP0_PIN GPIO_PIN_0
  12694. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOF
  12695. #define CCP1_PORT GPIO_PORTF_BASE
  12696. #define CCP1_PIN GPIO_PIN_6
  12697. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  12698. #define CCP2_PORT GPIO_PORTB_BASE
  12699. #define CCP2_PIN GPIO_PIN_1
  12700. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  12701. #define CCP3_PORT GPIO_PORTC_BASE
  12702. #define CCP3_PIN GPIO_PIN_6
  12703. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  12704. #define CCP4_PORT GPIO_PORTC_BASE
  12705. #define CCP4_PIN GPIO_PIN_7
  12706. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  12707. #define CCP5_PORT GPIO_PORTC_BASE
  12708. #define CCP5_PIN GPIO_PIN_4
  12709. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  12710. #define CCP6_PORT GPIO_PORTH_BASE
  12711. #define CCP6_PIN GPIO_PIN_0
  12712. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  12713. #define CCP7_PORT GPIO_PORTH_BASE
  12714. #define CCP7_PIN GPIO_PIN_1
  12715. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  12716. #define I2C0SCL_PORT GPIO_PORTB_BASE
  12717. #define I2C0SCL_PIN GPIO_PIN_2
  12718. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  12719. #define I2C0SDA_PORT GPIO_PORTB_BASE
  12720. #define I2C0SDA_PIN GPIO_PIN_3
  12721. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  12722. #define I2C1SCL_PORT GPIO_PORTA_BASE
  12723. #define I2C1SCL_PIN GPIO_PIN_6
  12724. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  12725. #define I2C1SDA_PORT GPIO_PORTA_BASE
  12726. #define I2C1SDA_PIN GPIO_PIN_7
  12727. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  12728. #define SSI0CLK_PORT GPIO_PORTA_BASE
  12729. #define SSI0CLK_PIN GPIO_PIN_2
  12730. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  12731. #define SSI0FSS_PORT GPIO_PORTA_BASE
  12732. #define SSI0FSS_PIN GPIO_PIN_3
  12733. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  12734. #define SSI0RX_PORT GPIO_PORTA_BASE
  12735. #define SSI0RX_PIN GPIO_PIN_4
  12736. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  12737. #define SSI0TX_PORT GPIO_PORTA_BASE
  12738. #define SSI0TX_PIN GPIO_PIN_5
  12739. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  12740. #define SSI1CLK_PORT GPIO_PORTE_BASE
  12741. #define SSI1CLK_PIN GPIO_PIN_0
  12742. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  12743. #define SSI1FSS_PORT GPIO_PORTE_BASE
  12744. #define SSI1FSS_PIN GPIO_PIN_1
  12745. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  12746. #define SSI1RX_PORT GPIO_PORTE_BASE
  12747. #define SSI1RX_PIN GPIO_PIN_2
  12748. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  12749. #define SSI1TX_PORT GPIO_PORTE_BASE
  12750. #define SSI1TX_PIN GPIO_PIN_3
  12751. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  12752. #define SWCLK_PORT GPIO_PORTC_BASE
  12753. #define SWCLK_PIN GPIO_PIN_0
  12754. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  12755. #define SWDIO_PORT GPIO_PORTC_BASE
  12756. #define SWDIO_PIN GPIO_PIN_1
  12757. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  12758. #define SWO_PORT GPIO_PORTC_BASE
  12759. #define SWO_PIN GPIO_PIN_3
  12760. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  12761. #define TCK_PORT GPIO_PORTC_BASE
  12762. #define TCK_PIN GPIO_PIN_0
  12763. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  12764. #define TDI_PORT GPIO_PORTC_BASE
  12765. #define TDI_PIN GPIO_PIN_2
  12766. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  12767. #define TDO_PORT GPIO_PORTC_BASE
  12768. #define TDO_PIN GPIO_PIN_3
  12769. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  12770. #define TMS_PORT GPIO_PORTC_BASE
  12771. #define TMS_PIN GPIO_PIN_1
  12772. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  12773. #define TRST_PORT GPIO_PORTB_BASE
  12774. #define TRST_PIN GPIO_PIN_7
  12775. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  12776. #define U0RX_PORT GPIO_PORTA_BASE
  12777. #define U0RX_PIN GPIO_PIN_0
  12778. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  12779. #define U0TX_PORT GPIO_PORTA_BASE
  12780. #define U0TX_PIN GPIO_PIN_1
  12781. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  12782. #define U1RX_PORT GPIO_PORTD_BASE
  12783. #define U1RX_PIN GPIO_PIN_2
  12784. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  12785. #define U1TX_PORT GPIO_PORTD_BASE
  12786. #define U1TX_PIN GPIO_PIN_3
  12787. #endif // PART_LM3S2918
  12788. //*****************************************************************************
  12789. //
  12790. // LM3S2939 Port/Pin Mapping Definitions
  12791. //
  12792. //*****************************************************************************
  12793. #ifdef PART_LM3S2939
  12794. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  12795. #define C0O_PORT GPIO_PORTF_BASE
  12796. #define C0O_PIN GPIO_PIN_4
  12797. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  12798. #define C0_MINUS_PORT GPIO_PORTB_BASE
  12799. #define C0_MINUS_PIN GPIO_PIN_4
  12800. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  12801. #define C0_PLUS_PORT GPIO_PORTB_BASE
  12802. #define C0_PLUS_PIN GPIO_PIN_6
  12803. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  12804. #define C1O_PORT GPIO_PORTF_BASE
  12805. #define C1O_PIN GPIO_PIN_5
  12806. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  12807. #define C1_MINUS_PORT GPIO_PORTB_BASE
  12808. #define C1_MINUS_PIN GPIO_PIN_5
  12809. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  12810. #define C1_PLUS_PORT GPIO_PORTC_BASE
  12811. #define C1_PLUS_PIN GPIO_PIN_5
  12812. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  12813. #define C2_MINUS_PORT GPIO_PORTC_BASE
  12814. #define C2_MINUS_PIN GPIO_PIN_7
  12815. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  12816. #define C2_PLUS_PORT GPIO_PORTC_BASE
  12817. #define C2_PLUS_PIN GPIO_PIN_6
  12818. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  12819. #define CAN0RX_PORT GPIO_PORTD_BASE
  12820. #define CAN0RX_PIN GPIO_PIN_0
  12821. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  12822. #define CAN0TX_PORT GPIO_PORTD_BASE
  12823. #define CAN0TX_PIN GPIO_PIN_1
  12824. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  12825. #define CCP0_PORT GPIO_PORTB_BASE
  12826. #define CCP0_PIN GPIO_PIN_0
  12827. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  12828. #define CCP1_PORT GPIO_PORTA_BASE
  12829. #define CCP1_PIN GPIO_PIN_6
  12830. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  12831. #define CCP2_PORT GPIO_PORTB_BASE
  12832. #define CCP2_PIN GPIO_PIN_1
  12833. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  12834. #define CCP3_PORT GPIO_PORTD_BASE
  12835. #define CCP3_PIN GPIO_PIN_4
  12836. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  12837. #define FAULT_PORT GPIO_PORTD_BASE
  12838. #define FAULT_PIN GPIO_PIN_6
  12839. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  12840. #define I2C0SCL_PORT GPIO_PORTB_BASE
  12841. #define I2C0SCL_PIN GPIO_PIN_2
  12842. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  12843. #define I2C0SDA_PORT GPIO_PORTB_BASE
  12844. #define I2C0SDA_PIN GPIO_PIN_3
  12845. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  12846. #define IDX0_PORT GPIO_PORTD_BASE
  12847. #define IDX0_PIN GPIO_PIN_7
  12848. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  12849. #define PHA0_PORT GPIO_PORTC_BASE
  12850. #define PHA0_PIN GPIO_PIN_4
  12851. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOH
  12852. #define PHB0_PORT GPIO_PORTH_BASE
  12853. #define PHB0_PIN GPIO_PIN_3
  12854. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  12855. #define PWM0_PORT GPIO_PORTF_BASE
  12856. #define PWM0_PIN GPIO_PIN_0
  12857. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  12858. #define PWM1_PORT GPIO_PORTF_BASE
  12859. #define PWM1_PIN GPIO_PIN_1
  12860. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  12861. #define PWM2_PORT GPIO_PORTH_BASE
  12862. #define PWM2_PIN GPIO_PIN_0
  12863. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  12864. #define PWM3_PORT GPIO_PORTH_BASE
  12865. #define PWM3_PIN GPIO_PIN_1
  12866. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  12867. #define SSI0CLK_PORT GPIO_PORTA_BASE
  12868. #define SSI0CLK_PIN GPIO_PIN_2
  12869. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  12870. #define SSI0FSS_PORT GPIO_PORTA_BASE
  12871. #define SSI0FSS_PIN GPIO_PIN_3
  12872. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  12873. #define SSI0RX_PORT GPIO_PORTA_BASE
  12874. #define SSI0RX_PIN GPIO_PIN_4
  12875. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  12876. #define SSI0TX_PORT GPIO_PORTA_BASE
  12877. #define SSI0TX_PIN GPIO_PIN_5
  12878. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  12879. #define SWCLK_PORT GPIO_PORTC_BASE
  12880. #define SWCLK_PIN GPIO_PIN_0
  12881. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  12882. #define SWDIO_PORT GPIO_PORTC_BASE
  12883. #define SWDIO_PIN GPIO_PIN_1
  12884. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  12885. #define SWO_PORT GPIO_PORTC_BASE
  12886. #define SWO_PIN GPIO_PIN_3
  12887. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  12888. #define TCK_PORT GPIO_PORTC_BASE
  12889. #define TCK_PIN GPIO_PIN_0
  12890. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  12891. #define TDI_PORT GPIO_PORTC_BASE
  12892. #define TDI_PIN GPIO_PIN_2
  12893. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  12894. #define TDO_PORT GPIO_PORTC_BASE
  12895. #define TDO_PIN GPIO_PIN_3
  12896. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  12897. #define TMS_PORT GPIO_PORTC_BASE
  12898. #define TMS_PIN GPIO_PIN_1
  12899. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  12900. #define TRST_PORT GPIO_PORTB_BASE
  12901. #define TRST_PIN GPIO_PIN_7
  12902. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  12903. #define U0RX_PORT GPIO_PORTA_BASE
  12904. #define U0RX_PIN GPIO_PIN_0
  12905. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  12906. #define U0TX_PORT GPIO_PORTA_BASE
  12907. #define U0TX_PIN GPIO_PIN_1
  12908. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  12909. #define U1RX_PORT GPIO_PORTD_BASE
  12910. #define U1RX_PIN GPIO_PIN_2
  12911. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  12912. #define U1TX_PORT GPIO_PORTD_BASE
  12913. #define U1TX_PIN GPIO_PIN_3
  12914. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  12915. #define U2RX_PORT GPIO_PORTG_BASE
  12916. #define U2RX_PIN GPIO_PIN_0
  12917. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  12918. #define U2TX_PORT GPIO_PORTG_BASE
  12919. #define U2TX_PIN GPIO_PIN_1
  12920. #endif // PART_LM3S2939
  12921. //*****************************************************************************
  12922. //
  12923. // LM3S2948 Port/Pin Mapping Definitions
  12924. //
  12925. //*****************************************************************************
  12926. #ifdef PART_LM3S2948
  12927. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  12928. #define C0O_PORT GPIO_PORTF_BASE
  12929. #define C0O_PIN GPIO_PIN_4
  12930. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  12931. #define C0_MINUS_PORT GPIO_PORTB_BASE
  12932. #define C0_MINUS_PIN GPIO_PIN_4
  12933. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  12934. #define C0_PLUS_PORT GPIO_PORTB_BASE
  12935. #define C0_PLUS_PIN GPIO_PIN_6
  12936. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  12937. #define C1_MINUS_PORT GPIO_PORTB_BASE
  12938. #define C1_MINUS_PIN GPIO_PIN_5
  12939. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  12940. #define C1_PLUS_PORT GPIO_PORTC_BASE
  12941. #define C1_PLUS_PIN GPIO_PIN_5
  12942. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  12943. #define C2_MINUS_PORT GPIO_PORTC_BASE
  12944. #define C2_MINUS_PIN GPIO_PIN_7
  12945. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  12946. #define C2_PLUS_PORT GPIO_PORTC_BASE
  12947. #define C2_PLUS_PIN GPIO_PIN_6
  12948. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  12949. #define CAN0RX_PORT GPIO_PORTD_BASE
  12950. #define CAN0RX_PIN GPIO_PIN_0
  12951. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  12952. #define CAN0TX_PORT GPIO_PORTD_BASE
  12953. #define CAN0TX_PIN GPIO_PIN_1
  12954. #define CAN1RX_PERIPH SYSCTL_PERIPH_GPIOF
  12955. #define CAN1RX_PORT GPIO_PORTF_BASE
  12956. #define CAN1RX_PIN GPIO_PIN_0
  12957. #define CAN1TX_PERIPH SYSCTL_PERIPH_GPIOF
  12958. #define CAN1TX_PORT GPIO_PORTF_BASE
  12959. #define CAN1TX_PIN GPIO_PIN_1
  12960. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  12961. #define CCP0_PORT GPIO_PORTB_BASE
  12962. #define CCP0_PIN GPIO_PIN_0
  12963. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  12964. #define CCP1_PORT GPIO_PORTA_BASE
  12965. #define CCP1_PIN GPIO_PIN_6
  12966. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  12967. #define CCP2_PORT GPIO_PORTB_BASE
  12968. #define CCP2_PIN GPIO_PIN_1
  12969. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOG
  12970. #define CCP3_PORT GPIO_PORTG_BASE
  12971. #define CCP3_PIN GPIO_PIN_4
  12972. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  12973. #define CCP4_PORT GPIO_PORTA_BASE
  12974. #define CCP4_PIN GPIO_PIN_7
  12975. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  12976. #define CCP5_PORT GPIO_PORTC_BASE
  12977. #define CCP5_PIN GPIO_PIN_4
  12978. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  12979. #define CCP6_PORT GPIO_PORTH_BASE
  12980. #define CCP6_PIN GPIO_PIN_0
  12981. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  12982. #define CCP7_PORT GPIO_PORTH_BASE
  12983. #define CCP7_PIN GPIO_PIN_1
  12984. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  12985. #define I2C0SCL_PORT GPIO_PORTB_BASE
  12986. #define I2C0SCL_PIN GPIO_PIN_2
  12987. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  12988. #define I2C0SDA_PORT GPIO_PORTB_BASE
  12989. #define I2C0SDA_PIN GPIO_PIN_3
  12990. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  12991. #define SSI0CLK_PORT GPIO_PORTA_BASE
  12992. #define SSI0CLK_PIN GPIO_PIN_2
  12993. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  12994. #define SSI0FSS_PORT GPIO_PORTA_BASE
  12995. #define SSI0FSS_PIN GPIO_PIN_3
  12996. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  12997. #define SSI0RX_PORT GPIO_PORTA_BASE
  12998. #define SSI0RX_PIN GPIO_PIN_4
  12999. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  13000. #define SSI0TX_PORT GPIO_PORTA_BASE
  13001. #define SSI0TX_PIN GPIO_PIN_5
  13002. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  13003. #define SSI1CLK_PORT GPIO_PORTE_BASE
  13004. #define SSI1CLK_PIN GPIO_PIN_0
  13005. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  13006. #define SSI1FSS_PORT GPIO_PORTE_BASE
  13007. #define SSI1FSS_PIN GPIO_PIN_1
  13008. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  13009. #define SSI1RX_PORT GPIO_PORTE_BASE
  13010. #define SSI1RX_PIN GPIO_PIN_2
  13011. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  13012. #define SSI1TX_PORT GPIO_PORTE_BASE
  13013. #define SSI1TX_PIN GPIO_PIN_3
  13014. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  13015. #define SWCLK_PORT GPIO_PORTC_BASE
  13016. #define SWCLK_PIN GPIO_PIN_0
  13017. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  13018. #define SWDIO_PORT GPIO_PORTC_BASE
  13019. #define SWDIO_PIN GPIO_PIN_1
  13020. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  13021. #define SWO_PORT GPIO_PORTC_BASE
  13022. #define SWO_PIN GPIO_PIN_3
  13023. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  13024. #define TCK_PORT GPIO_PORTC_BASE
  13025. #define TCK_PIN GPIO_PIN_0
  13026. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  13027. #define TDI_PORT GPIO_PORTC_BASE
  13028. #define TDI_PIN GPIO_PIN_2
  13029. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  13030. #define TDO_PORT GPIO_PORTC_BASE
  13031. #define TDO_PIN GPIO_PIN_3
  13032. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  13033. #define TMS_PORT GPIO_PORTC_BASE
  13034. #define TMS_PIN GPIO_PIN_1
  13035. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  13036. #define TRST_PORT GPIO_PORTB_BASE
  13037. #define TRST_PIN GPIO_PIN_7
  13038. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  13039. #define U0RX_PORT GPIO_PORTA_BASE
  13040. #define U0RX_PIN GPIO_PIN_0
  13041. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  13042. #define U0TX_PORT GPIO_PORTA_BASE
  13043. #define U0TX_PIN GPIO_PIN_1
  13044. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  13045. #define U1RX_PORT GPIO_PORTD_BASE
  13046. #define U1RX_PIN GPIO_PIN_2
  13047. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  13048. #define U1TX_PORT GPIO_PORTD_BASE
  13049. #define U1TX_PIN GPIO_PIN_3
  13050. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  13051. #define U2RX_PORT GPIO_PORTG_BASE
  13052. #define U2RX_PIN GPIO_PIN_0
  13053. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  13054. #define U2TX_PORT GPIO_PORTG_BASE
  13055. #define U2TX_PIN GPIO_PIN_1
  13056. #endif // PART_LM3S2948
  13057. //*****************************************************************************
  13058. //
  13059. // LM3S2950 Port/Pin Mapping Definitions
  13060. //
  13061. //*****************************************************************************
  13062. #ifdef PART_LM3S2950
  13063. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  13064. #define C0O_PORT GPIO_PORTF_BASE
  13065. #define C0O_PIN GPIO_PIN_4
  13066. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  13067. #define C0_MINUS_PORT GPIO_PORTB_BASE
  13068. #define C0_MINUS_PIN GPIO_PIN_4
  13069. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  13070. #define C0_PLUS_PORT GPIO_PORTB_BASE
  13071. #define C0_PLUS_PIN GPIO_PIN_6
  13072. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  13073. #define C1O_PORT GPIO_PORTF_BASE
  13074. #define C1O_PIN GPIO_PIN_5
  13075. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  13076. #define C1_MINUS_PORT GPIO_PORTB_BASE
  13077. #define C1_MINUS_PIN GPIO_PIN_5
  13078. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  13079. #define C1_PLUS_PORT GPIO_PORTC_BASE
  13080. #define C1_PLUS_PIN GPIO_PIN_5
  13081. #define C2O_PERIPH SYSCTL_PERIPH_GPIOF
  13082. #define C2O_PORT GPIO_PORTF_BASE
  13083. #define C2O_PIN GPIO_PIN_6
  13084. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  13085. #define C2_MINUS_PORT GPIO_PORTC_BASE
  13086. #define C2_MINUS_PIN GPIO_PIN_7
  13087. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  13088. #define C2_PLUS_PORT GPIO_PORTC_BASE
  13089. #define C2_PLUS_PIN GPIO_PIN_6
  13090. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  13091. #define CAN0RX_PORT GPIO_PORTD_BASE
  13092. #define CAN0RX_PIN GPIO_PIN_0
  13093. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  13094. #define CAN0TX_PORT GPIO_PORTD_BASE
  13095. #define CAN0TX_PIN GPIO_PIN_1
  13096. #define CAN1RX_PERIPH SYSCTL_PERIPH_GPIOF
  13097. #define CAN1RX_PORT GPIO_PORTF_BASE
  13098. #define CAN1RX_PIN GPIO_PIN_0
  13099. #define CAN1TX_PERIPH SYSCTL_PERIPH_GPIOF
  13100. #define CAN1TX_PORT GPIO_PORTF_BASE
  13101. #define CAN1TX_PIN GPIO_PIN_1
  13102. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  13103. #define CCP0_PORT GPIO_PORTB_BASE
  13104. #define CCP0_PIN GPIO_PIN_0
  13105. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  13106. #define CCP1_PORT GPIO_PORTA_BASE
  13107. #define CCP1_PIN GPIO_PIN_6
  13108. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  13109. #define CCP2_PORT GPIO_PORTB_BASE
  13110. #define CCP2_PIN GPIO_PIN_1
  13111. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  13112. #define CCP3_PORT GPIO_PORTD_BASE
  13113. #define CCP3_PIN GPIO_PIN_4
  13114. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  13115. #define CCP4_PORT GPIO_PORTA_BASE
  13116. #define CCP4_PIN GPIO_PIN_7
  13117. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOE
  13118. #define CCP5_PORT GPIO_PORTE_BASE
  13119. #define CCP5_PIN GPIO_PIN_5
  13120. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  13121. #define FAULT_PORT GPIO_PORTD_BASE
  13122. #define FAULT_PIN GPIO_PIN_6
  13123. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  13124. #define I2C0SCL_PORT GPIO_PORTB_BASE
  13125. #define I2C0SCL_PIN GPIO_PIN_2
  13126. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  13127. #define I2C0SDA_PORT GPIO_PORTB_BASE
  13128. #define I2C0SDA_PIN GPIO_PIN_3
  13129. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  13130. #define IDX0_PORT GPIO_PORTD_BASE
  13131. #define IDX0_PIN GPIO_PIN_7
  13132. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  13133. #define PHA0_PORT GPIO_PORTC_BASE
  13134. #define PHA0_PIN GPIO_PIN_4
  13135. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOH
  13136. #define PHB0_PORT GPIO_PORTH_BASE
  13137. #define PHB0_PIN GPIO_PIN_3
  13138. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOG
  13139. #define PWM0_PORT GPIO_PORTG_BASE
  13140. #define PWM0_PIN GPIO_PIN_2
  13141. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOG
  13142. #define PWM1_PORT GPIO_PORTG_BASE
  13143. #define PWM1_PIN GPIO_PIN_3
  13144. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  13145. #define PWM2_PORT GPIO_PORTH_BASE
  13146. #define PWM2_PIN GPIO_PIN_0
  13147. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  13148. #define PWM3_PORT GPIO_PORTH_BASE
  13149. #define PWM3_PIN GPIO_PIN_1
  13150. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  13151. #define PWM4_PORT GPIO_PORTE_BASE
  13152. #define PWM4_PIN GPIO_PIN_6
  13153. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  13154. #define PWM5_PORT GPIO_PORTE_BASE
  13155. #define PWM5_PIN GPIO_PIN_7
  13156. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  13157. #define SSI0CLK_PORT GPIO_PORTA_BASE
  13158. #define SSI0CLK_PIN GPIO_PIN_2
  13159. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  13160. #define SSI0FSS_PORT GPIO_PORTA_BASE
  13161. #define SSI0FSS_PIN GPIO_PIN_3
  13162. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  13163. #define SSI0RX_PORT GPIO_PORTA_BASE
  13164. #define SSI0RX_PIN GPIO_PIN_4
  13165. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  13166. #define SSI0TX_PORT GPIO_PORTA_BASE
  13167. #define SSI0TX_PIN GPIO_PIN_5
  13168. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  13169. #define SSI1CLK_PORT GPIO_PORTE_BASE
  13170. #define SSI1CLK_PIN GPIO_PIN_0
  13171. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  13172. #define SSI1FSS_PORT GPIO_PORTE_BASE
  13173. #define SSI1FSS_PIN GPIO_PIN_1
  13174. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  13175. #define SSI1RX_PORT GPIO_PORTE_BASE
  13176. #define SSI1RX_PIN GPIO_PIN_2
  13177. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  13178. #define SSI1TX_PORT GPIO_PORTE_BASE
  13179. #define SSI1TX_PIN GPIO_PIN_3
  13180. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  13181. #define SWCLK_PORT GPIO_PORTC_BASE
  13182. #define SWCLK_PIN GPIO_PIN_0
  13183. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  13184. #define SWDIO_PORT GPIO_PORTC_BASE
  13185. #define SWDIO_PIN GPIO_PIN_1
  13186. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  13187. #define SWO_PORT GPIO_PORTC_BASE
  13188. #define SWO_PIN GPIO_PIN_3
  13189. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  13190. #define TCK_PORT GPIO_PORTC_BASE
  13191. #define TCK_PIN GPIO_PIN_0
  13192. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  13193. #define TDI_PORT GPIO_PORTC_BASE
  13194. #define TDI_PIN GPIO_PIN_2
  13195. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  13196. #define TDO_PORT GPIO_PORTC_BASE
  13197. #define TDO_PIN GPIO_PIN_3
  13198. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  13199. #define TMS_PORT GPIO_PORTC_BASE
  13200. #define TMS_PIN GPIO_PIN_1
  13201. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  13202. #define TRST_PORT GPIO_PORTB_BASE
  13203. #define TRST_PIN GPIO_PIN_7
  13204. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  13205. #define U0RX_PORT GPIO_PORTA_BASE
  13206. #define U0RX_PIN GPIO_PIN_0
  13207. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  13208. #define U0TX_PORT GPIO_PORTA_BASE
  13209. #define U0TX_PIN GPIO_PIN_1
  13210. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  13211. #define U1RX_PORT GPIO_PORTD_BASE
  13212. #define U1RX_PIN GPIO_PIN_2
  13213. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  13214. #define U1TX_PORT GPIO_PORTD_BASE
  13215. #define U1TX_PIN GPIO_PIN_3
  13216. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  13217. #define U2RX_PORT GPIO_PORTG_BASE
  13218. #define U2RX_PIN GPIO_PIN_0
  13219. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  13220. #define U2TX_PORT GPIO_PORTG_BASE
  13221. #define U2TX_PIN GPIO_PIN_1
  13222. #endif // PART_LM3S2950
  13223. //*****************************************************************************
  13224. //
  13225. // LM3S2965 Port/Pin Mapping Definitions
  13226. //
  13227. //*****************************************************************************
  13228. #ifdef PART_LM3S2965
  13229. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  13230. #define C0O_PORT GPIO_PORTF_BASE
  13231. #define C0O_PIN GPIO_PIN_4
  13232. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  13233. #define C0_MINUS_PORT GPIO_PORTB_BASE
  13234. #define C0_MINUS_PIN GPIO_PIN_4
  13235. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  13236. #define C0_PLUS_PORT GPIO_PORTB_BASE
  13237. #define C0_PLUS_PIN GPIO_PIN_6
  13238. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  13239. #define C1_MINUS_PORT GPIO_PORTB_BASE
  13240. #define C1_MINUS_PIN GPIO_PIN_5
  13241. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  13242. #define C1_PLUS_PORT GPIO_PORTC_BASE
  13243. #define C1_PLUS_PIN GPIO_PIN_5
  13244. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  13245. #define C2_MINUS_PORT GPIO_PORTC_BASE
  13246. #define C2_MINUS_PIN GPIO_PIN_7
  13247. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  13248. #define C2_PLUS_PORT GPIO_PORTC_BASE
  13249. #define C2_PLUS_PIN GPIO_PIN_6
  13250. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  13251. #define CAN0RX_PORT GPIO_PORTD_BASE
  13252. #define CAN0RX_PIN GPIO_PIN_0
  13253. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  13254. #define CAN0TX_PORT GPIO_PORTD_BASE
  13255. #define CAN0TX_PIN GPIO_PIN_1
  13256. #define CAN1RX_PERIPH SYSCTL_PERIPH_GPIOF
  13257. #define CAN1RX_PORT GPIO_PORTF_BASE
  13258. #define CAN1RX_PIN GPIO_PIN_0
  13259. #define CAN1TX_PERIPH SYSCTL_PERIPH_GPIOF
  13260. #define CAN1TX_PORT GPIO_PORTF_BASE
  13261. #define CAN1TX_PIN GPIO_PIN_1
  13262. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  13263. #define CCP0_PORT GPIO_PORTB_BASE
  13264. #define CCP0_PIN GPIO_PIN_0
  13265. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOF
  13266. #define CCP1_PORT GPIO_PORTF_BASE
  13267. #define CCP1_PIN GPIO_PIN_6
  13268. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  13269. #define CCP2_PORT GPIO_PORTB_BASE
  13270. #define CCP2_PIN GPIO_PIN_1
  13271. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  13272. #define CCP3_PORT GPIO_PORTD_BASE
  13273. #define CCP3_PIN GPIO_PIN_4
  13274. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOD
  13275. #define CCP4_PORT GPIO_PORTD_BASE
  13276. #define CCP4_PIN GPIO_PIN_5
  13277. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOG
  13278. #define CCP5_PORT GPIO_PORTG_BASE
  13279. #define CCP5_PIN GPIO_PIN_5
  13280. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  13281. #define FAULT_PORT GPIO_PORTD_BASE
  13282. #define FAULT_PIN GPIO_PIN_6
  13283. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  13284. #define I2C0SCL_PORT GPIO_PORTB_BASE
  13285. #define I2C0SCL_PIN GPIO_PIN_2
  13286. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  13287. #define I2C0SDA_PORT GPIO_PORTB_BASE
  13288. #define I2C0SDA_PIN GPIO_PIN_3
  13289. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  13290. #define I2C1SCL_PORT GPIO_PORTA_BASE
  13291. #define I2C1SCL_PIN GPIO_PIN_6
  13292. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  13293. #define I2C1SDA_PORT GPIO_PORTA_BASE
  13294. #define I2C1SDA_PIN GPIO_PIN_7
  13295. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  13296. #define IDX0_PORT GPIO_PORTD_BASE
  13297. #define IDX0_PIN GPIO_PIN_7
  13298. #define IDX1_PERIPH SYSCTL_PERIPH_GPIOH
  13299. #define IDX1_PORT GPIO_PORTH_BASE
  13300. #define IDX1_PIN GPIO_PIN_2
  13301. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  13302. #define PHA0_PORT GPIO_PORTC_BASE
  13303. #define PHA0_PIN GPIO_PIN_4
  13304. #define PHA1_PERIPH SYSCTL_PERIPH_GPIOG
  13305. #define PHA1_PORT GPIO_PORTG_BASE
  13306. #define PHA1_PIN GPIO_PIN_6
  13307. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOH
  13308. #define PHB0_PORT GPIO_PORTH_BASE
  13309. #define PHB0_PIN GPIO_PIN_3
  13310. #define PHB1_PERIPH SYSCTL_PERIPH_GPIOG
  13311. #define PHB1_PORT GPIO_PORTG_BASE
  13312. #define PHB1_PIN GPIO_PIN_7
  13313. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOG
  13314. #define PWM0_PORT GPIO_PORTG_BASE
  13315. #define PWM0_PIN GPIO_PIN_2
  13316. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOG
  13317. #define PWM1_PORT GPIO_PORTG_BASE
  13318. #define PWM1_PIN GPIO_PIN_3
  13319. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  13320. #define PWM2_PORT GPIO_PORTH_BASE
  13321. #define PWM2_PIN GPIO_PIN_0
  13322. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  13323. #define PWM3_PORT GPIO_PORTH_BASE
  13324. #define PWM3_PIN GPIO_PIN_1
  13325. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOF
  13326. #define PWM4_PORT GPIO_PORTF_BASE
  13327. #define PWM4_PIN GPIO_PIN_2
  13328. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOF
  13329. #define PWM5_PORT GPIO_PORTF_BASE
  13330. #define PWM5_PIN GPIO_PIN_3
  13331. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  13332. #define SSI0CLK_PORT GPIO_PORTA_BASE
  13333. #define SSI0CLK_PIN GPIO_PIN_2
  13334. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  13335. #define SSI0FSS_PORT GPIO_PORTA_BASE
  13336. #define SSI0FSS_PIN GPIO_PIN_3
  13337. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  13338. #define SSI0RX_PORT GPIO_PORTA_BASE
  13339. #define SSI0RX_PIN GPIO_PIN_4
  13340. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  13341. #define SSI0TX_PORT GPIO_PORTA_BASE
  13342. #define SSI0TX_PIN GPIO_PIN_5
  13343. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  13344. #define SSI1CLK_PORT GPIO_PORTE_BASE
  13345. #define SSI1CLK_PIN GPIO_PIN_0
  13346. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  13347. #define SSI1FSS_PORT GPIO_PORTE_BASE
  13348. #define SSI1FSS_PIN GPIO_PIN_1
  13349. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  13350. #define SSI1RX_PORT GPIO_PORTE_BASE
  13351. #define SSI1RX_PIN GPIO_PIN_2
  13352. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  13353. #define SSI1TX_PORT GPIO_PORTE_BASE
  13354. #define SSI1TX_PIN GPIO_PIN_3
  13355. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  13356. #define SWCLK_PORT GPIO_PORTC_BASE
  13357. #define SWCLK_PIN GPIO_PIN_0
  13358. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  13359. #define SWDIO_PORT GPIO_PORTC_BASE
  13360. #define SWDIO_PIN GPIO_PIN_1
  13361. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  13362. #define SWO_PORT GPIO_PORTC_BASE
  13363. #define SWO_PIN GPIO_PIN_3
  13364. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  13365. #define TCK_PORT GPIO_PORTC_BASE
  13366. #define TCK_PIN GPIO_PIN_0
  13367. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  13368. #define TDI_PORT GPIO_PORTC_BASE
  13369. #define TDI_PIN GPIO_PIN_2
  13370. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  13371. #define TDO_PORT GPIO_PORTC_BASE
  13372. #define TDO_PIN GPIO_PIN_3
  13373. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  13374. #define TMS_PORT GPIO_PORTC_BASE
  13375. #define TMS_PIN GPIO_PIN_1
  13376. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  13377. #define TRST_PORT GPIO_PORTB_BASE
  13378. #define TRST_PIN GPIO_PIN_7
  13379. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  13380. #define U0RX_PORT GPIO_PORTA_BASE
  13381. #define U0RX_PIN GPIO_PIN_0
  13382. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  13383. #define U0TX_PORT GPIO_PORTA_BASE
  13384. #define U0TX_PIN GPIO_PIN_1
  13385. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  13386. #define U1RX_PORT GPIO_PORTD_BASE
  13387. #define U1RX_PIN GPIO_PIN_2
  13388. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  13389. #define U1TX_PORT GPIO_PORTD_BASE
  13390. #define U1TX_PIN GPIO_PIN_3
  13391. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  13392. #define U2RX_PORT GPIO_PORTG_BASE
  13393. #define U2RX_PIN GPIO_PIN_0
  13394. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  13395. #define U2TX_PORT GPIO_PORTG_BASE
  13396. #define U2TX_PIN GPIO_PIN_1
  13397. #endif // PART_LM3S2965
  13398. //*****************************************************************************
  13399. //
  13400. // LM3S2B93 Port/Pin Mapping Definitions
  13401. //
  13402. //*****************************************************************************
  13403. #ifdef PART_LM3S2B93
  13404. #define GPIO_PA0_U0RX 0x00000001
  13405. #define GPIO_PA0_I2C1SCL 0x00000008
  13406. #define GPIO_PA0_U1RX 0x00000009
  13407. #define GPIO_PA1_U0TX 0x00000401
  13408. #define GPIO_PA1_I2C1SDA 0x00000408
  13409. #define GPIO_PA1_U1TX 0x00000409
  13410. #define GPIO_PA2_SSI0CLK 0x00000801
  13411. #define GPIO_PA2_PWM4 0x00000804
  13412. #define GPIO_PA2_I2S0RXSD 0x00000809
  13413. #define GPIO_PA3_SSI0FSS 0x00000C01
  13414. #define GPIO_PA3_PWM5 0x00000C04
  13415. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  13416. #define GPIO_PA4_SSI0RX 0x00001001
  13417. #define GPIO_PA4_PWM6 0x00001004
  13418. #define GPIO_PA4_CAN0RX 0x00001005
  13419. #define GPIO_PA4_I2S0TXSCK 0x00001009
  13420. #define GPIO_PA5_SSI0TX 0x00001401
  13421. #define GPIO_PA5_PWM7 0x00001404
  13422. #define GPIO_PA5_CAN0TX 0x00001405
  13423. #define GPIO_PA5_I2S0TXWS 0x00001409
  13424. #define GPIO_PA6_I2C1SCL 0x00001801
  13425. #define GPIO_PA6_CCP1 0x00001802
  13426. #define GPIO_PA6_PWM0 0x00001804
  13427. #define GPIO_PA6_PWM4 0x00001805
  13428. #define GPIO_PA6_CAN0RX 0x00001806
  13429. #define GPIO_PA6_U1CTS 0x00001809
  13430. #define GPIO_PA7_I2C1SDA 0x00001C01
  13431. #define GPIO_PA7_CCP4 0x00001C02
  13432. #define GPIO_PA7_PWM1 0x00001C04
  13433. #define GPIO_PA7_PWM5 0x00001C05
  13434. #define GPIO_PA7_CAN0TX 0x00001C06
  13435. #define GPIO_PA7_CCP3 0x00001C07
  13436. #define GPIO_PA7_U1DCD 0x00001C09
  13437. #define GPIO_PB0_CCP0 0x00010001
  13438. #define GPIO_PB0_PWM2 0x00010002
  13439. #define GPIO_PB0_U1RX 0x00010005
  13440. #define GPIO_PB1_CCP2 0x00010401
  13441. #define GPIO_PB1_PWM3 0x00010402
  13442. #define GPIO_PB1_CCP1 0x00010404
  13443. #define GPIO_PB1_U1TX 0x00010405
  13444. #define GPIO_PB2_I2C0SCL 0x00010801
  13445. #define GPIO_PB2_IDX0 0x00010802
  13446. #define GPIO_PB2_CCP3 0x00010804
  13447. #define GPIO_PB2_CCP0 0x00010805
  13448. #define GPIO_PB3_I2C0SDA 0x00010C01
  13449. #define GPIO_PB3_FAULT0 0x00010C02
  13450. #define GPIO_PB3_FAULT3 0x00010C04
  13451. #define GPIO_PB4_U2RX 0x00011004
  13452. #define GPIO_PB4_CAN0RX 0x00011005
  13453. #define GPIO_PB4_IDX0 0x00011006
  13454. #define GPIO_PB4_U1RX 0x00011007
  13455. #define GPIO_PB4_EPI0S23 0x00011008
  13456. #define GPIO_PB5_C0O 0x00011401
  13457. #define GPIO_PB5_CCP5 0x00011402
  13458. #define GPIO_PB5_CCP6 0x00011403
  13459. #define GPIO_PB5_CCP0 0x00011404
  13460. #define GPIO_PB5_CAN0TX 0x00011405
  13461. #define GPIO_PB5_CCP2 0x00011406
  13462. #define GPIO_PB5_U1TX 0x00011407
  13463. #define GPIO_PB5_EPI0S22 0x00011408
  13464. #define GPIO_PB6_CCP1 0x00011801
  13465. #define GPIO_PB6_CCP7 0x00011802
  13466. #define GPIO_PB6_C0O 0x00011803
  13467. #define GPIO_PB6_FAULT1 0x00011804
  13468. #define GPIO_PB6_IDX0 0x00011805
  13469. #define GPIO_PB6_CCP5 0x00011806
  13470. #define GPIO_PB6_I2S0TXSCK 0x00011809
  13471. #define GPIO_PB7_NMI 0x00011C04
  13472. #define GPIO_PC0_TCK 0x00020003
  13473. #define GPIO_PC0_SWCLK 0x00020003
  13474. #define GPIO_PC1_TMS 0x00020403
  13475. #define GPIO_PC1_SWDIO 0x00020403
  13476. #define GPIO_PC2_TDI 0x00020803
  13477. #define GPIO_PC3_SWO 0x00020C03
  13478. #define GPIO_PC3_TDO 0x00020C03
  13479. #define GPIO_PC4_CCP5 0x00021001
  13480. #define GPIO_PC4_PHA0 0x00021002
  13481. #define GPIO_PC4_PWM6 0x00021004
  13482. #define GPIO_PC4_CCP2 0x00021005
  13483. #define GPIO_PC4_CCP4 0x00021006
  13484. #define GPIO_PC4_EPI0S2 0x00021008
  13485. #define GPIO_PC4_CCP1 0x00021009
  13486. #define GPIO_PC5_CCP1 0x00021401
  13487. #define GPIO_PC5_C1O 0x00021402
  13488. #define GPIO_PC5_C0O 0x00021403
  13489. #define GPIO_PC5_FAULT2 0x00021404
  13490. #define GPIO_PC5_CCP3 0x00021405
  13491. #define GPIO_PC5_EPI0S3 0x00021408
  13492. #define GPIO_PC6_CCP3 0x00021801
  13493. #define GPIO_PC6_PHB0 0x00021802
  13494. #define GPIO_PC6_C2O 0x00021803
  13495. #define GPIO_PC6_PWM7 0x00021804
  13496. #define GPIO_PC6_U1RX 0x00021805
  13497. #define GPIO_PC6_CCP0 0x00021806
  13498. #define GPIO_PC6_EPI0S4 0x00021808
  13499. #define GPIO_PC7_CCP4 0x00021C01
  13500. #define GPIO_PC7_PHB0 0x00021C02
  13501. #define GPIO_PC7_CCP0 0x00021C04
  13502. #define GPIO_PC7_U1TX 0x00021C05
  13503. #define GPIO_PC7_C1O 0x00021C07
  13504. #define GPIO_PC7_EPI0S5 0x00021C08
  13505. #define GPIO_PD0_PWM0 0x00030001
  13506. #define GPIO_PD0_CAN0RX 0x00030002
  13507. #define GPIO_PD0_IDX0 0x00030003
  13508. #define GPIO_PD0_U2RX 0x00030004
  13509. #define GPIO_PD0_U1RX 0x00030005
  13510. #define GPIO_PD0_CCP6 0x00030006
  13511. #define GPIO_PD0_I2S0RXSCK 0x00030008
  13512. #define GPIO_PD0_U1CTS 0x00030009
  13513. #define GPIO_PD1_PWM1 0x00030401
  13514. #define GPIO_PD1_CAN0TX 0x00030402
  13515. #define GPIO_PD1_PHA0 0x00030403
  13516. #define GPIO_PD1_U2TX 0x00030404
  13517. #define GPIO_PD1_U1TX 0x00030405
  13518. #define GPIO_PD1_CCP7 0x00030406
  13519. #define GPIO_PD1_I2S0RXWS 0x00030408
  13520. #define GPIO_PD1_U1DCD 0x00030409
  13521. #define GPIO_PD1_CCP2 0x0003040A
  13522. #define GPIO_PD1_PHB1 0x0003040B
  13523. #define GPIO_PD2_U1RX 0x00030801
  13524. #define GPIO_PD2_CCP6 0x00030802
  13525. #define GPIO_PD2_PWM2 0x00030803
  13526. #define GPIO_PD2_CCP5 0x00030804
  13527. #define GPIO_PD2_EPI0S20 0x00030808
  13528. #define GPIO_PD3_U1TX 0x00030C01
  13529. #define GPIO_PD3_CCP7 0x00030C02
  13530. #define GPIO_PD3_PWM3 0x00030C03
  13531. #define GPIO_PD3_CCP0 0x00030C04
  13532. #define GPIO_PD3_EPI0S21 0x00030C08
  13533. #define GPIO_PD4_CCP0 0x00031001
  13534. #define GPIO_PD4_CCP3 0x00031002
  13535. #define GPIO_PD4_I2S0RXSD 0x00031008
  13536. #define GPIO_PD4_U1RI 0x00031009
  13537. #define GPIO_PD4_EPI0S19 0x0003100A
  13538. #define GPIO_PD5_CCP2 0x00031401
  13539. #define GPIO_PD5_CCP4 0x00031402
  13540. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  13541. #define GPIO_PD5_U2RX 0x00031409
  13542. #define GPIO_PD5_EPI0S28 0x0003140A
  13543. #define GPIO_PD6_FAULT0 0x00031801
  13544. #define GPIO_PD6_I2S0TXSCK 0x00031808
  13545. #define GPIO_PD6_U2TX 0x00031809
  13546. #define GPIO_PD6_EPI0S29 0x0003180A
  13547. #define GPIO_PD7_IDX0 0x00031C01
  13548. #define GPIO_PD7_C0O 0x00031C02
  13549. #define GPIO_PD7_CCP1 0x00031C03
  13550. #define GPIO_PD7_I2S0TXWS 0x00031C08
  13551. #define GPIO_PD7_U1DTR 0x00031C09
  13552. #define GPIO_PD7_EPI0S30 0x00031C0A
  13553. #define GPIO_PE0_PWM4 0x00040001
  13554. #define GPIO_PE0_SSI1CLK 0x00040002
  13555. #define GPIO_PE0_CCP3 0x00040003
  13556. #define GPIO_PE0_EPI0S8 0x00040008
  13557. #define GPIO_PE1_PWM5 0x00040401
  13558. #define GPIO_PE1_SSI1FSS 0x00040402
  13559. #define GPIO_PE1_FAULT0 0x00040403
  13560. #define GPIO_PE1_CCP2 0x00040404
  13561. #define GPIO_PE1_CCP6 0x00040405
  13562. #define GPIO_PE1_EPI0S9 0x00040408
  13563. #define GPIO_PE2_CCP4 0x00040801
  13564. #define GPIO_PE2_SSI1RX 0x00040802
  13565. #define GPIO_PE2_PHB1 0x00040803
  13566. #define GPIO_PE2_PHA0 0x00040804
  13567. #define GPIO_PE2_CCP2 0x00040805
  13568. #define GPIO_PE2_EPI0S24 0x00040808
  13569. #define GPIO_PE3_CCP1 0x00040C01
  13570. #define GPIO_PE3_SSI1TX 0x00040C02
  13571. #define GPIO_PE3_PHA1 0x00040C03
  13572. #define GPIO_PE3_PHB0 0x00040C04
  13573. #define GPIO_PE3_CCP7 0x00040C05
  13574. #define GPIO_PE3_EPI0S25 0x00040C08
  13575. #define GPIO_PE4_CCP3 0x00041001
  13576. #define GPIO_PE4_FAULT0 0x00041004
  13577. #define GPIO_PE4_U2TX 0x00041005
  13578. #define GPIO_PE4_CCP2 0x00041006
  13579. #define GPIO_PE4_I2S0TXWS 0x00041009
  13580. #define GPIO_PE5_CCP5 0x00041401
  13581. #define GPIO_PE5_I2S0TXSD 0x00041409
  13582. #define GPIO_PE6_PWM4 0x00041801
  13583. #define GPIO_PE6_C1O 0x00041802
  13584. #define GPIO_PE6_U1CTS 0x00041809
  13585. #define GPIO_PE7_PWM5 0x00041C01
  13586. #define GPIO_PE7_C2O 0x00041C02
  13587. #define GPIO_PE7_U1DCD 0x00041C09
  13588. #define GPIO_PF0_CAN1RX 0x00050001
  13589. #define GPIO_PF0_PHB0 0x00050002
  13590. #define GPIO_PF0_PWM0 0x00050003
  13591. #define GPIO_PF0_I2S0TXSD 0x00050008
  13592. #define GPIO_PF0_U1DSR 0x00050009
  13593. #define GPIO_PF1_CAN1TX 0x00050401
  13594. #define GPIO_PF1_IDX1 0x00050402
  13595. #define GPIO_PF1_PWM1 0x00050403
  13596. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  13597. #define GPIO_PF1_U1RTS 0x00050409
  13598. #define GPIO_PF1_CCP3 0x0005040A
  13599. #define GPIO_PF2_PWM4 0x00050802
  13600. #define GPIO_PF2_PWM2 0x00050804
  13601. #define GPIO_PF2_SSI1CLK 0x00050809
  13602. #define GPIO_PF3_PWM5 0x00050C02
  13603. #define GPIO_PF3_PWM3 0x00050C04
  13604. #define GPIO_PF3_SSI1FSS 0x00050C09
  13605. #define GPIO_PF4_CCP0 0x00051001
  13606. #define GPIO_PF4_C0O 0x00051002
  13607. #define GPIO_PF4_FAULT0 0x00051004
  13608. #define GPIO_PF4_EPI0S12 0x00051008
  13609. #define GPIO_PF4_SSI1RX 0x00051009
  13610. #define GPIO_PF5_CCP2 0x00051401
  13611. #define GPIO_PF5_C1O 0x00051402
  13612. #define GPIO_PF5_EPI0S15 0x00051408
  13613. #define GPIO_PF5_SSI1TX 0x00051409
  13614. #define GPIO_PF6_CCP1 0x00051801
  13615. #define GPIO_PF6_C2O 0x00051802
  13616. #define GPIO_PF6_PHA0 0x00051804
  13617. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  13618. #define GPIO_PF6_U1RTS 0x0005180A
  13619. #define GPIO_PF7_CCP4 0x00051C01
  13620. #define GPIO_PF7_PHB0 0x00051C04
  13621. #define GPIO_PF7_EPI0S12 0x00051C08
  13622. #define GPIO_PF7_FAULT1 0x00051C09
  13623. #define GPIO_PG0_U2RX 0x00060001
  13624. #define GPIO_PG0_PWM0 0x00060002
  13625. #define GPIO_PG0_I2C1SCL 0x00060003
  13626. #define GPIO_PG0_PWM4 0x00060004
  13627. #define GPIO_PG0_EPI0S13 0x00060008
  13628. #define GPIO_PG1_U2TX 0x00060401
  13629. #define GPIO_PG1_PWM1 0x00060402
  13630. #define GPIO_PG1_I2C1SDA 0x00060403
  13631. #define GPIO_PG1_PWM5 0x00060404
  13632. #define GPIO_PG1_EPI0S14 0x00060408
  13633. #define GPIO_PG2_PWM0 0x00060801
  13634. #define GPIO_PG2_FAULT0 0x00060804
  13635. #define GPIO_PG2_IDX1 0x00060808
  13636. #define GPIO_PG2_I2S0RXSD 0x00060809
  13637. #define GPIO_PG3_PWM1 0x00060C01
  13638. #define GPIO_PG3_FAULT2 0x00060C04
  13639. #define GPIO_PG3_FAULT0 0x00060C08
  13640. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  13641. #define GPIO_PG4_CCP3 0x00061001
  13642. #define GPIO_PG4_FAULT1 0x00061004
  13643. #define GPIO_PG4_EPI0S15 0x00061008
  13644. #define GPIO_PG4_PWM6 0x00061009
  13645. #define GPIO_PG4_U1RI 0x0006100A
  13646. #define GPIO_PG5_CCP5 0x00061401
  13647. #define GPIO_PG5_IDX0 0x00061404
  13648. #define GPIO_PG5_FAULT1 0x00061405
  13649. #define GPIO_PG5_PWM7 0x00061408
  13650. #define GPIO_PG5_I2S0RXSCK 0x00061409
  13651. #define GPIO_PG5_U1DTR 0x0006140A
  13652. #define GPIO_PG6_PHA1 0x00061801
  13653. #define GPIO_PG6_PWM6 0x00061804
  13654. #define GPIO_PG6_FAULT1 0x00061808
  13655. #define GPIO_PG6_I2S0RXWS 0x00061809
  13656. #define GPIO_PG6_U1RI 0x0006180A
  13657. #define GPIO_PG7_PHB1 0x00061C01
  13658. #define GPIO_PG7_PWM7 0x00061C04
  13659. #define GPIO_PG7_CCP5 0x00061C08
  13660. #define GPIO_PG7_EPI0S31 0x00061C09
  13661. #define GPIO_PH0_CCP6 0x00070001
  13662. #define GPIO_PH0_PWM2 0x00070002
  13663. #define GPIO_PH0_EPI0S6 0x00070008
  13664. #define GPIO_PH0_PWM4 0x00070009
  13665. #define GPIO_PH1_CCP7 0x00070401
  13666. #define GPIO_PH1_PWM3 0x00070402
  13667. #define GPIO_PH1_EPI0S7 0x00070408
  13668. #define GPIO_PH1_PWM5 0x00070409
  13669. #define GPIO_PH2_IDX1 0x00070801
  13670. #define GPIO_PH2_C1O 0x00070802
  13671. #define GPIO_PH2_FAULT3 0x00070804
  13672. #define GPIO_PH2_EPI0S1 0x00070808
  13673. #define GPIO_PH3_PHB0 0x00070C01
  13674. #define GPIO_PH3_FAULT0 0x00070C02
  13675. #define GPIO_PH3_EPI0S0 0x00070C08
  13676. #define GPIO_PH4_EPI0S10 0x00071008
  13677. #define GPIO_PH4_SSI1CLK 0x0007100B
  13678. #define GPIO_PH5_EPI0S11 0x00071408
  13679. #define GPIO_PH5_FAULT2 0x0007140A
  13680. #define GPIO_PH5_SSI1FSS 0x0007140B
  13681. #define GPIO_PH6_EPI0S26 0x00071808
  13682. #define GPIO_PH6_PWM4 0x0007180A
  13683. #define GPIO_PH6_SSI1RX 0x0007180B
  13684. #define GPIO_PH7_EPI0S27 0x00071C08
  13685. #define GPIO_PH7_PWM5 0x00071C0A
  13686. #define GPIO_PH7_SSI1TX 0x00071C0B
  13687. #define GPIO_PJ0_EPI0S16 0x00080008
  13688. #define GPIO_PJ0_PWM0 0x0008000A
  13689. #define GPIO_PJ0_I2C1SCL 0x0008000B
  13690. #define GPIO_PJ1_EPI0S17 0x00080408
  13691. #define GPIO_PJ1_PWM1 0x0008040A
  13692. #define GPIO_PJ1_I2C1SDA 0x0008040B
  13693. #define GPIO_PJ2_EPI0S18 0x00080808
  13694. #define GPIO_PJ2_CCP0 0x00080809
  13695. #define GPIO_PJ2_FAULT0 0x0008080A
  13696. #endif // PART_LM3S2B93
  13697. //*****************************************************************************
  13698. //
  13699. // LM3S2D93 Port/Pin Mapping Definitions
  13700. //
  13701. //*****************************************************************************
  13702. #ifdef PART_LM3S2D93
  13703. #define GPIO_PA0_U0RX 0x00000001
  13704. #define GPIO_PA0_I2C1SCL 0x00000008
  13705. #define GPIO_PA0_U1RX 0x00000009
  13706. #define GPIO_PA1_U0TX 0x00000401
  13707. #define GPIO_PA1_I2C1SDA 0x00000408
  13708. #define GPIO_PA1_U1TX 0x00000409
  13709. #define GPIO_PA2_SSI0CLK 0x00000801
  13710. #define GPIO_PA2_PWM4 0x00000804
  13711. #define GPIO_PA2_I2S0RXSD 0x00000809
  13712. #define GPIO_PA3_SSI0FSS 0x00000C01
  13713. #define GPIO_PA3_PWM5 0x00000C04
  13714. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  13715. #define GPIO_PA4_SSI0RX 0x00001001
  13716. #define GPIO_PA4_PWM6 0x00001004
  13717. #define GPIO_PA4_CAN0RX 0x00001005
  13718. #define GPIO_PA4_I2S0TXSCK 0x00001009
  13719. #define GPIO_PA5_SSI0TX 0x00001401
  13720. #define GPIO_PA5_PWM7 0x00001404
  13721. #define GPIO_PA5_CAN0TX 0x00001405
  13722. #define GPIO_PA5_I2S0TXWS 0x00001409
  13723. #define GPIO_PA6_I2C1SCL 0x00001801
  13724. #define GPIO_PA6_CCP1 0x00001802
  13725. #define GPIO_PA6_PWM0 0x00001804
  13726. #define GPIO_PA6_PWM4 0x00001805
  13727. #define GPIO_PA6_CAN0RX 0x00001806
  13728. #define GPIO_PA6_U1CTS 0x00001809
  13729. #define GPIO_PA7_I2C1SDA 0x00001C01
  13730. #define GPIO_PA7_CCP4 0x00001C02
  13731. #define GPIO_PA7_PWM1 0x00001C04
  13732. #define GPIO_PA7_PWM5 0x00001C05
  13733. #define GPIO_PA7_CAN0TX 0x00001C06
  13734. #define GPIO_PA7_CCP3 0x00001C07
  13735. #define GPIO_PA7_U1DCD 0x00001C09
  13736. #define GPIO_PB0_CCP0 0x00010001
  13737. #define GPIO_PB0_PWM2 0x00010002
  13738. #define GPIO_PB0_U1RX 0x00010005
  13739. #define GPIO_PB1_CCP2 0x00010401
  13740. #define GPIO_PB1_PWM3 0x00010402
  13741. #define GPIO_PB1_CCP1 0x00010404
  13742. #define GPIO_PB1_U1TX 0x00010405
  13743. #define GPIO_PB2_I2C0SCL 0x00010801
  13744. #define GPIO_PB2_IDX0 0x00010802
  13745. #define GPIO_PB2_CCP3 0x00010804
  13746. #define GPIO_PB2_CCP0 0x00010805
  13747. #define GPIO_PB3_I2C0SDA 0x00010C01
  13748. #define GPIO_PB3_FAULT0 0x00010C02
  13749. #define GPIO_PB3_FAULT3 0x00010C04
  13750. #define GPIO_PB4_U2RX 0x00011004
  13751. #define GPIO_PB4_CAN0RX 0x00011005
  13752. #define GPIO_PB4_IDX0 0x00011006
  13753. #define GPIO_PB4_U1RX 0x00011007
  13754. #define GPIO_PB4_EPI0S23 0x00011008
  13755. #define GPIO_PB5_C0O 0x00011401
  13756. #define GPIO_PB5_CCP5 0x00011402
  13757. #define GPIO_PB5_CCP6 0x00011403
  13758. #define GPIO_PB5_CCP0 0x00011404
  13759. #define GPIO_PB5_CAN0TX 0x00011405
  13760. #define GPIO_PB5_CCP2 0x00011406
  13761. #define GPIO_PB5_U1TX 0x00011407
  13762. #define GPIO_PB5_EPI0S22 0x00011408
  13763. #define GPIO_PB6_CCP1 0x00011801
  13764. #define GPIO_PB6_CCP7 0x00011802
  13765. #define GPIO_PB6_C0O 0x00011803
  13766. #define GPIO_PB6_FAULT1 0x00011804
  13767. #define GPIO_PB6_IDX0 0x00011805
  13768. #define GPIO_PB6_CCP5 0x00011806
  13769. #define GPIO_PB6_I2S0TXSCK 0x00011809
  13770. #define GPIO_PB7_NMI 0x00011C04
  13771. #define GPIO_PC0_TCK 0x00020003
  13772. #define GPIO_PC0_SWCLK 0x00020003
  13773. #define GPIO_PC1_TMS 0x00020403
  13774. #define GPIO_PC1_SWDIO 0x00020403
  13775. #define GPIO_PC2_TDI 0x00020803
  13776. #define GPIO_PC3_SWO 0x00020C03
  13777. #define GPIO_PC3_TDO 0x00020C03
  13778. #define GPIO_PC4_CCP5 0x00021001
  13779. #define GPIO_PC4_PHA0 0x00021002
  13780. #define GPIO_PC4_PWM6 0x00021004
  13781. #define GPIO_PC4_CCP2 0x00021005
  13782. #define GPIO_PC4_CCP4 0x00021006
  13783. #define GPIO_PC4_EPI0S2 0x00021008
  13784. #define GPIO_PC4_CCP1 0x00021009
  13785. #define GPIO_PC5_CCP1 0x00021401
  13786. #define GPIO_PC5_C1O 0x00021402
  13787. #define GPIO_PC5_C0O 0x00021403
  13788. #define GPIO_PC5_FAULT2 0x00021404
  13789. #define GPIO_PC5_CCP3 0x00021405
  13790. #define GPIO_PC5_EPI0S3 0x00021408
  13791. #define GPIO_PC6_CCP3 0x00021801
  13792. #define GPIO_PC6_PHB0 0x00021802
  13793. #define GPIO_PC6_C2O 0x00021803
  13794. #define GPIO_PC6_PWM7 0x00021804
  13795. #define GPIO_PC6_U1RX 0x00021805
  13796. #define GPIO_PC6_CCP0 0x00021806
  13797. #define GPIO_PC6_EPI0S4 0x00021808
  13798. #define GPIO_PC7_CCP4 0x00021C01
  13799. #define GPIO_PC7_PHB0 0x00021C02
  13800. #define GPIO_PC7_CCP0 0x00021C04
  13801. #define GPIO_PC7_U1TX 0x00021C05
  13802. #define GPIO_PC7_C1O 0x00021C07
  13803. #define GPIO_PC7_EPI0S5 0x00021C08
  13804. #define GPIO_PD0_PWM0 0x00030001
  13805. #define GPIO_PD0_CAN0RX 0x00030002
  13806. #define GPIO_PD0_IDX0 0x00030003
  13807. #define GPIO_PD0_U2RX 0x00030004
  13808. #define GPIO_PD0_U1RX 0x00030005
  13809. #define GPIO_PD0_CCP6 0x00030006
  13810. #define GPIO_PD0_I2S0RXSCK 0x00030008
  13811. #define GPIO_PD0_U1CTS 0x00030009
  13812. #define GPIO_PD1_PWM1 0x00030401
  13813. #define GPIO_PD1_CAN0TX 0x00030402
  13814. #define GPIO_PD1_PHA0 0x00030403
  13815. #define GPIO_PD1_U2TX 0x00030404
  13816. #define GPIO_PD1_U1TX 0x00030405
  13817. #define GPIO_PD1_CCP7 0x00030406
  13818. #define GPIO_PD1_I2S0RXWS 0x00030408
  13819. #define GPIO_PD1_U1DCD 0x00030409
  13820. #define GPIO_PD1_CCP2 0x0003040A
  13821. #define GPIO_PD1_PHB1 0x0003040B
  13822. #define GPIO_PD2_U1RX 0x00030801
  13823. #define GPIO_PD2_CCP6 0x00030802
  13824. #define GPIO_PD2_PWM2 0x00030803
  13825. #define GPIO_PD2_CCP5 0x00030804
  13826. #define GPIO_PD2_EPI0S20 0x00030808
  13827. #define GPIO_PD3_U1TX 0x00030C01
  13828. #define GPIO_PD3_CCP7 0x00030C02
  13829. #define GPIO_PD3_PWM3 0x00030C03
  13830. #define GPIO_PD3_CCP0 0x00030C04
  13831. #define GPIO_PD3_EPI0S21 0x00030C08
  13832. #define GPIO_PD4_CCP0 0x00031001
  13833. #define GPIO_PD4_CCP3 0x00031002
  13834. #define GPIO_PD4_I2S0RXSD 0x00031008
  13835. #define GPIO_PD4_U1RI 0x00031009
  13836. #define GPIO_PD4_EPI0S19 0x0003100A
  13837. #define GPIO_PD5_CCP2 0x00031401
  13838. #define GPIO_PD5_CCP4 0x00031402
  13839. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  13840. #define GPIO_PD5_U2RX 0x00031409
  13841. #define GPIO_PD5_EPI0S28 0x0003140A
  13842. #define GPIO_PD6_FAULT0 0x00031801
  13843. #define GPIO_PD6_I2S0TXSCK 0x00031808
  13844. #define GPIO_PD6_U2TX 0x00031809
  13845. #define GPIO_PD6_EPI0S29 0x0003180A
  13846. #define GPIO_PD7_IDX0 0x00031C01
  13847. #define GPIO_PD7_C0O 0x00031C02
  13848. #define GPIO_PD7_CCP1 0x00031C03
  13849. #define GPIO_PD7_I2S0TXWS 0x00031C08
  13850. #define GPIO_PD7_U1DTR 0x00031C09
  13851. #define GPIO_PD7_EPI0S30 0x00031C0A
  13852. #define GPIO_PE0_PWM4 0x00040001
  13853. #define GPIO_PE0_SSI1CLK 0x00040002
  13854. #define GPIO_PE0_CCP3 0x00040003
  13855. #define GPIO_PE0_EPI0S8 0x00040008
  13856. #define GPIO_PE1_PWM5 0x00040401
  13857. #define GPIO_PE1_SSI1FSS 0x00040402
  13858. #define GPIO_PE1_FAULT0 0x00040403
  13859. #define GPIO_PE1_CCP2 0x00040404
  13860. #define GPIO_PE1_CCP6 0x00040405
  13861. #define GPIO_PE1_EPI0S9 0x00040408
  13862. #define GPIO_PE2_CCP4 0x00040801
  13863. #define GPIO_PE2_SSI1RX 0x00040802
  13864. #define GPIO_PE2_PHB1 0x00040803
  13865. #define GPIO_PE2_PHA0 0x00040804
  13866. #define GPIO_PE2_CCP2 0x00040805
  13867. #define GPIO_PE2_EPI0S24 0x00040808
  13868. #define GPIO_PE3_CCP1 0x00040C01
  13869. #define GPIO_PE3_SSI1TX 0x00040C02
  13870. #define GPIO_PE3_PHA1 0x00040C03
  13871. #define GPIO_PE3_PHB0 0x00040C04
  13872. #define GPIO_PE3_CCP7 0x00040C05
  13873. #define GPIO_PE3_EPI0S25 0x00040C08
  13874. #define GPIO_PE4_CCP3 0x00041001
  13875. #define GPIO_PE4_FAULT0 0x00041004
  13876. #define GPIO_PE4_U2TX 0x00041005
  13877. #define GPIO_PE4_CCP2 0x00041006
  13878. #define GPIO_PE4_I2S0TXWS 0x00041009
  13879. #define GPIO_PE5_CCP5 0x00041401
  13880. #define GPIO_PE5_I2S0TXSD 0x00041409
  13881. #define GPIO_PE6_PWM4 0x00041801
  13882. #define GPIO_PE6_C1O 0x00041802
  13883. #define GPIO_PE6_U1CTS 0x00041809
  13884. #define GPIO_PE7_PWM5 0x00041C01
  13885. #define GPIO_PE7_C2O 0x00041C02
  13886. #define GPIO_PE7_U1DCD 0x00041C09
  13887. #define GPIO_PF0_CAN1RX 0x00050001
  13888. #define GPIO_PF0_PHB0 0x00050002
  13889. #define GPIO_PF0_PWM0 0x00050003
  13890. #define GPIO_PF0_I2S0TXSD 0x00050008
  13891. #define GPIO_PF0_U1DSR 0x00050009
  13892. #define GPIO_PF1_CAN1TX 0x00050401
  13893. #define GPIO_PF1_IDX1 0x00050402
  13894. #define GPIO_PF1_PWM1 0x00050403
  13895. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  13896. #define GPIO_PF1_U1RTS 0x00050409
  13897. #define GPIO_PF1_CCP3 0x0005040A
  13898. #define GPIO_PF2_PWM4 0x00050802
  13899. #define GPIO_PF2_PWM2 0x00050804
  13900. #define GPIO_PF2_SSI1CLK 0x00050809
  13901. #define GPIO_PF3_PWM5 0x00050C02
  13902. #define GPIO_PF3_PWM3 0x00050C04
  13903. #define GPIO_PF3_SSI1FSS 0x00050C09
  13904. #define GPIO_PF4_CCP0 0x00051001
  13905. #define GPIO_PF4_C0O 0x00051002
  13906. #define GPIO_PF4_FAULT0 0x00051004
  13907. #define GPIO_PF4_EPI0S12 0x00051008
  13908. #define GPIO_PF4_SSI1RX 0x00051009
  13909. #define GPIO_PF5_CCP2 0x00051401
  13910. #define GPIO_PF5_C1O 0x00051402
  13911. #define GPIO_PF5_EPI0S15 0x00051408
  13912. #define GPIO_PF5_SSI1TX 0x00051409
  13913. #define GPIO_PF6_CCP1 0x00051801
  13914. #define GPIO_PF6_C2O 0x00051802
  13915. #define GPIO_PF6_PHA0 0x00051804
  13916. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  13917. #define GPIO_PF6_U1RTS 0x0005180A
  13918. #define GPIO_PF7_CCP4 0x00051C01
  13919. #define GPIO_PF7_PHB0 0x00051C04
  13920. #define GPIO_PF7_EPI0S12 0x00051C08
  13921. #define GPIO_PF7_FAULT1 0x00051C09
  13922. #define GPIO_PG0_U2RX 0x00060001
  13923. #define GPIO_PG0_PWM0 0x00060002
  13924. #define GPIO_PG0_I2C1SCL 0x00060003
  13925. #define GPIO_PG0_PWM4 0x00060004
  13926. #define GPIO_PG0_EPI0S13 0x00060008
  13927. #define GPIO_PG1_U2TX 0x00060401
  13928. #define GPIO_PG1_PWM1 0x00060402
  13929. #define GPIO_PG1_I2C1SDA 0x00060403
  13930. #define GPIO_PG1_PWM5 0x00060404
  13931. #define GPIO_PG1_EPI0S14 0x00060408
  13932. #define GPIO_PG2_PWM0 0x00060801
  13933. #define GPIO_PG2_FAULT0 0x00060804
  13934. #define GPIO_PG2_IDX1 0x00060808
  13935. #define GPIO_PG2_I2S0RXSD 0x00060809
  13936. #define GPIO_PG3_PWM1 0x00060C01
  13937. #define GPIO_PG3_FAULT2 0x00060C04
  13938. #define GPIO_PG3_FAULT0 0x00060C08
  13939. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  13940. #define GPIO_PG4_CCP3 0x00061001
  13941. #define GPIO_PG4_FAULT1 0x00061004
  13942. #define GPIO_PG4_EPI0S15 0x00061008
  13943. #define GPIO_PG4_PWM6 0x00061009
  13944. #define GPIO_PG4_U1RI 0x0006100A
  13945. #define GPIO_PG5_CCP5 0x00061401
  13946. #define GPIO_PG5_IDX0 0x00061404
  13947. #define GPIO_PG5_FAULT1 0x00061405
  13948. #define GPIO_PG5_PWM7 0x00061408
  13949. #define GPIO_PG5_I2S0RXSCK 0x00061409
  13950. #define GPIO_PG5_U1DTR 0x0006140A
  13951. #define GPIO_PG6_PHA1 0x00061801
  13952. #define GPIO_PG6_PWM6 0x00061804
  13953. #define GPIO_PG6_FAULT1 0x00061808
  13954. #define GPIO_PG6_I2S0RXWS 0x00061809
  13955. #define GPIO_PG6_U1RI 0x0006180A
  13956. #define GPIO_PG7_PHB1 0x00061C01
  13957. #define GPIO_PG7_PWM7 0x00061C04
  13958. #define GPIO_PG7_CCP5 0x00061C08
  13959. #define GPIO_PG7_EPI0S31 0x00061C09
  13960. #define GPIO_PH0_CCP6 0x00070001
  13961. #define GPIO_PH0_PWM2 0x00070002
  13962. #define GPIO_PH0_EPI0S6 0x00070008
  13963. #define GPIO_PH0_PWM4 0x00070009
  13964. #define GPIO_PH1_CCP7 0x00070401
  13965. #define GPIO_PH1_PWM3 0x00070402
  13966. #define GPIO_PH1_EPI0S7 0x00070408
  13967. #define GPIO_PH1_PWM5 0x00070409
  13968. #define GPIO_PH2_IDX1 0x00070801
  13969. #define GPIO_PH2_C1O 0x00070802
  13970. #define GPIO_PH2_FAULT3 0x00070804
  13971. #define GPIO_PH2_EPI0S1 0x00070808
  13972. #define GPIO_PH3_PHB0 0x00070C01
  13973. #define GPIO_PH3_FAULT0 0x00070C02
  13974. #define GPIO_PH3_EPI0S0 0x00070C08
  13975. #define GPIO_PH4_EPI0S10 0x00071008
  13976. #define GPIO_PH4_SSI1CLK 0x0007100B
  13977. #define GPIO_PH5_EPI0S11 0x00071408
  13978. #define GPIO_PH5_FAULT2 0x0007140A
  13979. #define GPIO_PH5_SSI1FSS 0x0007140B
  13980. #define GPIO_PH6_EPI0S26 0x00071808
  13981. #define GPIO_PH6_PWM4 0x0007180A
  13982. #define GPIO_PH6_SSI1RX 0x0007180B
  13983. #define GPIO_PH7_EPI0S27 0x00071C08
  13984. #define GPIO_PH7_PWM5 0x00071C0A
  13985. #define GPIO_PH7_SSI1TX 0x00071C0B
  13986. #define GPIO_PJ0_EPI0S16 0x00080008
  13987. #define GPIO_PJ0_PWM0 0x0008000A
  13988. #define GPIO_PJ0_I2C1SCL 0x0008000B
  13989. #define GPIO_PJ1_EPI0S17 0x00080408
  13990. #define GPIO_PJ1_PWM1 0x0008040A
  13991. #define GPIO_PJ1_I2C1SDA 0x0008040B
  13992. #define GPIO_PJ2_EPI0S18 0x00080808
  13993. #define GPIO_PJ2_CCP0 0x00080809
  13994. #define GPIO_PJ2_FAULT0 0x0008080A
  13995. #endif // PART_LM3S2D93
  13996. //*****************************************************************************
  13997. //
  13998. // LM3S2U93 Port/Pin Mapping Definitions
  13999. //
  14000. //*****************************************************************************
  14001. #ifdef PART_LM3S2U93
  14002. #define GPIO_PA0_U0RX 0x00000001
  14003. #define GPIO_PA0_I2C1SCL 0x00000008
  14004. #define GPIO_PA0_U1RX 0x00000009
  14005. #define GPIO_PA1_U0TX 0x00000401
  14006. #define GPIO_PA1_I2C1SDA 0x00000408
  14007. #define GPIO_PA1_U1TX 0x00000409
  14008. #define GPIO_PA2_SSI0CLK 0x00000801
  14009. #define GPIO_PA2_PWM4 0x00000804
  14010. #define GPIO_PA2_I2S0RXSD 0x00000809
  14011. #define GPIO_PA3_SSI0FSS 0x00000C01
  14012. #define GPIO_PA3_PWM5 0x00000C04
  14013. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  14014. #define GPIO_PA4_SSI0RX 0x00001001
  14015. #define GPIO_PA4_PWM6 0x00001004
  14016. #define GPIO_PA4_CAN0RX 0x00001005
  14017. #define GPIO_PA4_I2S0TXSCK 0x00001009
  14018. #define GPIO_PA5_SSI0TX 0x00001401
  14019. #define GPIO_PA5_PWM7 0x00001404
  14020. #define GPIO_PA5_CAN0TX 0x00001405
  14021. #define GPIO_PA5_I2S0TXWS 0x00001409
  14022. #define GPIO_PA6_I2C1SCL 0x00001801
  14023. #define GPIO_PA6_CCP1 0x00001802
  14024. #define GPIO_PA6_PWM0 0x00001804
  14025. #define GPIO_PA6_PWM4 0x00001805
  14026. #define GPIO_PA6_CAN0RX 0x00001806
  14027. #define GPIO_PA6_U1CTS 0x00001809
  14028. #define GPIO_PA7_I2C1SDA 0x00001C01
  14029. #define GPIO_PA7_CCP4 0x00001C02
  14030. #define GPIO_PA7_PWM1 0x00001C04
  14031. #define GPIO_PA7_PWM5 0x00001C05
  14032. #define GPIO_PA7_CAN0TX 0x00001C06
  14033. #define GPIO_PA7_CCP3 0x00001C07
  14034. #define GPIO_PA7_U1DCD 0x00001C09
  14035. #define GPIO_PB0_CCP0 0x00010001
  14036. #define GPIO_PB0_PWM2 0x00010002
  14037. #define GPIO_PB0_U1RX 0x00010005
  14038. #define GPIO_PB1_CCP2 0x00010401
  14039. #define GPIO_PB1_PWM3 0x00010402
  14040. #define GPIO_PB1_CCP1 0x00010404
  14041. #define GPIO_PB1_U1TX 0x00010405
  14042. #define GPIO_PB2_I2C0SCL 0x00010801
  14043. #define GPIO_PB2_IDX0 0x00010802
  14044. #define GPIO_PB2_CCP3 0x00010804
  14045. #define GPIO_PB2_CCP0 0x00010805
  14046. #define GPIO_PB3_I2C0SDA 0x00010C01
  14047. #define GPIO_PB3_FAULT0 0x00010C02
  14048. #define GPIO_PB3_FAULT3 0x00010C04
  14049. #define GPIO_PB4_U2RX 0x00011004
  14050. #define GPIO_PB4_CAN0RX 0x00011005
  14051. #define GPIO_PB4_IDX0 0x00011006
  14052. #define GPIO_PB4_U1RX 0x00011007
  14053. #define GPIO_PB4_EPI0S23 0x00011008
  14054. #define GPIO_PB5_C0O 0x00011401
  14055. #define GPIO_PB5_CCP5 0x00011402
  14056. #define GPIO_PB5_CCP6 0x00011403
  14057. #define GPIO_PB5_CCP0 0x00011404
  14058. #define GPIO_PB5_CAN0TX 0x00011405
  14059. #define GPIO_PB5_CCP2 0x00011406
  14060. #define GPIO_PB5_U1TX 0x00011407
  14061. #define GPIO_PB5_EPI0S22 0x00011408
  14062. #define GPIO_PB6_CCP1 0x00011801
  14063. #define GPIO_PB6_CCP7 0x00011802
  14064. #define GPIO_PB6_C0O 0x00011803
  14065. #define GPIO_PB6_FAULT1 0x00011804
  14066. #define GPIO_PB6_IDX0 0x00011805
  14067. #define GPIO_PB6_CCP5 0x00011806
  14068. #define GPIO_PB6_I2S0TXSCK 0x00011809
  14069. #define GPIO_PB7_NMI 0x00011C04
  14070. #define GPIO_PC0_TCK 0x00020003
  14071. #define GPIO_PC0_SWCLK 0x00020003
  14072. #define GPIO_PC1_TMS 0x00020403
  14073. #define GPIO_PC1_SWDIO 0x00020403
  14074. #define GPIO_PC2_TDI 0x00020803
  14075. #define GPIO_PC3_SWO 0x00020C03
  14076. #define GPIO_PC3_TDO 0x00020C03
  14077. #define GPIO_PC4_CCP5 0x00021001
  14078. #define GPIO_PC4_PHA0 0x00021002
  14079. #define GPIO_PC4_PWM6 0x00021004
  14080. #define GPIO_PC4_CCP2 0x00021005
  14081. #define GPIO_PC4_CCP4 0x00021006
  14082. #define GPIO_PC4_EPI0S2 0x00021008
  14083. #define GPIO_PC4_CCP1 0x00021009
  14084. #define GPIO_PC5_CCP1 0x00021401
  14085. #define GPIO_PC5_C1O 0x00021402
  14086. #define GPIO_PC5_C0O 0x00021403
  14087. #define GPIO_PC5_FAULT2 0x00021404
  14088. #define GPIO_PC5_CCP3 0x00021405
  14089. #define GPIO_PC5_EPI0S3 0x00021408
  14090. #define GPIO_PC6_CCP3 0x00021801
  14091. #define GPIO_PC6_PHB0 0x00021802
  14092. #define GPIO_PC6_C2O 0x00021803
  14093. #define GPIO_PC6_PWM7 0x00021804
  14094. #define GPIO_PC6_U1RX 0x00021805
  14095. #define GPIO_PC6_CCP0 0x00021806
  14096. #define GPIO_PC6_EPI0S4 0x00021808
  14097. #define GPIO_PC7_CCP4 0x00021C01
  14098. #define GPIO_PC7_PHB0 0x00021C02
  14099. #define GPIO_PC7_CCP0 0x00021C04
  14100. #define GPIO_PC7_U1TX 0x00021C05
  14101. #define GPIO_PC7_C1O 0x00021C07
  14102. #define GPIO_PC7_EPI0S5 0x00021C08
  14103. #define GPIO_PD0_PWM0 0x00030001
  14104. #define GPIO_PD0_CAN0RX 0x00030002
  14105. #define GPIO_PD0_IDX0 0x00030003
  14106. #define GPIO_PD0_U2RX 0x00030004
  14107. #define GPIO_PD0_U1RX 0x00030005
  14108. #define GPIO_PD0_CCP6 0x00030006
  14109. #define GPIO_PD0_I2S0RXSCK 0x00030008
  14110. #define GPIO_PD0_U1CTS 0x00030009
  14111. #define GPIO_PD1_PWM1 0x00030401
  14112. #define GPIO_PD1_CAN0TX 0x00030402
  14113. #define GPIO_PD1_PHA0 0x00030403
  14114. #define GPIO_PD1_U2TX 0x00030404
  14115. #define GPIO_PD1_U1TX 0x00030405
  14116. #define GPIO_PD1_CCP7 0x00030406
  14117. #define GPIO_PD1_I2S0RXWS 0x00030408
  14118. #define GPIO_PD1_U1DCD 0x00030409
  14119. #define GPIO_PD1_CCP2 0x0003040A
  14120. #define GPIO_PD1_PHB1 0x0003040B
  14121. #define GPIO_PD2_U1RX 0x00030801
  14122. #define GPIO_PD2_CCP6 0x00030802
  14123. #define GPIO_PD2_PWM2 0x00030803
  14124. #define GPIO_PD2_CCP5 0x00030804
  14125. #define GPIO_PD2_EPI0S20 0x00030808
  14126. #define GPIO_PD3_U1TX 0x00030C01
  14127. #define GPIO_PD3_CCP7 0x00030C02
  14128. #define GPIO_PD3_PWM3 0x00030C03
  14129. #define GPIO_PD3_CCP0 0x00030C04
  14130. #define GPIO_PD3_EPI0S21 0x00030C08
  14131. #define GPIO_PD4_CCP0 0x00031001
  14132. #define GPIO_PD4_CCP3 0x00031002
  14133. #define GPIO_PD4_I2S0RXSD 0x00031008
  14134. #define GPIO_PD4_U1RI 0x00031009
  14135. #define GPIO_PD4_EPI0S19 0x0003100A
  14136. #define GPIO_PD5_CCP2 0x00031401
  14137. #define GPIO_PD5_CCP4 0x00031402
  14138. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  14139. #define GPIO_PD5_U2RX 0x00031409
  14140. #define GPIO_PD5_EPI0S28 0x0003140A
  14141. #define GPIO_PD6_FAULT0 0x00031801
  14142. #define GPIO_PD6_I2S0TXSCK 0x00031808
  14143. #define GPIO_PD6_U2TX 0x00031809
  14144. #define GPIO_PD6_EPI0S29 0x0003180A
  14145. #define GPIO_PD7_IDX0 0x00031C01
  14146. #define GPIO_PD7_C0O 0x00031C02
  14147. #define GPIO_PD7_CCP1 0x00031C03
  14148. #define GPIO_PD7_I2S0TXWS 0x00031C08
  14149. #define GPIO_PD7_U1DTR 0x00031C09
  14150. #define GPIO_PD7_EPI0S30 0x00031C0A
  14151. #define GPIO_PE0_PWM4 0x00040001
  14152. #define GPIO_PE0_SSI1CLK 0x00040002
  14153. #define GPIO_PE0_CCP3 0x00040003
  14154. #define GPIO_PE0_EPI0S8 0x00040008
  14155. #define GPIO_PE1_PWM5 0x00040401
  14156. #define GPIO_PE1_SSI1FSS 0x00040402
  14157. #define GPIO_PE1_FAULT0 0x00040403
  14158. #define GPIO_PE1_CCP2 0x00040404
  14159. #define GPIO_PE1_CCP6 0x00040405
  14160. #define GPIO_PE1_EPI0S9 0x00040408
  14161. #define GPIO_PE2_CCP4 0x00040801
  14162. #define GPIO_PE2_SSI1RX 0x00040802
  14163. #define GPIO_PE2_PHB1 0x00040803
  14164. #define GPIO_PE2_PHA0 0x00040804
  14165. #define GPIO_PE2_CCP2 0x00040805
  14166. #define GPIO_PE2_EPI0S24 0x00040808
  14167. #define GPIO_PE3_CCP1 0x00040C01
  14168. #define GPIO_PE3_SSI1TX 0x00040C02
  14169. #define GPIO_PE3_PHA1 0x00040C03
  14170. #define GPIO_PE3_PHB0 0x00040C04
  14171. #define GPIO_PE3_CCP7 0x00040C05
  14172. #define GPIO_PE3_EPI0S25 0x00040C08
  14173. #define GPIO_PE4_CCP3 0x00041001
  14174. #define GPIO_PE4_FAULT0 0x00041004
  14175. #define GPIO_PE4_U2TX 0x00041005
  14176. #define GPIO_PE4_CCP2 0x00041006
  14177. #define GPIO_PE4_I2S0TXWS 0x00041009
  14178. #define GPIO_PE5_CCP5 0x00041401
  14179. #define GPIO_PE5_I2S0TXSD 0x00041409
  14180. #define GPIO_PE6_PWM4 0x00041801
  14181. #define GPIO_PE6_C1O 0x00041802
  14182. #define GPIO_PE6_U1CTS 0x00041809
  14183. #define GPIO_PE7_PWM5 0x00041C01
  14184. #define GPIO_PE7_C2O 0x00041C02
  14185. #define GPIO_PE7_U1DCD 0x00041C09
  14186. #define GPIO_PF0_CAN1RX 0x00050001
  14187. #define GPIO_PF0_PHB0 0x00050002
  14188. #define GPIO_PF0_PWM0 0x00050003
  14189. #define GPIO_PF0_I2S0TXSD 0x00050008
  14190. #define GPIO_PF0_U1DSR 0x00050009
  14191. #define GPIO_PF1_CAN1TX 0x00050401
  14192. #define GPIO_PF1_IDX1 0x00050402
  14193. #define GPIO_PF1_PWM1 0x00050403
  14194. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  14195. #define GPIO_PF1_U1RTS 0x00050409
  14196. #define GPIO_PF1_CCP3 0x0005040A
  14197. #define GPIO_PF2_PWM4 0x00050802
  14198. #define GPIO_PF2_PWM2 0x00050804
  14199. #define GPIO_PF2_SSI1CLK 0x00050809
  14200. #define GPIO_PF3_PWM5 0x00050C02
  14201. #define GPIO_PF3_PWM3 0x00050C04
  14202. #define GPIO_PF3_SSI1FSS 0x00050C09
  14203. #define GPIO_PF4_CCP0 0x00051001
  14204. #define GPIO_PF4_C0O 0x00051002
  14205. #define GPIO_PF4_FAULT0 0x00051004
  14206. #define GPIO_PF4_EPI0S12 0x00051008
  14207. #define GPIO_PF4_SSI1RX 0x00051009
  14208. #define GPIO_PF5_CCP2 0x00051401
  14209. #define GPIO_PF5_C1O 0x00051402
  14210. #define GPIO_PF5_EPI0S15 0x00051408
  14211. #define GPIO_PF5_SSI1TX 0x00051409
  14212. #define GPIO_PF6_CCP1 0x00051801
  14213. #define GPIO_PF6_C2O 0x00051802
  14214. #define GPIO_PF6_PHA0 0x00051804
  14215. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  14216. #define GPIO_PF6_U1RTS 0x0005180A
  14217. #define GPIO_PF7_CCP4 0x00051C01
  14218. #define GPIO_PF7_PHB0 0x00051C04
  14219. #define GPIO_PF7_EPI0S12 0x00051C08
  14220. #define GPIO_PF7_FAULT1 0x00051C09
  14221. #define GPIO_PG0_U2RX 0x00060001
  14222. #define GPIO_PG0_PWM0 0x00060002
  14223. #define GPIO_PG0_I2C1SCL 0x00060003
  14224. #define GPIO_PG0_PWM4 0x00060004
  14225. #define GPIO_PG0_EPI0S13 0x00060008
  14226. #define GPIO_PG1_U2TX 0x00060401
  14227. #define GPIO_PG1_PWM1 0x00060402
  14228. #define GPIO_PG1_I2C1SDA 0x00060403
  14229. #define GPIO_PG1_PWM5 0x00060404
  14230. #define GPIO_PG1_EPI0S14 0x00060408
  14231. #define GPIO_PG2_PWM0 0x00060801
  14232. #define GPIO_PG2_FAULT0 0x00060804
  14233. #define GPIO_PG2_IDX1 0x00060808
  14234. #define GPIO_PG2_I2S0RXSD 0x00060809
  14235. #define GPIO_PG3_PWM1 0x00060C01
  14236. #define GPIO_PG3_FAULT2 0x00060C04
  14237. #define GPIO_PG3_FAULT0 0x00060C08
  14238. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  14239. #define GPIO_PG4_CCP3 0x00061001
  14240. #define GPIO_PG4_FAULT1 0x00061004
  14241. #define GPIO_PG4_EPI0S15 0x00061008
  14242. #define GPIO_PG4_PWM6 0x00061009
  14243. #define GPIO_PG4_U1RI 0x0006100A
  14244. #define GPIO_PG5_CCP5 0x00061401
  14245. #define GPIO_PG5_IDX0 0x00061404
  14246. #define GPIO_PG5_FAULT1 0x00061405
  14247. #define GPIO_PG5_PWM7 0x00061408
  14248. #define GPIO_PG5_I2S0RXSCK 0x00061409
  14249. #define GPIO_PG5_U1DTR 0x0006140A
  14250. #define GPIO_PG6_PHA1 0x00061801
  14251. #define GPIO_PG6_PWM6 0x00061804
  14252. #define GPIO_PG6_FAULT1 0x00061808
  14253. #define GPIO_PG6_I2S0RXWS 0x00061809
  14254. #define GPIO_PG6_U1RI 0x0006180A
  14255. #define GPIO_PG7_PHB1 0x00061C01
  14256. #define GPIO_PG7_PWM7 0x00061C04
  14257. #define GPIO_PG7_CCP5 0x00061C08
  14258. #define GPIO_PG7_EPI0S31 0x00061C09
  14259. #define GPIO_PH0_CCP6 0x00070001
  14260. #define GPIO_PH0_PWM2 0x00070002
  14261. #define GPIO_PH0_EPI0S6 0x00070008
  14262. #define GPIO_PH0_PWM4 0x00070009
  14263. #define GPIO_PH1_CCP7 0x00070401
  14264. #define GPIO_PH1_PWM3 0x00070402
  14265. #define GPIO_PH1_EPI0S7 0x00070408
  14266. #define GPIO_PH1_PWM5 0x00070409
  14267. #define GPIO_PH2_IDX1 0x00070801
  14268. #define GPIO_PH2_C1O 0x00070802
  14269. #define GPIO_PH2_FAULT3 0x00070804
  14270. #define GPIO_PH2_EPI0S1 0x00070808
  14271. #define GPIO_PH3_PHB0 0x00070C01
  14272. #define GPIO_PH3_FAULT0 0x00070C02
  14273. #define GPIO_PH3_EPI0S0 0x00070C08
  14274. #define GPIO_PH4_EPI0S10 0x00071008
  14275. #define GPIO_PH4_SSI1CLK 0x0007100B
  14276. #define GPIO_PH5_EPI0S11 0x00071408
  14277. #define GPIO_PH5_FAULT2 0x0007140A
  14278. #define GPIO_PH5_SSI1FSS 0x0007140B
  14279. #define GPIO_PH6_EPI0S26 0x00071808
  14280. #define GPIO_PH6_PWM4 0x0007180A
  14281. #define GPIO_PH6_SSI1RX 0x0007180B
  14282. #define GPIO_PH7_EPI0S27 0x00071C08
  14283. #define GPIO_PH7_PWM5 0x00071C0A
  14284. #define GPIO_PH7_SSI1TX 0x00071C0B
  14285. #define GPIO_PJ0_EPI0S16 0x00080008
  14286. #define GPIO_PJ0_PWM0 0x0008000A
  14287. #define GPIO_PJ0_I2C1SCL 0x0008000B
  14288. #define GPIO_PJ1_EPI0S17 0x00080408
  14289. #define GPIO_PJ1_PWM1 0x0008040A
  14290. #define GPIO_PJ1_I2C1SDA 0x0008040B
  14291. #define GPIO_PJ2_EPI0S18 0x00080808
  14292. #define GPIO_PJ2_CCP0 0x00080809
  14293. #define GPIO_PJ2_FAULT0 0x0008080A
  14294. #endif // PART_LM3S2U93
  14295. //*****************************************************************************
  14296. //
  14297. // LM3S3634 Port/Pin Mapping Definitions
  14298. //
  14299. //*****************************************************************************
  14300. #ifdef PART_LM3S3634
  14301. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  14302. #define ADC0_PORT GPIO_PORTE_BASE
  14303. #define ADC0_PIN GPIO_PIN_3
  14304. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  14305. #define ADC1_PORT GPIO_PORTE_BASE
  14306. #define ADC1_PIN GPIO_PIN_2
  14307. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  14308. #define ADC2_PORT GPIO_PORTE_BASE
  14309. #define ADC2_PIN GPIO_PIN_1
  14310. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  14311. #define ADC3_PORT GPIO_PORTE_BASE
  14312. #define ADC3_PIN GPIO_PIN_0
  14313. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  14314. #define ADC4_PORT GPIO_PORTD_BASE
  14315. #define ADC4_PIN GPIO_PIN_3
  14316. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  14317. #define ADC5_PORT GPIO_PORTD_BASE
  14318. #define ADC5_PIN GPIO_PIN_2
  14319. #define ADC6_PERIPH SYSCTL_PERIPH_GPIOD
  14320. #define ADC6_PORT GPIO_PORTD_BASE
  14321. #define ADC6_PIN GPIO_PIN_1
  14322. #define ADC7_PERIPH SYSCTL_PERIPH_GPIOD
  14323. #define ADC7_PORT GPIO_PORTD_BASE
  14324. #define ADC7_PIN GPIO_PIN_0
  14325. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  14326. #define CCP0_PORT GPIO_PORTB_BASE
  14327. #define CCP0_PIN GPIO_PIN_5
  14328. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  14329. #define CCP1_PORT GPIO_PORTB_BASE
  14330. #define CCP1_PIN GPIO_PIN_6
  14331. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  14332. #define CCP2_PORT GPIO_PORTC_BASE
  14333. #define CCP2_PIN GPIO_PIN_4
  14334. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  14335. #define CCP3_PORT GPIO_PORTE_BASE
  14336. #define CCP3_PIN GPIO_PIN_4
  14337. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  14338. #define CCP4_PORT GPIO_PORTC_BASE
  14339. #define CCP4_PIN GPIO_PIN_7
  14340. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  14341. #define I2C0SCL_PORT GPIO_PORTB_BASE
  14342. #define I2C0SCL_PIN GPIO_PIN_2
  14343. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  14344. #define I2C0SDA_PORT GPIO_PORTB_BASE
  14345. #define I2C0SDA_PIN GPIO_PIN_3
  14346. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  14347. #define I2C1SCL_PORT GPIO_PORTA_BASE
  14348. #define I2C1SCL_PIN GPIO_PIN_6
  14349. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  14350. #define I2C1SDA_PORT GPIO_PORTA_BASE
  14351. #define I2C1SDA_PIN GPIO_PIN_7
  14352. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  14353. #define NMI_PORT GPIO_PORTB_BASE
  14354. #define NMI_PIN GPIO_PIN_7
  14355. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  14356. #define SSI0CLK_PORT GPIO_PORTA_BASE
  14357. #define SSI0CLK_PIN GPIO_PIN_2
  14358. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  14359. #define SSI0FSS_PORT GPIO_PORTA_BASE
  14360. #define SSI0FSS_PIN GPIO_PIN_3
  14361. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  14362. #define SSI0RX_PORT GPIO_PORTA_BASE
  14363. #define SSI0RX_PIN GPIO_PIN_4
  14364. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  14365. #define SSI0TX_PORT GPIO_PORTA_BASE
  14366. #define SSI0TX_PIN GPIO_PIN_5
  14367. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  14368. #define SWCLK_PORT GPIO_PORTC_BASE
  14369. #define SWCLK_PIN GPIO_PIN_0
  14370. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  14371. #define SWDIO_PORT GPIO_PORTC_BASE
  14372. #define SWDIO_PIN GPIO_PIN_1
  14373. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  14374. #define SWO_PORT GPIO_PORTC_BASE
  14375. #define SWO_PIN GPIO_PIN_3
  14376. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  14377. #define TCK_PORT GPIO_PORTC_BASE
  14378. #define TCK_PIN GPIO_PIN_0
  14379. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  14380. #define TDI_PORT GPIO_PORTC_BASE
  14381. #define TDI_PIN GPIO_PIN_2
  14382. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  14383. #define TDO_PORT GPIO_PORTC_BASE
  14384. #define TDO_PIN GPIO_PIN_3
  14385. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  14386. #define TMS_PORT GPIO_PORTC_BASE
  14387. #define TMS_PIN GPIO_PIN_1
  14388. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  14389. #define U0RX_PORT GPIO_PORTA_BASE
  14390. #define U0RX_PIN GPIO_PIN_0
  14391. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  14392. #define U0TX_PORT GPIO_PORTA_BASE
  14393. #define U0TX_PIN GPIO_PIN_1
  14394. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOB
  14395. #define U1RX_PORT GPIO_PORTB_BASE
  14396. #define U1RX_PIN GPIO_PIN_0
  14397. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOB
  14398. #define U1TX_PORT GPIO_PORTB_BASE
  14399. #define U1TX_PIN GPIO_PIN_1
  14400. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOC
  14401. #define USB0EPEN_PORT GPIO_PORTC_BASE
  14402. #define USB0EPEN_PIN GPIO_PIN_5
  14403. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOC
  14404. #define USB0PFLT_PORT GPIO_PORTC_BASE
  14405. #define USB0PFLT_PIN GPIO_PIN_6
  14406. #endif // PART_LM3S3634
  14407. //*****************************************************************************
  14408. //
  14409. // LM3S3651 Port/Pin Mapping Definitions
  14410. //
  14411. //*****************************************************************************
  14412. #ifdef PART_LM3S3651
  14413. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  14414. #define ADC0_PORT GPIO_PORTE_BASE
  14415. #define ADC0_PIN GPIO_PIN_3
  14416. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  14417. #define ADC1_PORT GPIO_PORTE_BASE
  14418. #define ADC1_PIN GPIO_PIN_2
  14419. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  14420. #define ADC2_PORT GPIO_PORTE_BASE
  14421. #define ADC2_PIN GPIO_PIN_1
  14422. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  14423. #define ADC3_PORT GPIO_PORTE_BASE
  14424. #define ADC3_PIN GPIO_PIN_0
  14425. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  14426. #define C0O_PORT GPIO_PORTB_BASE
  14427. #define C0O_PIN GPIO_PIN_6
  14428. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  14429. #define C0_MINUS_PORT GPIO_PORTB_BASE
  14430. #define C0_MINUS_PIN GPIO_PIN_4
  14431. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  14432. #define C0_PLUS_PORT GPIO_PORTB_BASE
  14433. #define C0_PLUS_PIN GPIO_PIN_6
  14434. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  14435. #define C1_MINUS_PORT GPIO_PORTB_BASE
  14436. #define C1_MINUS_PIN GPIO_PIN_5
  14437. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  14438. #define C1_PLUS_PORT GPIO_PORTC_BASE
  14439. #define C1_PLUS_PIN GPIO_PIN_7
  14440. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  14441. #define CCP0_PORT GPIO_PORTD_BASE
  14442. #define CCP0_PIN GPIO_PIN_3
  14443. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  14444. #define CCP1_PORT GPIO_PORTA_BASE
  14445. #define CCP1_PIN GPIO_PIN_6
  14446. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  14447. #define CCP2_PORT GPIO_PORTC_BASE
  14448. #define CCP2_PIN GPIO_PIN_4
  14449. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  14450. #define CCP3_PORT GPIO_PORTE_BASE
  14451. #define CCP3_PIN GPIO_PIN_4
  14452. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  14453. #define CCP4_PORT GPIO_PORTA_BASE
  14454. #define CCP4_PIN GPIO_PIN_7
  14455. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOD
  14456. #define CCP5_PORT GPIO_PORTD_BASE
  14457. #define CCP5_PIN GPIO_PIN_2
  14458. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOD
  14459. #define CCP6_PORT GPIO_PORTD_BASE
  14460. #define CCP6_PIN GPIO_PIN_0
  14461. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOD
  14462. #define CCP7_PORT GPIO_PORTD_BASE
  14463. #define CCP7_PIN GPIO_PIN_1
  14464. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  14465. #define I2C0SCL_PORT GPIO_PORTB_BASE
  14466. #define I2C0SCL_PIN GPIO_PIN_2
  14467. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  14468. #define I2C0SDA_PORT GPIO_PORTB_BASE
  14469. #define I2C0SDA_PIN GPIO_PIN_3
  14470. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  14471. #define NMI_PORT GPIO_PORTB_BASE
  14472. #define NMI_PIN GPIO_PIN_7
  14473. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  14474. #define SSI0CLK_PORT GPIO_PORTA_BASE
  14475. #define SSI0CLK_PIN GPIO_PIN_2
  14476. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  14477. #define SSI0FSS_PORT GPIO_PORTA_BASE
  14478. #define SSI0FSS_PIN GPIO_PIN_3
  14479. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  14480. #define SSI0RX_PORT GPIO_PORTA_BASE
  14481. #define SSI0RX_PIN GPIO_PIN_4
  14482. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  14483. #define SSI0TX_PORT GPIO_PORTA_BASE
  14484. #define SSI0TX_PIN GPIO_PIN_5
  14485. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  14486. #define SWCLK_PORT GPIO_PORTC_BASE
  14487. #define SWCLK_PIN GPIO_PIN_0
  14488. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  14489. #define SWDIO_PORT GPIO_PORTC_BASE
  14490. #define SWDIO_PIN GPIO_PIN_1
  14491. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  14492. #define SWO_PORT GPIO_PORTC_BASE
  14493. #define SWO_PIN GPIO_PIN_3
  14494. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  14495. #define TCK_PORT GPIO_PORTC_BASE
  14496. #define TCK_PIN GPIO_PIN_0
  14497. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  14498. #define TDI_PORT GPIO_PORTC_BASE
  14499. #define TDI_PIN GPIO_PIN_2
  14500. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  14501. #define TDO_PORT GPIO_PORTC_BASE
  14502. #define TDO_PIN GPIO_PIN_3
  14503. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  14504. #define TMS_PORT GPIO_PORTC_BASE
  14505. #define TMS_PIN GPIO_PIN_1
  14506. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  14507. #define U0RX_PORT GPIO_PORTA_BASE
  14508. #define U0RX_PIN GPIO_PIN_0
  14509. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  14510. #define U0TX_PORT GPIO_PORTA_BASE
  14511. #define U0TX_PIN GPIO_PIN_1
  14512. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOC
  14513. #define USB0EPEN_PORT GPIO_PORTC_BASE
  14514. #define USB0EPEN_PIN GPIO_PIN_5
  14515. #define USB0ID_PERIPH SYSCTL_PERIPH_GPIOB
  14516. #define USB0ID_PORT GPIO_PORTB_BASE
  14517. #define USB0ID_PIN GPIO_PIN_0
  14518. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOC
  14519. #define USB0PFLT_PORT GPIO_PORTC_BASE
  14520. #define USB0PFLT_PIN GPIO_PIN_6
  14521. #define USB0VBUS_PERIPH SYSCTL_PERIPH_GPIOB
  14522. #define USB0VBUS_PORT GPIO_PORTB_BASE
  14523. #define USB0VBUS_PIN GPIO_PIN_1
  14524. #endif // PART_LM3S3651
  14525. //*****************************************************************************
  14526. //
  14527. // LM3S3654 Port/Pin Mapping Definitions
  14528. //
  14529. //*****************************************************************************
  14530. #ifdef PART_LM3S3654
  14531. #define GPIO_PA0_U0RX 0x00000001
  14532. #define GPIO_PA1_U0TX 0x00000401
  14533. #define GPIO_PA2_SSI0CLK 0x00000801
  14534. #define GPIO_PA3_SSI0FSS 0x00000C01
  14535. #define GPIO_PA4_SSI0RX 0x00001001
  14536. #define GPIO_PA5_SSI0TX 0x00001401
  14537. #define GPIO_PA6_CCP1 0x00001802
  14538. #define GPIO_PA6_USB0EPEN 0x00001808
  14539. #define GPIO_PA7_CCP4 0x00001C02
  14540. #define GPIO_PA7_CCP3 0x00001C07
  14541. #define GPIO_PA7_USB0PFLT 0x00001C08
  14542. #define GPIO_PB0_CCP0 0x00010001
  14543. #define GPIO_PB1_CCP2 0x00010401
  14544. #define GPIO_PB1_CCP1 0x00010404
  14545. #define GPIO_PB2_I2C0SCL 0x00010801
  14546. #define GPIO_PB2_CCP3 0x00010804
  14547. #define GPIO_PB2_CCP0 0x00010805
  14548. #define GPIO_PB2_USB0EPEN 0x00010808
  14549. #define GPIO_PB3_I2C0SDA 0x00010C01
  14550. #define GPIO_PB3_USB0PFLT 0x00010C08
  14551. #define GPIO_PB5_C0O 0x00011401
  14552. #define GPIO_PB5_CCP5 0x00011402
  14553. #define GPIO_PB5_CCP6 0x00011403
  14554. #define GPIO_PB5_CCP0 0x00011404
  14555. #define GPIO_PB5_CCP2 0x00011406
  14556. #define GPIO_PB6_CCP1 0x00011801
  14557. #define GPIO_PB6_CCP7 0x00011802
  14558. #define GPIO_PB6_C0O 0x00011803
  14559. #define GPIO_PB6_CCP5 0x00011806
  14560. #define GPIO_PB7_NMI 0x00011C04
  14561. #define GPIO_PC0_TCK 0x00020003
  14562. #define GPIO_PC0_SWCLK 0x00020003
  14563. #define GPIO_PC1_TMS 0x00020403
  14564. #define GPIO_PC1_SWDIO 0x00020403
  14565. #define GPIO_PC2_TDI 0x00020803
  14566. #define GPIO_PC3_SWO 0x00020C03
  14567. #define GPIO_PC3_TDO 0x00020C03
  14568. #define GPIO_PC4_CCP5 0x00021001
  14569. #define GPIO_PC4_CCP2 0x00021005
  14570. #define GPIO_PC4_CCP4 0x00021006
  14571. #define GPIO_PC4_CCP1 0x00021009
  14572. #define GPIO_PC5_CCP1 0x00021401
  14573. #define GPIO_PC5_C1O 0x00021402
  14574. #define GPIO_PC5_C0O 0x00021403
  14575. #define GPIO_PC5_CCP3 0x00021405
  14576. #define GPIO_PC5_USB0EPEN 0x00021406
  14577. #define GPIO_PC6_CCP3 0x00021801
  14578. #define GPIO_PC6_CCP0 0x00021806
  14579. #define GPIO_PC6_USB0PFLT 0x00021807
  14580. #define GPIO_PC7_CCP4 0x00021C01
  14581. #define GPIO_PC7_CCP0 0x00021C04
  14582. #define GPIO_PC7_USB0PFLT 0x00021C06
  14583. #define GPIO_PC7_C1O 0x00021C07
  14584. #define GPIO_PD0_CCP6 0x00030006
  14585. #define GPIO_PD1_CCP7 0x00030406
  14586. #define GPIO_PD1_CCP2 0x0003040A
  14587. #define GPIO_PD2_CCP6 0x00030802
  14588. #define GPIO_PD2_CCP5 0x00030804
  14589. #define GPIO_PD3_CCP7 0x00030C02
  14590. #define GPIO_PD3_CCP0 0x00030C04
  14591. #define GPIO_PE0_CCP3 0x00040003
  14592. #define GPIO_PE0_USB0PFLT 0x00040009
  14593. #define GPIO_PE1_CCP2 0x00040404
  14594. #define GPIO_PE1_CCP6 0x00040405
  14595. #define GPIO_PE2_CCP4 0x00040801
  14596. #define GPIO_PE2_CCP2 0x00040805
  14597. #define GPIO_PE3_CCP1 0x00040C01
  14598. #define GPIO_PE3_CCP7 0x00040C05
  14599. #define GPIO_PE4_CCP3 0x00041001
  14600. #define GPIO_PE4_CCP2 0x00041006
  14601. #endif // PART_LM3S3654
  14602. //*****************************************************************************
  14603. //
  14604. // LM3S3739 Port/Pin Mapping Definitions
  14605. //
  14606. //*****************************************************************************
  14607. #ifdef PART_LM3S3739
  14608. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  14609. #define ADC0_PORT GPIO_PORTE_BASE
  14610. #define ADC0_PIN GPIO_PIN_7
  14611. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  14612. #define ADC1_PORT GPIO_PORTE_BASE
  14613. #define ADC1_PIN GPIO_PIN_6
  14614. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  14615. #define ADC2_PORT GPIO_PORTE_BASE
  14616. #define ADC2_PIN GPIO_PIN_5
  14617. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  14618. #define ADC3_PORT GPIO_PORTE_BASE
  14619. #define ADC3_PIN GPIO_PIN_4
  14620. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  14621. #define ADC4_PORT GPIO_PORTD_BASE
  14622. #define ADC4_PIN GPIO_PIN_7
  14623. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  14624. #define ADC5_PORT GPIO_PORTD_BASE
  14625. #define ADC5_PIN GPIO_PIN_6
  14626. #define ADC6_PERIPH SYSCTL_PERIPH_GPIOD
  14627. #define ADC6_PORT GPIO_PORTD_BASE
  14628. #define ADC6_PIN GPIO_PIN_5
  14629. #define ADC7_PERIPH SYSCTL_PERIPH_GPIOD
  14630. #define ADC7_PORT GPIO_PORTD_BASE
  14631. #define ADC7_PIN GPIO_PIN_4
  14632. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  14633. #define C0O_PORT GPIO_PORTF_BASE
  14634. #define C0O_PIN GPIO_PIN_4
  14635. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  14636. #define C0_MINUS_PORT GPIO_PORTB_BASE
  14637. #define C0_MINUS_PIN GPIO_PIN_4
  14638. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  14639. #define C0_PLUS_PORT GPIO_PORTB_BASE
  14640. #define C0_PLUS_PIN GPIO_PIN_6
  14641. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  14642. #define C1O_PORT GPIO_PORTF_BASE
  14643. #define C1O_PIN GPIO_PIN_5
  14644. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  14645. #define C1_MINUS_PORT GPIO_PORTB_BASE
  14646. #define C1_MINUS_PIN GPIO_PIN_5
  14647. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  14648. #define C1_PLUS_PORT GPIO_PORTC_BASE
  14649. #define C1_PLUS_PIN GPIO_PIN_5
  14650. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOC
  14651. #define CCP0_PORT GPIO_PORTC_BASE
  14652. #define CCP0_PIN GPIO_PIN_6
  14653. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOF
  14654. #define CCP1_PORT GPIO_PORTF_BASE
  14655. #define CCP1_PIN GPIO_PIN_6
  14656. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  14657. #define CCP2_PORT GPIO_PORTC_BASE
  14658. #define CCP2_PIN GPIO_PIN_4
  14659. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOG
  14660. #define CCP3_PORT GPIO_PORTG_BASE
  14661. #define CCP3_PIN GPIO_PIN_4
  14662. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  14663. #define CCP4_PORT GPIO_PORTC_BASE
  14664. #define CCP4_PIN GPIO_PIN_7
  14665. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOD
  14666. #define CCP5_PORT GPIO_PORTD_BASE
  14667. #define CCP5_PIN GPIO_PIN_2
  14668. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  14669. #define CCP6_PORT GPIO_PORTH_BASE
  14670. #define CCP6_PIN GPIO_PIN_0
  14671. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOD
  14672. #define CCP7_PORT GPIO_PORTD_BASE
  14673. #define CCP7_PIN GPIO_PIN_3
  14674. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  14675. #define I2C0SCL_PORT GPIO_PORTB_BASE
  14676. #define I2C0SCL_PIN GPIO_PIN_2
  14677. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  14678. #define I2C0SDA_PORT GPIO_PORTB_BASE
  14679. #define I2C0SDA_PIN GPIO_PIN_3
  14680. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  14681. #define I2C1SCL_PORT GPIO_PORTA_BASE
  14682. #define I2C1SCL_PIN GPIO_PIN_6
  14683. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  14684. #define I2C1SDA_PORT GPIO_PORTA_BASE
  14685. #define I2C1SDA_PIN GPIO_PIN_7
  14686. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  14687. #define NMI_PORT GPIO_PORTB_BASE
  14688. #define NMI_PIN GPIO_PIN_7
  14689. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  14690. #define SSI0CLK_PORT GPIO_PORTA_BASE
  14691. #define SSI0CLK_PIN GPIO_PIN_2
  14692. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  14693. #define SSI0FSS_PORT GPIO_PORTA_BASE
  14694. #define SSI0FSS_PIN GPIO_PIN_3
  14695. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  14696. #define SSI0RX_PORT GPIO_PORTA_BASE
  14697. #define SSI0RX_PIN GPIO_PIN_4
  14698. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  14699. #define SSI0TX_PORT GPIO_PORTA_BASE
  14700. #define SSI0TX_PIN GPIO_PIN_5
  14701. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  14702. #define SSI1CLK_PORT GPIO_PORTE_BASE
  14703. #define SSI1CLK_PIN GPIO_PIN_0
  14704. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  14705. #define SSI1FSS_PORT GPIO_PORTE_BASE
  14706. #define SSI1FSS_PIN GPIO_PIN_1
  14707. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  14708. #define SSI1RX_PORT GPIO_PORTE_BASE
  14709. #define SSI1RX_PIN GPIO_PIN_2
  14710. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  14711. #define SSI1TX_PORT GPIO_PORTE_BASE
  14712. #define SSI1TX_PIN GPIO_PIN_3
  14713. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  14714. #define SWCLK_PORT GPIO_PORTC_BASE
  14715. #define SWCLK_PIN GPIO_PIN_0
  14716. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  14717. #define SWDIO_PORT GPIO_PORTC_BASE
  14718. #define SWDIO_PIN GPIO_PIN_1
  14719. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  14720. #define SWO_PORT GPIO_PORTC_BASE
  14721. #define SWO_PIN GPIO_PIN_3
  14722. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  14723. #define TCK_PORT GPIO_PORTC_BASE
  14724. #define TCK_PIN GPIO_PIN_0
  14725. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  14726. #define TDI_PORT GPIO_PORTC_BASE
  14727. #define TDI_PIN GPIO_PIN_2
  14728. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  14729. #define TDO_PORT GPIO_PORTC_BASE
  14730. #define TDO_PIN GPIO_PIN_3
  14731. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  14732. #define TMS_PORT GPIO_PORTC_BASE
  14733. #define TMS_PIN GPIO_PIN_1
  14734. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  14735. #define U0RX_PORT GPIO_PORTA_BASE
  14736. #define U0RX_PIN GPIO_PIN_0
  14737. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  14738. #define U0TX_PORT GPIO_PORTA_BASE
  14739. #define U0TX_PIN GPIO_PIN_1
  14740. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOB
  14741. #define U1RX_PORT GPIO_PORTB_BASE
  14742. #define U1RX_PIN GPIO_PIN_0
  14743. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOB
  14744. #define U1TX_PORT GPIO_PORTB_BASE
  14745. #define U1TX_PIN GPIO_PIN_1
  14746. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOD
  14747. #define U2RX_PORT GPIO_PORTD_BASE
  14748. #define U2RX_PIN GPIO_PIN_0
  14749. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOD
  14750. #define U2TX_PORT GPIO_PORTD_BASE
  14751. #define U2TX_PIN GPIO_PIN_1
  14752. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOH
  14753. #define USB0EPEN_PORT GPIO_PORTH_BASE
  14754. #define USB0EPEN_PIN GPIO_PIN_3
  14755. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOH
  14756. #define USB0PFLT_PORT GPIO_PORTH_BASE
  14757. #define USB0PFLT_PIN GPIO_PIN_4
  14758. #endif // PART_LM3S3739
  14759. //*****************************************************************************
  14760. //
  14761. // LM3S3748 Port/Pin Mapping Definitions
  14762. //
  14763. //*****************************************************************************
  14764. #ifdef PART_LM3S3748
  14765. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  14766. #define ADC0_PORT GPIO_PORTE_BASE
  14767. #define ADC0_PIN GPIO_PIN_7
  14768. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  14769. #define ADC1_PORT GPIO_PORTE_BASE
  14770. #define ADC1_PIN GPIO_PIN_6
  14771. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  14772. #define ADC2_PORT GPIO_PORTE_BASE
  14773. #define ADC2_PIN GPIO_PIN_5
  14774. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  14775. #define ADC3_PORT GPIO_PORTE_BASE
  14776. #define ADC3_PIN GPIO_PIN_4
  14777. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  14778. #define ADC4_PORT GPIO_PORTD_BASE
  14779. #define ADC4_PIN GPIO_PIN_7
  14780. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  14781. #define ADC5_PORT GPIO_PORTD_BASE
  14782. #define ADC5_PIN GPIO_PIN_6
  14783. #define ADC6_PERIPH SYSCTL_PERIPH_GPIOD
  14784. #define ADC6_PORT GPIO_PORTD_BASE
  14785. #define ADC6_PIN GPIO_PIN_5
  14786. #define ADC7_PERIPH SYSCTL_PERIPH_GPIOD
  14787. #define ADC7_PORT GPIO_PORTD_BASE
  14788. #define ADC7_PIN GPIO_PIN_4
  14789. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  14790. #define C0_MINUS_PORT GPIO_PORTB_BASE
  14791. #define C0_MINUS_PIN GPIO_PIN_4
  14792. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  14793. #define C0_PLUS_PORT GPIO_PORTB_BASE
  14794. #define C0_PLUS_PIN GPIO_PIN_6
  14795. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  14796. #define C1_MINUS_PORT GPIO_PORTB_BASE
  14797. #define C1_MINUS_PIN GPIO_PIN_5
  14798. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  14799. #define C1_PLUS_PORT GPIO_PORTC_BASE
  14800. #define C1_PLUS_PIN GPIO_PIN_5
  14801. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  14802. #define CCP0_PORT GPIO_PORTD_BASE
  14803. #define CCP0_PIN GPIO_PIN_3
  14804. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOF
  14805. #define CCP1_PORT GPIO_PORTF_BASE
  14806. #define CCP1_PIN GPIO_PIN_6
  14807. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOF
  14808. #define CCP2_PORT GPIO_PORTF_BASE
  14809. #define CCP2_PIN GPIO_PIN_5
  14810. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOG
  14811. #define CCP3_PORT GPIO_PORTG_BASE
  14812. #define CCP3_PIN GPIO_PIN_4
  14813. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  14814. #define CCP4_PORT GPIO_PORTC_BASE
  14815. #define CCP4_PIN GPIO_PIN_4
  14816. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOD
  14817. #define CCP5_PORT GPIO_PORTD_BASE
  14818. #define CCP5_PIN GPIO_PIN_2
  14819. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  14820. #define CCP6_PORT GPIO_PORTH_BASE
  14821. #define CCP6_PIN GPIO_PIN_0
  14822. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOH
  14823. #define CCP7_PORT GPIO_PORTH_BASE
  14824. #define CCP7_PIN GPIO_PIN_1
  14825. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOF
  14826. #define FAULT0_PORT GPIO_PORTF_BASE
  14827. #define FAULT0_PIN GPIO_PIN_4
  14828. #define FAULT1_PERIPH SYSCTL_PERIPH_GPIOG
  14829. #define FAULT1_PORT GPIO_PORTG_BASE
  14830. #define FAULT1_PIN GPIO_PIN_5
  14831. #define FAULT2_PERIPH SYSCTL_PERIPH_GPIOG
  14832. #define FAULT2_PORT GPIO_PORTG_BASE
  14833. #define FAULT2_PIN GPIO_PIN_3
  14834. #define FAULT3_PERIPH SYSCTL_PERIPH_GPIOH
  14835. #define FAULT3_PORT GPIO_PORTH_BASE
  14836. #define FAULT3_PIN GPIO_PIN_2
  14837. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  14838. #define I2C0SCL_PORT GPIO_PORTB_BASE
  14839. #define I2C0SCL_PIN GPIO_PIN_2
  14840. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  14841. #define I2C0SDA_PORT GPIO_PORTB_BASE
  14842. #define I2C0SDA_PIN GPIO_PIN_3
  14843. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  14844. #define I2C1SCL_PORT GPIO_PORTA_BASE
  14845. #define I2C1SCL_PIN GPIO_PIN_6
  14846. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  14847. #define I2C1SDA_PORT GPIO_PORTA_BASE
  14848. #define I2C1SDA_PIN GPIO_PIN_7
  14849. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  14850. #define IDX0_PORT GPIO_PORTD_BASE
  14851. #define IDX0_PIN GPIO_PIN_0
  14852. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  14853. #define NMI_PORT GPIO_PORTB_BASE
  14854. #define NMI_PIN GPIO_PIN_7
  14855. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOD
  14856. #define PHA0_PORT GPIO_PORTD_BASE
  14857. #define PHA0_PIN GPIO_PIN_1
  14858. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOF
  14859. #define PHB0_PORT GPIO_PORTF_BASE
  14860. #define PHB0_PIN GPIO_PIN_7
  14861. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  14862. #define PWM0_PORT GPIO_PORTF_BASE
  14863. #define PWM0_PIN GPIO_PIN_0
  14864. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  14865. #define PWM1_PORT GPIO_PORTF_BASE
  14866. #define PWM1_PIN GPIO_PIN_1
  14867. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOF
  14868. #define PWM2_PORT GPIO_PORTF_BASE
  14869. #define PWM2_PIN GPIO_PIN_2
  14870. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOF
  14871. #define PWM3_PORT GPIO_PORTF_BASE
  14872. #define PWM3_PIN GPIO_PIN_3
  14873. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOG
  14874. #define PWM4_PORT GPIO_PORTG_BASE
  14875. #define PWM4_PIN GPIO_PIN_0
  14876. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOG
  14877. #define PWM5_PORT GPIO_PORTG_BASE
  14878. #define PWM5_PIN GPIO_PIN_1
  14879. #define PWM6_PERIPH SYSCTL_PERIPH_GPIOG
  14880. #define PWM6_PORT GPIO_PORTG_BASE
  14881. #define PWM6_PIN GPIO_PIN_6
  14882. #define PWM7_PERIPH SYSCTL_PERIPH_GPIOG
  14883. #define PWM7_PORT GPIO_PORTG_BASE
  14884. #define PWM7_PIN GPIO_PIN_7
  14885. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  14886. #define SSI0CLK_PORT GPIO_PORTA_BASE
  14887. #define SSI0CLK_PIN GPIO_PIN_2
  14888. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  14889. #define SSI0FSS_PORT GPIO_PORTA_BASE
  14890. #define SSI0FSS_PIN GPIO_PIN_3
  14891. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  14892. #define SSI0RX_PORT GPIO_PORTA_BASE
  14893. #define SSI0RX_PIN GPIO_PIN_4
  14894. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  14895. #define SSI0TX_PORT GPIO_PORTA_BASE
  14896. #define SSI0TX_PIN GPIO_PIN_5
  14897. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  14898. #define SSI1CLK_PORT GPIO_PORTE_BASE
  14899. #define SSI1CLK_PIN GPIO_PIN_0
  14900. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  14901. #define SSI1FSS_PORT GPIO_PORTE_BASE
  14902. #define SSI1FSS_PIN GPIO_PIN_1
  14903. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  14904. #define SSI1RX_PORT GPIO_PORTE_BASE
  14905. #define SSI1RX_PIN GPIO_PIN_2
  14906. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  14907. #define SSI1TX_PORT GPIO_PORTE_BASE
  14908. #define SSI1TX_PIN GPIO_PIN_3
  14909. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  14910. #define SWCLK_PORT GPIO_PORTC_BASE
  14911. #define SWCLK_PIN GPIO_PIN_0
  14912. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  14913. #define SWDIO_PORT GPIO_PORTC_BASE
  14914. #define SWDIO_PIN GPIO_PIN_1
  14915. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  14916. #define SWO_PORT GPIO_PORTC_BASE
  14917. #define SWO_PIN GPIO_PIN_3
  14918. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  14919. #define TCK_PORT GPIO_PORTC_BASE
  14920. #define TCK_PIN GPIO_PIN_0
  14921. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  14922. #define TDI_PORT GPIO_PORTC_BASE
  14923. #define TDI_PIN GPIO_PIN_2
  14924. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  14925. #define TDO_PORT GPIO_PORTC_BASE
  14926. #define TDO_PIN GPIO_PIN_3
  14927. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  14928. #define TMS_PORT GPIO_PORTC_BASE
  14929. #define TMS_PIN GPIO_PIN_1
  14930. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  14931. #define U0RX_PORT GPIO_PORTA_BASE
  14932. #define U0RX_PIN GPIO_PIN_0
  14933. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  14934. #define U0TX_PORT GPIO_PORTA_BASE
  14935. #define U0TX_PIN GPIO_PIN_1
  14936. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOC
  14937. #define U1RX_PORT GPIO_PORTC_BASE
  14938. #define U1RX_PIN GPIO_PIN_6
  14939. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOC
  14940. #define U1TX_PORT GPIO_PORTC_BASE
  14941. #define U1TX_PIN GPIO_PIN_7
  14942. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOH
  14943. #define USB0EPEN_PORT GPIO_PORTH_BASE
  14944. #define USB0EPEN_PIN GPIO_PIN_3
  14945. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOH
  14946. #define USB0PFLT_PORT GPIO_PORTH_BASE
  14947. #define USB0PFLT_PIN GPIO_PIN_4
  14948. #endif // PART_LM3S3748
  14949. //*****************************************************************************
  14950. //
  14951. // LM3S3749 Port/Pin Mapping Definitions
  14952. //
  14953. //*****************************************************************************
  14954. #ifdef PART_LM3S3749
  14955. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  14956. #define ADC0_PORT GPIO_PORTE_BASE
  14957. #define ADC0_PIN GPIO_PIN_7
  14958. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  14959. #define ADC1_PORT GPIO_PORTE_BASE
  14960. #define ADC1_PIN GPIO_PIN_6
  14961. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  14962. #define ADC2_PORT GPIO_PORTE_BASE
  14963. #define ADC2_PIN GPIO_PIN_5
  14964. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  14965. #define ADC3_PORT GPIO_PORTE_BASE
  14966. #define ADC3_PIN GPIO_PIN_4
  14967. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  14968. #define ADC4_PORT GPIO_PORTD_BASE
  14969. #define ADC4_PIN GPIO_PIN_7
  14970. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  14971. #define ADC5_PORT GPIO_PORTD_BASE
  14972. #define ADC5_PIN GPIO_PIN_6
  14973. #define ADC6_PERIPH SYSCTL_PERIPH_GPIOD
  14974. #define ADC6_PORT GPIO_PORTD_BASE
  14975. #define ADC6_PIN GPIO_PIN_5
  14976. #define ADC7_PERIPH SYSCTL_PERIPH_GPIOD
  14977. #define ADC7_PORT GPIO_PORTD_BASE
  14978. #define ADC7_PIN GPIO_PIN_4
  14979. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  14980. #define C0O_PORT GPIO_PORTF_BASE
  14981. #define C0O_PIN GPIO_PIN_4
  14982. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  14983. #define C0_MINUS_PORT GPIO_PORTB_BASE
  14984. #define C0_MINUS_PIN GPIO_PIN_4
  14985. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  14986. #define C0_PLUS_PORT GPIO_PORTB_BASE
  14987. #define C0_PLUS_PIN GPIO_PIN_6
  14988. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  14989. #define C1O_PORT GPIO_PORTC_BASE
  14990. #define C1O_PIN GPIO_PIN_7
  14991. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  14992. #define C1_MINUS_PORT GPIO_PORTB_BASE
  14993. #define C1_MINUS_PIN GPIO_PIN_5
  14994. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  14995. #define C1_PLUS_PORT GPIO_PORTC_BASE
  14996. #define C1_PLUS_PIN GPIO_PIN_5
  14997. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  14998. #define CCP0_PORT GPIO_PORTD_BASE
  14999. #define CCP0_PIN GPIO_PIN_3
  15000. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  15001. #define CCP1_PORT GPIO_PORTA_BASE
  15002. #define CCP1_PIN GPIO_PIN_6
  15003. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOF
  15004. #define CCP2_PORT GPIO_PORTF_BASE
  15005. #define CCP2_PIN GPIO_PIN_5
  15006. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOA
  15007. #define CCP3_PORT GPIO_PORTA_BASE
  15008. #define CCP3_PIN GPIO_PIN_7
  15009. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOF
  15010. #define CCP4_PORT GPIO_PORTF_BASE
  15011. #define CCP4_PIN GPIO_PIN_7
  15012. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  15013. #define CCP5_PORT GPIO_PORTC_BASE
  15014. #define CCP5_PIN GPIO_PIN_4
  15015. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOD
  15016. #define CCP6_PORT GPIO_PORTD_BASE
  15017. #define CCP6_PIN GPIO_PIN_2
  15018. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOG
  15019. #define FAULT0_PORT GPIO_PORTG_BASE
  15020. #define FAULT0_PIN GPIO_PIN_2
  15021. #define FAULT1_PERIPH SYSCTL_PERIPH_GPIOG
  15022. #define FAULT1_PORT GPIO_PORTG_BASE
  15023. #define FAULT1_PIN GPIO_PIN_4
  15024. #define FAULT2_PERIPH SYSCTL_PERIPH_GPIOG
  15025. #define FAULT2_PORT GPIO_PORTG_BASE
  15026. #define FAULT2_PIN GPIO_PIN_3
  15027. #define FAULT3_PERIPH SYSCTL_PERIPH_GPIOH
  15028. #define FAULT3_PORT GPIO_PORTH_BASE
  15029. #define FAULT3_PIN GPIO_PIN_2
  15030. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  15031. #define I2C0SCL_PORT GPIO_PORTB_BASE
  15032. #define I2C0SCL_PIN GPIO_PIN_2
  15033. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  15034. #define I2C0SDA_PORT GPIO_PORTB_BASE
  15035. #define I2C0SDA_PIN GPIO_PIN_3
  15036. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOG
  15037. #define I2C1SCL_PORT GPIO_PORTG_BASE
  15038. #define I2C1SCL_PIN GPIO_PIN_0
  15039. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOG
  15040. #define I2C1SDA_PORT GPIO_PORTG_BASE
  15041. #define I2C1SDA_PIN GPIO_PIN_1
  15042. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOG
  15043. #define IDX0_PORT GPIO_PORTG_BASE
  15044. #define IDX0_PIN GPIO_PIN_5
  15045. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  15046. #define NMI_PORT GPIO_PORTB_BASE
  15047. #define NMI_PIN GPIO_PIN_7
  15048. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOF
  15049. #define PHA0_PORT GPIO_PORTF_BASE
  15050. #define PHA0_PIN GPIO_PIN_6
  15051. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  15052. #define PHB0_PORT GPIO_PORTC_BASE
  15053. #define PHB0_PIN GPIO_PIN_6
  15054. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  15055. #define PWM0_PORT GPIO_PORTF_BASE
  15056. #define PWM0_PIN GPIO_PIN_0
  15057. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  15058. #define PWM1_PORT GPIO_PORTF_BASE
  15059. #define PWM1_PIN GPIO_PIN_1
  15060. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  15061. #define PWM2_PORT GPIO_PORTH_BASE
  15062. #define PWM2_PIN GPIO_PIN_0
  15063. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  15064. #define PWM3_PORT GPIO_PORTH_BASE
  15065. #define PWM3_PIN GPIO_PIN_1
  15066. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOF
  15067. #define PWM4_PORT GPIO_PORTF_BASE
  15068. #define PWM4_PIN GPIO_PIN_2
  15069. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOF
  15070. #define PWM5_PORT GPIO_PORTF_BASE
  15071. #define PWM5_PIN GPIO_PIN_3
  15072. #define PWM6_PERIPH SYSCTL_PERIPH_GPIOG
  15073. #define PWM6_PORT GPIO_PORTG_BASE
  15074. #define PWM6_PIN GPIO_PIN_6
  15075. #define PWM7_PERIPH SYSCTL_PERIPH_GPIOG
  15076. #define PWM7_PORT GPIO_PORTG_BASE
  15077. #define PWM7_PIN GPIO_PIN_7
  15078. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  15079. #define SSI0CLK_PORT GPIO_PORTA_BASE
  15080. #define SSI0CLK_PIN GPIO_PIN_2
  15081. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  15082. #define SSI0FSS_PORT GPIO_PORTA_BASE
  15083. #define SSI0FSS_PIN GPIO_PIN_3
  15084. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  15085. #define SSI0RX_PORT GPIO_PORTA_BASE
  15086. #define SSI0RX_PIN GPIO_PIN_4
  15087. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  15088. #define SSI0TX_PORT GPIO_PORTA_BASE
  15089. #define SSI0TX_PIN GPIO_PIN_5
  15090. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  15091. #define SSI1CLK_PORT GPIO_PORTE_BASE
  15092. #define SSI1CLK_PIN GPIO_PIN_0
  15093. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  15094. #define SSI1FSS_PORT GPIO_PORTE_BASE
  15095. #define SSI1FSS_PIN GPIO_PIN_1
  15096. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  15097. #define SSI1RX_PORT GPIO_PORTE_BASE
  15098. #define SSI1RX_PIN GPIO_PIN_2
  15099. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  15100. #define SSI1TX_PORT GPIO_PORTE_BASE
  15101. #define SSI1TX_PIN GPIO_PIN_3
  15102. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  15103. #define SWCLK_PORT GPIO_PORTC_BASE
  15104. #define SWCLK_PIN GPIO_PIN_0
  15105. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  15106. #define SWDIO_PORT GPIO_PORTC_BASE
  15107. #define SWDIO_PIN GPIO_PIN_1
  15108. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  15109. #define SWO_PORT GPIO_PORTC_BASE
  15110. #define SWO_PIN GPIO_PIN_3
  15111. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  15112. #define TCK_PORT GPIO_PORTC_BASE
  15113. #define TCK_PIN GPIO_PIN_0
  15114. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  15115. #define TDI_PORT GPIO_PORTC_BASE
  15116. #define TDI_PIN GPIO_PIN_2
  15117. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  15118. #define TDO_PORT GPIO_PORTC_BASE
  15119. #define TDO_PIN GPIO_PIN_3
  15120. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  15121. #define TMS_PORT GPIO_PORTC_BASE
  15122. #define TMS_PIN GPIO_PIN_1
  15123. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  15124. #define U0RX_PORT GPIO_PORTA_BASE
  15125. #define U0RX_PIN GPIO_PIN_0
  15126. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  15127. #define U0TX_PORT GPIO_PORTA_BASE
  15128. #define U0TX_PIN GPIO_PIN_1
  15129. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOB
  15130. #define U1RX_PORT GPIO_PORTB_BASE
  15131. #define U1RX_PIN GPIO_PIN_0
  15132. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOB
  15133. #define U1TX_PORT GPIO_PORTB_BASE
  15134. #define U1TX_PIN GPIO_PIN_1
  15135. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOD
  15136. #define U2RX_PORT GPIO_PORTD_BASE
  15137. #define U2RX_PIN GPIO_PIN_0
  15138. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOD
  15139. #define U2TX_PORT GPIO_PORTD_BASE
  15140. #define U2TX_PIN GPIO_PIN_1
  15141. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOH
  15142. #define USB0EPEN_PORT GPIO_PORTH_BASE
  15143. #define USB0EPEN_PIN GPIO_PIN_3
  15144. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOH
  15145. #define USB0PFLT_PORT GPIO_PORTH_BASE
  15146. #define USB0PFLT_PIN GPIO_PIN_4
  15147. #endif // PART_LM3S3749
  15148. //*****************************************************************************
  15149. //
  15150. // LM3S3826 Port/Pin Mapping Definitions
  15151. //
  15152. //*****************************************************************************
  15153. #ifdef PART_LM3S3826
  15154. #define GPIO_PA0_U0RX 0x00000001
  15155. #define GPIO_PA0_I2C1SCL 0x00000008
  15156. #define GPIO_PA0_U1RX 0x00000009
  15157. #define GPIO_PA1_U0TX 0x00000401
  15158. #define GPIO_PA1_I2C1SDA 0x00000408
  15159. #define GPIO_PA1_U1TX 0x00000409
  15160. #define GPIO_PA2_SSI0CLK 0x00000801
  15161. #define GPIO_PA3_SSI0FSS 0x00000C01
  15162. #define GPIO_PA4_SSI0RX 0x00001001
  15163. #define GPIO_PA5_SSI0TX 0x00001401
  15164. #define GPIO_PA6_I2C1SCL 0x00001801
  15165. #define GPIO_PA6_CCP1 0x00001802
  15166. #define GPIO_PA7_I2C1SDA 0x00001C01
  15167. #define GPIO_PA7_CCP4 0x00001C02
  15168. #define GPIO_PA7_CCP3 0x00001C07
  15169. #define GPIO_PB0_CCP0 0x00010001
  15170. #define GPIO_PB0_U1RX 0x00010005
  15171. #define GPIO_PB1_CCP2 0x00010401
  15172. #define GPIO_PB1_CCP1 0x00010404
  15173. #define GPIO_PB1_U1TX 0x00010405
  15174. #define GPIO_PB2_I2C0SCL 0x00010801
  15175. #define GPIO_PB2_CCP3 0x00010804
  15176. #define GPIO_PB2_CCP0 0x00010805
  15177. #define GPIO_PB3_I2C0SDA 0x00010C01
  15178. #define GPIO_PB4_U2RX 0x00011004
  15179. #define GPIO_PB4_U1RX 0x00011007
  15180. #define GPIO_PB5_C0O 0x00011401
  15181. #define GPIO_PB5_CCP5 0x00011402
  15182. #define GPIO_PB5_CCP0 0x00011404
  15183. #define GPIO_PB5_CCP2 0x00011406
  15184. #define GPIO_PB5_U1TX 0x00011407
  15185. #define GPIO_PB6_CCP1 0x00011801
  15186. #define GPIO_PB6_C0O 0x00011803
  15187. #define GPIO_PB6_CCP5 0x00011806
  15188. #define GPIO_PB7_NMI 0x00011C04
  15189. #define GPIO_PC0_TCK 0x00020003
  15190. #define GPIO_PC0_SWCLK 0x00020003
  15191. #define GPIO_PC1_TMS 0x00020403
  15192. #define GPIO_PC1_SWDIO 0x00020403
  15193. #define GPIO_PC2_TDI 0x00020803
  15194. #define GPIO_PC3_SWO 0x00020C03
  15195. #define GPIO_PC3_TDO 0x00020C03
  15196. #define GPIO_PC4_CCP5 0x00021001
  15197. #define GPIO_PC4_CCP2 0x00021005
  15198. #define GPIO_PC4_CCP4 0x00021006
  15199. #define GPIO_PC4_CCP1 0x00021009
  15200. #define GPIO_PC5_CCP1 0x00021401
  15201. #define GPIO_PC5_C1O 0x00021402
  15202. #define GPIO_PC5_C0O 0x00021403
  15203. #define GPIO_PC5_CCP3 0x00021405
  15204. #define GPIO_PC6_CCP3 0x00021801
  15205. #define GPIO_PC6_U1RX 0x00021805
  15206. #define GPIO_PC6_CCP0 0x00021806
  15207. #define GPIO_PC7_CCP4 0x00021C01
  15208. #define GPIO_PC7_CCP0 0x00021C04
  15209. #define GPIO_PC7_U1TX 0x00021C05
  15210. #define GPIO_PC7_C1O 0x00021C07
  15211. #define GPIO_PD0_U2RX 0x00030004
  15212. #define GPIO_PD0_U1RX 0x00030005
  15213. #define GPIO_PD1_U2TX 0x00030404
  15214. #define GPIO_PD1_U1TX 0x00030405
  15215. #define GPIO_PD1_CCP2 0x0003040A
  15216. #define GPIO_PD2_U1RX 0x00030801
  15217. #define GPIO_PD2_CCP5 0x00030804
  15218. #define GPIO_PD3_U1TX 0x00030C01
  15219. #define GPIO_PD3_CCP0 0x00030C04
  15220. #define GPIO_PE0_SSI1CLK 0x00040002
  15221. #define GPIO_PE0_CCP3 0x00040003
  15222. #define GPIO_PE1_SSI1FSS 0x00040402
  15223. #define GPIO_PE1_CCP2 0x00040404
  15224. #define GPIO_PE2_CCP4 0x00040801
  15225. #define GPIO_PE2_SSI1RX 0x00040802
  15226. #define GPIO_PE2_CCP2 0x00040805
  15227. #define GPIO_PE3_CCP1 0x00040C01
  15228. #define GPIO_PE3_SSI1TX 0x00040C02
  15229. #define GPIO_PE4_CCP3 0x00041001
  15230. #define GPIO_PE4_U2TX 0x00041005
  15231. #define GPIO_PE4_CCP2 0x00041006
  15232. #endif // PART_LM3S3826
  15233. //*****************************************************************************
  15234. //
  15235. // LM3S3J26 Port/Pin Mapping Definitions
  15236. //
  15237. //*****************************************************************************
  15238. #ifdef PART_LM3S3J26
  15239. #define GPIO_PA0_U0RX 0x00000001
  15240. #define GPIO_PA0_I2C1SCL 0x00000008
  15241. #define GPIO_PA0_U1RX 0x00000009
  15242. #define GPIO_PA1_U0TX 0x00000401
  15243. #define GPIO_PA1_I2C1SDA 0x00000408
  15244. #define GPIO_PA1_U1TX 0x00000409
  15245. #define GPIO_PA2_SSI0CLK 0x00000801
  15246. #define GPIO_PA3_SSI0FSS 0x00000C01
  15247. #define GPIO_PA4_SSI0RX 0x00001001
  15248. #define GPIO_PA5_SSI0TX 0x00001401
  15249. #define GPIO_PA6_I2C1SCL 0x00001801
  15250. #define GPIO_PA6_CCP1 0x00001802
  15251. #define GPIO_PA7_I2C1SDA 0x00001C01
  15252. #define GPIO_PA7_CCP4 0x00001C02
  15253. #define GPIO_PA7_CCP3 0x00001C07
  15254. #define GPIO_PB0_CCP0 0x00010001
  15255. #define GPIO_PB0_U1RX 0x00010005
  15256. #define GPIO_PB1_CCP2 0x00010401
  15257. #define GPIO_PB1_CCP1 0x00010404
  15258. #define GPIO_PB1_U1TX 0x00010405
  15259. #define GPIO_PB2_I2C0SCL 0x00010801
  15260. #define GPIO_PB2_CCP3 0x00010804
  15261. #define GPIO_PB2_CCP0 0x00010805
  15262. #define GPIO_PB3_I2C0SDA 0x00010C01
  15263. #define GPIO_PB4_U2RX 0x00011004
  15264. #define GPIO_PB4_U1RX 0x00011007
  15265. #define GPIO_PB5_C0O 0x00011401
  15266. #define GPIO_PB5_CCP5 0x00011402
  15267. #define GPIO_PB5_CCP0 0x00011404
  15268. #define GPIO_PB5_CCP2 0x00011406
  15269. #define GPIO_PB5_U1TX 0x00011407
  15270. #define GPIO_PB6_CCP1 0x00011801
  15271. #define GPIO_PB6_C0O 0x00011803
  15272. #define GPIO_PB6_CCP5 0x00011806
  15273. #define GPIO_PB7_NMI 0x00011C04
  15274. #define GPIO_PC0_TCK 0x00020003
  15275. #define GPIO_PC0_SWCLK 0x00020003
  15276. #define GPIO_PC1_TMS 0x00020403
  15277. #define GPIO_PC1_SWDIO 0x00020403
  15278. #define GPIO_PC2_TDI 0x00020803
  15279. #define GPIO_PC3_SWO 0x00020C03
  15280. #define GPIO_PC3_TDO 0x00020C03
  15281. #define GPIO_PC4_CCP5 0x00021001
  15282. #define GPIO_PC4_CCP2 0x00021005
  15283. #define GPIO_PC4_CCP4 0x00021006
  15284. #define GPIO_PC4_CCP1 0x00021009
  15285. #define GPIO_PC5_CCP1 0x00021401
  15286. #define GPIO_PC5_C1O 0x00021402
  15287. #define GPIO_PC5_C0O 0x00021403
  15288. #define GPIO_PC5_CCP3 0x00021405
  15289. #define GPIO_PC6_CCP3 0x00021801
  15290. #define GPIO_PC6_U1RX 0x00021805
  15291. #define GPIO_PC6_CCP0 0x00021806
  15292. #define GPIO_PC7_CCP4 0x00021C01
  15293. #define GPIO_PC7_CCP0 0x00021C04
  15294. #define GPIO_PC7_U1TX 0x00021C05
  15295. #define GPIO_PC7_C1O 0x00021C07
  15296. #define GPIO_PD0_U2RX 0x00030004
  15297. #define GPIO_PD0_U1RX 0x00030005
  15298. #define GPIO_PD1_U2TX 0x00030404
  15299. #define GPIO_PD1_U1TX 0x00030405
  15300. #define GPIO_PD1_CCP2 0x0003040A
  15301. #define GPIO_PD2_U1RX 0x00030801
  15302. #define GPIO_PD2_CCP5 0x00030804
  15303. #define GPIO_PD3_U1TX 0x00030C01
  15304. #define GPIO_PD3_CCP0 0x00030C04
  15305. #define GPIO_PE0_SSI1CLK 0x00040002
  15306. #define GPIO_PE0_CCP3 0x00040003
  15307. #define GPIO_PE1_SSI1FSS 0x00040402
  15308. #define GPIO_PE1_CCP2 0x00040404
  15309. #define GPIO_PE2_CCP4 0x00040801
  15310. #define GPIO_PE2_SSI1RX 0x00040802
  15311. #define GPIO_PE2_CCP2 0x00040805
  15312. #define GPIO_PE3_CCP1 0x00040C01
  15313. #define GPIO_PE3_SSI1TX 0x00040C02
  15314. #define GPIO_PE4_CCP3 0x00041001
  15315. #define GPIO_PE4_U2TX 0x00041005
  15316. #define GPIO_PE4_CCP2 0x00041006
  15317. #endif // PART_LM3S3J26
  15318. //*****************************************************************************
  15319. //
  15320. // LM3S3N26 Port/Pin Mapping Definitions
  15321. //
  15322. //*****************************************************************************
  15323. #ifdef PART_LM3S3N26
  15324. #define GPIO_PA0_U0RX 0x00000001
  15325. #define GPIO_PA0_I2C1SCL 0x00000008
  15326. #define GPIO_PA0_U1RX 0x00000009
  15327. #define GPIO_PA1_U0TX 0x00000401
  15328. #define GPIO_PA1_I2C1SDA 0x00000408
  15329. #define GPIO_PA1_U1TX 0x00000409
  15330. #define GPIO_PA2_SSI0CLK 0x00000801
  15331. #define GPIO_PA3_SSI0FSS 0x00000C01
  15332. #define GPIO_PA4_SSI0RX 0x00001001
  15333. #define GPIO_PA5_SSI0TX 0x00001401
  15334. #define GPIO_PA6_I2C1SCL 0x00001801
  15335. #define GPIO_PA6_CCP1 0x00001802
  15336. #define GPIO_PA7_I2C1SDA 0x00001C01
  15337. #define GPIO_PA7_CCP4 0x00001C02
  15338. #define GPIO_PA7_CCP3 0x00001C07
  15339. #define GPIO_PB0_CCP0 0x00010001
  15340. #define GPIO_PB0_U1RX 0x00010005
  15341. #define GPIO_PB1_CCP2 0x00010401
  15342. #define GPIO_PB1_CCP1 0x00010404
  15343. #define GPIO_PB1_U1TX 0x00010405
  15344. #define GPIO_PB2_I2C0SCL 0x00010801
  15345. #define GPIO_PB2_CCP3 0x00010804
  15346. #define GPIO_PB2_CCP0 0x00010805
  15347. #define GPIO_PB3_I2C0SDA 0x00010C01
  15348. #define GPIO_PB4_U2RX 0x00011004
  15349. #define GPIO_PB4_U1RX 0x00011007
  15350. #define GPIO_PB5_C0O 0x00011401
  15351. #define GPIO_PB5_CCP5 0x00011402
  15352. #define GPIO_PB5_CCP0 0x00011404
  15353. #define GPIO_PB5_CCP2 0x00011406
  15354. #define GPIO_PB5_U1TX 0x00011407
  15355. #define GPIO_PB6_CCP1 0x00011801
  15356. #define GPIO_PB6_C0O 0x00011803
  15357. #define GPIO_PB6_CCP5 0x00011806
  15358. #define GPIO_PB7_NMI 0x00011C04
  15359. #define GPIO_PC0_TCK 0x00020003
  15360. #define GPIO_PC0_SWCLK 0x00020003
  15361. #define GPIO_PC1_TMS 0x00020403
  15362. #define GPIO_PC1_SWDIO 0x00020403
  15363. #define GPIO_PC2_TDI 0x00020803
  15364. #define GPIO_PC3_SWO 0x00020C03
  15365. #define GPIO_PC3_TDO 0x00020C03
  15366. #define GPIO_PC4_CCP5 0x00021001
  15367. #define GPIO_PC4_CCP2 0x00021005
  15368. #define GPIO_PC4_CCP4 0x00021006
  15369. #define GPIO_PC4_CCP1 0x00021009
  15370. #define GPIO_PC5_CCP1 0x00021401
  15371. #define GPIO_PC5_C1O 0x00021402
  15372. #define GPIO_PC5_C0O 0x00021403
  15373. #define GPIO_PC5_CCP3 0x00021405
  15374. #define GPIO_PC6_CCP3 0x00021801
  15375. #define GPIO_PC6_U1RX 0x00021805
  15376. #define GPIO_PC6_CCP0 0x00021806
  15377. #define GPIO_PC7_CCP4 0x00021C01
  15378. #define GPIO_PC7_CCP0 0x00021C04
  15379. #define GPIO_PC7_U1TX 0x00021C05
  15380. #define GPIO_PC7_C1O 0x00021C07
  15381. #define GPIO_PD0_U2RX 0x00030004
  15382. #define GPIO_PD0_U1RX 0x00030005
  15383. #define GPIO_PD1_U2TX 0x00030404
  15384. #define GPIO_PD1_U1TX 0x00030405
  15385. #define GPIO_PD1_CCP2 0x0003040A
  15386. #define GPIO_PD2_U1RX 0x00030801
  15387. #define GPIO_PD2_CCP5 0x00030804
  15388. #define GPIO_PD3_U1TX 0x00030C01
  15389. #define GPIO_PD3_CCP0 0x00030C04
  15390. #define GPIO_PE0_SSI1CLK 0x00040002
  15391. #define GPIO_PE0_CCP3 0x00040003
  15392. #define GPIO_PE1_SSI1FSS 0x00040402
  15393. #define GPIO_PE1_CCP2 0x00040404
  15394. #define GPIO_PE2_CCP4 0x00040801
  15395. #define GPIO_PE2_SSI1RX 0x00040802
  15396. #define GPIO_PE2_CCP2 0x00040805
  15397. #define GPIO_PE3_CCP1 0x00040C01
  15398. #define GPIO_PE3_SSI1TX 0x00040C02
  15399. #define GPIO_PE4_CCP3 0x00041001
  15400. #define GPIO_PE4_U2TX 0x00041005
  15401. #define GPIO_PE4_CCP2 0x00041006
  15402. #endif // PART_LM3S3N26
  15403. //*****************************************************************************
  15404. //
  15405. // LM3S3W26 Port/Pin Mapping Definitions
  15406. //
  15407. //*****************************************************************************
  15408. #ifdef PART_LM3S3W26
  15409. #define GPIO_PA0_U0RX 0x00000001
  15410. #define GPIO_PA0_I2C1SCL 0x00000008
  15411. #define GPIO_PA0_U1RX 0x00000009
  15412. #define GPIO_PA1_U0TX 0x00000401
  15413. #define GPIO_PA1_I2C1SDA 0x00000408
  15414. #define GPIO_PA1_U1TX 0x00000409
  15415. #define GPIO_PA2_SSI0CLK 0x00000801
  15416. #define GPIO_PA3_SSI0FSS 0x00000C01
  15417. #define GPIO_PA4_SSI0RX 0x00001001
  15418. #define GPIO_PA5_SSI0TX 0x00001401
  15419. #define GPIO_PA6_I2C1SCL 0x00001801
  15420. #define GPIO_PA6_CCP1 0x00001802
  15421. #define GPIO_PA7_I2C1SDA 0x00001C01
  15422. #define GPIO_PA7_CCP4 0x00001C02
  15423. #define GPIO_PA7_CCP3 0x00001C07
  15424. #define GPIO_PB0_CCP0 0x00010001
  15425. #define GPIO_PB0_U1RX 0x00010005
  15426. #define GPIO_PB1_CCP2 0x00010401
  15427. #define GPIO_PB1_CCP1 0x00010404
  15428. #define GPIO_PB1_U1TX 0x00010405
  15429. #define GPIO_PB2_I2C0SCL 0x00010801
  15430. #define GPIO_PB2_CCP3 0x00010804
  15431. #define GPIO_PB2_CCP0 0x00010805
  15432. #define GPIO_PB3_I2C0SDA 0x00010C01
  15433. #define GPIO_PB4_U2RX 0x00011004
  15434. #define GPIO_PB4_U1RX 0x00011007
  15435. #define GPIO_PB5_C0O 0x00011401
  15436. #define GPIO_PB5_CCP5 0x00011402
  15437. #define GPIO_PB5_CCP0 0x00011404
  15438. #define GPIO_PB5_CCP2 0x00011406
  15439. #define GPIO_PB5_U1TX 0x00011407
  15440. #define GPIO_PB6_CCP1 0x00011801
  15441. #define GPIO_PB6_C0O 0x00011803
  15442. #define GPIO_PB6_CCP5 0x00011806
  15443. #define GPIO_PB7_NMI 0x00011C04
  15444. #define GPIO_PC0_TCK 0x00020003
  15445. #define GPIO_PC0_SWCLK 0x00020003
  15446. #define GPIO_PC1_TMS 0x00020403
  15447. #define GPIO_PC1_SWDIO 0x00020403
  15448. #define GPIO_PC2_TDI 0x00020803
  15449. #define GPIO_PC3_SWO 0x00020C03
  15450. #define GPIO_PC3_TDO 0x00020C03
  15451. #define GPIO_PC4_CCP5 0x00021001
  15452. #define GPIO_PC4_CCP2 0x00021005
  15453. #define GPIO_PC4_CCP4 0x00021006
  15454. #define GPIO_PC4_CCP1 0x00021009
  15455. #define GPIO_PC5_CCP1 0x00021401
  15456. #define GPIO_PC5_C1O 0x00021402
  15457. #define GPIO_PC5_C0O 0x00021403
  15458. #define GPIO_PC5_CCP3 0x00021405
  15459. #define GPIO_PC6_CCP3 0x00021801
  15460. #define GPIO_PC6_U1RX 0x00021805
  15461. #define GPIO_PC6_CCP0 0x00021806
  15462. #define GPIO_PC7_CCP4 0x00021C01
  15463. #define GPIO_PC7_CCP0 0x00021C04
  15464. #define GPIO_PC7_U1TX 0x00021C05
  15465. #define GPIO_PC7_C1O 0x00021C07
  15466. #define GPIO_PD0_U2RX 0x00030004
  15467. #define GPIO_PD0_U1RX 0x00030005
  15468. #define GPIO_PD1_U2TX 0x00030404
  15469. #define GPIO_PD1_U1TX 0x00030405
  15470. #define GPIO_PD1_CCP2 0x0003040A
  15471. #define GPIO_PD2_U1RX 0x00030801
  15472. #define GPIO_PD2_CCP5 0x00030804
  15473. #define GPIO_PD3_U1TX 0x00030C01
  15474. #define GPIO_PD3_CCP0 0x00030C04
  15475. #define GPIO_PE0_SSI1CLK 0x00040002
  15476. #define GPIO_PE0_CCP3 0x00040003
  15477. #define GPIO_PE1_SSI1FSS 0x00040402
  15478. #define GPIO_PE1_CCP2 0x00040404
  15479. #define GPIO_PE2_CCP4 0x00040801
  15480. #define GPIO_PE2_SSI1RX 0x00040802
  15481. #define GPIO_PE2_CCP2 0x00040805
  15482. #define GPIO_PE3_CCP1 0x00040C01
  15483. #define GPIO_PE3_SSI1TX 0x00040C02
  15484. #define GPIO_PE4_CCP3 0x00041001
  15485. #define GPIO_PE4_U2TX 0x00041005
  15486. #define GPIO_PE4_CCP2 0x00041006
  15487. #endif // PART_LM3S3W26
  15488. //*****************************************************************************
  15489. //
  15490. // LM3S3Z26 Port/Pin Mapping Definitions
  15491. //
  15492. //*****************************************************************************
  15493. #ifdef PART_LM3S3Z26
  15494. #define GPIO_PA0_U0RX 0x00000001
  15495. #define GPIO_PA0_I2C1SCL 0x00000008
  15496. #define GPIO_PA0_U1RX 0x00000009
  15497. #define GPIO_PA1_U0TX 0x00000401
  15498. #define GPIO_PA1_I2C1SDA 0x00000408
  15499. #define GPIO_PA1_U1TX 0x00000409
  15500. #define GPIO_PA2_SSI0CLK 0x00000801
  15501. #define GPIO_PA3_SSI0FSS 0x00000C01
  15502. #define GPIO_PA4_SSI0RX 0x00001001
  15503. #define GPIO_PA5_SSI0TX 0x00001401
  15504. #define GPIO_PA6_I2C1SCL 0x00001801
  15505. #define GPIO_PA6_CCP1 0x00001802
  15506. #define GPIO_PA7_I2C1SDA 0x00001C01
  15507. #define GPIO_PA7_CCP4 0x00001C02
  15508. #define GPIO_PA7_CCP3 0x00001C07
  15509. #define GPIO_PB0_CCP0 0x00010001
  15510. #define GPIO_PB0_U1RX 0x00010005
  15511. #define GPIO_PB1_CCP2 0x00010401
  15512. #define GPIO_PB1_CCP1 0x00010404
  15513. #define GPIO_PB1_U1TX 0x00010405
  15514. #define GPIO_PB2_I2C0SCL 0x00010801
  15515. #define GPIO_PB2_CCP3 0x00010804
  15516. #define GPIO_PB2_CCP0 0x00010805
  15517. #define GPIO_PB3_I2C0SDA 0x00010C01
  15518. #define GPIO_PB4_U2RX 0x00011004
  15519. #define GPIO_PB4_U1RX 0x00011007
  15520. #define GPIO_PB5_C0O 0x00011401
  15521. #define GPIO_PB5_CCP5 0x00011402
  15522. #define GPIO_PB5_CCP0 0x00011404
  15523. #define GPIO_PB5_CCP2 0x00011406
  15524. #define GPIO_PB5_U1TX 0x00011407
  15525. #define GPIO_PB6_CCP1 0x00011801
  15526. #define GPIO_PB6_C0O 0x00011803
  15527. #define GPIO_PB6_CCP5 0x00011806
  15528. #define GPIO_PB7_NMI 0x00011C04
  15529. #define GPIO_PC0_TCK 0x00020003
  15530. #define GPIO_PC0_SWCLK 0x00020003
  15531. #define GPIO_PC1_TMS 0x00020403
  15532. #define GPIO_PC1_SWDIO 0x00020403
  15533. #define GPIO_PC2_TDI 0x00020803
  15534. #define GPIO_PC3_SWO 0x00020C03
  15535. #define GPIO_PC3_TDO 0x00020C03
  15536. #define GPIO_PC4_CCP5 0x00021001
  15537. #define GPIO_PC4_CCP2 0x00021005
  15538. #define GPIO_PC4_CCP4 0x00021006
  15539. #define GPIO_PC4_CCP1 0x00021009
  15540. #define GPIO_PC5_CCP1 0x00021401
  15541. #define GPIO_PC5_C1O 0x00021402
  15542. #define GPIO_PC5_C0O 0x00021403
  15543. #define GPIO_PC5_CCP3 0x00021405
  15544. #define GPIO_PC6_CCP3 0x00021801
  15545. #define GPIO_PC6_U1RX 0x00021805
  15546. #define GPIO_PC6_CCP0 0x00021806
  15547. #define GPIO_PC7_CCP4 0x00021C01
  15548. #define GPIO_PC7_CCP0 0x00021C04
  15549. #define GPIO_PC7_U1TX 0x00021C05
  15550. #define GPIO_PC7_C1O 0x00021C07
  15551. #define GPIO_PD0_U2RX 0x00030004
  15552. #define GPIO_PD0_U1RX 0x00030005
  15553. #define GPIO_PD1_U2TX 0x00030404
  15554. #define GPIO_PD1_U1TX 0x00030405
  15555. #define GPIO_PD1_CCP2 0x0003040A
  15556. #define GPIO_PD2_U1RX 0x00030801
  15557. #define GPIO_PD2_CCP5 0x00030804
  15558. #define GPIO_PD3_U1TX 0x00030C01
  15559. #define GPIO_PD3_CCP0 0x00030C04
  15560. #define GPIO_PE0_SSI1CLK 0x00040002
  15561. #define GPIO_PE0_CCP3 0x00040003
  15562. #define GPIO_PE1_SSI1FSS 0x00040402
  15563. #define GPIO_PE1_CCP2 0x00040404
  15564. #define GPIO_PE2_CCP4 0x00040801
  15565. #define GPIO_PE2_SSI1RX 0x00040802
  15566. #define GPIO_PE2_CCP2 0x00040805
  15567. #define GPIO_PE3_CCP1 0x00040C01
  15568. #define GPIO_PE3_SSI1TX 0x00040C02
  15569. #define GPIO_PE4_CCP3 0x00041001
  15570. #define GPIO_PE4_U2TX 0x00041005
  15571. #define GPIO_PE4_CCP2 0x00041006
  15572. #endif // PART_LM3S3Z26
  15573. //*****************************************************************************
  15574. //
  15575. // LM3S5632 Port/Pin Mapping Definitions
  15576. //
  15577. //*****************************************************************************
  15578. #ifdef PART_LM3S5632
  15579. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  15580. #define ADC0_PORT GPIO_PORTE_BASE
  15581. #define ADC0_PIN GPIO_PIN_3
  15582. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  15583. #define ADC1_PORT GPIO_PORTE_BASE
  15584. #define ADC1_PIN GPIO_PIN_2
  15585. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  15586. #define ADC2_PORT GPIO_PORTE_BASE
  15587. #define ADC2_PIN GPIO_PIN_1
  15588. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  15589. #define ADC3_PORT GPIO_PORTE_BASE
  15590. #define ADC3_PIN GPIO_PIN_0
  15591. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  15592. #define ADC4_PORT GPIO_PORTD_BASE
  15593. #define ADC4_PIN GPIO_PIN_3
  15594. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  15595. #define ADC5_PORT GPIO_PORTD_BASE
  15596. #define ADC5_PIN GPIO_PIN_2
  15597. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  15598. #define CAN0RX_PORT GPIO_PORTD_BASE
  15599. #define CAN0RX_PIN GPIO_PIN_0
  15600. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  15601. #define CAN0TX_PORT GPIO_PORTD_BASE
  15602. #define CAN0TX_PIN GPIO_PIN_1
  15603. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  15604. #define CCP0_PORT GPIO_PORTB_BASE
  15605. #define CCP0_PIN GPIO_PIN_5
  15606. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  15607. #define CCP1_PORT GPIO_PORTB_BASE
  15608. #define CCP1_PIN GPIO_PIN_6
  15609. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  15610. #define CCP2_PORT GPIO_PORTC_BASE
  15611. #define CCP2_PIN GPIO_PIN_4
  15612. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  15613. #define CCP3_PORT GPIO_PORTE_BASE
  15614. #define CCP3_PIN GPIO_PIN_4
  15615. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  15616. #define CCP4_PORT GPIO_PORTC_BASE
  15617. #define CCP4_PIN GPIO_PIN_7
  15618. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  15619. #define I2C0SCL_PORT GPIO_PORTB_BASE
  15620. #define I2C0SCL_PIN GPIO_PIN_2
  15621. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  15622. #define I2C0SDA_PORT GPIO_PORTB_BASE
  15623. #define I2C0SDA_PIN GPIO_PIN_3
  15624. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  15625. #define I2C1SCL_PORT GPIO_PORTA_BASE
  15626. #define I2C1SCL_PIN GPIO_PIN_6
  15627. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  15628. #define I2C1SDA_PORT GPIO_PORTA_BASE
  15629. #define I2C1SDA_PIN GPIO_PIN_7
  15630. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  15631. #define NMI_PORT GPIO_PORTB_BASE
  15632. #define NMI_PIN GPIO_PIN_7
  15633. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  15634. #define SSI0CLK_PORT GPIO_PORTA_BASE
  15635. #define SSI0CLK_PIN GPIO_PIN_2
  15636. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  15637. #define SSI0FSS_PORT GPIO_PORTA_BASE
  15638. #define SSI0FSS_PIN GPIO_PIN_3
  15639. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  15640. #define SSI0RX_PORT GPIO_PORTA_BASE
  15641. #define SSI0RX_PIN GPIO_PIN_4
  15642. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  15643. #define SSI0TX_PORT GPIO_PORTA_BASE
  15644. #define SSI0TX_PIN GPIO_PIN_5
  15645. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  15646. #define SWCLK_PORT GPIO_PORTC_BASE
  15647. #define SWCLK_PIN GPIO_PIN_0
  15648. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  15649. #define SWDIO_PORT GPIO_PORTC_BASE
  15650. #define SWDIO_PIN GPIO_PIN_1
  15651. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  15652. #define SWO_PORT GPIO_PORTC_BASE
  15653. #define SWO_PIN GPIO_PIN_3
  15654. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  15655. #define TCK_PORT GPIO_PORTC_BASE
  15656. #define TCK_PIN GPIO_PIN_0
  15657. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  15658. #define TDI_PORT GPIO_PORTC_BASE
  15659. #define TDI_PIN GPIO_PIN_2
  15660. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  15661. #define TDO_PORT GPIO_PORTC_BASE
  15662. #define TDO_PIN GPIO_PIN_3
  15663. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  15664. #define TMS_PORT GPIO_PORTC_BASE
  15665. #define TMS_PIN GPIO_PIN_1
  15666. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  15667. #define U0RX_PORT GPIO_PORTA_BASE
  15668. #define U0RX_PIN GPIO_PIN_0
  15669. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  15670. #define U0TX_PORT GPIO_PORTA_BASE
  15671. #define U0TX_PIN GPIO_PIN_1
  15672. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOB
  15673. #define U1RX_PORT GPIO_PORTB_BASE
  15674. #define U1RX_PIN GPIO_PIN_0
  15675. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOB
  15676. #define U1TX_PORT GPIO_PORTB_BASE
  15677. #define U1TX_PIN GPIO_PIN_1
  15678. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOC
  15679. #define USB0EPEN_PORT GPIO_PORTC_BASE
  15680. #define USB0EPEN_PIN GPIO_PIN_5
  15681. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOC
  15682. #define USB0PFLT_PORT GPIO_PORTC_BASE
  15683. #define USB0PFLT_PIN GPIO_PIN_6
  15684. #endif // PART_LM3S5632
  15685. //*****************************************************************************
  15686. //
  15687. // LM3S5651 Port/Pin Mapping Definitions
  15688. //
  15689. //*****************************************************************************
  15690. #ifdef PART_LM3S5651
  15691. #define GPIO_PA0_U0RX 0x00000001
  15692. #define GPIO_PA0_I2C1SCL 0x00000008
  15693. #define GPIO_PA0_U1RX 0x00000009
  15694. #define GPIO_PA1_U0TX 0x00000401
  15695. #define GPIO_PA1_I2C1SDA 0x00000408
  15696. #define GPIO_PA1_U1TX 0x00000409
  15697. #define GPIO_PA2_SSI0CLK 0x00000801
  15698. #define GPIO_PA2_PWM4 0x00000804
  15699. #define GPIO_PA2_I2S0RXSD 0x00000809
  15700. #define GPIO_PA3_SSI0FSS 0x00000C01
  15701. #define GPIO_PA3_PWM5 0x00000C04
  15702. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  15703. #define GPIO_PA4_SSI0RX 0x00001001
  15704. #define GPIO_PA4_CAN0RX 0x00001005
  15705. #define GPIO_PA4_I2S0TXSCK 0x00001009
  15706. #define GPIO_PA5_SSI0TX 0x00001401
  15707. #define GPIO_PA5_CAN0TX 0x00001405
  15708. #define GPIO_PA5_I2S0TXWS 0x00001409
  15709. #define GPIO_PA6_I2C1SCL 0x00001801
  15710. #define GPIO_PA6_CCP1 0x00001802
  15711. #define GPIO_PA6_PWM0 0x00001804
  15712. #define GPIO_PA6_PWM4 0x00001805
  15713. #define GPIO_PA6_CAN0RX 0x00001806
  15714. #define GPIO_PA6_USB0EPEN 0x00001808
  15715. #define GPIO_PA6_U1CTS 0x00001809
  15716. #define GPIO_PA7_I2C1SDA 0x00001C01
  15717. #define GPIO_PA7_CCP4 0x00001C02
  15718. #define GPIO_PA7_PWM1 0x00001C04
  15719. #define GPIO_PA7_PWM5 0x00001C05
  15720. #define GPIO_PA7_CAN0TX 0x00001C06
  15721. #define GPIO_PA7_CCP3 0x00001C07
  15722. #define GPIO_PA7_USB0PFLT 0x00001C08
  15723. #define GPIO_PA7_U1DCD 0x00001C09
  15724. #define GPIO_PB0_CCP0 0x00010001
  15725. #define GPIO_PB0_PWM2 0x00010002
  15726. #define GPIO_PB0_U1RX 0x00010005
  15727. #define GPIO_PB1_CCP2 0x00010401
  15728. #define GPIO_PB1_PWM3 0x00010402
  15729. #define GPIO_PB1_CCP1 0x00010404
  15730. #define GPIO_PB1_U1TX 0x00010405
  15731. #define GPIO_PB2_I2C0SCL 0x00010801
  15732. #define GPIO_PB2_IDX0 0x00010802
  15733. #define GPIO_PB2_CCP3 0x00010804
  15734. #define GPIO_PB2_CCP0 0x00010805
  15735. #define GPIO_PB2_USB0EPEN 0x00010808
  15736. #define GPIO_PB3_I2C0SDA 0x00010C01
  15737. #define GPIO_PB3_FAULT0 0x00010C02
  15738. #define GPIO_PB3_FAULT3 0x00010C04
  15739. #define GPIO_PB3_USB0PFLT 0x00010C08
  15740. #define GPIO_PB4_U2RX 0x00011004
  15741. #define GPIO_PB4_CAN0RX 0x00011005
  15742. #define GPIO_PB4_IDX0 0x00011006
  15743. #define GPIO_PB4_U1RX 0x00011007
  15744. #define GPIO_PB5_C0O 0x00011401
  15745. #define GPIO_PB5_CCP5 0x00011402
  15746. #define GPIO_PB5_CCP6 0x00011403
  15747. #define GPIO_PB5_CCP0 0x00011404
  15748. #define GPIO_PB5_CAN0TX 0x00011405
  15749. #define GPIO_PB5_CCP2 0x00011406
  15750. #define GPIO_PB5_U1TX 0x00011407
  15751. #define GPIO_PB6_CCP1 0x00011801
  15752. #define GPIO_PB6_CCP7 0x00011802
  15753. #define GPIO_PB6_C0O 0x00011803
  15754. #define GPIO_PB6_FAULT1 0x00011804
  15755. #define GPIO_PB6_IDX0 0x00011805
  15756. #define GPIO_PB6_CCP5 0x00011806
  15757. #define GPIO_PB6_I2S0TXSCK 0x00011809
  15758. #define GPIO_PB7_NMI 0x00011C04
  15759. #define GPIO_PC0_TCK 0x00020003
  15760. #define GPIO_PC0_SWCLK 0x00020003
  15761. #define GPIO_PC1_TMS 0x00020403
  15762. #define GPIO_PC1_SWDIO 0x00020403
  15763. #define GPIO_PC2_TDI 0x00020803
  15764. #define GPIO_PC3_SWO 0x00020C03
  15765. #define GPIO_PC3_TDO 0x00020C03
  15766. #define GPIO_PC4_CCP5 0x00021001
  15767. #define GPIO_PC4_PHA0 0x00021002
  15768. #define GPIO_PC4_CCP2 0x00021005
  15769. #define GPIO_PC4_CCP4 0x00021006
  15770. #define GPIO_PC4_CCP1 0x00021009
  15771. #define GPIO_PC5_CCP1 0x00021401
  15772. #define GPIO_PC5_C1O 0x00021402
  15773. #define GPIO_PC5_C0O 0x00021403
  15774. #define GPIO_PC5_FAULT2 0x00021404
  15775. #define GPIO_PC5_CCP3 0x00021405
  15776. #define GPIO_PC5_USB0EPEN 0x00021406
  15777. #define GPIO_PC6_CCP3 0x00021801
  15778. #define GPIO_PC6_PHB0 0x00021802
  15779. #define GPIO_PC6_U1RX 0x00021805
  15780. #define GPIO_PC6_CCP0 0x00021806
  15781. #define GPIO_PC6_USB0PFLT 0x00021807
  15782. #define GPIO_PC7_CCP4 0x00021C01
  15783. #define GPIO_PC7_PHB0 0x00021C02
  15784. #define GPIO_PC7_CCP0 0x00021C04
  15785. #define GPIO_PC7_U1TX 0x00021C05
  15786. #define GPIO_PC7_USB0PFLT 0x00021C06
  15787. #define GPIO_PC7_C1O 0x00021C07
  15788. #define GPIO_PD0_PWM0 0x00030001
  15789. #define GPIO_PD0_CAN0RX 0x00030002
  15790. #define GPIO_PD0_IDX0 0x00030003
  15791. #define GPIO_PD0_U2RX 0x00030004
  15792. #define GPIO_PD0_U1RX 0x00030005
  15793. #define GPIO_PD0_CCP6 0x00030006
  15794. #define GPIO_PD0_I2S0RXSCK 0x00030008
  15795. #define GPIO_PD0_U1CTS 0x00030009
  15796. #define GPIO_PD1_PWM1 0x00030401
  15797. #define GPIO_PD1_CAN0TX 0x00030402
  15798. #define GPIO_PD1_PHA0 0x00030403
  15799. #define GPIO_PD1_U2TX 0x00030404
  15800. #define GPIO_PD1_U1TX 0x00030405
  15801. #define GPIO_PD1_CCP7 0x00030406
  15802. #define GPIO_PD1_I2S0RXWS 0x00030408
  15803. #define GPIO_PD1_U1DCD 0x00030409
  15804. #define GPIO_PD1_CCP2 0x0003040A
  15805. #define GPIO_PD1_PHB1 0x0003040B
  15806. #define GPIO_PD2_U1RX 0x00030801
  15807. #define GPIO_PD2_CCP6 0x00030802
  15808. #define GPIO_PD2_PWM2 0x00030803
  15809. #define GPIO_PD2_CCP5 0x00030804
  15810. #define GPIO_PD3_U1TX 0x00030C01
  15811. #define GPIO_PD3_CCP7 0x00030C02
  15812. #define GPIO_PD3_PWM3 0x00030C03
  15813. #define GPIO_PD3_CCP0 0x00030C04
  15814. #define GPIO_PD4_CCP0 0x00031001
  15815. #define GPIO_PD4_CCP3 0x00031002
  15816. #define GPIO_PD4_I2S0RXSD 0x00031008
  15817. #define GPIO_PD4_U1RI 0x00031009
  15818. #define GPIO_PD5_CCP2 0x00031401
  15819. #define GPIO_PD5_CCP4 0x00031402
  15820. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  15821. #define GPIO_PD5_U2RX 0x00031409
  15822. #define GPIO_PD6_FAULT0 0x00031801
  15823. #define GPIO_PD6_I2S0TXSCK 0x00031808
  15824. #define GPIO_PD6_U2TX 0x00031809
  15825. #define GPIO_PD7_IDX0 0x00031C01
  15826. #define GPIO_PD7_C0O 0x00031C02
  15827. #define GPIO_PD7_CCP1 0x00031C03
  15828. #define GPIO_PD7_I2S0TXWS 0x00031C08
  15829. #define GPIO_PD7_U1DTR 0x00031C09
  15830. #define GPIO_PE0_PWM4 0x00040001
  15831. #define GPIO_PE0_SSI1CLK 0x00040002
  15832. #define GPIO_PE0_CCP3 0x00040003
  15833. #define GPIO_PE0_USB0PFLT 0x00040009
  15834. #define GPIO_PE1_PWM5 0x00040401
  15835. #define GPIO_PE1_SSI1FSS 0x00040402
  15836. #define GPIO_PE1_FAULT0 0x00040403
  15837. #define GPIO_PE1_CCP2 0x00040404
  15838. #define GPIO_PE1_CCP6 0x00040405
  15839. #define GPIO_PE2_CCP4 0x00040801
  15840. #define GPIO_PE2_SSI1RX 0x00040802
  15841. #define GPIO_PE2_PHB1 0x00040803
  15842. #define GPIO_PE2_PHA0 0x00040804
  15843. #define GPIO_PE2_CCP2 0x00040805
  15844. #define GPIO_PE3_CCP1 0x00040C01
  15845. #define GPIO_PE3_SSI1TX 0x00040C02
  15846. #define GPIO_PE3_PHA1 0x00040C03
  15847. #define GPIO_PE3_PHB0 0x00040C04
  15848. #define GPIO_PE3_CCP7 0x00040C05
  15849. #define GPIO_PE4_CCP3 0x00041001
  15850. #define GPIO_PE4_FAULT0 0x00041004
  15851. #define GPIO_PE4_U2TX 0x00041005
  15852. #define GPIO_PE4_CCP2 0x00041006
  15853. #define GPIO_PE4_I2S0TXWS 0x00041009
  15854. #define GPIO_PE5_CCP5 0x00041401
  15855. #define GPIO_PE5_I2S0TXSD 0x00041409
  15856. #define GPIO_PE6_PWM4 0x00041801
  15857. #define GPIO_PE6_C1O 0x00041802
  15858. #define GPIO_PE6_U1CTS 0x00041809
  15859. #define GPIO_PE7_PWM5 0x00041C01
  15860. #define GPIO_PE7_U1DCD 0x00041C09
  15861. #define GPIO_PF0_CAN1RX 0x00050001
  15862. #define GPIO_PF0_PHB0 0x00050002
  15863. #define GPIO_PF0_PWM0 0x00050003
  15864. #define GPIO_PF0_I2S0TXSD 0x00050008
  15865. #define GPIO_PF0_U1DSR 0x00050009
  15866. #define GPIO_PF1_CAN1TX 0x00050401
  15867. #define GPIO_PF1_IDX1 0x00050402
  15868. #define GPIO_PF1_PWM1 0x00050403
  15869. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  15870. #define GPIO_PF1_U1RTS 0x00050409
  15871. #define GPIO_PF1_CCP3 0x0005040A
  15872. #define GPIO_PF2_PWM4 0x00050802
  15873. #define GPIO_PF2_PWM2 0x00050804
  15874. #define GPIO_PF2_SSI1CLK 0x00050809
  15875. #define GPIO_PF3_PWM5 0x00050C02
  15876. #define GPIO_PF3_PWM3 0x00050C04
  15877. #define GPIO_PF3_SSI1FSS 0x00050C09
  15878. #define GPIO_PF4_CCP0 0x00051001
  15879. #define GPIO_PF4_C0O 0x00051002
  15880. #define GPIO_PF4_FAULT0 0x00051004
  15881. #define GPIO_PF4_SSI1RX 0x00051009
  15882. #define GPIO_PF5_CCP2 0x00051401
  15883. #define GPIO_PF5_C1O 0x00051402
  15884. #define GPIO_PF5_SSI1TX 0x00051409
  15885. #define GPIO_PF6_CCP1 0x00051801
  15886. #define GPIO_PF6_PHA0 0x00051804
  15887. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  15888. #define GPIO_PF6_U1RTS 0x0005180A
  15889. #define GPIO_PF7_CCP4 0x00051C01
  15890. #define GPIO_PF7_PHB0 0x00051C04
  15891. #define GPIO_PF7_FAULT1 0x00051C09
  15892. #define GPIO_PG0_U2RX 0x00060001
  15893. #define GPIO_PG0_PWM0 0x00060002
  15894. #define GPIO_PG0_I2C1SCL 0x00060003
  15895. #define GPIO_PG0_PWM4 0x00060004
  15896. #define GPIO_PG0_USB0EPEN 0x00060007
  15897. #define GPIO_PG1_U2TX 0x00060401
  15898. #define GPIO_PG1_PWM1 0x00060402
  15899. #define GPIO_PG1_I2C1SDA 0x00060403
  15900. #define GPIO_PG1_PWM5 0x00060404
  15901. #define GPIO_PG2_PWM0 0x00060801
  15902. #define GPIO_PG2_FAULT0 0x00060804
  15903. #define GPIO_PG2_IDX1 0x00060808
  15904. #define GPIO_PG2_I2S0RXSD 0x00060809
  15905. #define GPIO_PG3_PWM1 0x00060C01
  15906. #define GPIO_PG3_FAULT2 0x00060C04
  15907. #define GPIO_PG3_FAULT0 0x00060C08
  15908. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  15909. #define GPIO_PG4_CCP3 0x00061001
  15910. #define GPIO_PG4_FAULT1 0x00061004
  15911. #define GPIO_PG4_U1RI 0x0006100A
  15912. #define GPIO_PG5_CCP5 0x00061401
  15913. #define GPIO_PG5_IDX0 0x00061404
  15914. #define GPIO_PG5_FAULT1 0x00061405
  15915. #define GPIO_PG5_I2S0RXSCK 0x00061409
  15916. #define GPIO_PG5_U1DTR 0x0006140A
  15917. #define GPIO_PG6_PHA1 0x00061801
  15918. #define GPIO_PG6_FAULT1 0x00061808
  15919. #define GPIO_PG6_I2S0RXWS 0x00061809
  15920. #define GPIO_PG6_U1RI 0x0006180A
  15921. #define GPIO_PG7_PHB1 0x00061C01
  15922. #define GPIO_PG7_CCP5 0x00061C08
  15923. #define GPIO_PH0_CCP6 0x00070001
  15924. #define GPIO_PH0_PWM2 0x00070002
  15925. #define GPIO_PH0_PWM4 0x00070009
  15926. #define GPIO_PH1_CCP7 0x00070401
  15927. #define GPIO_PH1_PWM3 0x00070402
  15928. #define GPIO_PH1_PWM5 0x00070409
  15929. #define GPIO_PH2_IDX1 0x00070801
  15930. #define GPIO_PH2_C1O 0x00070802
  15931. #define GPIO_PH2_FAULT3 0x00070804
  15932. #define GPIO_PH3_PHB0 0x00070C01
  15933. #define GPIO_PH3_FAULT0 0x00070C02
  15934. #define GPIO_PH3_USB0EPEN 0x00070C04
  15935. #define GPIO_PH4_USB0PFLT 0x00071004
  15936. #define GPIO_PH4_SSI1CLK 0x0007100B
  15937. #define GPIO_PH5_FAULT2 0x0007140A
  15938. #define GPIO_PH5_SSI1FSS 0x0007140B
  15939. #define GPIO_PH6_PWM4 0x0007180A
  15940. #define GPIO_PH6_SSI1RX 0x0007180B
  15941. #define GPIO_PH7_PWM5 0x00071C0A
  15942. #define GPIO_PH7_SSI1TX 0x00071C0B
  15943. #define GPIO_PJ0_PWM0 0x0008000A
  15944. #define GPIO_PJ0_I2C1SCL 0x0008000B
  15945. #define GPIO_PJ1_USB0PFLT 0x00080409
  15946. #define GPIO_PJ1_PWM1 0x0008040A
  15947. #define GPIO_PJ1_I2C1SDA 0x0008040B
  15948. #define GPIO_PJ2_CCP0 0x00080809
  15949. #define GPIO_PJ2_FAULT0 0x0008080A
  15950. #endif // PART_LM3S5651
  15951. //*****************************************************************************
  15952. //
  15953. // LM3S5652 Port/Pin Mapping Definitions
  15954. //
  15955. //*****************************************************************************
  15956. #ifdef PART_LM3S5652
  15957. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  15958. #define ADC0_PORT GPIO_PORTE_BASE
  15959. #define ADC0_PIN GPIO_PIN_3
  15960. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  15961. #define ADC1_PORT GPIO_PORTE_BASE
  15962. #define ADC1_PIN GPIO_PIN_2
  15963. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  15964. #define ADC2_PORT GPIO_PORTE_BASE
  15965. #define ADC2_PIN GPIO_PIN_1
  15966. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  15967. #define ADC3_PORT GPIO_PORTE_BASE
  15968. #define ADC3_PIN GPIO_PIN_0
  15969. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  15970. #define ADC4_PORT GPIO_PORTD_BASE
  15971. #define ADC4_PIN GPIO_PIN_3
  15972. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  15973. #define ADC5_PORT GPIO_PORTD_BASE
  15974. #define ADC5_PIN GPIO_PIN_2
  15975. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  15976. #define C0_MINUS_PORT GPIO_PORTB_BASE
  15977. #define C0_MINUS_PIN GPIO_PIN_4
  15978. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  15979. #define C0_PLUS_PORT GPIO_PORTB_BASE
  15980. #define C0_PLUS_PIN GPIO_PIN_6
  15981. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  15982. #define CAN0RX_PORT GPIO_PORTD_BASE
  15983. #define CAN0RX_PIN GPIO_PIN_0
  15984. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  15985. #define CAN0TX_PORT GPIO_PORTD_BASE
  15986. #define CAN0TX_PIN GPIO_PIN_1
  15987. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  15988. #define CCP0_PORT GPIO_PORTB_BASE
  15989. #define CCP0_PIN GPIO_PIN_5
  15990. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  15991. #define CCP1_PORT GPIO_PORTA_BASE
  15992. #define CCP1_PIN GPIO_PIN_6
  15993. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOE
  15994. #define CCP2_PORT GPIO_PORTE_BASE
  15995. #define CCP2_PIN GPIO_PIN_4
  15996. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOA
  15997. #define CCP3_PORT GPIO_PORTA_BASE
  15998. #define CCP3_PIN GPIO_PIN_7
  15999. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  16000. #define CCP4_PORT GPIO_PORTC_BASE
  16001. #define CCP4_PIN GPIO_PIN_7
  16002. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  16003. #define CCP5_PORT GPIO_PORTC_BASE
  16004. #define CCP5_PIN GPIO_PIN_4
  16005. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  16006. #define I2C0SCL_PORT GPIO_PORTB_BASE
  16007. #define I2C0SCL_PIN GPIO_PIN_2
  16008. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  16009. #define I2C0SDA_PORT GPIO_PORTB_BASE
  16010. #define I2C0SDA_PIN GPIO_PIN_3
  16011. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  16012. #define NMI_PORT GPIO_PORTB_BASE
  16013. #define NMI_PIN GPIO_PIN_7
  16014. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  16015. #define SSI0CLK_PORT GPIO_PORTA_BASE
  16016. #define SSI0CLK_PIN GPIO_PIN_2
  16017. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  16018. #define SSI0FSS_PORT GPIO_PORTA_BASE
  16019. #define SSI0FSS_PIN GPIO_PIN_3
  16020. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16021. #define SSI0RX_PORT GPIO_PORTA_BASE
  16022. #define SSI0RX_PIN GPIO_PIN_4
  16023. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16024. #define SSI0TX_PORT GPIO_PORTA_BASE
  16025. #define SSI0TX_PIN GPIO_PIN_5
  16026. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  16027. #define SWCLK_PORT GPIO_PORTC_BASE
  16028. #define SWCLK_PIN GPIO_PIN_0
  16029. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  16030. #define SWDIO_PORT GPIO_PORTC_BASE
  16031. #define SWDIO_PIN GPIO_PIN_1
  16032. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  16033. #define SWO_PORT GPIO_PORTC_BASE
  16034. #define SWO_PIN GPIO_PIN_3
  16035. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  16036. #define TCK_PORT GPIO_PORTC_BASE
  16037. #define TCK_PIN GPIO_PIN_0
  16038. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  16039. #define TDI_PORT GPIO_PORTC_BASE
  16040. #define TDI_PIN GPIO_PIN_2
  16041. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  16042. #define TDO_PORT GPIO_PORTC_BASE
  16043. #define TDO_PIN GPIO_PIN_3
  16044. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  16045. #define TMS_PORT GPIO_PORTC_BASE
  16046. #define TMS_PIN GPIO_PIN_1
  16047. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16048. #define U0RX_PORT GPIO_PORTA_BASE
  16049. #define U0RX_PIN GPIO_PIN_0
  16050. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16051. #define U0TX_PORT GPIO_PORTA_BASE
  16052. #define U0TX_PIN GPIO_PIN_1
  16053. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOC
  16054. #define USB0EPEN_PORT GPIO_PORTC_BASE
  16055. #define USB0EPEN_PIN GPIO_PIN_5
  16056. #define USB0ID_PERIPH SYSCTL_PERIPH_GPIOB
  16057. #define USB0ID_PORT GPIO_PORTB_BASE
  16058. #define USB0ID_PIN GPIO_PIN_0
  16059. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOC
  16060. #define USB0PFLT_PORT GPIO_PORTC_BASE
  16061. #define USB0PFLT_PIN GPIO_PIN_6
  16062. #define USB0VBUS_PERIPH SYSCTL_PERIPH_GPIOB
  16063. #define USB0VBUS_PORT GPIO_PORTB_BASE
  16064. #define USB0VBUS_PIN GPIO_PIN_1
  16065. #endif // PART_LM3S5652
  16066. //*****************************************************************************
  16067. //
  16068. // LM3S5656 Port/Pin Mapping Definitions
  16069. //
  16070. //*****************************************************************************
  16071. #ifdef PART_LM3S5656
  16072. #define GPIO_PA0_U0RX 0x00000001
  16073. #define GPIO_PA0_I2C1SCL 0x00000008
  16074. #define GPIO_PA0_U1RX 0x00000009
  16075. #define GPIO_PA1_U0TX 0x00000401
  16076. #define GPIO_PA1_I2C1SDA 0x00000408
  16077. #define GPIO_PA1_U1TX 0x00000409
  16078. #define GPIO_PA2_SSI0CLK 0x00000801
  16079. #define GPIO_PA2_PWM4 0x00000804
  16080. #define GPIO_PA3_SSI0FSS 0x00000C01
  16081. #define GPIO_PA3_PWM5 0x00000C04
  16082. #define GPIO_PA4_SSI0RX 0x00001001
  16083. #define GPIO_PA4_CAN0RX 0x00001005
  16084. #define GPIO_PA5_SSI0TX 0x00001401
  16085. #define GPIO_PA5_CAN0TX 0x00001405
  16086. #define GPIO_PA6_I2C1SCL 0x00001801
  16087. #define GPIO_PA6_CCP1 0x00001802
  16088. #define GPIO_PA6_PWM0 0x00001804
  16089. #define GPIO_PA6_PWM4 0x00001805
  16090. #define GPIO_PA6_CAN0RX 0x00001806
  16091. #define GPIO_PA6_USB0EPEN 0x00001808
  16092. #define GPIO_PA7_I2C1SDA 0x00001C01
  16093. #define GPIO_PA7_CCP4 0x00001C02
  16094. #define GPIO_PA7_PWM1 0x00001C04
  16095. #define GPIO_PA7_PWM5 0x00001C05
  16096. #define GPIO_PA7_CAN0TX 0x00001C06
  16097. #define GPIO_PA7_CCP3 0x00001C07
  16098. #define GPIO_PA7_USB0PFLT 0x00001C08
  16099. #define GPIO_PB0_CCP0 0x00010001
  16100. #define GPIO_PB0_PWM2 0x00010002
  16101. #define GPIO_PB0_U1RX 0x00010005
  16102. #define GPIO_PB1_CCP2 0x00010401
  16103. #define GPIO_PB1_PWM3 0x00010402
  16104. #define GPIO_PB1_CCP1 0x00010404
  16105. #define GPIO_PB1_U1TX 0x00010405
  16106. #define GPIO_PB2_I2C0SCL 0x00010801
  16107. #define GPIO_PB2_IDX0 0x00010802
  16108. #define GPIO_PB2_CCP3 0x00010804
  16109. #define GPIO_PB2_CCP0 0x00010805
  16110. #define GPIO_PB2_USB0EPEN 0x00010808
  16111. #define GPIO_PB3_I2C0SDA 0x00010C01
  16112. #define GPIO_PB3_FAULT0 0x00010C02
  16113. #define GPIO_PB3_FAULT3 0x00010C04
  16114. #define GPIO_PB3_USB0PFLT 0x00010C08
  16115. #define GPIO_PB4_U2RX 0x00011004
  16116. #define GPIO_PB4_CAN0RX 0x00011005
  16117. #define GPIO_PB4_IDX0 0x00011006
  16118. #define GPIO_PB4_U1RX 0x00011007
  16119. #define GPIO_PB5_C0O 0x00011401
  16120. #define GPIO_PB5_CCP5 0x00011402
  16121. #define GPIO_PB5_CCP6 0x00011403
  16122. #define GPIO_PB5_CCP0 0x00011404
  16123. #define GPIO_PB5_CAN0TX 0x00011405
  16124. #define GPIO_PB5_CCP2 0x00011406
  16125. #define GPIO_PB5_U1TX 0x00011407
  16126. #define GPIO_PB6_CCP1 0x00011801
  16127. #define GPIO_PB6_CCP7 0x00011802
  16128. #define GPIO_PB6_C0O 0x00011803
  16129. #define GPIO_PB6_FAULT1 0x00011804
  16130. #define GPIO_PB6_IDX0 0x00011805
  16131. #define GPIO_PB6_CCP5 0x00011806
  16132. #define GPIO_PB7_NMI 0x00011C04
  16133. #define GPIO_PC0_TCK 0x00020003
  16134. #define GPIO_PC0_SWCLK 0x00020003
  16135. #define GPIO_PC1_TMS 0x00020403
  16136. #define GPIO_PC1_SWDIO 0x00020403
  16137. #define GPIO_PC2_TDI 0x00020803
  16138. #define GPIO_PC3_SWO 0x00020C03
  16139. #define GPIO_PC3_TDO 0x00020C03
  16140. #define GPIO_PC4_CCP5 0x00021001
  16141. #define GPIO_PC4_PHA0 0x00021002
  16142. #define GPIO_PC4_CCP2 0x00021005
  16143. #define GPIO_PC4_CCP4 0x00021006
  16144. #define GPIO_PC4_CCP1 0x00021009
  16145. #define GPIO_PC5_CCP1 0x00021401
  16146. #define GPIO_PC5_C1O 0x00021402
  16147. #define GPIO_PC5_C0O 0x00021403
  16148. #define GPIO_PC5_FAULT2 0x00021404
  16149. #define GPIO_PC5_CCP3 0x00021405
  16150. #define GPIO_PC5_USB0EPEN 0x00021406
  16151. #define GPIO_PC6_CCP3 0x00021801
  16152. #define GPIO_PC6_PHB0 0x00021802
  16153. #define GPIO_PC6_U1RX 0x00021805
  16154. #define GPIO_PC6_CCP0 0x00021806
  16155. #define GPIO_PC6_USB0PFLT 0x00021807
  16156. #define GPIO_PC7_CCP4 0x00021C01
  16157. #define GPIO_PC7_PHB0 0x00021C02
  16158. #define GPIO_PC7_CCP0 0x00021C04
  16159. #define GPIO_PC7_U1TX 0x00021C05
  16160. #define GPIO_PC7_USB0PFLT 0x00021C06
  16161. #define GPIO_PC7_C1O 0x00021C07
  16162. #define GPIO_PD0_PWM0 0x00030001
  16163. #define GPIO_PD0_CAN0RX 0x00030002
  16164. #define GPIO_PD0_IDX0 0x00030003
  16165. #define GPIO_PD0_U2RX 0x00030004
  16166. #define GPIO_PD0_U1RX 0x00030005
  16167. #define GPIO_PD0_CCP6 0x00030006
  16168. #define GPIO_PD1_PWM1 0x00030401
  16169. #define GPIO_PD1_CAN0TX 0x00030402
  16170. #define GPIO_PD1_PHA0 0x00030403
  16171. #define GPIO_PD1_U2TX 0x00030404
  16172. #define GPIO_PD1_U1TX 0x00030405
  16173. #define GPIO_PD1_CCP7 0x00030406
  16174. #define GPIO_PD1_CCP2 0x0003040A
  16175. #define GPIO_PD2_U1RX 0x00030801
  16176. #define GPIO_PD2_CCP6 0x00030802
  16177. #define GPIO_PD2_PWM2 0x00030803
  16178. #define GPIO_PD2_CCP5 0x00030804
  16179. #define GPIO_PD3_U1TX 0x00030C01
  16180. #define GPIO_PD3_CCP7 0x00030C02
  16181. #define GPIO_PD3_PWM3 0x00030C03
  16182. #define GPIO_PD3_CCP0 0x00030C04
  16183. #define GPIO_PE0_PWM4 0x00040001
  16184. #define GPIO_PE0_SSI1CLK 0x00040002
  16185. #define GPIO_PE0_CCP3 0x00040003
  16186. #define GPIO_PE0_USB0PFLT 0x00040009
  16187. #define GPIO_PE1_PWM5 0x00040401
  16188. #define GPIO_PE1_SSI1FSS 0x00040402
  16189. #define GPIO_PE1_FAULT0 0x00040403
  16190. #define GPIO_PE1_CCP2 0x00040404
  16191. #define GPIO_PE1_CCP6 0x00040405
  16192. #define GPIO_PE2_CCP4 0x00040801
  16193. #define GPIO_PE2_SSI1RX 0x00040802
  16194. #define GPIO_PE2_PHA0 0x00040804
  16195. #define GPIO_PE2_CCP2 0x00040805
  16196. #define GPIO_PE3_CCP1 0x00040C01
  16197. #define GPIO_PE3_SSI1TX 0x00040C02
  16198. #define GPIO_PE3_PHB0 0x00040C04
  16199. #define GPIO_PE3_CCP7 0x00040C05
  16200. #define GPIO_PE4_CCP3 0x00041001
  16201. #define GPIO_PE4_FAULT0 0x00041004
  16202. #define GPIO_PE4_U2TX 0x00041005
  16203. #define GPIO_PE4_CCP2 0x00041006
  16204. #endif // PART_LM3S5656
  16205. //*****************************************************************************
  16206. //
  16207. // LM3S5662 Port/Pin Mapping Definitions
  16208. //
  16209. //*****************************************************************************
  16210. #ifdef PART_LM3S5662
  16211. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  16212. #define ADC0_PORT GPIO_PORTE_BASE
  16213. #define ADC0_PIN GPIO_PIN_3
  16214. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  16215. #define ADC1_PORT GPIO_PORTE_BASE
  16216. #define ADC1_PIN GPIO_PIN_2
  16217. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  16218. #define ADC2_PORT GPIO_PORTE_BASE
  16219. #define ADC2_PIN GPIO_PIN_1
  16220. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  16221. #define ADC3_PORT GPIO_PORTE_BASE
  16222. #define ADC3_PIN GPIO_PIN_0
  16223. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOB
  16224. #define CAN0RX_PORT GPIO_PORTB_BASE
  16225. #define CAN0RX_PIN GPIO_PIN_4
  16226. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOB
  16227. #define CAN0TX_PORT GPIO_PORTB_BASE
  16228. #define CAN0TX_PIN GPIO_PIN_5
  16229. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  16230. #define CCP0_PORT GPIO_PORTB_BASE
  16231. #define CCP0_PIN GPIO_PIN_2
  16232. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  16233. #define CCP1_PORT GPIO_PORTB_BASE
  16234. #define CCP1_PIN GPIO_PIN_6
  16235. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  16236. #define CCP2_PORT GPIO_PORTC_BASE
  16237. #define CCP2_PIN GPIO_PIN_4
  16238. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  16239. #define CCP3_PORT GPIO_PORTE_BASE
  16240. #define CCP3_PIN GPIO_PIN_4
  16241. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  16242. #define CCP4_PORT GPIO_PORTC_BASE
  16243. #define CCP4_PIN GPIO_PIN_7
  16244. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOB
  16245. #define FAULT0_PORT GPIO_PORTB_BASE
  16246. #define FAULT0_PIN GPIO_PIN_3
  16247. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  16248. #define NMI_PORT GPIO_PORTB_BASE
  16249. #define NMI_PIN GPIO_PIN_7
  16250. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  16251. #define PWM0_PORT GPIO_PORTD_BASE
  16252. #define PWM0_PIN GPIO_PIN_0
  16253. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  16254. #define PWM1_PORT GPIO_PORTD_BASE
  16255. #define PWM1_PIN GPIO_PIN_1
  16256. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOD
  16257. #define PWM2_PORT GPIO_PORTD_BASE
  16258. #define PWM2_PIN GPIO_PIN_2
  16259. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOD
  16260. #define PWM3_PORT GPIO_PORTD_BASE
  16261. #define PWM3_PIN GPIO_PIN_3
  16262. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOA
  16263. #define PWM4_PORT GPIO_PORTA_BASE
  16264. #define PWM4_PIN GPIO_PIN_6
  16265. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOA
  16266. #define PWM5_PORT GPIO_PORTA_BASE
  16267. #define PWM5_PIN GPIO_PIN_7
  16268. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  16269. #define SSI0CLK_PORT GPIO_PORTA_BASE
  16270. #define SSI0CLK_PIN GPIO_PIN_2
  16271. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  16272. #define SSI0FSS_PORT GPIO_PORTA_BASE
  16273. #define SSI0FSS_PIN GPIO_PIN_3
  16274. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16275. #define SSI0RX_PORT GPIO_PORTA_BASE
  16276. #define SSI0RX_PIN GPIO_PIN_4
  16277. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16278. #define SSI0TX_PORT GPIO_PORTA_BASE
  16279. #define SSI0TX_PIN GPIO_PIN_5
  16280. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  16281. #define SWCLK_PORT GPIO_PORTC_BASE
  16282. #define SWCLK_PIN GPIO_PIN_0
  16283. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  16284. #define SWDIO_PORT GPIO_PORTC_BASE
  16285. #define SWDIO_PIN GPIO_PIN_1
  16286. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  16287. #define SWO_PORT GPIO_PORTC_BASE
  16288. #define SWO_PIN GPIO_PIN_3
  16289. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  16290. #define TCK_PORT GPIO_PORTC_BASE
  16291. #define TCK_PIN GPIO_PIN_0
  16292. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  16293. #define TDI_PORT GPIO_PORTC_BASE
  16294. #define TDI_PIN GPIO_PIN_2
  16295. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  16296. #define TDO_PORT GPIO_PORTC_BASE
  16297. #define TDO_PIN GPIO_PIN_3
  16298. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  16299. #define TMS_PORT GPIO_PORTC_BASE
  16300. #define TMS_PIN GPIO_PIN_1
  16301. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16302. #define U0RX_PORT GPIO_PORTA_BASE
  16303. #define U0RX_PIN GPIO_PIN_0
  16304. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16305. #define U0TX_PORT GPIO_PORTA_BASE
  16306. #define U0TX_PIN GPIO_PIN_1
  16307. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOC
  16308. #define USB0EPEN_PORT GPIO_PORTC_BASE
  16309. #define USB0EPEN_PIN GPIO_PIN_5
  16310. #define USB0ID_PERIPH SYSCTL_PERIPH_GPIOB
  16311. #define USB0ID_PORT GPIO_PORTB_BASE
  16312. #define USB0ID_PIN GPIO_PIN_0
  16313. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOC
  16314. #define USB0PFLT_PORT GPIO_PORTC_BASE
  16315. #define USB0PFLT_PIN GPIO_PIN_6
  16316. #define USB0VBUS_PERIPH SYSCTL_PERIPH_GPIOB
  16317. #define USB0VBUS_PORT GPIO_PORTB_BASE
  16318. #define USB0VBUS_PIN GPIO_PIN_1
  16319. #endif // PART_LM3S5662
  16320. //*****************************************************************************
  16321. //
  16322. // LM3S5732 Port/Pin Mapping Definitions
  16323. //
  16324. //*****************************************************************************
  16325. #ifdef PART_LM3S5732
  16326. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  16327. #define ADC0_PORT GPIO_PORTE_BASE
  16328. #define ADC0_PIN GPIO_PIN_3
  16329. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  16330. #define ADC1_PORT GPIO_PORTE_BASE
  16331. #define ADC1_PIN GPIO_PIN_2
  16332. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  16333. #define ADC2_PORT GPIO_PORTE_BASE
  16334. #define ADC2_PIN GPIO_PIN_1
  16335. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  16336. #define ADC3_PORT GPIO_PORTE_BASE
  16337. #define ADC3_PIN GPIO_PIN_0
  16338. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  16339. #define ADC4_PORT GPIO_PORTD_BASE
  16340. #define ADC4_PIN GPIO_PIN_3
  16341. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  16342. #define ADC5_PORT GPIO_PORTD_BASE
  16343. #define ADC5_PIN GPIO_PIN_2
  16344. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  16345. #define CAN0RX_PORT GPIO_PORTD_BASE
  16346. #define CAN0RX_PIN GPIO_PIN_0
  16347. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  16348. #define CAN0TX_PORT GPIO_PORTD_BASE
  16349. #define CAN0TX_PIN GPIO_PIN_1
  16350. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  16351. #define CCP0_PORT GPIO_PORTB_BASE
  16352. #define CCP0_PIN GPIO_PIN_5
  16353. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  16354. #define CCP1_PORT GPIO_PORTB_BASE
  16355. #define CCP1_PIN GPIO_PIN_6
  16356. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  16357. #define CCP2_PORT GPIO_PORTC_BASE
  16358. #define CCP2_PIN GPIO_PIN_4
  16359. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  16360. #define CCP3_PORT GPIO_PORTE_BASE
  16361. #define CCP3_PIN GPIO_PIN_4
  16362. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  16363. #define CCP4_PORT GPIO_PORTC_BASE
  16364. #define CCP4_PIN GPIO_PIN_7
  16365. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  16366. #define I2C0SCL_PORT GPIO_PORTB_BASE
  16367. #define I2C0SCL_PIN GPIO_PIN_2
  16368. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  16369. #define I2C0SDA_PORT GPIO_PORTB_BASE
  16370. #define I2C0SDA_PIN GPIO_PIN_3
  16371. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  16372. #define I2C1SCL_PORT GPIO_PORTA_BASE
  16373. #define I2C1SCL_PIN GPIO_PIN_6
  16374. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  16375. #define I2C1SDA_PORT GPIO_PORTA_BASE
  16376. #define I2C1SDA_PIN GPIO_PIN_7
  16377. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  16378. #define NMI_PORT GPIO_PORTB_BASE
  16379. #define NMI_PIN GPIO_PIN_7
  16380. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  16381. #define SSI0CLK_PORT GPIO_PORTA_BASE
  16382. #define SSI0CLK_PIN GPIO_PIN_2
  16383. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  16384. #define SSI0FSS_PORT GPIO_PORTA_BASE
  16385. #define SSI0FSS_PIN GPIO_PIN_3
  16386. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16387. #define SSI0RX_PORT GPIO_PORTA_BASE
  16388. #define SSI0RX_PIN GPIO_PIN_4
  16389. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16390. #define SSI0TX_PORT GPIO_PORTA_BASE
  16391. #define SSI0TX_PIN GPIO_PIN_5
  16392. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  16393. #define SWCLK_PORT GPIO_PORTC_BASE
  16394. #define SWCLK_PIN GPIO_PIN_0
  16395. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  16396. #define SWDIO_PORT GPIO_PORTC_BASE
  16397. #define SWDIO_PIN GPIO_PIN_1
  16398. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  16399. #define SWO_PORT GPIO_PORTC_BASE
  16400. #define SWO_PIN GPIO_PIN_3
  16401. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  16402. #define TCK_PORT GPIO_PORTC_BASE
  16403. #define TCK_PIN GPIO_PIN_0
  16404. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  16405. #define TDI_PORT GPIO_PORTC_BASE
  16406. #define TDI_PIN GPIO_PIN_2
  16407. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  16408. #define TDO_PORT GPIO_PORTC_BASE
  16409. #define TDO_PIN GPIO_PIN_3
  16410. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  16411. #define TMS_PORT GPIO_PORTC_BASE
  16412. #define TMS_PIN GPIO_PIN_1
  16413. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16414. #define U0RX_PORT GPIO_PORTA_BASE
  16415. #define U0RX_PIN GPIO_PIN_0
  16416. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16417. #define U0TX_PORT GPIO_PORTA_BASE
  16418. #define U0TX_PIN GPIO_PIN_1
  16419. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOB
  16420. #define U1RX_PORT GPIO_PORTB_BASE
  16421. #define U1RX_PIN GPIO_PIN_0
  16422. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOB
  16423. #define U1TX_PORT GPIO_PORTB_BASE
  16424. #define U1TX_PIN GPIO_PIN_1
  16425. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOC
  16426. #define USB0EPEN_PORT GPIO_PORTC_BASE
  16427. #define USB0EPEN_PIN GPIO_PIN_5
  16428. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOC
  16429. #define USB0PFLT_PORT GPIO_PORTC_BASE
  16430. #define USB0PFLT_PIN GPIO_PIN_6
  16431. #endif // PART_LM3S5732
  16432. //*****************************************************************************
  16433. //
  16434. // LM3S5737 Port/Pin Mapping Definitions
  16435. //
  16436. //*****************************************************************************
  16437. #ifdef PART_LM3S5737
  16438. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  16439. #define ADC0_PORT GPIO_PORTE_BASE
  16440. #define ADC0_PIN GPIO_PIN_7
  16441. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  16442. #define ADC1_PORT GPIO_PORTE_BASE
  16443. #define ADC1_PIN GPIO_PIN_6
  16444. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  16445. #define ADC2_PORT GPIO_PORTE_BASE
  16446. #define ADC2_PIN GPIO_PIN_5
  16447. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  16448. #define ADC3_PORT GPIO_PORTE_BASE
  16449. #define ADC3_PIN GPIO_PIN_4
  16450. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  16451. #define ADC4_PORT GPIO_PORTD_BASE
  16452. #define ADC4_PIN GPIO_PIN_7
  16453. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  16454. #define ADC5_PORT GPIO_PORTD_BASE
  16455. #define ADC5_PIN GPIO_PIN_6
  16456. #define ADC6_PERIPH SYSCTL_PERIPH_GPIOD
  16457. #define ADC6_PORT GPIO_PORTD_BASE
  16458. #define ADC6_PIN GPIO_PIN_5
  16459. #define ADC7_PERIPH SYSCTL_PERIPH_GPIOD
  16460. #define ADC7_PORT GPIO_PORTD_BASE
  16461. #define ADC7_PIN GPIO_PIN_4
  16462. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  16463. #define CAN0RX_PORT GPIO_PORTD_BASE
  16464. #define CAN0RX_PIN GPIO_PIN_0
  16465. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  16466. #define CAN0TX_PORT GPIO_PORTD_BASE
  16467. #define CAN0TX_PIN GPIO_PIN_1
  16468. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  16469. #define CCP0_PORT GPIO_PORTB_BASE
  16470. #define CCP0_PIN GPIO_PIN_0
  16471. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  16472. #define CCP1_PORT GPIO_PORTB_BASE
  16473. #define CCP1_PIN GPIO_PIN_1
  16474. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  16475. #define CCP2_PORT GPIO_PORTB_BASE
  16476. #define CCP2_PIN GPIO_PIN_5
  16477. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  16478. #define I2C0SCL_PORT GPIO_PORTB_BASE
  16479. #define I2C0SCL_PIN GPIO_PIN_2
  16480. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  16481. #define I2C0SDA_PORT GPIO_PORTB_BASE
  16482. #define I2C0SDA_PIN GPIO_PIN_3
  16483. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  16484. #define I2C1SCL_PORT GPIO_PORTA_BASE
  16485. #define I2C1SCL_PIN GPIO_PIN_6
  16486. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  16487. #define I2C1SDA_PORT GPIO_PORTA_BASE
  16488. #define I2C1SDA_PIN GPIO_PIN_7
  16489. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  16490. #define NMI_PORT GPIO_PORTB_BASE
  16491. #define NMI_PIN GPIO_PIN_7
  16492. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  16493. #define SSI0CLK_PORT GPIO_PORTA_BASE
  16494. #define SSI0CLK_PIN GPIO_PIN_2
  16495. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  16496. #define SSI0FSS_PORT GPIO_PORTA_BASE
  16497. #define SSI0FSS_PIN GPIO_PIN_3
  16498. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16499. #define SSI0RX_PORT GPIO_PORTA_BASE
  16500. #define SSI0RX_PIN GPIO_PIN_4
  16501. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16502. #define SSI0TX_PORT GPIO_PORTA_BASE
  16503. #define SSI0TX_PIN GPIO_PIN_5
  16504. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  16505. #define SSI1CLK_PORT GPIO_PORTE_BASE
  16506. #define SSI1CLK_PIN GPIO_PIN_0
  16507. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  16508. #define SSI1FSS_PORT GPIO_PORTE_BASE
  16509. #define SSI1FSS_PIN GPIO_PIN_1
  16510. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  16511. #define SSI1RX_PORT GPIO_PORTE_BASE
  16512. #define SSI1RX_PIN GPIO_PIN_2
  16513. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  16514. #define SSI1TX_PORT GPIO_PORTE_BASE
  16515. #define SSI1TX_PIN GPIO_PIN_3
  16516. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  16517. #define SWCLK_PORT GPIO_PORTC_BASE
  16518. #define SWCLK_PIN GPIO_PIN_0
  16519. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  16520. #define SWDIO_PORT GPIO_PORTC_BASE
  16521. #define SWDIO_PIN GPIO_PIN_1
  16522. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  16523. #define SWO_PORT GPIO_PORTC_BASE
  16524. #define SWO_PIN GPIO_PIN_3
  16525. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  16526. #define TCK_PORT GPIO_PORTC_BASE
  16527. #define TCK_PIN GPIO_PIN_0
  16528. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  16529. #define TDI_PORT GPIO_PORTC_BASE
  16530. #define TDI_PIN GPIO_PIN_2
  16531. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  16532. #define TDO_PORT GPIO_PORTC_BASE
  16533. #define TDO_PIN GPIO_PIN_3
  16534. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  16535. #define TMS_PORT GPIO_PORTC_BASE
  16536. #define TMS_PIN GPIO_PIN_1
  16537. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16538. #define U0RX_PORT GPIO_PORTA_BASE
  16539. #define U0RX_PIN GPIO_PIN_0
  16540. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16541. #define U0TX_PORT GPIO_PORTA_BASE
  16542. #define U0TX_PIN GPIO_PIN_1
  16543. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOC
  16544. #define USB0EPEN_PORT GPIO_PORTC_BASE
  16545. #define USB0EPEN_PIN GPIO_PIN_5
  16546. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOC
  16547. #define USB0PFLT_PORT GPIO_PORTC_BASE
  16548. #define USB0PFLT_PIN GPIO_PIN_6
  16549. #endif // PART_LM3S5737
  16550. //*****************************************************************************
  16551. //
  16552. // LM3S5739 Port/Pin Mapping Definitions
  16553. //
  16554. //*****************************************************************************
  16555. #ifdef PART_LM3S5739
  16556. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  16557. #define ADC0_PORT GPIO_PORTE_BASE
  16558. #define ADC0_PIN GPIO_PIN_7
  16559. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  16560. #define ADC1_PORT GPIO_PORTE_BASE
  16561. #define ADC1_PIN GPIO_PIN_6
  16562. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  16563. #define ADC2_PORT GPIO_PORTE_BASE
  16564. #define ADC2_PIN GPIO_PIN_5
  16565. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  16566. #define ADC3_PORT GPIO_PORTE_BASE
  16567. #define ADC3_PIN GPIO_PIN_4
  16568. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  16569. #define ADC4_PORT GPIO_PORTD_BASE
  16570. #define ADC4_PIN GPIO_PIN_7
  16571. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  16572. #define ADC5_PORT GPIO_PORTD_BASE
  16573. #define ADC5_PIN GPIO_PIN_6
  16574. #define ADC6_PERIPH SYSCTL_PERIPH_GPIOD
  16575. #define ADC6_PORT GPIO_PORTD_BASE
  16576. #define ADC6_PIN GPIO_PIN_5
  16577. #define ADC7_PERIPH SYSCTL_PERIPH_GPIOD
  16578. #define ADC7_PORT GPIO_PORTD_BASE
  16579. #define ADC7_PIN GPIO_PIN_4
  16580. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  16581. #define C0O_PORT GPIO_PORTF_BASE
  16582. #define C0O_PIN GPIO_PIN_4
  16583. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  16584. #define C0_MINUS_PORT GPIO_PORTB_BASE
  16585. #define C0_MINUS_PIN GPIO_PIN_4
  16586. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  16587. #define C0_PLUS_PORT GPIO_PORTB_BASE
  16588. #define C0_PLUS_PIN GPIO_PIN_6
  16589. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  16590. #define C1O_PORT GPIO_PORTF_BASE
  16591. #define C1O_PIN GPIO_PIN_5
  16592. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  16593. #define C1_MINUS_PORT GPIO_PORTB_BASE
  16594. #define C1_MINUS_PIN GPIO_PIN_5
  16595. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  16596. #define C1_PLUS_PORT GPIO_PORTC_BASE
  16597. #define C1_PLUS_PIN GPIO_PIN_5
  16598. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16599. #define CAN0RX_PORT GPIO_PORTA_BASE
  16600. #define CAN0RX_PIN GPIO_PIN_6
  16601. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16602. #define CAN0TX_PORT GPIO_PORTA_BASE
  16603. #define CAN0TX_PIN GPIO_PIN_7
  16604. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOC
  16605. #define CCP0_PORT GPIO_PORTC_BASE
  16606. #define CCP0_PIN GPIO_PIN_6
  16607. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOF
  16608. #define CCP1_PORT GPIO_PORTF_BASE
  16609. #define CCP1_PIN GPIO_PIN_6
  16610. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  16611. #define CCP2_PORT GPIO_PORTC_BASE
  16612. #define CCP2_PIN GPIO_PIN_4
  16613. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOG
  16614. #define CCP3_PORT GPIO_PORTG_BASE
  16615. #define CCP3_PIN GPIO_PIN_4
  16616. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  16617. #define CCP4_PORT GPIO_PORTC_BASE
  16618. #define CCP4_PIN GPIO_PIN_7
  16619. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOD
  16620. #define CCP5_PORT GPIO_PORTD_BASE
  16621. #define CCP5_PIN GPIO_PIN_2
  16622. #define CCP6_PERIPH SYSCTL_PERIPH_GPIOH
  16623. #define CCP6_PORT GPIO_PORTH_BASE
  16624. #define CCP6_PIN GPIO_PIN_0
  16625. #define CCP7_PERIPH SYSCTL_PERIPH_GPIOD
  16626. #define CCP7_PORT GPIO_PORTD_BASE
  16627. #define CCP7_PIN GPIO_PIN_3
  16628. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  16629. #define I2C0SCL_PORT GPIO_PORTB_BASE
  16630. #define I2C0SCL_PIN GPIO_PIN_2
  16631. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  16632. #define I2C0SDA_PORT GPIO_PORTB_BASE
  16633. #define I2C0SDA_PIN GPIO_PIN_3
  16634. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOG
  16635. #define I2C1SCL_PORT GPIO_PORTG_BASE
  16636. #define I2C1SCL_PIN GPIO_PIN_0
  16637. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOG
  16638. #define I2C1SDA_PORT GPIO_PORTG_BASE
  16639. #define I2C1SDA_PIN GPIO_PIN_1
  16640. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  16641. #define NMI_PORT GPIO_PORTB_BASE
  16642. #define NMI_PIN GPIO_PIN_7
  16643. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  16644. #define SSI0CLK_PORT GPIO_PORTA_BASE
  16645. #define SSI0CLK_PIN GPIO_PIN_2
  16646. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  16647. #define SSI0FSS_PORT GPIO_PORTA_BASE
  16648. #define SSI0FSS_PIN GPIO_PIN_3
  16649. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16650. #define SSI0RX_PORT GPIO_PORTA_BASE
  16651. #define SSI0RX_PIN GPIO_PIN_4
  16652. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16653. #define SSI0TX_PORT GPIO_PORTA_BASE
  16654. #define SSI0TX_PIN GPIO_PIN_5
  16655. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  16656. #define SSI1CLK_PORT GPIO_PORTE_BASE
  16657. #define SSI1CLK_PIN GPIO_PIN_0
  16658. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  16659. #define SSI1FSS_PORT GPIO_PORTE_BASE
  16660. #define SSI1FSS_PIN GPIO_PIN_1
  16661. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  16662. #define SSI1RX_PORT GPIO_PORTE_BASE
  16663. #define SSI1RX_PIN GPIO_PIN_2
  16664. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  16665. #define SSI1TX_PORT GPIO_PORTE_BASE
  16666. #define SSI1TX_PIN GPIO_PIN_3
  16667. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  16668. #define SWCLK_PORT GPIO_PORTC_BASE
  16669. #define SWCLK_PIN GPIO_PIN_0
  16670. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  16671. #define SWDIO_PORT GPIO_PORTC_BASE
  16672. #define SWDIO_PIN GPIO_PIN_1
  16673. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  16674. #define SWO_PORT GPIO_PORTC_BASE
  16675. #define SWO_PIN GPIO_PIN_3
  16676. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  16677. #define TCK_PORT GPIO_PORTC_BASE
  16678. #define TCK_PIN GPIO_PIN_0
  16679. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  16680. #define TDI_PORT GPIO_PORTC_BASE
  16681. #define TDI_PIN GPIO_PIN_2
  16682. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  16683. #define TDO_PORT GPIO_PORTC_BASE
  16684. #define TDO_PIN GPIO_PIN_3
  16685. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  16686. #define TMS_PORT GPIO_PORTC_BASE
  16687. #define TMS_PIN GPIO_PIN_1
  16688. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16689. #define U0RX_PORT GPIO_PORTA_BASE
  16690. #define U0RX_PIN GPIO_PIN_0
  16691. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16692. #define U0TX_PORT GPIO_PORTA_BASE
  16693. #define U0TX_PIN GPIO_PIN_1
  16694. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOB
  16695. #define U1RX_PORT GPIO_PORTB_BASE
  16696. #define U1RX_PIN GPIO_PIN_0
  16697. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOB
  16698. #define U1TX_PORT GPIO_PORTB_BASE
  16699. #define U1TX_PIN GPIO_PIN_1
  16700. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOD
  16701. #define U2RX_PORT GPIO_PORTD_BASE
  16702. #define U2RX_PIN GPIO_PIN_0
  16703. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOD
  16704. #define U2TX_PORT GPIO_PORTD_BASE
  16705. #define U2TX_PIN GPIO_PIN_1
  16706. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOH
  16707. #define USB0EPEN_PORT GPIO_PORTH_BASE
  16708. #define USB0EPEN_PIN GPIO_PIN_3
  16709. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOH
  16710. #define USB0PFLT_PORT GPIO_PORTH_BASE
  16711. #define USB0PFLT_PIN GPIO_PIN_4
  16712. #endif // PART_LM3S5739
  16713. //*****************************************************************************
  16714. //
  16715. // LM3S5747 Port/Pin Mapping Definitions
  16716. //
  16717. //*****************************************************************************
  16718. #ifdef PART_LM3S5747
  16719. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  16720. #define ADC0_PORT GPIO_PORTE_BASE
  16721. #define ADC0_PIN GPIO_PIN_7
  16722. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  16723. #define ADC1_PORT GPIO_PORTE_BASE
  16724. #define ADC1_PIN GPIO_PIN_6
  16725. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  16726. #define ADC2_PORT GPIO_PORTE_BASE
  16727. #define ADC2_PIN GPIO_PIN_5
  16728. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  16729. #define ADC3_PORT GPIO_PORTE_BASE
  16730. #define ADC3_PIN GPIO_PIN_4
  16731. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  16732. #define ADC4_PORT GPIO_PORTD_BASE
  16733. #define ADC4_PIN GPIO_PIN_7
  16734. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  16735. #define ADC5_PORT GPIO_PORTD_BASE
  16736. #define ADC5_PIN GPIO_PIN_6
  16737. #define ADC6_PERIPH SYSCTL_PERIPH_GPIOD
  16738. #define ADC6_PORT GPIO_PORTD_BASE
  16739. #define ADC6_PIN GPIO_PIN_5
  16740. #define ADC7_PERIPH SYSCTL_PERIPH_GPIOD
  16741. #define ADC7_PORT GPIO_PORTD_BASE
  16742. #define ADC7_PIN GPIO_PIN_4
  16743. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOB
  16744. #define CAN0RX_PORT GPIO_PORTB_BASE
  16745. #define CAN0RX_PIN GPIO_PIN_4
  16746. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOB
  16747. #define CAN0TX_PORT GPIO_PORTB_BASE
  16748. #define CAN0TX_PIN GPIO_PIN_5
  16749. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  16750. #define CCP0_PORT GPIO_PORTB_BASE
  16751. #define CCP0_PIN GPIO_PIN_0
  16752. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  16753. #define CCP1_PORT GPIO_PORTA_BASE
  16754. #define CCP1_PIN GPIO_PIN_6
  16755. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOE
  16756. #define FAULT0_PORT GPIO_PORTE_BASE
  16757. #define FAULT0_PIN GPIO_PIN_1
  16758. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  16759. #define I2C0SCL_PORT GPIO_PORTB_BASE
  16760. #define I2C0SCL_PIN GPIO_PIN_2
  16761. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  16762. #define I2C0SDA_PORT GPIO_PORTB_BASE
  16763. #define I2C0SDA_PIN GPIO_PIN_3
  16764. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  16765. #define NMI_PORT GPIO_PORTB_BASE
  16766. #define NMI_PIN GPIO_PIN_7
  16767. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  16768. #define PWM0_PORT GPIO_PORTD_BASE
  16769. #define PWM0_PIN GPIO_PIN_0
  16770. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  16771. #define PWM1_PORT GPIO_PORTD_BASE
  16772. #define PWM1_PIN GPIO_PIN_1
  16773. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOD
  16774. #define PWM2_PORT GPIO_PORTD_BASE
  16775. #define PWM2_PIN GPIO_PIN_2
  16776. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOD
  16777. #define PWM3_PORT GPIO_PORTD_BASE
  16778. #define PWM3_PIN GPIO_PIN_3
  16779. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOF
  16780. #define PWM4_PORT GPIO_PORTF_BASE
  16781. #define PWM4_PIN GPIO_PIN_2
  16782. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOF
  16783. #define PWM5_PORT GPIO_PORTF_BASE
  16784. #define PWM5_PIN GPIO_PIN_3
  16785. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  16786. #define SSI0CLK_PORT GPIO_PORTA_BASE
  16787. #define SSI0CLK_PIN GPIO_PIN_2
  16788. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  16789. #define SSI0FSS_PORT GPIO_PORTA_BASE
  16790. #define SSI0FSS_PIN GPIO_PIN_3
  16791. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16792. #define SSI0RX_PORT GPIO_PORTA_BASE
  16793. #define SSI0RX_PIN GPIO_PIN_4
  16794. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16795. #define SSI0TX_PORT GPIO_PORTA_BASE
  16796. #define SSI0TX_PIN GPIO_PIN_5
  16797. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  16798. #define SWCLK_PORT GPIO_PORTC_BASE
  16799. #define SWCLK_PIN GPIO_PIN_0
  16800. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  16801. #define SWDIO_PORT GPIO_PORTC_BASE
  16802. #define SWDIO_PIN GPIO_PIN_1
  16803. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  16804. #define SWO_PORT GPIO_PORTC_BASE
  16805. #define SWO_PIN GPIO_PIN_3
  16806. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  16807. #define TCK_PORT GPIO_PORTC_BASE
  16808. #define TCK_PIN GPIO_PIN_0
  16809. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  16810. #define TDI_PORT GPIO_PORTC_BASE
  16811. #define TDI_PIN GPIO_PIN_2
  16812. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  16813. #define TDO_PORT GPIO_PORTC_BASE
  16814. #define TDO_PIN GPIO_PIN_3
  16815. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  16816. #define TMS_PORT GPIO_PORTC_BASE
  16817. #define TMS_PIN GPIO_PIN_1
  16818. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16819. #define U0RX_PORT GPIO_PORTA_BASE
  16820. #define U0RX_PIN GPIO_PIN_0
  16821. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16822. #define U0TX_PORT GPIO_PORTA_BASE
  16823. #define U0TX_PIN GPIO_PIN_1
  16824. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOC
  16825. #define USB0EPEN_PORT GPIO_PORTC_BASE
  16826. #define USB0EPEN_PIN GPIO_PIN_5
  16827. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOC
  16828. #define USB0PFLT_PORT GPIO_PORTC_BASE
  16829. #define USB0PFLT_PIN GPIO_PIN_6
  16830. #endif // PART_LM3S5747
  16831. //*****************************************************************************
  16832. //
  16833. // LM3S5749 Port/Pin Mapping Definitions
  16834. //
  16835. //*****************************************************************************
  16836. #ifdef PART_LM3S5749
  16837. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  16838. #define ADC0_PORT GPIO_PORTE_BASE
  16839. #define ADC0_PIN GPIO_PIN_7
  16840. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  16841. #define ADC1_PORT GPIO_PORTE_BASE
  16842. #define ADC1_PIN GPIO_PIN_6
  16843. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  16844. #define ADC2_PORT GPIO_PORTE_BASE
  16845. #define ADC2_PIN GPIO_PIN_5
  16846. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  16847. #define ADC3_PORT GPIO_PORTE_BASE
  16848. #define ADC3_PIN GPIO_PIN_4
  16849. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  16850. #define ADC4_PORT GPIO_PORTD_BASE
  16851. #define ADC4_PIN GPIO_PIN_7
  16852. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  16853. #define ADC5_PORT GPIO_PORTD_BASE
  16854. #define ADC5_PIN GPIO_PIN_6
  16855. #define ADC6_PERIPH SYSCTL_PERIPH_GPIOD
  16856. #define ADC6_PORT GPIO_PORTD_BASE
  16857. #define ADC6_PIN GPIO_PIN_5
  16858. #define ADC7_PERIPH SYSCTL_PERIPH_GPIOD
  16859. #define ADC7_PORT GPIO_PORTD_BASE
  16860. #define ADC7_PIN GPIO_PIN_4
  16861. #define C0O_PERIPH SYSCTL_PERIPH_GPIOF
  16862. #define C0O_PORT GPIO_PORTF_BASE
  16863. #define C0O_PIN GPIO_PIN_4
  16864. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  16865. #define C0_MINUS_PORT GPIO_PORTB_BASE
  16866. #define C0_MINUS_PIN GPIO_PIN_4
  16867. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  16868. #define C0_PLUS_PORT GPIO_PORTB_BASE
  16869. #define C0_PLUS_PIN GPIO_PIN_6
  16870. #define C1O_PERIPH SYSCTL_PERIPH_GPIOF
  16871. #define C1O_PORT GPIO_PORTF_BASE
  16872. #define C1O_PIN GPIO_PIN_5
  16873. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  16874. #define C1_MINUS_PORT GPIO_PORTB_BASE
  16875. #define C1_MINUS_PIN GPIO_PIN_5
  16876. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  16877. #define C1_PLUS_PORT GPIO_PORTC_BASE
  16878. #define C1_PLUS_PIN GPIO_PIN_5
  16879. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  16880. #define CAN0RX_PORT GPIO_PORTD_BASE
  16881. #define CAN0RX_PIN GPIO_PIN_0
  16882. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  16883. #define CAN0TX_PORT GPIO_PORTD_BASE
  16884. #define CAN0TX_PIN GPIO_PIN_1
  16885. #define CAN1RX_PERIPH SYSCTL_PERIPH_GPIOF
  16886. #define CAN1RX_PORT GPIO_PORTF_BASE
  16887. #define CAN1RX_PIN GPIO_PIN_0
  16888. #define CAN1TX_PERIPH SYSCTL_PERIPH_GPIOF
  16889. #define CAN1TX_PORT GPIO_PORTF_BASE
  16890. #define CAN1TX_PIN GPIO_PIN_1
  16891. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  16892. #define CCP0_PORT GPIO_PORTB_BASE
  16893. #define CCP0_PIN GPIO_PIN_0
  16894. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  16895. #define CCP1_PORT GPIO_PORTB_BASE
  16896. #define CCP1_PIN GPIO_PIN_1
  16897. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  16898. #define CCP2_PORT GPIO_PORTC_BASE
  16899. #define CCP2_PIN GPIO_PIN_4
  16900. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  16901. #define CCP3_PORT GPIO_PORTC_BASE
  16902. #define CCP3_PIN GPIO_PIN_6
  16903. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  16904. #define CCP4_PORT GPIO_PORTC_BASE
  16905. #define CCP4_PIN GPIO_PIN_7
  16906. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOG
  16907. #define FAULT0_PORT GPIO_PORTG_BASE
  16908. #define FAULT0_PIN GPIO_PIN_2
  16909. #define FAULT1_PERIPH SYSCTL_PERIPH_GPIOG
  16910. #define FAULT1_PORT GPIO_PORTG_BASE
  16911. #define FAULT1_PIN GPIO_PIN_4
  16912. #define FAULT2_PERIPH SYSCTL_PERIPH_GPIOG
  16913. #define FAULT2_PORT GPIO_PORTG_BASE
  16914. #define FAULT2_PIN GPIO_PIN_3
  16915. #define FAULT3_PERIPH SYSCTL_PERIPH_GPIOH
  16916. #define FAULT3_PORT GPIO_PORTH_BASE
  16917. #define FAULT3_PIN GPIO_PIN_2
  16918. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  16919. #define I2C0SCL_PORT GPIO_PORTB_BASE
  16920. #define I2C0SCL_PIN GPIO_PIN_2
  16921. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  16922. #define I2C0SDA_PORT GPIO_PORTB_BASE
  16923. #define I2C0SDA_PIN GPIO_PIN_3
  16924. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  16925. #define I2C1SCL_PORT GPIO_PORTA_BASE
  16926. #define I2C1SCL_PIN GPIO_PIN_6
  16927. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  16928. #define I2C1SDA_PORT GPIO_PORTA_BASE
  16929. #define I2C1SDA_PIN GPIO_PIN_7
  16930. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOG
  16931. #define IDX0_PORT GPIO_PORTG_BASE
  16932. #define IDX0_PIN GPIO_PIN_5
  16933. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  16934. #define NMI_PORT GPIO_PORTB_BASE
  16935. #define NMI_PIN GPIO_PIN_7
  16936. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOF
  16937. #define PHA0_PORT GPIO_PORTF_BASE
  16938. #define PHA0_PIN GPIO_PIN_6
  16939. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOF
  16940. #define PHB0_PORT GPIO_PORTF_BASE
  16941. #define PHB0_PIN GPIO_PIN_7
  16942. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOG
  16943. #define PWM0_PORT GPIO_PORTG_BASE
  16944. #define PWM0_PIN GPIO_PIN_0
  16945. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOG
  16946. #define PWM1_PORT GPIO_PORTG_BASE
  16947. #define PWM1_PIN GPIO_PIN_1
  16948. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOH
  16949. #define PWM2_PORT GPIO_PORTH_BASE
  16950. #define PWM2_PIN GPIO_PIN_0
  16951. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOH
  16952. #define PWM3_PORT GPIO_PORTH_BASE
  16953. #define PWM3_PIN GPIO_PIN_1
  16954. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOF
  16955. #define PWM4_PORT GPIO_PORTF_BASE
  16956. #define PWM4_PIN GPIO_PIN_2
  16957. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOF
  16958. #define PWM5_PORT GPIO_PORTF_BASE
  16959. #define PWM5_PIN GPIO_PIN_3
  16960. #define PWM6_PERIPH SYSCTL_PERIPH_GPIOG
  16961. #define PWM6_PORT GPIO_PORTG_BASE
  16962. #define PWM6_PIN GPIO_PIN_6
  16963. #define PWM7_PERIPH SYSCTL_PERIPH_GPIOG
  16964. #define PWM7_PORT GPIO_PORTG_BASE
  16965. #define PWM7_PIN GPIO_PIN_7
  16966. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  16967. #define SSI0CLK_PORT GPIO_PORTA_BASE
  16968. #define SSI0CLK_PIN GPIO_PIN_2
  16969. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  16970. #define SSI0FSS_PORT GPIO_PORTA_BASE
  16971. #define SSI0FSS_PIN GPIO_PIN_3
  16972. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  16973. #define SSI0RX_PORT GPIO_PORTA_BASE
  16974. #define SSI0RX_PIN GPIO_PIN_4
  16975. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  16976. #define SSI0TX_PORT GPIO_PORTA_BASE
  16977. #define SSI0TX_PIN GPIO_PIN_5
  16978. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  16979. #define SSI1CLK_PORT GPIO_PORTE_BASE
  16980. #define SSI1CLK_PIN GPIO_PIN_0
  16981. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  16982. #define SSI1FSS_PORT GPIO_PORTE_BASE
  16983. #define SSI1FSS_PIN GPIO_PIN_1
  16984. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  16985. #define SSI1RX_PORT GPIO_PORTE_BASE
  16986. #define SSI1RX_PIN GPIO_PIN_2
  16987. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  16988. #define SSI1TX_PORT GPIO_PORTE_BASE
  16989. #define SSI1TX_PIN GPIO_PIN_3
  16990. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  16991. #define SWCLK_PORT GPIO_PORTC_BASE
  16992. #define SWCLK_PIN GPIO_PIN_0
  16993. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  16994. #define SWDIO_PORT GPIO_PORTC_BASE
  16995. #define SWDIO_PIN GPIO_PIN_1
  16996. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  16997. #define SWO_PORT GPIO_PORTC_BASE
  16998. #define SWO_PIN GPIO_PIN_3
  16999. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  17000. #define TCK_PORT GPIO_PORTC_BASE
  17001. #define TCK_PIN GPIO_PIN_0
  17002. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  17003. #define TDI_PORT GPIO_PORTC_BASE
  17004. #define TDI_PIN GPIO_PIN_2
  17005. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  17006. #define TDO_PORT GPIO_PORTC_BASE
  17007. #define TDO_PIN GPIO_PIN_3
  17008. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  17009. #define TMS_PORT GPIO_PORTC_BASE
  17010. #define TMS_PIN GPIO_PIN_1
  17011. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  17012. #define U0RX_PORT GPIO_PORTA_BASE
  17013. #define U0RX_PIN GPIO_PIN_0
  17014. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  17015. #define U0TX_PORT GPIO_PORTA_BASE
  17016. #define U0TX_PIN GPIO_PIN_1
  17017. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  17018. #define U1RX_PORT GPIO_PORTD_BASE
  17019. #define U1RX_PIN GPIO_PIN_2
  17020. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  17021. #define U1TX_PORT GPIO_PORTD_BASE
  17022. #define U1TX_PIN GPIO_PIN_3
  17023. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOH
  17024. #define USB0EPEN_PORT GPIO_PORTH_BASE
  17025. #define USB0EPEN_PIN GPIO_PIN_3
  17026. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOH
  17027. #define USB0PFLT_PORT GPIO_PORTH_BASE
  17028. #define USB0PFLT_PIN GPIO_PIN_4
  17029. #endif // PART_LM3S5749
  17030. //*****************************************************************************
  17031. //
  17032. // LM3S5752 Port/Pin Mapping Definitions
  17033. //
  17034. //*****************************************************************************
  17035. #ifdef PART_LM3S5752
  17036. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  17037. #define ADC0_PORT GPIO_PORTE_BASE
  17038. #define ADC0_PIN GPIO_PIN_3
  17039. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  17040. #define ADC1_PORT GPIO_PORTE_BASE
  17041. #define ADC1_PIN GPIO_PIN_2
  17042. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  17043. #define ADC2_PORT GPIO_PORTE_BASE
  17044. #define ADC2_PIN GPIO_PIN_1
  17045. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  17046. #define ADC3_PORT GPIO_PORTE_BASE
  17047. #define ADC3_PIN GPIO_PIN_0
  17048. #define ADC4_PERIPH SYSCTL_PERIPH_GPIOD
  17049. #define ADC4_PORT GPIO_PORTD_BASE
  17050. #define ADC4_PIN GPIO_PIN_3
  17051. #define ADC5_PERIPH SYSCTL_PERIPH_GPIOD
  17052. #define ADC5_PORT GPIO_PORTD_BASE
  17053. #define ADC5_PIN GPIO_PIN_2
  17054. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  17055. #define C0_MINUS_PORT GPIO_PORTB_BASE
  17056. #define C0_MINUS_PIN GPIO_PIN_4
  17057. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  17058. #define C0_PLUS_PORT GPIO_PORTB_BASE
  17059. #define C0_PLUS_PIN GPIO_PIN_6
  17060. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  17061. #define CAN0RX_PORT GPIO_PORTD_BASE
  17062. #define CAN0RX_PIN GPIO_PIN_0
  17063. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  17064. #define CAN0TX_PORT GPIO_PORTD_BASE
  17065. #define CAN0TX_PIN GPIO_PIN_1
  17066. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  17067. #define CCP0_PORT GPIO_PORTB_BASE
  17068. #define CCP0_PIN GPIO_PIN_5
  17069. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  17070. #define CCP1_PORT GPIO_PORTA_BASE
  17071. #define CCP1_PIN GPIO_PIN_6
  17072. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOE
  17073. #define CCP2_PORT GPIO_PORTE_BASE
  17074. #define CCP2_PIN GPIO_PIN_4
  17075. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOA
  17076. #define CCP3_PORT GPIO_PORTA_BASE
  17077. #define CCP3_PIN GPIO_PIN_7
  17078. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  17079. #define CCP4_PORT GPIO_PORTC_BASE
  17080. #define CCP4_PIN GPIO_PIN_7
  17081. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  17082. #define CCP5_PORT GPIO_PORTC_BASE
  17083. #define CCP5_PIN GPIO_PIN_4
  17084. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  17085. #define I2C0SCL_PORT GPIO_PORTB_BASE
  17086. #define I2C0SCL_PIN GPIO_PIN_2
  17087. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  17088. #define I2C0SDA_PORT GPIO_PORTB_BASE
  17089. #define I2C0SDA_PIN GPIO_PIN_3
  17090. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  17091. #define NMI_PORT GPIO_PORTB_BASE
  17092. #define NMI_PIN GPIO_PIN_7
  17093. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  17094. #define SSI0CLK_PORT GPIO_PORTA_BASE
  17095. #define SSI0CLK_PIN GPIO_PIN_2
  17096. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  17097. #define SSI0FSS_PORT GPIO_PORTA_BASE
  17098. #define SSI0FSS_PIN GPIO_PIN_3
  17099. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  17100. #define SSI0RX_PORT GPIO_PORTA_BASE
  17101. #define SSI0RX_PIN GPIO_PIN_4
  17102. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  17103. #define SSI0TX_PORT GPIO_PORTA_BASE
  17104. #define SSI0TX_PIN GPIO_PIN_5
  17105. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  17106. #define SWCLK_PORT GPIO_PORTC_BASE
  17107. #define SWCLK_PIN GPIO_PIN_0
  17108. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  17109. #define SWDIO_PORT GPIO_PORTC_BASE
  17110. #define SWDIO_PIN GPIO_PIN_1
  17111. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  17112. #define SWO_PORT GPIO_PORTC_BASE
  17113. #define SWO_PIN GPIO_PIN_3
  17114. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  17115. #define TCK_PORT GPIO_PORTC_BASE
  17116. #define TCK_PIN GPIO_PIN_0
  17117. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  17118. #define TDI_PORT GPIO_PORTC_BASE
  17119. #define TDI_PIN GPIO_PIN_2
  17120. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  17121. #define TDO_PORT GPIO_PORTC_BASE
  17122. #define TDO_PIN GPIO_PIN_3
  17123. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  17124. #define TMS_PORT GPIO_PORTC_BASE
  17125. #define TMS_PIN GPIO_PIN_1
  17126. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  17127. #define U0RX_PORT GPIO_PORTA_BASE
  17128. #define U0RX_PIN GPIO_PIN_0
  17129. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  17130. #define U0TX_PORT GPIO_PORTA_BASE
  17131. #define U0TX_PIN GPIO_PIN_1
  17132. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOC
  17133. #define USB0EPEN_PORT GPIO_PORTC_BASE
  17134. #define USB0EPEN_PIN GPIO_PIN_5
  17135. #define USB0ID_PERIPH SYSCTL_PERIPH_GPIOB
  17136. #define USB0ID_PORT GPIO_PORTB_BASE
  17137. #define USB0ID_PIN GPIO_PIN_0
  17138. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOC
  17139. #define USB0PFLT_PORT GPIO_PORTC_BASE
  17140. #define USB0PFLT_PIN GPIO_PIN_6
  17141. #define USB0VBUS_PERIPH SYSCTL_PERIPH_GPIOB
  17142. #define USB0VBUS_PORT GPIO_PORTB_BASE
  17143. #define USB0VBUS_PIN GPIO_PIN_1
  17144. #endif // PART_LM3S5752
  17145. //*****************************************************************************
  17146. //
  17147. // LM3S5762 Port/Pin Mapping Definitions
  17148. //
  17149. //*****************************************************************************
  17150. #ifdef PART_LM3S5762
  17151. #define ADC0_PERIPH SYSCTL_PERIPH_GPIOE
  17152. #define ADC0_PORT GPIO_PORTE_BASE
  17153. #define ADC0_PIN GPIO_PIN_3
  17154. #define ADC1_PERIPH SYSCTL_PERIPH_GPIOE
  17155. #define ADC1_PORT GPIO_PORTE_BASE
  17156. #define ADC1_PIN GPIO_PIN_2
  17157. #define ADC2_PERIPH SYSCTL_PERIPH_GPIOE
  17158. #define ADC2_PORT GPIO_PORTE_BASE
  17159. #define ADC2_PIN GPIO_PIN_1
  17160. #define ADC3_PERIPH SYSCTL_PERIPH_GPIOE
  17161. #define ADC3_PORT GPIO_PORTE_BASE
  17162. #define ADC3_PIN GPIO_PIN_0
  17163. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOB
  17164. #define CAN0RX_PORT GPIO_PORTB_BASE
  17165. #define CAN0RX_PIN GPIO_PIN_4
  17166. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOB
  17167. #define CAN0TX_PORT GPIO_PORTB_BASE
  17168. #define CAN0TX_PIN GPIO_PIN_5
  17169. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  17170. #define CCP0_PORT GPIO_PORTB_BASE
  17171. #define CCP0_PIN GPIO_PIN_2
  17172. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOB
  17173. #define CCP1_PORT GPIO_PORTB_BASE
  17174. #define CCP1_PIN GPIO_PIN_6
  17175. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOC
  17176. #define CCP2_PORT GPIO_PORTC_BASE
  17177. #define CCP2_PIN GPIO_PIN_4
  17178. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  17179. #define CCP3_PORT GPIO_PORTE_BASE
  17180. #define CCP3_PIN GPIO_PIN_4
  17181. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  17182. #define CCP4_PORT GPIO_PORTC_BASE
  17183. #define CCP4_PIN GPIO_PIN_7
  17184. #define FAULT0_PERIPH SYSCTL_PERIPH_GPIOB
  17185. #define FAULT0_PORT GPIO_PORTB_BASE
  17186. #define FAULT0_PIN GPIO_PIN_3
  17187. #define NMI_PERIPH SYSCTL_PERIPH_GPIOB
  17188. #define NMI_PORT GPIO_PORTB_BASE
  17189. #define NMI_PIN GPIO_PIN_7
  17190. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  17191. #define PWM0_PORT GPIO_PORTD_BASE
  17192. #define PWM0_PIN GPIO_PIN_0
  17193. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  17194. #define PWM1_PORT GPIO_PORTD_BASE
  17195. #define PWM1_PIN GPIO_PIN_1
  17196. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOD
  17197. #define PWM2_PORT GPIO_PORTD_BASE
  17198. #define PWM2_PIN GPIO_PIN_2
  17199. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOD
  17200. #define PWM3_PORT GPIO_PORTD_BASE
  17201. #define PWM3_PIN GPIO_PIN_3
  17202. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOA
  17203. #define PWM4_PORT GPIO_PORTA_BASE
  17204. #define PWM4_PIN GPIO_PIN_6
  17205. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOA
  17206. #define PWM5_PORT GPIO_PORTA_BASE
  17207. #define PWM5_PIN GPIO_PIN_7
  17208. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  17209. #define SSI0CLK_PORT GPIO_PORTA_BASE
  17210. #define SSI0CLK_PIN GPIO_PIN_2
  17211. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  17212. #define SSI0FSS_PORT GPIO_PORTA_BASE
  17213. #define SSI0FSS_PIN GPIO_PIN_3
  17214. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  17215. #define SSI0RX_PORT GPIO_PORTA_BASE
  17216. #define SSI0RX_PIN GPIO_PIN_4
  17217. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  17218. #define SSI0TX_PORT GPIO_PORTA_BASE
  17219. #define SSI0TX_PIN GPIO_PIN_5
  17220. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  17221. #define SWCLK_PORT GPIO_PORTC_BASE
  17222. #define SWCLK_PIN GPIO_PIN_0
  17223. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  17224. #define SWDIO_PORT GPIO_PORTC_BASE
  17225. #define SWDIO_PIN GPIO_PIN_1
  17226. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  17227. #define SWO_PORT GPIO_PORTC_BASE
  17228. #define SWO_PIN GPIO_PIN_3
  17229. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  17230. #define TCK_PORT GPIO_PORTC_BASE
  17231. #define TCK_PIN GPIO_PIN_0
  17232. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  17233. #define TDI_PORT GPIO_PORTC_BASE
  17234. #define TDI_PIN GPIO_PIN_2
  17235. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  17236. #define TDO_PORT GPIO_PORTC_BASE
  17237. #define TDO_PIN GPIO_PIN_3
  17238. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  17239. #define TMS_PORT GPIO_PORTC_BASE
  17240. #define TMS_PIN GPIO_PIN_1
  17241. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  17242. #define U0RX_PORT GPIO_PORTA_BASE
  17243. #define U0RX_PIN GPIO_PIN_0
  17244. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  17245. #define U0TX_PORT GPIO_PORTA_BASE
  17246. #define U0TX_PIN GPIO_PIN_1
  17247. #define USB0EPEN_PERIPH SYSCTL_PERIPH_GPIOC
  17248. #define USB0EPEN_PORT GPIO_PORTC_BASE
  17249. #define USB0EPEN_PIN GPIO_PIN_5
  17250. #define USB0ID_PERIPH SYSCTL_PERIPH_GPIOB
  17251. #define USB0ID_PORT GPIO_PORTB_BASE
  17252. #define USB0ID_PIN GPIO_PIN_0
  17253. #define USB0PFLT_PERIPH SYSCTL_PERIPH_GPIOC
  17254. #define USB0PFLT_PORT GPIO_PORTC_BASE
  17255. #define USB0PFLT_PIN GPIO_PIN_6
  17256. #define USB0VBUS_PERIPH SYSCTL_PERIPH_GPIOB
  17257. #define USB0VBUS_PORT GPIO_PORTB_BASE
  17258. #define USB0VBUS_PIN GPIO_PIN_1
  17259. #endif // PART_LM3S5762
  17260. //*****************************************************************************
  17261. //
  17262. // LM3S5791 Port/Pin Mapping Definitions
  17263. //
  17264. //*****************************************************************************
  17265. #ifdef PART_LM3S5791
  17266. #define GPIO_PA0_U0RX 0x00000001
  17267. #define GPIO_PA0_I2C1SCL 0x00000008
  17268. #define GPIO_PA0_U1RX 0x00000009
  17269. #define GPIO_PA1_U0TX 0x00000401
  17270. #define GPIO_PA1_I2C1SDA 0x00000408
  17271. #define GPIO_PA1_U1TX 0x00000409
  17272. #define GPIO_PA2_SSI0CLK 0x00000801
  17273. #define GPIO_PA2_PWM4 0x00000804
  17274. #define GPIO_PA2_I2S0RXSD 0x00000809
  17275. #define GPIO_PA3_SSI0FSS 0x00000C01
  17276. #define GPIO_PA3_PWM5 0x00000C04
  17277. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  17278. #define GPIO_PA4_SSI0RX 0x00001001
  17279. #define GPIO_PA4_PWM6 0x00001004
  17280. #define GPIO_PA4_CAN0RX 0x00001005
  17281. #define GPIO_PA4_I2S0TXSCK 0x00001009
  17282. #define GPIO_PA5_SSI0TX 0x00001401
  17283. #define GPIO_PA5_PWM7 0x00001404
  17284. #define GPIO_PA5_CAN0TX 0x00001405
  17285. #define GPIO_PA5_I2S0TXWS 0x00001409
  17286. #define GPIO_PA6_I2C1SCL 0x00001801
  17287. #define GPIO_PA6_CCP1 0x00001802
  17288. #define GPIO_PA6_PWM0 0x00001804
  17289. #define GPIO_PA6_PWM4 0x00001805
  17290. #define GPIO_PA6_CAN0RX 0x00001806
  17291. #define GPIO_PA6_USB0EPEN 0x00001808
  17292. #define GPIO_PA6_U1CTS 0x00001809
  17293. #define GPIO_PA7_I2C1SDA 0x00001C01
  17294. #define GPIO_PA7_CCP4 0x00001C02
  17295. #define GPIO_PA7_PWM1 0x00001C04
  17296. #define GPIO_PA7_PWM5 0x00001C05
  17297. #define GPIO_PA7_CAN0TX 0x00001C06
  17298. #define GPIO_PA7_CCP3 0x00001C07
  17299. #define GPIO_PA7_USB0PFLT 0x00001C08
  17300. #define GPIO_PA7_U1DCD 0x00001C09
  17301. #define GPIO_PB0_CCP0 0x00010001
  17302. #define GPIO_PB0_PWM2 0x00010002
  17303. #define GPIO_PB0_U1RX 0x00010005
  17304. #define GPIO_PB1_CCP2 0x00010401
  17305. #define GPIO_PB1_PWM3 0x00010402
  17306. #define GPIO_PB1_CCP1 0x00010404
  17307. #define GPIO_PB1_U1TX 0x00010405
  17308. #define GPIO_PB2_I2C0SCL 0x00010801
  17309. #define GPIO_PB2_IDX0 0x00010802
  17310. #define GPIO_PB2_CCP3 0x00010804
  17311. #define GPIO_PB2_CCP0 0x00010805
  17312. #define GPIO_PB2_USB0EPEN 0x00010808
  17313. #define GPIO_PB3_I2C0SDA 0x00010C01
  17314. #define GPIO_PB3_FAULT0 0x00010C02
  17315. #define GPIO_PB3_FAULT3 0x00010C04
  17316. #define GPIO_PB3_USB0PFLT 0x00010C08
  17317. #define GPIO_PB4_U2RX 0x00011004
  17318. #define GPIO_PB4_CAN0RX 0x00011005
  17319. #define GPIO_PB4_IDX0 0x00011006
  17320. #define GPIO_PB4_U1RX 0x00011007
  17321. #define GPIO_PB4_EPI0S23 0x00011008
  17322. #define GPIO_PB5_C0O 0x00011401
  17323. #define GPIO_PB5_CCP5 0x00011402
  17324. #define GPIO_PB5_CCP6 0x00011403
  17325. #define GPIO_PB5_CCP0 0x00011404
  17326. #define GPIO_PB5_CAN0TX 0x00011405
  17327. #define GPIO_PB5_CCP2 0x00011406
  17328. #define GPIO_PB5_U1TX 0x00011407
  17329. #define GPIO_PB5_EPI0S22 0x00011408
  17330. #define GPIO_PB6_CCP1 0x00011801
  17331. #define GPIO_PB6_CCP7 0x00011802
  17332. #define GPIO_PB6_C0O 0x00011803
  17333. #define GPIO_PB6_FAULT1 0x00011804
  17334. #define GPIO_PB6_IDX0 0x00011805
  17335. #define GPIO_PB6_CCP5 0x00011806
  17336. #define GPIO_PB6_I2S0TXSCK 0x00011809
  17337. #define GPIO_PB7_NMI 0x00011C04
  17338. #define GPIO_PC0_TCK 0x00020003
  17339. #define GPIO_PC0_SWCLK 0x00020003
  17340. #define GPIO_PC1_TMS 0x00020403
  17341. #define GPIO_PC1_SWDIO 0x00020403
  17342. #define GPIO_PC2_TDI 0x00020803
  17343. #define GPIO_PC3_SWO 0x00020C03
  17344. #define GPIO_PC3_TDO 0x00020C03
  17345. #define GPIO_PC4_CCP5 0x00021001
  17346. #define GPIO_PC4_PHA0 0x00021002
  17347. #define GPIO_PC4_PWM6 0x00021004
  17348. #define GPIO_PC4_CCP2 0x00021005
  17349. #define GPIO_PC4_CCP4 0x00021006
  17350. #define GPIO_PC4_EPI0S2 0x00021008
  17351. #define GPIO_PC4_CCP1 0x00021009
  17352. #define GPIO_PC5_CCP1 0x00021401
  17353. #define GPIO_PC5_C1O 0x00021402
  17354. #define GPIO_PC5_C0O 0x00021403
  17355. #define GPIO_PC5_FAULT2 0x00021404
  17356. #define GPIO_PC5_CCP3 0x00021405
  17357. #define GPIO_PC5_USB0EPEN 0x00021406
  17358. #define GPIO_PC5_EPI0S3 0x00021408
  17359. #define GPIO_PC6_CCP3 0x00021801
  17360. #define GPIO_PC6_PHB0 0x00021802
  17361. #define GPIO_PC6_C2O 0x00021803
  17362. #define GPIO_PC6_PWM7 0x00021804
  17363. #define GPIO_PC6_U1RX 0x00021805
  17364. #define GPIO_PC6_CCP0 0x00021806
  17365. #define GPIO_PC6_USB0PFLT 0x00021807
  17366. #define GPIO_PC6_EPI0S4 0x00021808
  17367. #define GPIO_PC7_CCP4 0x00021C01
  17368. #define GPIO_PC7_PHB0 0x00021C02
  17369. #define GPIO_PC7_CCP0 0x00021C04
  17370. #define GPIO_PC7_U1TX 0x00021C05
  17371. #define GPIO_PC7_USB0PFLT 0x00021C06
  17372. #define GPIO_PC7_C1O 0x00021C07
  17373. #define GPIO_PC7_EPI0S5 0x00021C08
  17374. #define GPIO_PD0_PWM0 0x00030001
  17375. #define GPIO_PD0_CAN0RX 0x00030002
  17376. #define GPIO_PD0_IDX0 0x00030003
  17377. #define GPIO_PD0_U2RX 0x00030004
  17378. #define GPIO_PD0_U1RX 0x00030005
  17379. #define GPIO_PD0_CCP6 0x00030006
  17380. #define GPIO_PD0_I2S0RXSCK 0x00030008
  17381. #define GPIO_PD0_U1CTS 0x00030009
  17382. #define GPIO_PD1_PWM1 0x00030401
  17383. #define GPIO_PD1_CAN0TX 0x00030402
  17384. #define GPIO_PD1_PHA0 0x00030403
  17385. #define GPIO_PD1_U2TX 0x00030404
  17386. #define GPIO_PD1_U1TX 0x00030405
  17387. #define GPIO_PD1_CCP7 0x00030406
  17388. #define GPIO_PD1_I2S0RXWS 0x00030408
  17389. #define GPIO_PD1_U1DCD 0x00030409
  17390. #define GPIO_PD1_CCP2 0x0003040A
  17391. #define GPIO_PD1_PHB1 0x0003040B
  17392. #define GPIO_PD2_U1RX 0x00030801
  17393. #define GPIO_PD2_CCP6 0x00030802
  17394. #define GPIO_PD2_PWM2 0x00030803
  17395. #define GPIO_PD2_CCP5 0x00030804
  17396. #define GPIO_PD2_EPI0S20 0x00030808
  17397. #define GPIO_PD3_U1TX 0x00030C01
  17398. #define GPIO_PD3_CCP7 0x00030C02
  17399. #define GPIO_PD3_PWM3 0x00030C03
  17400. #define GPIO_PD3_CCP0 0x00030C04
  17401. #define GPIO_PD3_EPI0S21 0x00030C08
  17402. #define GPIO_PD4_CCP0 0x00031001
  17403. #define GPIO_PD4_CCP3 0x00031002
  17404. #define GPIO_PD4_I2S0RXSD 0x00031008
  17405. #define GPIO_PD4_U1RI 0x00031009
  17406. #define GPIO_PD4_EPI0S19 0x0003100A
  17407. #define GPIO_PD5_CCP2 0x00031401
  17408. #define GPIO_PD5_CCP4 0x00031402
  17409. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  17410. #define GPIO_PD5_U2RX 0x00031409
  17411. #define GPIO_PD5_EPI0S28 0x0003140A
  17412. #define GPIO_PD6_FAULT0 0x00031801
  17413. #define GPIO_PD6_I2S0TXSCK 0x00031808
  17414. #define GPIO_PD6_U2TX 0x00031809
  17415. #define GPIO_PD6_EPI0S29 0x0003180A
  17416. #define GPIO_PD7_IDX0 0x00031C01
  17417. #define GPIO_PD7_C0O 0x00031C02
  17418. #define GPIO_PD7_CCP1 0x00031C03
  17419. #define GPIO_PD7_I2S0TXWS 0x00031C08
  17420. #define GPIO_PD7_U1DTR 0x00031C09
  17421. #define GPIO_PD7_EPI0S30 0x00031C0A
  17422. #define GPIO_PE0_PWM4 0x00040001
  17423. #define GPIO_PE0_SSI1CLK 0x00040002
  17424. #define GPIO_PE0_CCP3 0x00040003
  17425. #define GPIO_PE0_EPI0S8 0x00040008
  17426. #define GPIO_PE0_USB0PFLT 0x00040009
  17427. #define GPIO_PE1_PWM5 0x00040401
  17428. #define GPIO_PE1_SSI1FSS 0x00040402
  17429. #define GPIO_PE1_FAULT0 0x00040403
  17430. #define GPIO_PE1_CCP2 0x00040404
  17431. #define GPIO_PE1_CCP6 0x00040405
  17432. #define GPIO_PE1_EPI0S9 0x00040408
  17433. #define GPIO_PE2_CCP4 0x00040801
  17434. #define GPIO_PE2_SSI1RX 0x00040802
  17435. #define GPIO_PE2_PHB1 0x00040803
  17436. #define GPIO_PE2_PHA0 0x00040804
  17437. #define GPIO_PE2_CCP2 0x00040805
  17438. #define GPIO_PE2_EPI0S24 0x00040808
  17439. #define GPIO_PE3_CCP1 0x00040C01
  17440. #define GPIO_PE3_SSI1TX 0x00040C02
  17441. #define GPIO_PE3_PHA1 0x00040C03
  17442. #define GPIO_PE3_PHB0 0x00040C04
  17443. #define GPIO_PE3_CCP7 0x00040C05
  17444. #define GPIO_PE3_EPI0S25 0x00040C08
  17445. #define GPIO_PE4_CCP3 0x00041001
  17446. #define GPIO_PE4_FAULT0 0x00041004
  17447. #define GPIO_PE4_U2TX 0x00041005
  17448. #define GPIO_PE4_CCP2 0x00041006
  17449. #define GPIO_PE4_I2S0TXWS 0x00041009
  17450. #define GPIO_PE5_CCP5 0x00041401
  17451. #define GPIO_PE5_I2S0TXSD 0x00041409
  17452. #define GPIO_PE6_PWM4 0x00041801
  17453. #define GPIO_PE6_C1O 0x00041802
  17454. #define GPIO_PE6_U1CTS 0x00041809
  17455. #define GPIO_PE7_PWM5 0x00041C01
  17456. #define GPIO_PE7_C2O 0x00041C02
  17457. #define GPIO_PE7_U1DCD 0x00041C09
  17458. #define GPIO_PF0_CAN1RX 0x00050001
  17459. #define GPIO_PF0_PHB0 0x00050002
  17460. #define GPIO_PF0_PWM0 0x00050003
  17461. #define GPIO_PF0_I2S0TXSD 0x00050008
  17462. #define GPIO_PF0_U1DSR 0x00050009
  17463. #define GPIO_PF1_CAN1TX 0x00050401
  17464. #define GPIO_PF1_IDX1 0x00050402
  17465. #define GPIO_PF1_PWM1 0x00050403
  17466. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  17467. #define GPIO_PF1_U1RTS 0x00050409
  17468. #define GPIO_PF1_CCP3 0x0005040A
  17469. #define GPIO_PF2_PWM4 0x00050802
  17470. #define GPIO_PF2_PWM2 0x00050804
  17471. #define GPIO_PF2_SSI1CLK 0x00050809
  17472. #define GPIO_PF3_PWM5 0x00050C02
  17473. #define GPIO_PF3_PWM3 0x00050C04
  17474. #define GPIO_PF3_SSI1FSS 0x00050C09
  17475. #define GPIO_PF4_CCP0 0x00051001
  17476. #define GPIO_PF4_C0O 0x00051002
  17477. #define GPIO_PF4_FAULT0 0x00051004
  17478. #define GPIO_PF4_EPI0S12 0x00051008
  17479. #define GPIO_PF4_SSI1RX 0x00051009
  17480. #define GPIO_PF5_CCP2 0x00051401
  17481. #define GPIO_PF5_C1O 0x00051402
  17482. #define GPIO_PF5_EPI0S15 0x00051408
  17483. #define GPIO_PF5_SSI1TX 0x00051409
  17484. #define GPIO_PF6_CCP1 0x00051801
  17485. #define GPIO_PF6_C2O 0x00051802
  17486. #define GPIO_PF6_PHA0 0x00051804
  17487. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  17488. #define GPIO_PF6_U1RTS 0x0005180A
  17489. #define GPIO_PF7_CCP4 0x00051C01
  17490. #define GPIO_PF7_PHB0 0x00051C04
  17491. #define GPIO_PF7_EPI0S12 0x00051C08
  17492. #define GPIO_PF7_FAULT1 0x00051C09
  17493. #define GPIO_PG0_U2RX 0x00060001
  17494. #define GPIO_PG0_PWM0 0x00060002
  17495. #define GPIO_PG0_I2C1SCL 0x00060003
  17496. #define GPIO_PG0_PWM4 0x00060004
  17497. #define GPIO_PG0_USB0EPEN 0x00060007
  17498. #define GPIO_PG0_EPI0S13 0x00060008
  17499. #define GPIO_PG1_U2TX 0x00060401
  17500. #define GPIO_PG1_PWM1 0x00060402
  17501. #define GPIO_PG1_I2C1SDA 0x00060403
  17502. #define GPIO_PG1_PWM5 0x00060404
  17503. #define GPIO_PG1_EPI0S14 0x00060408
  17504. #define GPIO_PG2_PWM0 0x00060801
  17505. #define GPIO_PG2_FAULT0 0x00060804
  17506. #define GPIO_PG2_IDX1 0x00060808
  17507. #define GPIO_PG2_I2S0RXSD 0x00060809
  17508. #define GPIO_PG3_PWM1 0x00060C01
  17509. #define GPIO_PG3_FAULT2 0x00060C04
  17510. #define GPIO_PG3_FAULT0 0x00060C08
  17511. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  17512. #define GPIO_PG4_CCP3 0x00061001
  17513. #define GPIO_PG4_FAULT1 0x00061004
  17514. #define GPIO_PG4_EPI0S15 0x00061008
  17515. #define GPIO_PG4_PWM6 0x00061009
  17516. #define GPIO_PG4_U1RI 0x0006100A
  17517. #define GPIO_PG5_CCP5 0x00061401
  17518. #define GPIO_PG5_IDX0 0x00061404
  17519. #define GPIO_PG5_FAULT1 0x00061405
  17520. #define GPIO_PG5_PWM7 0x00061408
  17521. #define GPIO_PG5_I2S0RXSCK 0x00061409
  17522. #define GPIO_PG5_U1DTR 0x0006140A
  17523. #define GPIO_PG6_PHA1 0x00061801
  17524. #define GPIO_PG6_PWM6 0x00061804
  17525. #define GPIO_PG6_FAULT1 0x00061808
  17526. #define GPIO_PG6_I2S0RXWS 0x00061809
  17527. #define GPIO_PG6_U1RI 0x0006180A
  17528. #define GPIO_PG7_PHB1 0x00061C01
  17529. #define GPIO_PG7_PWM7 0x00061C04
  17530. #define GPIO_PG7_CCP5 0x00061C08
  17531. #define GPIO_PG7_EPI0S31 0x00061C09
  17532. #define GPIO_PH0_CCP6 0x00070001
  17533. #define GPIO_PH0_PWM2 0x00070002
  17534. #define GPIO_PH0_EPI0S6 0x00070008
  17535. #define GPIO_PH0_PWM4 0x00070009
  17536. #define GPIO_PH1_CCP7 0x00070401
  17537. #define GPIO_PH1_PWM3 0x00070402
  17538. #define GPIO_PH1_EPI0S7 0x00070408
  17539. #define GPIO_PH1_PWM5 0x00070409
  17540. #define GPIO_PH2_IDX1 0x00070801
  17541. #define GPIO_PH2_C1O 0x00070802
  17542. #define GPIO_PH2_FAULT3 0x00070804
  17543. #define GPIO_PH2_EPI0S1 0x00070808
  17544. #define GPIO_PH3_PHB0 0x00070C01
  17545. #define GPIO_PH3_FAULT0 0x00070C02
  17546. #define GPIO_PH3_USB0EPEN 0x00070C04
  17547. #define GPIO_PH3_EPI0S0 0x00070C08
  17548. #define GPIO_PH4_USB0PFLT 0x00071004
  17549. #define GPIO_PH4_EPI0S10 0x00071008
  17550. #define GPIO_PH4_SSI1CLK 0x0007100B
  17551. #define GPIO_PH5_EPI0S11 0x00071408
  17552. #define GPIO_PH5_FAULT2 0x0007140A
  17553. #define GPIO_PH5_SSI1FSS 0x0007140B
  17554. #define GPIO_PH6_EPI0S26 0x00071808
  17555. #define GPIO_PH6_PWM4 0x0007180A
  17556. #define GPIO_PH6_SSI1RX 0x0007180B
  17557. #define GPIO_PH7_EPI0S27 0x00071C08
  17558. #define GPIO_PH7_PWM5 0x00071C0A
  17559. #define GPIO_PH7_SSI1TX 0x00071C0B
  17560. #define GPIO_PJ0_EPI0S16 0x00080008
  17561. #define GPIO_PJ0_PWM0 0x0008000A
  17562. #define GPIO_PJ0_I2C1SCL 0x0008000B
  17563. #define GPIO_PJ1_EPI0S17 0x00080408
  17564. #define GPIO_PJ1_USB0PFLT 0x00080409
  17565. #define GPIO_PJ1_PWM1 0x0008040A
  17566. #define GPIO_PJ1_I2C1SDA 0x0008040B
  17567. #define GPIO_PJ2_EPI0S18 0x00080808
  17568. #define GPIO_PJ2_CCP0 0x00080809
  17569. #define GPIO_PJ2_FAULT0 0x0008080A
  17570. #define GPIO_PJ3_EPI0S19 0x00080C08
  17571. #define GPIO_PJ3_U1CTS 0x00080C09
  17572. #define GPIO_PJ3_CCP6 0x00080C0A
  17573. #define GPIO_PJ4_EPI0S28 0x00081008
  17574. #define GPIO_PJ4_U1DCD 0x00081009
  17575. #define GPIO_PJ4_CCP4 0x0008100A
  17576. #define GPIO_PJ5_EPI0S29 0x00081408
  17577. #define GPIO_PJ5_U1DSR 0x00081409
  17578. #define GPIO_PJ5_CCP2 0x0008140A
  17579. #define GPIO_PJ6_EPI0S30 0x00081808
  17580. #define GPIO_PJ6_U1RTS 0x00081809
  17581. #define GPIO_PJ6_CCP1 0x0008180A
  17582. #define GPIO_PJ7_U1DTR 0x00081C09
  17583. #define GPIO_PJ7_CCP0 0x00081C0A
  17584. #endif // PART_LM3S5791
  17585. //*****************************************************************************
  17586. //
  17587. // LM3S5951 Port/Pin Mapping Definitions
  17588. //
  17589. //*****************************************************************************
  17590. #ifdef PART_LM3S5951
  17591. #define GPIO_PA0_U0RX 0x00000001
  17592. #define GPIO_PA0_I2C1SCL 0x00000008
  17593. #define GPIO_PA0_U1RX 0x00000009
  17594. #define GPIO_PA1_U0TX 0x00000401
  17595. #define GPIO_PA1_I2C1SDA 0x00000408
  17596. #define GPIO_PA1_U1TX 0x00000409
  17597. #define GPIO_PA2_SSI0CLK 0x00000801
  17598. #define GPIO_PA2_PWM4 0x00000804
  17599. #define GPIO_PA2_I2S0RXSD 0x00000809
  17600. #define GPIO_PA3_SSI0FSS 0x00000C01
  17601. #define GPIO_PA3_PWM5 0x00000C04
  17602. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  17603. #define GPIO_PA4_SSI0RX 0x00001001
  17604. #define GPIO_PA4_CAN0RX 0x00001005
  17605. #define GPIO_PA4_I2S0TXSCK 0x00001009
  17606. #define GPIO_PA5_SSI0TX 0x00001401
  17607. #define GPIO_PA5_CAN0TX 0x00001405
  17608. #define GPIO_PA5_I2S0TXWS 0x00001409
  17609. #define GPIO_PA6_I2C1SCL 0x00001801
  17610. #define GPIO_PA6_CCP1 0x00001802
  17611. #define GPIO_PA6_PWM0 0x00001804
  17612. #define GPIO_PA6_PWM4 0x00001805
  17613. #define GPIO_PA6_CAN0RX 0x00001806
  17614. #define GPIO_PA6_USB0EPEN 0x00001808
  17615. #define GPIO_PA6_U1CTS 0x00001809
  17616. #define GPIO_PA7_I2C1SDA 0x00001C01
  17617. #define GPIO_PA7_CCP4 0x00001C02
  17618. #define GPIO_PA7_PWM1 0x00001C04
  17619. #define GPIO_PA7_PWM5 0x00001C05
  17620. #define GPIO_PA7_CAN0TX 0x00001C06
  17621. #define GPIO_PA7_CCP3 0x00001C07
  17622. #define GPIO_PA7_USB0PFLT 0x00001C08
  17623. #define GPIO_PA7_U1DCD 0x00001C09
  17624. #define GPIO_PB0_CCP0 0x00010001
  17625. #define GPIO_PB0_PWM2 0x00010002
  17626. #define GPIO_PB0_U1RX 0x00010005
  17627. #define GPIO_PB1_CCP2 0x00010401
  17628. #define GPIO_PB1_PWM3 0x00010402
  17629. #define GPIO_PB1_CCP1 0x00010404
  17630. #define GPIO_PB1_U1TX 0x00010405
  17631. #define GPIO_PB2_I2C0SCL 0x00010801
  17632. #define GPIO_PB2_IDX0 0x00010802
  17633. #define GPIO_PB2_CCP3 0x00010804
  17634. #define GPIO_PB2_CCP0 0x00010805
  17635. #define GPIO_PB2_USB0EPEN 0x00010808
  17636. #define GPIO_PB3_I2C0SDA 0x00010C01
  17637. #define GPIO_PB3_FAULT0 0x00010C02
  17638. #define GPIO_PB3_FAULT3 0x00010C04
  17639. #define GPIO_PB3_USB0PFLT 0x00010C08
  17640. #define GPIO_PB4_U2RX 0x00011004
  17641. #define GPIO_PB4_CAN0RX 0x00011005
  17642. #define GPIO_PB4_IDX0 0x00011006
  17643. #define GPIO_PB4_U1RX 0x00011007
  17644. #define GPIO_PB5_C0O 0x00011401
  17645. #define GPIO_PB5_CCP5 0x00011402
  17646. #define GPIO_PB5_CCP6 0x00011403
  17647. #define GPIO_PB5_CCP0 0x00011404
  17648. #define GPIO_PB5_CAN0TX 0x00011405
  17649. #define GPIO_PB5_CCP2 0x00011406
  17650. #define GPIO_PB5_U1TX 0x00011407
  17651. #define GPIO_PB6_CCP1 0x00011801
  17652. #define GPIO_PB6_CCP7 0x00011802
  17653. #define GPIO_PB6_C0O 0x00011803
  17654. #define GPIO_PB6_FAULT1 0x00011804
  17655. #define GPIO_PB6_IDX0 0x00011805
  17656. #define GPIO_PB6_CCP5 0x00011806
  17657. #define GPIO_PB6_I2S0TXSCK 0x00011809
  17658. #define GPIO_PB7_NMI 0x00011C04
  17659. #define GPIO_PC0_TCK 0x00020003
  17660. #define GPIO_PC0_SWCLK 0x00020003
  17661. #define GPIO_PC1_TMS 0x00020403
  17662. #define GPIO_PC1_SWDIO 0x00020403
  17663. #define GPIO_PC2_TDI 0x00020803
  17664. #define GPIO_PC3_SWO 0x00020C03
  17665. #define GPIO_PC3_TDO 0x00020C03
  17666. #define GPIO_PC4_CCP5 0x00021001
  17667. #define GPIO_PC4_PHA0 0x00021002
  17668. #define GPIO_PC4_CCP2 0x00021005
  17669. #define GPIO_PC4_CCP4 0x00021006
  17670. #define GPIO_PC4_CCP1 0x00021009
  17671. #define GPIO_PC5_CCP1 0x00021401
  17672. #define GPIO_PC5_C1O 0x00021402
  17673. #define GPIO_PC5_C0O 0x00021403
  17674. #define GPIO_PC5_FAULT2 0x00021404
  17675. #define GPIO_PC5_CCP3 0x00021405
  17676. #define GPIO_PC5_USB0EPEN 0x00021406
  17677. #define GPIO_PC6_CCP3 0x00021801
  17678. #define GPIO_PC6_PHB0 0x00021802
  17679. #define GPIO_PC6_U1RX 0x00021805
  17680. #define GPIO_PC6_CCP0 0x00021806
  17681. #define GPIO_PC6_USB0PFLT 0x00021807
  17682. #define GPIO_PC7_CCP4 0x00021C01
  17683. #define GPIO_PC7_PHB0 0x00021C02
  17684. #define GPIO_PC7_CCP0 0x00021C04
  17685. #define GPIO_PC7_U1TX 0x00021C05
  17686. #define GPIO_PC7_USB0PFLT 0x00021C06
  17687. #define GPIO_PC7_C1O 0x00021C07
  17688. #define GPIO_PD0_PWM0 0x00030001
  17689. #define GPIO_PD0_CAN0RX 0x00030002
  17690. #define GPIO_PD0_IDX0 0x00030003
  17691. #define GPIO_PD0_U2RX 0x00030004
  17692. #define GPIO_PD0_U1RX 0x00030005
  17693. #define GPIO_PD0_CCP6 0x00030006
  17694. #define GPIO_PD0_I2S0RXSCK 0x00030008
  17695. #define GPIO_PD0_U1CTS 0x00030009
  17696. #define GPIO_PD1_PWM1 0x00030401
  17697. #define GPIO_PD1_CAN0TX 0x00030402
  17698. #define GPIO_PD1_PHA0 0x00030403
  17699. #define GPIO_PD1_U2TX 0x00030404
  17700. #define GPIO_PD1_U1TX 0x00030405
  17701. #define GPIO_PD1_CCP7 0x00030406
  17702. #define GPIO_PD1_I2S0RXWS 0x00030408
  17703. #define GPIO_PD1_U1DCD 0x00030409
  17704. #define GPIO_PD1_CCP2 0x0003040A
  17705. #define GPIO_PD1_PHB1 0x0003040B
  17706. #define GPIO_PD2_U1RX 0x00030801
  17707. #define GPIO_PD2_CCP6 0x00030802
  17708. #define GPIO_PD2_PWM2 0x00030803
  17709. #define GPIO_PD2_CCP5 0x00030804
  17710. #define GPIO_PD3_U1TX 0x00030C01
  17711. #define GPIO_PD3_CCP7 0x00030C02
  17712. #define GPIO_PD3_PWM3 0x00030C03
  17713. #define GPIO_PD3_CCP0 0x00030C04
  17714. #define GPIO_PD4_CCP0 0x00031001
  17715. #define GPIO_PD4_CCP3 0x00031002
  17716. #define GPIO_PD4_I2S0RXSD 0x00031008
  17717. #define GPIO_PD4_U1RI 0x00031009
  17718. #define GPIO_PD5_CCP2 0x00031401
  17719. #define GPIO_PD5_CCP4 0x00031402
  17720. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  17721. #define GPIO_PD5_U2RX 0x00031409
  17722. #define GPIO_PD6_FAULT0 0x00031801
  17723. #define GPIO_PD6_I2S0TXSCK 0x00031808
  17724. #define GPIO_PD6_U2TX 0x00031809
  17725. #define GPIO_PD7_IDX0 0x00031C01
  17726. #define GPIO_PD7_C0O 0x00031C02
  17727. #define GPIO_PD7_CCP1 0x00031C03
  17728. #define GPIO_PD7_I2S0TXWS 0x00031C08
  17729. #define GPIO_PD7_U1DTR 0x00031C09
  17730. #define GPIO_PE0_PWM4 0x00040001
  17731. #define GPIO_PE0_SSI1CLK 0x00040002
  17732. #define GPIO_PE0_CCP3 0x00040003
  17733. #define GPIO_PE0_USB0PFLT 0x00040009
  17734. #define GPIO_PE1_PWM5 0x00040401
  17735. #define GPIO_PE1_SSI1FSS 0x00040402
  17736. #define GPIO_PE1_FAULT0 0x00040403
  17737. #define GPIO_PE1_CCP2 0x00040404
  17738. #define GPIO_PE1_CCP6 0x00040405
  17739. #define GPIO_PE2_CCP4 0x00040801
  17740. #define GPIO_PE2_SSI1RX 0x00040802
  17741. #define GPIO_PE2_PHB1 0x00040803
  17742. #define GPIO_PE2_PHA0 0x00040804
  17743. #define GPIO_PE2_CCP2 0x00040805
  17744. #define GPIO_PE3_CCP1 0x00040C01
  17745. #define GPIO_PE3_SSI1TX 0x00040C02
  17746. #define GPIO_PE3_PHA1 0x00040C03
  17747. #define GPIO_PE3_PHB0 0x00040C04
  17748. #define GPIO_PE3_CCP7 0x00040C05
  17749. #define GPIO_PE4_CCP3 0x00041001
  17750. #define GPIO_PE4_FAULT0 0x00041004
  17751. #define GPIO_PE4_U2TX 0x00041005
  17752. #define GPIO_PE4_CCP2 0x00041006
  17753. #define GPIO_PE4_I2S0TXWS 0x00041009
  17754. #define GPIO_PE5_CCP5 0x00041401
  17755. #define GPIO_PE5_I2S0TXSD 0x00041409
  17756. #define GPIO_PE6_PWM4 0x00041801
  17757. #define GPIO_PE6_C1O 0x00041802
  17758. #define GPIO_PE6_U1CTS 0x00041809
  17759. #define GPIO_PE7_PWM5 0x00041C01
  17760. #define GPIO_PE7_U1DCD 0x00041C09
  17761. #define GPIO_PF0_CAN1RX 0x00050001
  17762. #define GPIO_PF0_PHB0 0x00050002
  17763. #define GPIO_PF0_PWM0 0x00050003
  17764. #define GPIO_PF0_I2S0TXSD 0x00050008
  17765. #define GPIO_PF0_U1DSR 0x00050009
  17766. #define GPIO_PF1_CAN1TX 0x00050401
  17767. #define GPIO_PF1_IDX1 0x00050402
  17768. #define GPIO_PF1_PWM1 0x00050403
  17769. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  17770. #define GPIO_PF1_U1RTS 0x00050409
  17771. #define GPIO_PF1_CCP3 0x0005040A
  17772. #define GPIO_PF2_PWM4 0x00050802
  17773. #define GPIO_PF2_PWM2 0x00050804
  17774. #define GPIO_PF2_SSI1CLK 0x00050809
  17775. #define GPIO_PF3_PWM5 0x00050C02
  17776. #define GPIO_PF3_PWM3 0x00050C04
  17777. #define GPIO_PF3_SSI1FSS 0x00050C09
  17778. #define GPIO_PF4_CCP0 0x00051001
  17779. #define GPIO_PF4_C0O 0x00051002
  17780. #define GPIO_PF4_FAULT0 0x00051004
  17781. #define GPIO_PF4_SSI1RX 0x00051009
  17782. #define GPIO_PF5_CCP2 0x00051401
  17783. #define GPIO_PF5_C1O 0x00051402
  17784. #define GPIO_PF5_SSI1TX 0x00051409
  17785. #define GPIO_PF6_CCP1 0x00051801
  17786. #define GPIO_PF6_PHA0 0x00051804
  17787. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  17788. #define GPIO_PF6_U1RTS 0x0005180A
  17789. #define GPIO_PF7_CCP4 0x00051C01
  17790. #define GPIO_PF7_PHB0 0x00051C04
  17791. #define GPIO_PF7_FAULT1 0x00051C09
  17792. #define GPIO_PG0_U2RX 0x00060001
  17793. #define GPIO_PG0_PWM0 0x00060002
  17794. #define GPIO_PG0_I2C1SCL 0x00060003
  17795. #define GPIO_PG0_PWM4 0x00060004
  17796. #define GPIO_PG0_USB0EPEN 0x00060007
  17797. #define GPIO_PG1_U2TX 0x00060401
  17798. #define GPIO_PG1_PWM1 0x00060402
  17799. #define GPIO_PG1_I2C1SDA 0x00060403
  17800. #define GPIO_PG1_PWM5 0x00060404
  17801. #define GPIO_PG2_PWM0 0x00060801
  17802. #define GPIO_PG2_FAULT0 0x00060804
  17803. #define GPIO_PG2_IDX1 0x00060808
  17804. #define GPIO_PG2_I2S0RXSD 0x00060809
  17805. #define GPIO_PG3_PWM1 0x00060C01
  17806. #define GPIO_PG3_FAULT2 0x00060C04
  17807. #define GPIO_PG3_FAULT0 0x00060C08
  17808. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  17809. #define GPIO_PG4_CCP3 0x00061001
  17810. #define GPIO_PG4_FAULT1 0x00061004
  17811. #define GPIO_PG4_U1RI 0x0006100A
  17812. #define GPIO_PG5_CCP5 0x00061401
  17813. #define GPIO_PG5_IDX0 0x00061404
  17814. #define GPIO_PG5_FAULT1 0x00061405
  17815. #define GPIO_PG5_I2S0RXSCK 0x00061409
  17816. #define GPIO_PG5_U1DTR 0x0006140A
  17817. #define GPIO_PG6_PHA1 0x00061801
  17818. #define GPIO_PG6_FAULT1 0x00061808
  17819. #define GPIO_PG6_I2S0RXWS 0x00061809
  17820. #define GPIO_PG6_U1RI 0x0006180A
  17821. #define GPIO_PG7_PHB1 0x00061C01
  17822. #define GPIO_PG7_CCP5 0x00061C08
  17823. #define GPIO_PH0_CCP6 0x00070001
  17824. #define GPIO_PH0_PWM2 0x00070002
  17825. #define GPIO_PH0_PWM4 0x00070009
  17826. #define GPIO_PH1_CCP7 0x00070401
  17827. #define GPIO_PH1_PWM3 0x00070402
  17828. #define GPIO_PH1_PWM5 0x00070409
  17829. #define GPIO_PH2_IDX1 0x00070801
  17830. #define GPIO_PH2_C1O 0x00070802
  17831. #define GPIO_PH2_FAULT3 0x00070804
  17832. #define GPIO_PH3_PHB0 0x00070C01
  17833. #define GPIO_PH3_FAULT0 0x00070C02
  17834. #define GPIO_PH3_USB0EPEN 0x00070C04
  17835. #define GPIO_PH4_USB0PFLT 0x00071004
  17836. #define GPIO_PH4_SSI1CLK 0x0007100B
  17837. #define GPIO_PH5_FAULT2 0x0007140A
  17838. #define GPIO_PH5_SSI1FSS 0x0007140B
  17839. #define GPIO_PH6_PWM4 0x0007180A
  17840. #define GPIO_PH6_SSI1RX 0x0007180B
  17841. #define GPIO_PH7_PWM5 0x00071C0A
  17842. #define GPIO_PH7_SSI1TX 0x00071C0B
  17843. #define GPIO_PJ0_PWM0 0x0008000A
  17844. #define GPIO_PJ0_I2C1SCL 0x0008000B
  17845. #define GPIO_PJ1_USB0PFLT 0x00080409
  17846. #define GPIO_PJ1_PWM1 0x0008040A
  17847. #define GPIO_PJ1_I2C1SDA 0x0008040B
  17848. #define GPIO_PJ2_CCP0 0x00080809
  17849. #define GPIO_PJ2_FAULT0 0x0008080A
  17850. #endif // PART_LM3S5951
  17851. //*****************************************************************************
  17852. //
  17853. // LM3S5956 Port/Pin Mapping Definitions
  17854. //
  17855. //*****************************************************************************
  17856. #ifdef PART_LM3S5956
  17857. #define GPIO_PA0_U0RX 0x00000001
  17858. #define GPIO_PA0_I2C1SCL 0x00000008
  17859. #define GPIO_PA0_U1RX 0x00000009
  17860. #define GPIO_PA1_U0TX 0x00000401
  17861. #define GPIO_PA1_I2C1SDA 0x00000408
  17862. #define GPIO_PA1_U1TX 0x00000409
  17863. #define GPIO_PA2_SSI0CLK 0x00000801
  17864. #define GPIO_PA2_PWM4 0x00000804
  17865. #define GPIO_PA3_SSI0FSS 0x00000C01
  17866. #define GPIO_PA3_PWM5 0x00000C04
  17867. #define GPIO_PA4_SSI0RX 0x00001001
  17868. #define GPIO_PA4_CAN0RX 0x00001005
  17869. #define GPIO_PA5_SSI0TX 0x00001401
  17870. #define GPIO_PA5_CAN0TX 0x00001405
  17871. #define GPIO_PA6_I2C1SCL 0x00001801
  17872. #define GPIO_PA6_CCP1 0x00001802
  17873. #define GPIO_PA6_PWM0 0x00001804
  17874. #define GPIO_PA6_PWM4 0x00001805
  17875. #define GPIO_PA6_CAN0RX 0x00001806
  17876. #define GPIO_PA6_USB0EPEN 0x00001808
  17877. #define GPIO_PA7_I2C1SDA 0x00001C01
  17878. #define GPIO_PA7_CCP4 0x00001C02
  17879. #define GPIO_PA7_PWM1 0x00001C04
  17880. #define GPIO_PA7_PWM5 0x00001C05
  17881. #define GPIO_PA7_CAN0TX 0x00001C06
  17882. #define GPIO_PA7_CCP3 0x00001C07
  17883. #define GPIO_PA7_USB0PFLT 0x00001C08
  17884. #define GPIO_PB0_CCP0 0x00010001
  17885. #define GPIO_PB0_PWM2 0x00010002
  17886. #define GPIO_PB0_U1RX 0x00010005
  17887. #define GPIO_PB1_CCP2 0x00010401
  17888. #define GPIO_PB1_PWM3 0x00010402
  17889. #define GPIO_PB1_CCP1 0x00010404
  17890. #define GPIO_PB1_U1TX 0x00010405
  17891. #define GPIO_PB2_I2C0SCL 0x00010801
  17892. #define GPIO_PB2_IDX0 0x00010802
  17893. #define GPIO_PB2_CCP3 0x00010804
  17894. #define GPIO_PB2_CCP0 0x00010805
  17895. #define GPIO_PB2_USB0EPEN 0x00010808
  17896. #define GPIO_PB3_I2C0SDA 0x00010C01
  17897. #define GPIO_PB3_FAULT0 0x00010C02
  17898. #define GPIO_PB3_FAULT3 0x00010C04
  17899. #define GPIO_PB3_USB0PFLT 0x00010C08
  17900. #define GPIO_PB4_U2RX 0x00011004
  17901. #define GPIO_PB4_CAN0RX 0x00011005
  17902. #define GPIO_PB4_IDX0 0x00011006
  17903. #define GPIO_PB4_U1RX 0x00011007
  17904. #define GPIO_PB5_C0O 0x00011401
  17905. #define GPIO_PB5_CCP5 0x00011402
  17906. #define GPIO_PB5_CCP6 0x00011403
  17907. #define GPIO_PB5_CCP0 0x00011404
  17908. #define GPIO_PB5_CAN0TX 0x00011405
  17909. #define GPIO_PB5_CCP2 0x00011406
  17910. #define GPIO_PB5_U1TX 0x00011407
  17911. #define GPIO_PB6_CCP1 0x00011801
  17912. #define GPIO_PB6_CCP7 0x00011802
  17913. #define GPIO_PB6_C0O 0x00011803
  17914. #define GPIO_PB6_FAULT1 0x00011804
  17915. #define GPIO_PB6_IDX0 0x00011805
  17916. #define GPIO_PB6_CCP5 0x00011806
  17917. #define GPIO_PB7_NMI 0x00011C04
  17918. #define GPIO_PC0_TCK 0x00020003
  17919. #define GPIO_PC0_SWCLK 0x00020003
  17920. #define GPIO_PC1_TMS 0x00020403
  17921. #define GPIO_PC1_SWDIO 0x00020403
  17922. #define GPIO_PC2_TDI 0x00020803
  17923. #define GPIO_PC3_SWO 0x00020C03
  17924. #define GPIO_PC3_TDO 0x00020C03
  17925. #define GPIO_PC4_CCP5 0x00021001
  17926. #define GPIO_PC4_PHA0 0x00021002
  17927. #define GPIO_PC4_CCP2 0x00021005
  17928. #define GPIO_PC4_CCP4 0x00021006
  17929. #define GPIO_PC4_CCP1 0x00021009
  17930. #define GPIO_PC5_CCP1 0x00021401
  17931. #define GPIO_PC5_C1O 0x00021402
  17932. #define GPIO_PC5_C0O 0x00021403
  17933. #define GPIO_PC5_FAULT2 0x00021404
  17934. #define GPIO_PC5_CCP3 0x00021405
  17935. #define GPIO_PC5_USB0EPEN 0x00021406
  17936. #define GPIO_PC6_CCP3 0x00021801
  17937. #define GPIO_PC6_PHB0 0x00021802
  17938. #define GPIO_PC6_U1RX 0x00021805
  17939. #define GPIO_PC6_CCP0 0x00021806
  17940. #define GPIO_PC6_USB0PFLT 0x00021807
  17941. #define GPIO_PC7_CCP4 0x00021C01
  17942. #define GPIO_PC7_PHB0 0x00021C02
  17943. #define GPIO_PC7_CCP0 0x00021C04
  17944. #define GPIO_PC7_U1TX 0x00021C05
  17945. #define GPIO_PC7_USB0PFLT 0x00021C06
  17946. #define GPIO_PC7_C1O 0x00021C07
  17947. #define GPIO_PD0_PWM0 0x00030001
  17948. #define GPIO_PD0_CAN0RX 0x00030002
  17949. #define GPIO_PD0_IDX0 0x00030003
  17950. #define GPIO_PD0_U2RX 0x00030004
  17951. #define GPIO_PD0_U1RX 0x00030005
  17952. #define GPIO_PD0_CCP6 0x00030006
  17953. #define GPIO_PD1_PWM1 0x00030401
  17954. #define GPIO_PD1_CAN0TX 0x00030402
  17955. #define GPIO_PD1_PHA0 0x00030403
  17956. #define GPIO_PD1_U2TX 0x00030404
  17957. #define GPIO_PD1_U1TX 0x00030405
  17958. #define GPIO_PD1_CCP7 0x00030406
  17959. #define GPIO_PD1_CCP2 0x0003040A
  17960. #define GPIO_PD2_U1RX 0x00030801
  17961. #define GPIO_PD2_CCP6 0x00030802
  17962. #define GPIO_PD2_PWM2 0x00030803
  17963. #define GPIO_PD2_CCP5 0x00030804
  17964. #define GPIO_PD3_U1TX 0x00030C01
  17965. #define GPIO_PD3_CCP7 0x00030C02
  17966. #define GPIO_PD3_PWM3 0x00030C03
  17967. #define GPIO_PD3_CCP0 0x00030C04
  17968. #define GPIO_PE0_PWM4 0x00040001
  17969. #define GPIO_PE0_SSI1CLK 0x00040002
  17970. #define GPIO_PE0_CCP3 0x00040003
  17971. #define GPIO_PE0_USB0PFLT 0x00040009
  17972. #define GPIO_PE1_PWM5 0x00040401
  17973. #define GPIO_PE1_SSI1FSS 0x00040402
  17974. #define GPIO_PE1_FAULT0 0x00040403
  17975. #define GPIO_PE1_CCP2 0x00040404
  17976. #define GPIO_PE1_CCP6 0x00040405
  17977. #define GPIO_PE2_CCP4 0x00040801
  17978. #define GPIO_PE2_SSI1RX 0x00040802
  17979. #define GPIO_PE2_PHA0 0x00040804
  17980. #define GPIO_PE2_CCP2 0x00040805
  17981. #define GPIO_PE3_CCP1 0x00040C01
  17982. #define GPIO_PE3_SSI1TX 0x00040C02
  17983. #define GPIO_PE3_PHB0 0x00040C04
  17984. #define GPIO_PE3_CCP7 0x00040C05
  17985. #define GPIO_PE4_CCP3 0x00041001
  17986. #define GPIO_PE4_FAULT0 0x00041004
  17987. #define GPIO_PE4_U2TX 0x00041005
  17988. #define GPIO_PE4_CCP2 0x00041006
  17989. #endif // PART_LM3S5956
  17990. //*****************************************************************************
  17991. //
  17992. // LM3S5B91 Port/Pin Mapping Definitions
  17993. //
  17994. //*****************************************************************************
  17995. #ifdef PART_LM3S5B91
  17996. #define GPIO_PA0_U0RX 0x00000001
  17997. #define GPIO_PA0_I2C1SCL 0x00000008
  17998. #define GPIO_PA0_U1RX 0x00000009
  17999. #define GPIO_PA1_U0TX 0x00000401
  18000. #define GPIO_PA1_I2C1SDA 0x00000408
  18001. #define GPIO_PA1_U1TX 0x00000409
  18002. #define GPIO_PA2_SSI0CLK 0x00000801
  18003. #define GPIO_PA2_PWM4 0x00000804
  18004. #define GPIO_PA2_I2S0RXSD 0x00000809
  18005. #define GPIO_PA3_SSI0FSS 0x00000C01
  18006. #define GPIO_PA3_PWM5 0x00000C04
  18007. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  18008. #define GPIO_PA4_SSI0RX 0x00001001
  18009. #define GPIO_PA4_PWM6 0x00001004
  18010. #define GPIO_PA4_CAN0RX 0x00001005
  18011. #define GPIO_PA4_I2S0TXSCK 0x00001009
  18012. #define GPIO_PA5_SSI0TX 0x00001401
  18013. #define GPIO_PA5_PWM7 0x00001404
  18014. #define GPIO_PA5_CAN0TX 0x00001405
  18015. #define GPIO_PA5_I2S0TXWS 0x00001409
  18016. #define GPIO_PA6_I2C1SCL 0x00001801
  18017. #define GPIO_PA6_CCP1 0x00001802
  18018. #define GPIO_PA6_PWM0 0x00001804
  18019. #define GPIO_PA6_PWM4 0x00001805
  18020. #define GPIO_PA6_CAN0RX 0x00001806
  18021. #define GPIO_PA6_USB0EPEN 0x00001808
  18022. #define GPIO_PA6_U1CTS 0x00001809
  18023. #define GPIO_PA7_I2C1SDA 0x00001C01
  18024. #define GPIO_PA7_CCP4 0x00001C02
  18025. #define GPIO_PA7_PWM1 0x00001C04
  18026. #define GPIO_PA7_PWM5 0x00001C05
  18027. #define GPIO_PA7_CAN0TX 0x00001C06
  18028. #define GPIO_PA7_CCP3 0x00001C07
  18029. #define GPIO_PA7_USB0PFLT 0x00001C08
  18030. #define GPIO_PA7_U1DCD 0x00001C09
  18031. #define GPIO_PB0_CCP0 0x00010001
  18032. #define GPIO_PB0_PWM2 0x00010002
  18033. #define GPIO_PB0_U1RX 0x00010005
  18034. #define GPIO_PB1_CCP2 0x00010401
  18035. #define GPIO_PB1_PWM3 0x00010402
  18036. #define GPIO_PB1_CCP1 0x00010404
  18037. #define GPIO_PB1_U1TX 0x00010405
  18038. #define GPIO_PB2_I2C0SCL 0x00010801
  18039. #define GPIO_PB2_IDX0 0x00010802
  18040. #define GPIO_PB2_CCP3 0x00010804
  18041. #define GPIO_PB2_CCP0 0x00010805
  18042. #define GPIO_PB2_USB0EPEN 0x00010808
  18043. #define GPIO_PB3_I2C0SDA 0x00010C01
  18044. #define GPIO_PB3_FAULT0 0x00010C02
  18045. #define GPIO_PB3_FAULT3 0x00010C04
  18046. #define GPIO_PB3_USB0PFLT 0x00010C08
  18047. #define GPIO_PB4_U2RX 0x00011004
  18048. #define GPIO_PB4_CAN0RX 0x00011005
  18049. #define GPIO_PB4_IDX0 0x00011006
  18050. #define GPIO_PB4_U1RX 0x00011007
  18051. #define GPIO_PB4_EPI0S23 0x00011008
  18052. #define GPIO_PB5_C0O 0x00011401
  18053. #define GPIO_PB5_CCP5 0x00011402
  18054. #define GPIO_PB5_CCP6 0x00011403
  18055. #define GPIO_PB5_CCP0 0x00011404
  18056. #define GPIO_PB5_CAN0TX 0x00011405
  18057. #define GPIO_PB5_CCP2 0x00011406
  18058. #define GPIO_PB5_U1TX 0x00011407
  18059. #define GPIO_PB5_EPI0S22 0x00011408
  18060. #define GPIO_PB6_CCP1 0x00011801
  18061. #define GPIO_PB6_CCP7 0x00011802
  18062. #define GPIO_PB6_C0O 0x00011803
  18063. #define GPIO_PB6_FAULT1 0x00011804
  18064. #define GPIO_PB6_IDX0 0x00011805
  18065. #define GPIO_PB6_CCP5 0x00011806
  18066. #define GPIO_PB6_I2S0TXSCK 0x00011809
  18067. #define GPIO_PB7_NMI 0x00011C04
  18068. #define GPIO_PC0_TCK 0x00020003
  18069. #define GPIO_PC0_SWCLK 0x00020003
  18070. #define GPIO_PC1_TMS 0x00020403
  18071. #define GPIO_PC1_SWDIO 0x00020403
  18072. #define GPIO_PC2_TDI 0x00020803
  18073. #define GPIO_PC3_SWO 0x00020C03
  18074. #define GPIO_PC3_TDO 0x00020C03
  18075. #define GPIO_PC4_CCP5 0x00021001
  18076. #define GPIO_PC4_PHA0 0x00021002
  18077. #define GPIO_PC4_PWM6 0x00021004
  18078. #define GPIO_PC4_CCP2 0x00021005
  18079. #define GPIO_PC4_CCP4 0x00021006
  18080. #define GPIO_PC4_EPI0S2 0x00021008
  18081. #define GPIO_PC4_CCP1 0x00021009
  18082. #define GPIO_PC5_CCP1 0x00021401
  18083. #define GPIO_PC5_C1O 0x00021402
  18084. #define GPIO_PC5_C0O 0x00021403
  18085. #define GPIO_PC5_FAULT2 0x00021404
  18086. #define GPIO_PC5_CCP3 0x00021405
  18087. #define GPIO_PC5_USB0EPEN 0x00021406
  18088. #define GPIO_PC5_EPI0S3 0x00021408
  18089. #define GPIO_PC6_CCP3 0x00021801
  18090. #define GPIO_PC6_PHB0 0x00021802
  18091. #define GPIO_PC6_C2O 0x00021803
  18092. #define GPIO_PC6_PWM7 0x00021804
  18093. #define GPIO_PC6_U1RX 0x00021805
  18094. #define GPIO_PC6_CCP0 0x00021806
  18095. #define GPIO_PC6_USB0PFLT 0x00021807
  18096. #define GPIO_PC6_EPI0S4 0x00021808
  18097. #define GPIO_PC7_CCP4 0x00021C01
  18098. #define GPIO_PC7_PHB0 0x00021C02
  18099. #define GPIO_PC7_CCP0 0x00021C04
  18100. #define GPIO_PC7_U1TX 0x00021C05
  18101. #define GPIO_PC7_USB0PFLT 0x00021C06
  18102. #define GPIO_PC7_C1O 0x00021C07
  18103. #define GPIO_PC7_EPI0S5 0x00021C08
  18104. #define GPIO_PD0_PWM0 0x00030001
  18105. #define GPIO_PD0_CAN0RX 0x00030002
  18106. #define GPIO_PD0_IDX0 0x00030003
  18107. #define GPIO_PD0_U2RX 0x00030004
  18108. #define GPIO_PD0_U1RX 0x00030005
  18109. #define GPIO_PD0_CCP6 0x00030006
  18110. #define GPIO_PD0_I2S0RXSCK 0x00030008
  18111. #define GPIO_PD0_U1CTS 0x00030009
  18112. #define GPIO_PD1_PWM1 0x00030401
  18113. #define GPIO_PD1_CAN0TX 0x00030402
  18114. #define GPIO_PD1_PHA0 0x00030403
  18115. #define GPIO_PD1_U2TX 0x00030404
  18116. #define GPIO_PD1_U1TX 0x00030405
  18117. #define GPIO_PD1_CCP7 0x00030406
  18118. #define GPIO_PD1_I2S0RXWS 0x00030408
  18119. #define GPIO_PD1_U1DCD 0x00030409
  18120. #define GPIO_PD1_CCP2 0x0003040A
  18121. #define GPIO_PD1_PHB1 0x0003040B
  18122. #define GPIO_PD2_U1RX 0x00030801
  18123. #define GPIO_PD2_CCP6 0x00030802
  18124. #define GPIO_PD2_PWM2 0x00030803
  18125. #define GPIO_PD2_CCP5 0x00030804
  18126. #define GPIO_PD2_EPI0S20 0x00030808
  18127. #define GPIO_PD3_U1TX 0x00030C01
  18128. #define GPIO_PD3_CCP7 0x00030C02
  18129. #define GPIO_PD3_PWM3 0x00030C03
  18130. #define GPIO_PD3_CCP0 0x00030C04
  18131. #define GPIO_PD3_EPI0S21 0x00030C08
  18132. #define GPIO_PD4_CCP0 0x00031001
  18133. #define GPIO_PD4_CCP3 0x00031002
  18134. #define GPIO_PD4_I2S0RXSD 0x00031008
  18135. #define GPIO_PD4_U1RI 0x00031009
  18136. #define GPIO_PD4_EPI0S19 0x0003100A
  18137. #define GPIO_PD5_CCP2 0x00031401
  18138. #define GPIO_PD5_CCP4 0x00031402
  18139. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  18140. #define GPIO_PD5_U2RX 0x00031409
  18141. #define GPIO_PD5_EPI0S28 0x0003140A
  18142. #define GPIO_PD6_FAULT0 0x00031801
  18143. #define GPIO_PD6_I2S0TXSCK 0x00031808
  18144. #define GPIO_PD6_U2TX 0x00031809
  18145. #define GPIO_PD6_EPI0S29 0x0003180A
  18146. #define GPIO_PD7_IDX0 0x00031C01
  18147. #define GPIO_PD7_C0O 0x00031C02
  18148. #define GPIO_PD7_CCP1 0x00031C03
  18149. #define GPIO_PD7_I2S0TXWS 0x00031C08
  18150. #define GPIO_PD7_U1DTR 0x00031C09
  18151. #define GPIO_PD7_EPI0S30 0x00031C0A
  18152. #define GPIO_PE0_PWM4 0x00040001
  18153. #define GPIO_PE0_SSI1CLK 0x00040002
  18154. #define GPIO_PE0_CCP3 0x00040003
  18155. #define GPIO_PE0_EPI0S8 0x00040008
  18156. #define GPIO_PE0_USB0PFLT 0x00040009
  18157. #define GPIO_PE1_PWM5 0x00040401
  18158. #define GPIO_PE1_SSI1FSS 0x00040402
  18159. #define GPIO_PE1_FAULT0 0x00040403
  18160. #define GPIO_PE1_CCP2 0x00040404
  18161. #define GPIO_PE1_CCP6 0x00040405
  18162. #define GPIO_PE1_EPI0S9 0x00040408
  18163. #define GPIO_PE2_CCP4 0x00040801
  18164. #define GPIO_PE2_SSI1RX 0x00040802
  18165. #define GPIO_PE2_PHB1 0x00040803
  18166. #define GPIO_PE2_PHA0 0x00040804
  18167. #define GPIO_PE2_CCP2 0x00040805
  18168. #define GPIO_PE2_EPI0S24 0x00040808
  18169. #define GPIO_PE3_CCP1 0x00040C01
  18170. #define GPIO_PE3_SSI1TX 0x00040C02
  18171. #define GPIO_PE3_PHA1 0x00040C03
  18172. #define GPIO_PE3_PHB0 0x00040C04
  18173. #define GPIO_PE3_CCP7 0x00040C05
  18174. #define GPIO_PE3_EPI0S25 0x00040C08
  18175. #define GPIO_PE4_CCP3 0x00041001
  18176. #define GPIO_PE4_FAULT0 0x00041004
  18177. #define GPIO_PE4_U2TX 0x00041005
  18178. #define GPIO_PE4_CCP2 0x00041006
  18179. #define GPIO_PE4_I2S0TXWS 0x00041009
  18180. #define GPIO_PE5_CCP5 0x00041401
  18181. #define GPIO_PE5_I2S0TXSD 0x00041409
  18182. #define GPIO_PE6_PWM4 0x00041801
  18183. #define GPIO_PE6_C1O 0x00041802
  18184. #define GPIO_PE6_U1CTS 0x00041809
  18185. #define GPIO_PE7_PWM5 0x00041C01
  18186. #define GPIO_PE7_C2O 0x00041C02
  18187. #define GPIO_PE7_U1DCD 0x00041C09
  18188. #define GPIO_PF0_CAN1RX 0x00050001
  18189. #define GPIO_PF0_PHB0 0x00050002
  18190. #define GPIO_PF0_PWM0 0x00050003
  18191. #define GPIO_PF0_I2S0TXSD 0x00050008
  18192. #define GPIO_PF0_U1DSR 0x00050009
  18193. #define GPIO_PF1_CAN1TX 0x00050401
  18194. #define GPIO_PF1_IDX1 0x00050402
  18195. #define GPIO_PF1_PWM1 0x00050403
  18196. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  18197. #define GPIO_PF1_U1RTS 0x00050409
  18198. #define GPIO_PF1_CCP3 0x0005040A
  18199. #define GPIO_PF2_PWM4 0x00050802
  18200. #define GPIO_PF2_PWM2 0x00050804
  18201. #define GPIO_PF2_SSI1CLK 0x00050809
  18202. #define GPIO_PF3_PWM5 0x00050C02
  18203. #define GPIO_PF3_PWM3 0x00050C04
  18204. #define GPIO_PF3_SSI1FSS 0x00050C09
  18205. #define GPIO_PF4_CCP0 0x00051001
  18206. #define GPIO_PF4_C0O 0x00051002
  18207. #define GPIO_PF4_FAULT0 0x00051004
  18208. #define GPIO_PF4_EPI0S12 0x00051008
  18209. #define GPIO_PF4_SSI1RX 0x00051009
  18210. #define GPIO_PF5_CCP2 0x00051401
  18211. #define GPIO_PF5_C1O 0x00051402
  18212. #define GPIO_PF5_EPI0S15 0x00051408
  18213. #define GPIO_PF5_SSI1TX 0x00051409
  18214. #define GPIO_PF6_CCP1 0x00051801
  18215. #define GPIO_PF6_C2O 0x00051802
  18216. #define GPIO_PF6_PHA0 0x00051804
  18217. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  18218. #define GPIO_PF6_U1RTS 0x0005180A
  18219. #define GPIO_PF7_CCP4 0x00051C01
  18220. #define GPIO_PF7_PHB0 0x00051C04
  18221. #define GPIO_PF7_EPI0S12 0x00051C08
  18222. #define GPIO_PF7_FAULT1 0x00051C09
  18223. #define GPIO_PG0_U2RX 0x00060001
  18224. #define GPIO_PG0_PWM0 0x00060002
  18225. #define GPIO_PG0_I2C1SCL 0x00060003
  18226. #define GPIO_PG0_PWM4 0x00060004
  18227. #define GPIO_PG0_USB0EPEN 0x00060007
  18228. #define GPIO_PG0_EPI0S13 0x00060008
  18229. #define GPIO_PG1_U2TX 0x00060401
  18230. #define GPIO_PG1_PWM1 0x00060402
  18231. #define GPIO_PG1_I2C1SDA 0x00060403
  18232. #define GPIO_PG1_PWM5 0x00060404
  18233. #define GPIO_PG1_EPI0S14 0x00060408
  18234. #define GPIO_PG2_PWM0 0x00060801
  18235. #define GPIO_PG2_FAULT0 0x00060804
  18236. #define GPIO_PG2_IDX1 0x00060808
  18237. #define GPIO_PG2_I2S0RXSD 0x00060809
  18238. #define GPIO_PG3_PWM1 0x00060C01
  18239. #define GPIO_PG3_FAULT2 0x00060C04
  18240. #define GPIO_PG3_FAULT0 0x00060C08
  18241. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  18242. #define GPIO_PG4_CCP3 0x00061001
  18243. #define GPIO_PG4_FAULT1 0x00061004
  18244. #define GPIO_PG4_EPI0S15 0x00061008
  18245. #define GPIO_PG4_PWM6 0x00061009
  18246. #define GPIO_PG4_U1RI 0x0006100A
  18247. #define GPIO_PG5_CCP5 0x00061401
  18248. #define GPIO_PG5_IDX0 0x00061404
  18249. #define GPIO_PG5_FAULT1 0x00061405
  18250. #define GPIO_PG5_PWM7 0x00061408
  18251. #define GPIO_PG5_I2S0RXSCK 0x00061409
  18252. #define GPIO_PG5_U1DTR 0x0006140A
  18253. #define GPIO_PG6_PHA1 0x00061801
  18254. #define GPIO_PG6_PWM6 0x00061804
  18255. #define GPIO_PG6_FAULT1 0x00061808
  18256. #define GPIO_PG6_I2S0RXWS 0x00061809
  18257. #define GPIO_PG6_U1RI 0x0006180A
  18258. #define GPIO_PG7_PHB1 0x00061C01
  18259. #define GPIO_PG7_PWM7 0x00061C04
  18260. #define GPIO_PG7_CCP5 0x00061C08
  18261. #define GPIO_PG7_EPI0S31 0x00061C09
  18262. #define GPIO_PH0_CCP6 0x00070001
  18263. #define GPIO_PH0_PWM2 0x00070002
  18264. #define GPIO_PH0_EPI0S6 0x00070008
  18265. #define GPIO_PH0_PWM4 0x00070009
  18266. #define GPIO_PH1_CCP7 0x00070401
  18267. #define GPIO_PH1_PWM3 0x00070402
  18268. #define GPIO_PH1_EPI0S7 0x00070408
  18269. #define GPIO_PH1_PWM5 0x00070409
  18270. #define GPIO_PH2_IDX1 0x00070801
  18271. #define GPIO_PH2_C1O 0x00070802
  18272. #define GPIO_PH2_FAULT3 0x00070804
  18273. #define GPIO_PH2_EPI0S1 0x00070808
  18274. #define GPIO_PH3_PHB0 0x00070C01
  18275. #define GPIO_PH3_FAULT0 0x00070C02
  18276. #define GPIO_PH3_USB0EPEN 0x00070C04
  18277. #define GPIO_PH3_EPI0S0 0x00070C08
  18278. #define GPIO_PH4_USB0PFLT 0x00071004
  18279. #define GPIO_PH4_EPI0S10 0x00071008
  18280. #define GPIO_PH4_SSI1CLK 0x0007100B
  18281. #define GPIO_PH5_EPI0S11 0x00071408
  18282. #define GPIO_PH5_FAULT2 0x0007140A
  18283. #define GPIO_PH5_SSI1FSS 0x0007140B
  18284. #define GPIO_PH6_EPI0S26 0x00071808
  18285. #define GPIO_PH6_PWM4 0x0007180A
  18286. #define GPIO_PH6_SSI1RX 0x0007180B
  18287. #define GPIO_PH7_EPI0S27 0x00071C08
  18288. #define GPIO_PH7_PWM5 0x00071C0A
  18289. #define GPIO_PH7_SSI1TX 0x00071C0B
  18290. #define GPIO_PJ0_EPI0S16 0x00080008
  18291. #define GPIO_PJ0_PWM0 0x0008000A
  18292. #define GPIO_PJ0_I2C1SCL 0x0008000B
  18293. #define GPIO_PJ1_EPI0S17 0x00080408
  18294. #define GPIO_PJ1_USB0PFLT 0x00080409
  18295. #define GPIO_PJ1_PWM1 0x0008040A
  18296. #define GPIO_PJ1_I2C1SDA 0x0008040B
  18297. #define GPIO_PJ2_EPI0S18 0x00080808
  18298. #define GPIO_PJ2_CCP0 0x00080809
  18299. #define GPIO_PJ2_FAULT0 0x0008080A
  18300. #define GPIO_PJ3_EPI0S19 0x00080C08
  18301. #define GPIO_PJ3_U1CTS 0x00080C09
  18302. #define GPIO_PJ3_CCP6 0x00080C0A
  18303. #define GPIO_PJ4_EPI0S28 0x00081008
  18304. #define GPIO_PJ4_U1DCD 0x00081009
  18305. #define GPIO_PJ4_CCP4 0x0008100A
  18306. #define GPIO_PJ5_EPI0S29 0x00081408
  18307. #define GPIO_PJ5_U1DSR 0x00081409
  18308. #define GPIO_PJ5_CCP2 0x0008140A
  18309. #define GPIO_PJ6_EPI0S30 0x00081808
  18310. #define GPIO_PJ6_U1RTS 0x00081809
  18311. #define GPIO_PJ6_CCP1 0x0008180A
  18312. #define GPIO_PJ7_U1DTR 0x00081C09
  18313. #define GPIO_PJ7_CCP0 0x00081C0A
  18314. #endif // PART_LM3S5B91
  18315. //*****************************************************************************
  18316. //
  18317. // LM3S5C31 Port/Pin Mapping Definitions
  18318. //
  18319. //*****************************************************************************
  18320. #ifdef PART_LM3S5C31
  18321. #define GPIO_PA0_U0RX 0x00000001
  18322. #define GPIO_PA0_I2C1SCL 0x00000008
  18323. #define GPIO_PA0_U1RX 0x00000009
  18324. #define GPIO_PA1_U0TX 0x00000401
  18325. #define GPIO_PA1_I2C1SDA 0x00000408
  18326. #define GPIO_PA1_U1TX 0x00000409
  18327. #define GPIO_PA2_SSI0CLK 0x00000801
  18328. #define GPIO_PA2_PWM4 0x00000804
  18329. #define GPIO_PA3_SSI0FSS 0x00000C01
  18330. #define GPIO_PA3_PWM5 0x00000C04
  18331. #define GPIO_PA4_SSI0RX 0x00001001
  18332. #define GPIO_PA4_CAN0RX 0x00001005
  18333. #define GPIO_PA5_SSI0TX 0x00001401
  18334. #define GPIO_PA5_CAN0TX 0x00001405
  18335. #define GPIO_PA6_I2C1SCL 0x00001801
  18336. #define GPIO_PA6_CCP1 0x00001802
  18337. #define GPIO_PA6_PWM0 0x00001804
  18338. #define GPIO_PA6_PWM4 0x00001805
  18339. #define GPIO_PA6_CAN0RX 0x00001806
  18340. #define GPIO_PA6_U1CTS 0x00001809
  18341. #define GPIO_PA7_I2C1SDA 0x00001C01
  18342. #define GPIO_PA7_CCP4 0x00001C02
  18343. #define GPIO_PA7_PWM1 0x00001C04
  18344. #define GPIO_PA7_PWM5 0x00001C05
  18345. #define GPIO_PA7_CAN0TX 0x00001C06
  18346. #define GPIO_PA7_CCP3 0x00001C07
  18347. #define GPIO_PA7_U1DCD 0x00001C09
  18348. #define GPIO_PB0_CCP0 0x00010001
  18349. #define GPIO_PB0_PWM2 0x00010002
  18350. #define GPIO_PB0_U1RX 0x00010005
  18351. #define GPIO_PB1_CCP2 0x00010401
  18352. #define GPIO_PB1_PWM3 0x00010402
  18353. #define GPIO_PB1_CCP1 0x00010404
  18354. #define GPIO_PB1_U1TX 0x00010405
  18355. #define GPIO_PB2_I2C0SCL 0x00010801
  18356. #define GPIO_PB2_IDX0 0x00010802
  18357. #define GPIO_PB2_CCP3 0x00010804
  18358. #define GPIO_PB2_CCP0 0x00010805
  18359. #define GPIO_PB3_I2C0SDA 0x00010C01
  18360. #define GPIO_PB3_FAULT0 0x00010C02
  18361. #define GPIO_PB3_FAULT3 0x00010C04
  18362. #define GPIO_PB4_U2RX 0x00011004
  18363. #define GPIO_PB4_CAN0RX 0x00011005
  18364. #define GPIO_PB4_IDX0 0x00011006
  18365. #define GPIO_PB4_U1RX 0x00011007
  18366. #define GPIO_PB4_EPI0S23 0x00011008
  18367. #define GPIO_PB5_C0O 0x00011401
  18368. #define GPIO_PB5_CCP5 0x00011402
  18369. #define GPIO_PB5_CCP0 0x00011404
  18370. #define GPIO_PB5_CAN0TX 0x00011405
  18371. #define GPIO_PB5_CCP2 0x00011406
  18372. #define GPIO_PB5_U1TX 0x00011407
  18373. #define GPIO_PB5_EPI0S22 0x00011408
  18374. #define GPIO_PB6_CCP1 0x00011801
  18375. #define GPIO_PB6_C0O 0x00011803
  18376. #define GPIO_PB6_FAULT1 0x00011804
  18377. #define GPIO_PB6_IDX0 0x00011805
  18378. #define GPIO_PB6_CCP5 0x00011806
  18379. #define GPIO_PB7_NMI 0x00011C04
  18380. #define GPIO_PC0_TCK 0x00020003
  18381. #define GPIO_PC0_SWCLK 0x00020003
  18382. #define GPIO_PC1_TMS 0x00020403
  18383. #define GPIO_PC1_SWDIO 0x00020403
  18384. #define GPIO_PC2_TDI 0x00020803
  18385. #define GPIO_PC3_SWO 0x00020C03
  18386. #define GPIO_PC3_TDO 0x00020C03
  18387. #define GPIO_PC4_CCP5 0x00021001
  18388. #define GPIO_PC4_PHA0 0x00021002
  18389. #define GPIO_PC4_CCP2 0x00021005
  18390. #define GPIO_PC4_CCP4 0x00021006
  18391. #define GPIO_PC4_EPI0S2 0x00021008
  18392. #define GPIO_PC4_CCP1 0x00021009
  18393. #define GPIO_PC5_CCP1 0x00021401
  18394. #define GPIO_PC5_C1O 0x00021402
  18395. #define GPIO_PC5_C0O 0x00021403
  18396. #define GPIO_PC5_FAULT2 0x00021404
  18397. #define GPIO_PC5_CCP3 0x00021405
  18398. #define GPIO_PC5_EPI0S3 0x00021408
  18399. #define GPIO_PC6_CCP3 0x00021801
  18400. #define GPIO_PC6_PHB0 0x00021802
  18401. #define GPIO_PC6_U1RX 0x00021805
  18402. #define GPIO_PC6_CCP0 0x00021806
  18403. #define GPIO_PC6_EPI0S4 0x00021808
  18404. #define GPIO_PC7_CCP4 0x00021C01
  18405. #define GPIO_PC7_PHB0 0x00021C02
  18406. #define GPIO_PC7_CCP0 0x00021C04
  18407. #define GPIO_PC7_U1TX 0x00021C05
  18408. #define GPIO_PC7_C1O 0x00021C07
  18409. #define GPIO_PC7_EPI0S5 0x00021C08
  18410. #define GPIO_PD0_PWM0 0x00030001
  18411. #define GPIO_PD0_CAN0RX 0x00030002
  18412. #define GPIO_PD0_IDX0 0x00030003
  18413. #define GPIO_PD0_U2RX 0x00030004
  18414. #define GPIO_PD0_U1RX 0x00030005
  18415. #define GPIO_PD0_U1CTS 0x00030009
  18416. #define GPIO_PD1_PWM1 0x00030401
  18417. #define GPIO_PD1_CAN0TX 0x00030402
  18418. #define GPIO_PD1_PHA0 0x00030403
  18419. #define GPIO_PD1_U2TX 0x00030404
  18420. #define GPIO_PD1_U1TX 0x00030405
  18421. #define GPIO_PD1_U1DCD 0x00030409
  18422. #define GPIO_PD1_CCP2 0x0003040A
  18423. #define GPIO_PD1_PHB1 0x0003040B
  18424. #define GPIO_PD2_U1RX 0x00030801
  18425. #define GPIO_PD2_PWM2 0x00030803
  18426. #define GPIO_PD2_CCP5 0x00030804
  18427. #define GPIO_PD2_EPI0S20 0x00030808
  18428. #define GPIO_PD3_U1TX 0x00030C01
  18429. #define GPIO_PD3_PWM3 0x00030C03
  18430. #define GPIO_PD3_CCP0 0x00030C04
  18431. #define GPIO_PD3_EPI0S21 0x00030C08
  18432. #define GPIO_PD4_CCP0 0x00031001
  18433. #define GPIO_PD4_CCP3 0x00031002
  18434. #define GPIO_PD4_U1RI 0x00031009
  18435. #define GPIO_PD4_EPI0S19 0x0003100A
  18436. #define GPIO_PD5_CCP2 0x00031401
  18437. #define GPIO_PD5_CCP4 0x00031402
  18438. #define GPIO_PD5_U2RX 0x00031409
  18439. #define GPIO_PD5_EPI0S28 0x0003140A
  18440. #define GPIO_PD6_FAULT0 0x00031801
  18441. #define GPIO_PD6_U2TX 0x00031809
  18442. #define GPIO_PD6_EPI0S29 0x0003180A
  18443. #define GPIO_PD7_IDX0 0x00031C01
  18444. #define GPIO_PD7_C0O 0x00031C02
  18445. #define GPIO_PD7_CCP1 0x00031C03
  18446. #define GPIO_PD7_U1DTR 0x00031C09
  18447. #define GPIO_PD7_EPI0S30 0x00031C0A
  18448. #define GPIO_PE0_PWM4 0x00040001
  18449. #define GPIO_PE0_SSI1CLK 0x00040002
  18450. #define GPIO_PE0_CCP3 0x00040003
  18451. #define GPIO_PE0_EPI0S8 0x00040008
  18452. #define GPIO_PE1_PWM5 0x00040401
  18453. #define GPIO_PE1_SSI1FSS 0x00040402
  18454. #define GPIO_PE1_FAULT0 0x00040403
  18455. #define GPIO_PE1_CCP2 0x00040404
  18456. #define GPIO_PE1_EPI0S9 0x00040408
  18457. #define GPIO_PE2_CCP4 0x00040801
  18458. #define GPIO_PE2_SSI1RX 0x00040802
  18459. #define GPIO_PE2_PHB1 0x00040803
  18460. #define GPIO_PE2_PHA0 0x00040804
  18461. #define GPIO_PE2_CCP2 0x00040805
  18462. #define GPIO_PE2_EPI0S24 0x00040808
  18463. #define GPIO_PE3_CCP1 0x00040C01
  18464. #define GPIO_PE3_SSI1TX 0x00040C02
  18465. #define GPIO_PE3_PHA1 0x00040C03
  18466. #define GPIO_PE3_PHB0 0x00040C04
  18467. #define GPIO_PE3_EPI0S25 0x00040C08
  18468. #define GPIO_PE4_CCP3 0x00041001
  18469. #define GPIO_PE4_FAULT0 0x00041004
  18470. #define GPIO_PE4_U2TX 0x00041005
  18471. #define GPIO_PE4_CCP2 0x00041006
  18472. #define GPIO_PE5_CCP5 0x00041401
  18473. #define GPIO_PE6_PWM4 0x00041801
  18474. #define GPIO_PE6_C1O 0x00041802
  18475. #define GPIO_PE6_U1CTS 0x00041809
  18476. #define GPIO_PE7_PWM5 0x00041C01
  18477. #define GPIO_PE7_U1DCD 0x00041C09
  18478. #define GPIO_PF0_PHB0 0x00050002
  18479. #define GPIO_PF0_PWM0 0x00050003
  18480. #define GPIO_PF0_U1DSR 0x00050009
  18481. #define GPIO_PF1_IDX1 0x00050402
  18482. #define GPIO_PF1_PWM1 0x00050403
  18483. #define GPIO_PF1_U1RTS 0x00050409
  18484. #define GPIO_PF1_CCP3 0x0005040A
  18485. #define GPIO_PF2_PWM4 0x00050802
  18486. #define GPIO_PF2_PWM2 0x00050804
  18487. #define GPIO_PF2_SSI1CLK 0x00050809
  18488. #define GPIO_PF3_PWM5 0x00050C02
  18489. #define GPIO_PF3_PWM3 0x00050C04
  18490. #define GPIO_PF3_SSI1FSS 0x00050C09
  18491. #define GPIO_PF4_CCP0 0x00051001
  18492. #define GPIO_PF4_C0O 0x00051002
  18493. #define GPIO_PF4_FAULT0 0x00051004
  18494. #define GPIO_PF4_EPI0S12 0x00051008
  18495. #define GPIO_PF4_SSI1RX 0x00051009
  18496. #define GPIO_PF5_CCP2 0x00051401
  18497. #define GPIO_PF5_C1O 0x00051402
  18498. #define GPIO_PF5_EPI0S15 0x00051408
  18499. #define GPIO_PF5_SSI1TX 0x00051409
  18500. #define GPIO_PF6_CCP1 0x00051801
  18501. #define GPIO_PF6_PHA0 0x00051804
  18502. #define GPIO_PF6_U1RTS 0x0005180A
  18503. #define GPIO_PF7_CCP4 0x00051C01
  18504. #define GPIO_PF7_PHB0 0x00051C04
  18505. #define GPIO_PF7_EPI0S12 0x00051C08
  18506. #define GPIO_PF7_FAULT1 0x00051C09
  18507. #define GPIO_PG0_U2RX 0x00060001
  18508. #define GPIO_PG0_PWM0 0x00060002
  18509. #define GPIO_PG0_I2C1SCL 0x00060003
  18510. #define GPIO_PG0_PWM4 0x00060004
  18511. #define GPIO_PG0_EPI0S13 0x00060008
  18512. #define GPIO_PG1_U2TX 0x00060401
  18513. #define GPIO_PG1_PWM1 0x00060402
  18514. #define GPIO_PG1_I2C1SDA 0x00060403
  18515. #define GPIO_PG1_PWM5 0x00060404
  18516. #define GPIO_PG1_EPI0S14 0x00060408
  18517. #define GPIO_PG2_PWM0 0x00060801
  18518. #define GPIO_PG2_FAULT0 0x00060804
  18519. #define GPIO_PG2_IDX1 0x00060808
  18520. #define GPIO_PG3_PWM1 0x00060C01
  18521. #define GPIO_PG3_FAULT2 0x00060C04
  18522. #define GPIO_PG3_FAULT0 0x00060C08
  18523. #define GPIO_PG4_CCP3 0x00061001
  18524. #define GPIO_PG4_FAULT1 0x00061004
  18525. #define GPIO_PG4_EPI0S15 0x00061008
  18526. #define GPIO_PG4_U1RI 0x0006100A
  18527. #define GPIO_PG5_CCP5 0x00061401
  18528. #define GPIO_PG5_IDX0 0x00061404
  18529. #define GPIO_PG5_FAULT1 0x00061405
  18530. #define GPIO_PG5_U1DTR 0x0006140A
  18531. #define GPIO_PG6_PHA1 0x00061801
  18532. #define GPIO_PG6_FAULT1 0x00061808
  18533. #define GPIO_PG6_U1RI 0x0006180A
  18534. #define GPIO_PG7_PHB1 0x00061C01
  18535. #define GPIO_PG7_CCP5 0x00061C08
  18536. #define GPIO_PG7_EPI0S31 0x00061C09
  18537. #define GPIO_PH0_PWM2 0x00070002
  18538. #define GPIO_PH0_EPI0S6 0x00070008
  18539. #define GPIO_PH0_PWM4 0x00070009
  18540. #define GPIO_PH1_PWM3 0x00070402
  18541. #define GPIO_PH1_EPI0S7 0x00070408
  18542. #define GPIO_PH1_PWM5 0x00070409
  18543. #define GPIO_PH2_IDX1 0x00070801
  18544. #define GPIO_PH2_C1O 0x00070802
  18545. #define GPIO_PH2_FAULT3 0x00070804
  18546. #define GPIO_PH2_EPI0S1 0x00070808
  18547. #define GPIO_PH3_PHB0 0x00070C01
  18548. #define GPIO_PH3_FAULT0 0x00070C02
  18549. #define GPIO_PH3_EPI0S0 0x00070C08
  18550. #define GPIO_PH4_EPI0S10 0x00071008
  18551. #define GPIO_PH4_SSI1CLK 0x0007100B
  18552. #define GPIO_PH5_EPI0S11 0x00071408
  18553. #define GPIO_PH5_FAULT2 0x0007140A
  18554. #define GPIO_PH5_SSI1FSS 0x0007140B
  18555. #define GPIO_PH6_EPI0S26 0x00071808
  18556. #define GPIO_PH6_PWM4 0x0007180A
  18557. #define GPIO_PH6_SSI1RX 0x0007180B
  18558. #define GPIO_PH7_EPI0S27 0x00071C08
  18559. #define GPIO_PH7_PWM5 0x00071C0A
  18560. #define GPIO_PH7_SSI1TX 0x00071C0B
  18561. #define GPIO_PJ0_EPI0S16 0x00080008
  18562. #define GPIO_PJ0_PWM0 0x0008000A
  18563. #define GPIO_PJ0_I2C1SCL 0x0008000B
  18564. #define GPIO_PJ1_EPI0S17 0x00080408
  18565. #define GPIO_PJ1_PWM1 0x0008040A
  18566. #define GPIO_PJ1_I2C1SDA 0x0008040B
  18567. #define GPIO_PJ2_EPI0S18 0x00080808
  18568. #define GPIO_PJ2_CCP0 0x00080809
  18569. #define GPIO_PJ2_FAULT0 0x0008080A
  18570. #endif // PART_LM3S5C31
  18571. //*****************************************************************************
  18572. //
  18573. // LM3S5C36 Port/Pin Mapping Definitions
  18574. //
  18575. //*****************************************************************************
  18576. #ifdef PART_LM3S5C36
  18577. #define GPIO_PA0_U0RX 0x00000001
  18578. #define GPIO_PA0_I2C1SCL 0x00000008
  18579. #define GPIO_PA0_U1RX 0x00000009
  18580. #define GPIO_PA1_U0TX 0x00000401
  18581. #define GPIO_PA1_I2C1SDA 0x00000408
  18582. #define GPIO_PA1_U1TX 0x00000409
  18583. #define GPIO_PA2_SSI0CLK 0x00000801
  18584. #define GPIO_PA2_PWM4 0x00000804
  18585. #define GPIO_PA3_SSI0FSS 0x00000C01
  18586. #define GPIO_PA3_PWM5 0x00000C04
  18587. #define GPIO_PA4_SSI0RX 0x00001001
  18588. #define GPIO_PA4_PWM6 0x00001004
  18589. #define GPIO_PA4_CAN0RX 0x00001005
  18590. #define GPIO_PA5_SSI0TX 0x00001401
  18591. #define GPIO_PA5_PWM7 0x00001404
  18592. #define GPIO_PA5_CAN0TX 0x00001405
  18593. #define GPIO_PA6_I2C1SCL 0x00001801
  18594. #define GPIO_PA6_CCP1 0x00001802
  18595. #define GPIO_PA6_PWM0 0x00001804
  18596. #define GPIO_PA6_PWM4 0x00001805
  18597. #define GPIO_PA6_CAN0RX 0x00001806
  18598. #define GPIO_PA7_I2C1SDA 0x00001C01
  18599. #define GPIO_PA7_CCP4 0x00001C02
  18600. #define GPIO_PA7_PWM1 0x00001C04
  18601. #define GPIO_PA7_PWM5 0x00001C05
  18602. #define GPIO_PA7_CAN0TX 0x00001C06
  18603. #define GPIO_PA7_CCP3 0x00001C07
  18604. #define GPIO_PB0_CCP0 0x00010001
  18605. #define GPIO_PB0_PWM2 0x00010002
  18606. #define GPIO_PB0_U1RX 0x00010005
  18607. #define GPIO_PB1_CCP2 0x00010401
  18608. #define GPIO_PB1_PWM3 0x00010402
  18609. #define GPIO_PB1_CCP1 0x00010404
  18610. #define GPIO_PB1_U1TX 0x00010405
  18611. #define GPIO_PB2_I2C0SCL 0x00010801
  18612. #define GPIO_PB2_IDX0 0x00010802
  18613. #define GPIO_PB2_CCP3 0x00010804
  18614. #define GPIO_PB2_CCP0 0x00010805
  18615. #define GPIO_PB3_I2C0SDA 0x00010C01
  18616. #define GPIO_PB3_FAULT0 0x00010C02
  18617. #define GPIO_PB3_FAULT3 0x00010C04
  18618. #define GPIO_PB4_U2RX 0x00011004
  18619. #define GPIO_PB4_CAN0RX 0x00011005
  18620. #define GPIO_PB4_IDX0 0x00011006
  18621. #define GPIO_PB4_U1RX 0x00011007
  18622. #define GPIO_PB5_C0O 0x00011401
  18623. #define GPIO_PB5_CCP5 0x00011402
  18624. #define GPIO_PB5_CCP6 0x00011403
  18625. #define GPIO_PB5_CCP0 0x00011404
  18626. #define GPIO_PB5_CAN0TX 0x00011405
  18627. #define GPIO_PB5_CCP2 0x00011406
  18628. #define GPIO_PB5_U1TX 0x00011407
  18629. #define GPIO_PB6_CCP1 0x00011801
  18630. #define GPIO_PB6_CCP7 0x00011802
  18631. #define GPIO_PB6_C0O 0x00011803
  18632. #define GPIO_PB6_FAULT1 0x00011804
  18633. #define GPIO_PB6_IDX0 0x00011805
  18634. #define GPIO_PB6_CCP5 0x00011806
  18635. #define GPIO_PB7_NMI 0x00011C04
  18636. #define GPIO_PC0_TCK 0x00020003
  18637. #define GPIO_PC0_SWCLK 0x00020003
  18638. #define GPIO_PC1_TMS 0x00020403
  18639. #define GPIO_PC1_SWDIO 0x00020403
  18640. #define GPIO_PC2_TDI 0x00020803
  18641. #define GPIO_PC3_SWO 0x00020C03
  18642. #define GPIO_PC3_TDO 0x00020C03
  18643. #define GPIO_PC4_CCP5 0x00021001
  18644. #define GPIO_PC4_PHA0 0x00021002
  18645. #define GPIO_PC4_PWM6 0x00021004
  18646. #define GPIO_PC4_CCP2 0x00021005
  18647. #define GPIO_PC4_CCP4 0x00021006
  18648. #define GPIO_PC4_CCP1 0x00021009
  18649. #define GPIO_PC5_CCP1 0x00021401
  18650. #define GPIO_PC5_C1O 0x00021402
  18651. #define GPIO_PC5_C0O 0x00021403
  18652. #define GPIO_PC5_FAULT2 0x00021404
  18653. #define GPIO_PC5_CCP3 0x00021405
  18654. #define GPIO_PC6_CCP3 0x00021801
  18655. #define GPIO_PC6_PHB0 0x00021802
  18656. #define GPIO_PC6_PWM7 0x00021804
  18657. #define GPIO_PC6_U1RX 0x00021805
  18658. #define GPIO_PC6_CCP0 0x00021806
  18659. #define GPIO_PC7_CCP4 0x00021C01
  18660. #define GPIO_PC7_PHB0 0x00021C02
  18661. #define GPIO_PC7_CCP0 0x00021C04
  18662. #define GPIO_PC7_U1TX 0x00021C05
  18663. #define GPIO_PC7_C1O 0x00021C07
  18664. #define GPIO_PD0_PWM0 0x00030001
  18665. #define GPIO_PD0_CAN0RX 0x00030002
  18666. #define GPIO_PD0_IDX0 0x00030003
  18667. #define GPIO_PD0_U2RX 0x00030004
  18668. #define GPIO_PD0_U1RX 0x00030005
  18669. #define GPIO_PD0_CCP6 0x00030006
  18670. #define GPIO_PD1_PWM1 0x00030401
  18671. #define GPIO_PD1_CAN0TX 0x00030402
  18672. #define GPIO_PD1_PHA0 0x00030403
  18673. #define GPIO_PD1_U2TX 0x00030404
  18674. #define GPIO_PD1_U1TX 0x00030405
  18675. #define GPIO_PD1_CCP7 0x00030406
  18676. #define GPIO_PD1_CCP2 0x0003040A
  18677. #define GPIO_PD2_U1RX 0x00030801
  18678. #define GPIO_PD2_CCP6 0x00030802
  18679. #define GPIO_PD2_PWM2 0x00030803
  18680. #define GPIO_PD2_CCP5 0x00030804
  18681. #define GPIO_PD3_U1TX 0x00030C01
  18682. #define GPIO_PD3_CCP7 0x00030C02
  18683. #define GPIO_PD3_PWM3 0x00030C03
  18684. #define GPIO_PD3_CCP0 0x00030C04
  18685. #define GPIO_PE0_PWM4 0x00040001
  18686. #define GPIO_PE0_SSI1CLK 0x00040002
  18687. #define GPIO_PE0_CCP3 0x00040003
  18688. #define GPIO_PE1_PWM5 0x00040401
  18689. #define GPIO_PE1_SSI1FSS 0x00040402
  18690. #define GPIO_PE1_FAULT0 0x00040403
  18691. #define GPIO_PE1_CCP2 0x00040404
  18692. #define GPIO_PE1_CCP6 0x00040405
  18693. #define GPIO_PE2_CCP4 0x00040801
  18694. #define GPIO_PE2_SSI1RX 0x00040802
  18695. #define GPIO_PE2_PHA0 0x00040804
  18696. #define GPIO_PE2_CCP2 0x00040805
  18697. #define GPIO_PE3_CCP1 0x00040C01
  18698. #define GPIO_PE3_SSI1TX 0x00040C02
  18699. #define GPIO_PE3_PHB0 0x00040C04
  18700. #define GPIO_PE3_CCP7 0x00040C05
  18701. #define GPIO_PE4_CCP3 0x00041001
  18702. #define GPIO_PE4_FAULT0 0x00041004
  18703. #define GPIO_PE4_U2TX 0x00041005
  18704. #define GPIO_PE4_CCP2 0x00041006
  18705. #endif // PART_LM3S5C36
  18706. //*****************************************************************************
  18707. //
  18708. // LM3S5C51 Port/Pin Mapping Definitions
  18709. //
  18710. //*****************************************************************************
  18711. #ifdef PART_LM3S5C51
  18712. #define GPIO_PA0_U0RX 0x00000001
  18713. #define GPIO_PA0_I2C1SCL 0x00000008
  18714. #define GPIO_PA0_U1RX 0x00000009
  18715. #define GPIO_PA1_U0TX 0x00000401
  18716. #define GPIO_PA1_I2C1SDA 0x00000408
  18717. #define GPIO_PA1_U1TX 0x00000409
  18718. #define GPIO_PA2_SSI0CLK 0x00000801
  18719. #define GPIO_PA2_PWM4 0x00000804
  18720. #define GPIO_PA2_I2S0RXSD 0x00000809
  18721. #define GPIO_PA3_SSI0FSS 0x00000C01
  18722. #define GPIO_PA3_PWM5 0x00000C04
  18723. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  18724. #define GPIO_PA4_SSI0RX 0x00001001
  18725. #define GPIO_PA4_CAN0RX 0x00001005
  18726. #define GPIO_PA4_I2S0TXSCK 0x00001009
  18727. #define GPIO_PA5_SSI0TX 0x00001401
  18728. #define GPIO_PA5_CAN0TX 0x00001405
  18729. #define GPIO_PA5_I2S0TXWS 0x00001409
  18730. #define GPIO_PA6_I2C1SCL 0x00001801
  18731. #define GPIO_PA6_CCP1 0x00001802
  18732. #define GPIO_PA6_PWM0 0x00001804
  18733. #define GPIO_PA6_PWM4 0x00001805
  18734. #define GPIO_PA6_CAN0RX 0x00001806
  18735. #define GPIO_PA6_USB0EPEN 0x00001808
  18736. #define GPIO_PA6_U1CTS 0x00001809
  18737. #define GPIO_PA7_I2C1SDA 0x00001C01
  18738. #define GPIO_PA7_CCP4 0x00001C02
  18739. #define GPIO_PA7_PWM1 0x00001C04
  18740. #define GPIO_PA7_PWM5 0x00001C05
  18741. #define GPIO_PA7_CAN0TX 0x00001C06
  18742. #define GPIO_PA7_CCP3 0x00001C07
  18743. #define GPIO_PA7_USB0PFLT 0x00001C08
  18744. #define GPIO_PA7_U1DCD 0x00001C09
  18745. #define GPIO_PB0_CCP0 0x00010001
  18746. #define GPIO_PB0_PWM2 0x00010002
  18747. #define GPIO_PB0_U1RX 0x00010005
  18748. #define GPIO_PB1_CCP2 0x00010401
  18749. #define GPIO_PB1_PWM3 0x00010402
  18750. #define GPIO_PB1_CCP1 0x00010404
  18751. #define GPIO_PB1_U1TX 0x00010405
  18752. #define GPIO_PB2_I2C0SCL 0x00010801
  18753. #define GPIO_PB2_IDX0 0x00010802
  18754. #define GPIO_PB2_CCP3 0x00010804
  18755. #define GPIO_PB2_CCP0 0x00010805
  18756. #define GPIO_PB2_USB0EPEN 0x00010808
  18757. #define GPIO_PB3_I2C0SDA 0x00010C01
  18758. #define GPIO_PB3_FAULT0 0x00010C02
  18759. #define GPIO_PB3_FAULT3 0x00010C04
  18760. #define GPIO_PB3_USB0PFLT 0x00010C08
  18761. #define GPIO_PB4_U2RX 0x00011004
  18762. #define GPIO_PB4_CAN0RX 0x00011005
  18763. #define GPIO_PB4_IDX0 0x00011006
  18764. #define GPIO_PB4_U1RX 0x00011007
  18765. #define GPIO_PB5_C0O 0x00011401
  18766. #define GPIO_PB5_CCP5 0x00011402
  18767. #define GPIO_PB5_CCP6 0x00011403
  18768. #define GPIO_PB5_CCP0 0x00011404
  18769. #define GPIO_PB5_CAN0TX 0x00011405
  18770. #define GPIO_PB5_CCP2 0x00011406
  18771. #define GPIO_PB5_U1TX 0x00011407
  18772. #define GPIO_PB6_CCP1 0x00011801
  18773. #define GPIO_PB6_CCP7 0x00011802
  18774. #define GPIO_PB6_C0O 0x00011803
  18775. #define GPIO_PB6_FAULT1 0x00011804
  18776. #define GPIO_PB6_IDX0 0x00011805
  18777. #define GPIO_PB6_CCP5 0x00011806
  18778. #define GPIO_PB6_I2S0TXSCK 0x00011809
  18779. #define GPIO_PB7_NMI 0x00011C04
  18780. #define GPIO_PC0_TCK 0x00020003
  18781. #define GPIO_PC0_SWCLK 0x00020003
  18782. #define GPIO_PC1_TMS 0x00020403
  18783. #define GPIO_PC1_SWDIO 0x00020403
  18784. #define GPIO_PC2_TDI 0x00020803
  18785. #define GPIO_PC3_SWO 0x00020C03
  18786. #define GPIO_PC3_TDO 0x00020C03
  18787. #define GPIO_PC4_CCP5 0x00021001
  18788. #define GPIO_PC4_PHA0 0x00021002
  18789. #define GPIO_PC4_CCP2 0x00021005
  18790. #define GPIO_PC4_CCP4 0x00021006
  18791. #define GPIO_PC4_CCP1 0x00021009
  18792. #define GPIO_PC5_CCP1 0x00021401
  18793. #define GPIO_PC5_C1O 0x00021402
  18794. #define GPIO_PC5_C0O 0x00021403
  18795. #define GPIO_PC5_FAULT2 0x00021404
  18796. #define GPIO_PC5_CCP3 0x00021405
  18797. #define GPIO_PC5_USB0EPEN 0x00021406
  18798. #define GPIO_PC6_CCP3 0x00021801
  18799. #define GPIO_PC6_PHB0 0x00021802
  18800. #define GPIO_PC6_U1RX 0x00021805
  18801. #define GPIO_PC6_CCP0 0x00021806
  18802. #define GPIO_PC6_USB0PFLT 0x00021807
  18803. #define GPIO_PC7_CCP4 0x00021C01
  18804. #define GPIO_PC7_PHB0 0x00021C02
  18805. #define GPIO_PC7_CCP0 0x00021C04
  18806. #define GPIO_PC7_U1TX 0x00021C05
  18807. #define GPIO_PC7_USB0PFLT 0x00021C06
  18808. #define GPIO_PC7_C1O 0x00021C07
  18809. #define GPIO_PD0_PWM0 0x00030001
  18810. #define GPIO_PD0_CAN0RX 0x00030002
  18811. #define GPIO_PD0_IDX0 0x00030003
  18812. #define GPIO_PD0_U2RX 0x00030004
  18813. #define GPIO_PD0_U1RX 0x00030005
  18814. #define GPIO_PD0_CCP6 0x00030006
  18815. #define GPIO_PD0_I2S0RXSCK 0x00030008
  18816. #define GPIO_PD0_U1CTS 0x00030009
  18817. #define GPIO_PD1_PWM1 0x00030401
  18818. #define GPIO_PD1_CAN0TX 0x00030402
  18819. #define GPIO_PD1_PHA0 0x00030403
  18820. #define GPIO_PD1_U2TX 0x00030404
  18821. #define GPIO_PD1_U1TX 0x00030405
  18822. #define GPIO_PD1_CCP7 0x00030406
  18823. #define GPIO_PD1_I2S0RXWS 0x00030408
  18824. #define GPIO_PD1_U1DCD 0x00030409
  18825. #define GPIO_PD1_CCP2 0x0003040A
  18826. #define GPIO_PD1_PHB1 0x0003040B
  18827. #define GPIO_PD2_U1RX 0x00030801
  18828. #define GPIO_PD2_CCP6 0x00030802
  18829. #define GPIO_PD2_PWM2 0x00030803
  18830. #define GPIO_PD2_CCP5 0x00030804
  18831. #define GPIO_PD3_U1TX 0x00030C01
  18832. #define GPIO_PD3_CCP7 0x00030C02
  18833. #define GPIO_PD3_PWM3 0x00030C03
  18834. #define GPIO_PD3_CCP0 0x00030C04
  18835. #define GPIO_PD4_CCP0 0x00031001
  18836. #define GPIO_PD4_CCP3 0x00031002
  18837. #define GPIO_PD4_I2S0RXSD 0x00031008
  18838. #define GPIO_PD4_U1RI 0x00031009
  18839. #define GPIO_PD5_CCP2 0x00031401
  18840. #define GPIO_PD5_CCP4 0x00031402
  18841. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  18842. #define GPIO_PD5_U2RX 0x00031409
  18843. #define GPIO_PD6_FAULT0 0x00031801
  18844. #define GPIO_PD6_I2S0TXSCK 0x00031808
  18845. #define GPIO_PD6_U2TX 0x00031809
  18846. #define GPIO_PD7_IDX0 0x00031C01
  18847. #define GPIO_PD7_C0O 0x00031C02
  18848. #define GPIO_PD7_CCP1 0x00031C03
  18849. #define GPIO_PD7_I2S0TXWS 0x00031C08
  18850. #define GPIO_PD7_U1DTR 0x00031C09
  18851. #define GPIO_PE0_PWM4 0x00040001
  18852. #define GPIO_PE0_SSI1CLK 0x00040002
  18853. #define GPIO_PE0_CCP3 0x00040003
  18854. #define GPIO_PE0_USB0PFLT 0x00040009
  18855. #define GPIO_PE1_PWM5 0x00040401
  18856. #define GPIO_PE1_SSI1FSS 0x00040402
  18857. #define GPIO_PE1_FAULT0 0x00040403
  18858. #define GPIO_PE1_CCP2 0x00040404
  18859. #define GPIO_PE1_CCP6 0x00040405
  18860. #define GPIO_PE2_CCP4 0x00040801
  18861. #define GPIO_PE2_SSI1RX 0x00040802
  18862. #define GPIO_PE2_PHB1 0x00040803
  18863. #define GPIO_PE2_PHA0 0x00040804
  18864. #define GPIO_PE2_CCP2 0x00040805
  18865. #define GPIO_PE3_CCP1 0x00040C01
  18866. #define GPIO_PE3_SSI1TX 0x00040C02
  18867. #define GPIO_PE3_PHA1 0x00040C03
  18868. #define GPIO_PE3_PHB0 0x00040C04
  18869. #define GPIO_PE3_CCP7 0x00040C05
  18870. #define GPIO_PE4_CCP3 0x00041001
  18871. #define GPIO_PE4_FAULT0 0x00041004
  18872. #define GPIO_PE4_U2TX 0x00041005
  18873. #define GPIO_PE4_CCP2 0x00041006
  18874. #define GPIO_PE4_I2S0TXWS 0x00041009
  18875. #define GPIO_PE5_CCP5 0x00041401
  18876. #define GPIO_PE5_I2S0TXSD 0x00041409
  18877. #define GPIO_PE6_PWM4 0x00041801
  18878. #define GPIO_PE6_C1O 0x00041802
  18879. #define GPIO_PE6_U1CTS 0x00041809
  18880. #define GPIO_PE7_PWM5 0x00041C01
  18881. #define GPIO_PE7_U1DCD 0x00041C09
  18882. #define GPIO_PF0_CAN1RX 0x00050001
  18883. #define GPIO_PF0_PHB0 0x00050002
  18884. #define GPIO_PF0_PWM0 0x00050003
  18885. #define GPIO_PF0_I2S0TXSD 0x00050008
  18886. #define GPIO_PF0_U1DSR 0x00050009
  18887. #define GPIO_PF1_CAN1TX 0x00050401
  18888. #define GPIO_PF1_IDX1 0x00050402
  18889. #define GPIO_PF1_PWM1 0x00050403
  18890. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  18891. #define GPIO_PF1_U1RTS 0x00050409
  18892. #define GPIO_PF1_CCP3 0x0005040A
  18893. #define GPIO_PF2_PWM4 0x00050802
  18894. #define GPIO_PF2_PWM2 0x00050804
  18895. #define GPIO_PF2_SSI1CLK 0x00050809
  18896. #define GPIO_PF3_PWM5 0x00050C02
  18897. #define GPIO_PF3_PWM3 0x00050C04
  18898. #define GPIO_PF3_SSI1FSS 0x00050C09
  18899. #define GPIO_PF4_CCP0 0x00051001
  18900. #define GPIO_PF4_C0O 0x00051002
  18901. #define GPIO_PF4_FAULT0 0x00051004
  18902. #define GPIO_PF4_SSI1RX 0x00051009
  18903. #define GPIO_PF5_CCP2 0x00051401
  18904. #define GPIO_PF5_C1O 0x00051402
  18905. #define GPIO_PF5_SSI1TX 0x00051409
  18906. #define GPIO_PF6_CCP1 0x00051801
  18907. #define GPIO_PF6_PHA0 0x00051804
  18908. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  18909. #define GPIO_PF6_U1RTS 0x0005180A
  18910. #define GPIO_PF7_CCP4 0x00051C01
  18911. #define GPIO_PF7_PHB0 0x00051C04
  18912. #define GPIO_PF7_FAULT1 0x00051C09
  18913. #define GPIO_PG0_U2RX 0x00060001
  18914. #define GPIO_PG0_PWM0 0x00060002
  18915. #define GPIO_PG0_I2C1SCL 0x00060003
  18916. #define GPIO_PG0_PWM4 0x00060004
  18917. #define GPIO_PG0_USB0EPEN 0x00060007
  18918. #define GPIO_PG1_U2TX 0x00060401
  18919. #define GPIO_PG1_PWM1 0x00060402
  18920. #define GPIO_PG1_I2C1SDA 0x00060403
  18921. #define GPIO_PG1_PWM5 0x00060404
  18922. #define GPIO_PG2_PWM0 0x00060801
  18923. #define GPIO_PG2_FAULT0 0x00060804
  18924. #define GPIO_PG2_IDX1 0x00060808
  18925. #define GPIO_PG2_I2S0RXSD 0x00060809
  18926. #define GPIO_PG3_PWM1 0x00060C01
  18927. #define GPIO_PG3_FAULT2 0x00060C04
  18928. #define GPIO_PG3_FAULT0 0x00060C08
  18929. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  18930. #define GPIO_PG4_CCP3 0x00061001
  18931. #define GPIO_PG4_FAULT1 0x00061004
  18932. #define GPIO_PG4_U1RI 0x0006100A
  18933. #define GPIO_PG5_CCP5 0x00061401
  18934. #define GPIO_PG5_IDX0 0x00061404
  18935. #define GPIO_PG5_FAULT1 0x00061405
  18936. #define GPIO_PG5_I2S0RXSCK 0x00061409
  18937. #define GPIO_PG5_U1DTR 0x0006140A
  18938. #define GPIO_PG6_PHA1 0x00061801
  18939. #define GPIO_PG6_FAULT1 0x00061808
  18940. #define GPIO_PG6_I2S0RXWS 0x00061809
  18941. #define GPIO_PG6_U1RI 0x0006180A
  18942. #define GPIO_PG7_PHB1 0x00061C01
  18943. #define GPIO_PG7_CCP5 0x00061C08
  18944. #define GPIO_PH0_CCP6 0x00070001
  18945. #define GPIO_PH0_PWM2 0x00070002
  18946. #define GPIO_PH0_PWM4 0x00070009
  18947. #define GPIO_PH1_CCP7 0x00070401
  18948. #define GPIO_PH1_PWM3 0x00070402
  18949. #define GPIO_PH1_PWM5 0x00070409
  18950. #define GPIO_PH2_IDX1 0x00070801
  18951. #define GPIO_PH2_C1O 0x00070802
  18952. #define GPIO_PH2_FAULT3 0x00070804
  18953. #define GPIO_PH3_PHB0 0x00070C01
  18954. #define GPIO_PH3_FAULT0 0x00070C02
  18955. #define GPIO_PH3_USB0EPEN 0x00070C04
  18956. #define GPIO_PH4_USB0PFLT 0x00071004
  18957. #define GPIO_PH4_SSI1CLK 0x0007100B
  18958. #define GPIO_PH5_FAULT2 0x0007140A
  18959. #define GPIO_PH5_SSI1FSS 0x0007140B
  18960. #define GPIO_PH6_PWM4 0x0007180A
  18961. #define GPIO_PH6_SSI1RX 0x0007180B
  18962. #define GPIO_PH7_PWM5 0x00071C0A
  18963. #define GPIO_PH7_SSI1TX 0x00071C0B
  18964. #define GPIO_PJ0_PWM0 0x0008000A
  18965. #define GPIO_PJ0_I2C1SCL 0x0008000B
  18966. #define GPIO_PJ1_USB0PFLT 0x00080409
  18967. #define GPIO_PJ1_PWM1 0x0008040A
  18968. #define GPIO_PJ1_I2C1SDA 0x0008040B
  18969. #define GPIO_PJ2_CCP0 0x00080809
  18970. #define GPIO_PJ2_FAULT0 0x0008080A
  18971. #endif // PART_LM3S5C51
  18972. //*****************************************************************************
  18973. //
  18974. // LM3S5C56 Port/Pin Mapping Definitions
  18975. //
  18976. //*****************************************************************************
  18977. #ifdef PART_LM3S5C56
  18978. #define GPIO_PA0_U0RX 0x00000001
  18979. #define GPIO_PA0_I2C1SCL 0x00000008
  18980. #define GPIO_PA0_U1RX 0x00000009
  18981. #define GPIO_PA1_U0TX 0x00000401
  18982. #define GPIO_PA1_I2C1SDA 0x00000408
  18983. #define GPIO_PA1_U1TX 0x00000409
  18984. #define GPIO_PA2_SSI0CLK 0x00000801
  18985. #define GPIO_PA2_PWM4 0x00000804
  18986. #define GPIO_PA3_SSI0FSS 0x00000C01
  18987. #define GPIO_PA3_PWM5 0x00000C04
  18988. #define GPIO_PA4_SSI0RX 0x00001001
  18989. #define GPIO_PA4_CAN0RX 0x00001005
  18990. #define GPIO_PA5_SSI0TX 0x00001401
  18991. #define GPIO_PA5_CAN0TX 0x00001405
  18992. #define GPIO_PA6_I2C1SCL 0x00001801
  18993. #define GPIO_PA6_CCP1 0x00001802
  18994. #define GPIO_PA6_PWM0 0x00001804
  18995. #define GPIO_PA6_PWM4 0x00001805
  18996. #define GPIO_PA6_CAN0RX 0x00001806
  18997. #define GPIO_PA6_USB0EPEN 0x00001808
  18998. #define GPIO_PA7_I2C1SDA 0x00001C01
  18999. #define GPIO_PA7_CCP4 0x00001C02
  19000. #define GPIO_PA7_PWM1 0x00001C04
  19001. #define GPIO_PA7_PWM5 0x00001C05
  19002. #define GPIO_PA7_CAN0TX 0x00001C06
  19003. #define GPIO_PA7_CCP3 0x00001C07
  19004. #define GPIO_PA7_USB0PFLT 0x00001C08
  19005. #define GPIO_PB0_CCP0 0x00010001
  19006. #define GPIO_PB0_PWM2 0x00010002
  19007. #define GPIO_PB0_U1RX 0x00010005
  19008. #define GPIO_PB1_CCP2 0x00010401
  19009. #define GPIO_PB1_PWM3 0x00010402
  19010. #define GPIO_PB1_CCP1 0x00010404
  19011. #define GPIO_PB1_U1TX 0x00010405
  19012. #define GPIO_PB2_I2C0SCL 0x00010801
  19013. #define GPIO_PB2_IDX0 0x00010802
  19014. #define GPIO_PB2_CCP3 0x00010804
  19015. #define GPIO_PB2_CCP0 0x00010805
  19016. #define GPIO_PB2_USB0EPEN 0x00010808
  19017. #define GPIO_PB3_I2C0SDA 0x00010C01
  19018. #define GPIO_PB3_FAULT0 0x00010C02
  19019. #define GPIO_PB3_FAULT3 0x00010C04
  19020. #define GPIO_PB3_USB0PFLT 0x00010C08
  19021. #define GPIO_PB4_U2RX 0x00011004
  19022. #define GPIO_PB4_CAN0RX 0x00011005
  19023. #define GPIO_PB4_IDX0 0x00011006
  19024. #define GPIO_PB4_U1RX 0x00011007
  19025. #define GPIO_PB5_C0O 0x00011401
  19026. #define GPIO_PB5_CCP5 0x00011402
  19027. #define GPIO_PB5_CCP6 0x00011403
  19028. #define GPIO_PB5_CCP0 0x00011404
  19029. #define GPIO_PB5_CAN0TX 0x00011405
  19030. #define GPIO_PB5_CCP2 0x00011406
  19031. #define GPIO_PB5_U1TX 0x00011407
  19032. #define GPIO_PB6_CCP1 0x00011801
  19033. #define GPIO_PB6_CCP7 0x00011802
  19034. #define GPIO_PB6_C0O 0x00011803
  19035. #define GPIO_PB6_FAULT1 0x00011804
  19036. #define GPIO_PB6_IDX0 0x00011805
  19037. #define GPIO_PB6_CCP5 0x00011806
  19038. #define GPIO_PB7_NMI 0x00011C04
  19039. #define GPIO_PC0_TCK 0x00020003
  19040. #define GPIO_PC0_SWCLK 0x00020003
  19041. #define GPIO_PC1_TMS 0x00020403
  19042. #define GPIO_PC1_SWDIO 0x00020403
  19043. #define GPIO_PC2_TDI 0x00020803
  19044. #define GPIO_PC3_SWO 0x00020C03
  19045. #define GPIO_PC3_TDO 0x00020C03
  19046. #define GPIO_PC4_CCP5 0x00021001
  19047. #define GPIO_PC4_PHA0 0x00021002
  19048. #define GPIO_PC4_CCP2 0x00021005
  19049. #define GPIO_PC4_CCP4 0x00021006
  19050. #define GPIO_PC4_CCP1 0x00021009
  19051. #define GPIO_PC5_CCP1 0x00021401
  19052. #define GPIO_PC5_C1O 0x00021402
  19053. #define GPIO_PC5_C0O 0x00021403
  19054. #define GPIO_PC5_FAULT2 0x00021404
  19055. #define GPIO_PC5_CCP3 0x00021405
  19056. #define GPIO_PC5_USB0EPEN 0x00021406
  19057. #define GPIO_PC6_CCP3 0x00021801
  19058. #define GPIO_PC6_PHB0 0x00021802
  19059. #define GPIO_PC6_U1RX 0x00021805
  19060. #define GPIO_PC6_CCP0 0x00021806
  19061. #define GPIO_PC6_USB0PFLT 0x00021807
  19062. #define GPIO_PC7_CCP4 0x00021C01
  19063. #define GPIO_PC7_PHB0 0x00021C02
  19064. #define GPIO_PC7_CCP0 0x00021C04
  19065. #define GPIO_PC7_U1TX 0x00021C05
  19066. #define GPIO_PC7_USB0PFLT 0x00021C06
  19067. #define GPIO_PC7_C1O 0x00021C07
  19068. #define GPIO_PD0_PWM0 0x00030001
  19069. #define GPIO_PD0_CAN0RX 0x00030002
  19070. #define GPIO_PD0_IDX0 0x00030003
  19071. #define GPIO_PD0_U2RX 0x00030004
  19072. #define GPIO_PD0_U1RX 0x00030005
  19073. #define GPIO_PD0_CCP6 0x00030006
  19074. #define GPIO_PD1_PWM1 0x00030401
  19075. #define GPIO_PD1_CAN0TX 0x00030402
  19076. #define GPIO_PD1_PHA0 0x00030403
  19077. #define GPIO_PD1_U2TX 0x00030404
  19078. #define GPIO_PD1_U1TX 0x00030405
  19079. #define GPIO_PD1_CCP7 0x00030406
  19080. #define GPIO_PD1_CCP2 0x0003040A
  19081. #define GPIO_PD2_U1RX 0x00030801
  19082. #define GPIO_PD2_CCP6 0x00030802
  19083. #define GPIO_PD2_PWM2 0x00030803
  19084. #define GPIO_PD2_CCP5 0x00030804
  19085. #define GPIO_PD3_U1TX 0x00030C01
  19086. #define GPIO_PD3_CCP7 0x00030C02
  19087. #define GPIO_PD3_PWM3 0x00030C03
  19088. #define GPIO_PD3_CCP0 0x00030C04
  19089. #define GPIO_PE0_PWM4 0x00040001
  19090. #define GPIO_PE0_SSI1CLK 0x00040002
  19091. #define GPIO_PE0_CCP3 0x00040003
  19092. #define GPIO_PE0_USB0PFLT 0x00040009
  19093. #define GPIO_PE1_PWM5 0x00040401
  19094. #define GPIO_PE1_SSI1FSS 0x00040402
  19095. #define GPIO_PE1_FAULT0 0x00040403
  19096. #define GPIO_PE1_CCP2 0x00040404
  19097. #define GPIO_PE1_CCP6 0x00040405
  19098. #define GPIO_PE2_CCP4 0x00040801
  19099. #define GPIO_PE2_SSI1RX 0x00040802
  19100. #define GPIO_PE2_PHA0 0x00040804
  19101. #define GPIO_PE2_CCP2 0x00040805
  19102. #define GPIO_PE3_CCP1 0x00040C01
  19103. #define GPIO_PE3_SSI1TX 0x00040C02
  19104. #define GPIO_PE3_PHB0 0x00040C04
  19105. #define GPIO_PE3_CCP7 0x00040C05
  19106. #define GPIO_PE4_CCP3 0x00041001
  19107. #define GPIO_PE4_FAULT0 0x00041004
  19108. #define GPIO_PE4_U2TX 0x00041005
  19109. #define GPIO_PE4_CCP2 0x00041006
  19110. #endif // PART_LM3S5C56
  19111. //*****************************************************************************
  19112. //
  19113. // LM3S5D51 Port/Pin Mapping Definitions
  19114. //
  19115. //*****************************************************************************
  19116. #ifdef PART_LM3S5D51
  19117. #define GPIO_PA0_U0RX 0x00000001
  19118. #define GPIO_PA0_I2C1SCL 0x00000008
  19119. #define GPIO_PA0_U1RX 0x00000009
  19120. #define GPIO_PA1_U0TX 0x00000401
  19121. #define GPIO_PA1_I2C1SDA 0x00000408
  19122. #define GPIO_PA1_U1TX 0x00000409
  19123. #define GPIO_PA2_SSI0CLK 0x00000801
  19124. #define GPIO_PA2_PWM4 0x00000804
  19125. #define GPIO_PA2_I2S0RXSD 0x00000809
  19126. #define GPIO_PA3_SSI0FSS 0x00000C01
  19127. #define GPIO_PA3_PWM5 0x00000C04
  19128. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  19129. #define GPIO_PA4_SSI0RX 0x00001001
  19130. #define GPIO_PA4_CAN0RX 0x00001005
  19131. #define GPIO_PA4_I2S0TXSCK 0x00001009
  19132. #define GPIO_PA5_SSI0TX 0x00001401
  19133. #define GPIO_PA5_CAN0TX 0x00001405
  19134. #define GPIO_PA5_I2S0TXWS 0x00001409
  19135. #define GPIO_PA6_I2C1SCL 0x00001801
  19136. #define GPIO_PA6_CCP1 0x00001802
  19137. #define GPIO_PA6_PWM0 0x00001804
  19138. #define GPIO_PA6_PWM4 0x00001805
  19139. #define GPIO_PA6_CAN0RX 0x00001806
  19140. #define GPIO_PA6_USB0EPEN 0x00001808
  19141. #define GPIO_PA6_U1CTS 0x00001809
  19142. #define GPIO_PA7_I2C1SDA 0x00001C01
  19143. #define GPIO_PA7_CCP4 0x00001C02
  19144. #define GPIO_PA7_PWM1 0x00001C04
  19145. #define GPIO_PA7_PWM5 0x00001C05
  19146. #define GPIO_PA7_CAN0TX 0x00001C06
  19147. #define GPIO_PA7_CCP3 0x00001C07
  19148. #define GPIO_PA7_USB0PFLT 0x00001C08
  19149. #define GPIO_PA7_U1DCD 0x00001C09
  19150. #define GPIO_PB0_CCP0 0x00010001
  19151. #define GPIO_PB0_PWM2 0x00010002
  19152. #define GPIO_PB0_U1RX 0x00010005
  19153. #define GPIO_PB1_CCP2 0x00010401
  19154. #define GPIO_PB1_PWM3 0x00010402
  19155. #define GPIO_PB1_CCP1 0x00010404
  19156. #define GPIO_PB1_U1TX 0x00010405
  19157. #define GPIO_PB2_I2C0SCL 0x00010801
  19158. #define GPIO_PB2_IDX0 0x00010802
  19159. #define GPIO_PB2_CCP3 0x00010804
  19160. #define GPIO_PB2_CCP0 0x00010805
  19161. #define GPIO_PB2_USB0EPEN 0x00010808
  19162. #define GPIO_PB3_I2C0SDA 0x00010C01
  19163. #define GPIO_PB3_FAULT0 0x00010C02
  19164. #define GPIO_PB3_FAULT3 0x00010C04
  19165. #define GPIO_PB3_USB0PFLT 0x00010C08
  19166. #define GPIO_PB4_U2RX 0x00011004
  19167. #define GPIO_PB4_CAN0RX 0x00011005
  19168. #define GPIO_PB4_IDX0 0x00011006
  19169. #define GPIO_PB4_U1RX 0x00011007
  19170. #define GPIO_PB5_C0O 0x00011401
  19171. #define GPIO_PB5_CCP5 0x00011402
  19172. #define GPIO_PB5_CCP6 0x00011403
  19173. #define GPIO_PB5_CCP0 0x00011404
  19174. #define GPIO_PB5_CAN0TX 0x00011405
  19175. #define GPIO_PB5_CCP2 0x00011406
  19176. #define GPIO_PB5_U1TX 0x00011407
  19177. #define GPIO_PB6_CCP1 0x00011801
  19178. #define GPIO_PB6_CCP7 0x00011802
  19179. #define GPIO_PB6_C0O 0x00011803
  19180. #define GPIO_PB6_FAULT1 0x00011804
  19181. #define GPIO_PB6_IDX0 0x00011805
  19182. #define GPIO_PB6_CCP5 0x00011806
  19183. #define GPIO_PB6_I2S0TXSCK 0x00011809
  19184. #define GPIO_PB7_NMI 0x00011C04
  19185. #define GPIO_PC0_TCK 0x00020003
  19186. #define GPIO_PC0_SWCLK 0x00020003
  19187. #define GPIO_PC1_TMS 0x00020403
  19188. #define GPIO_PC1_SWDIO 0x00020403
  19189. #define GPIO_PC2_TDI 0x00020803
  19190. #define GPIO_PC3_SWO 0x00020C03
  19191. #define GPIO_PC3_TDO 0x00020C03
  19192. #define GPIO_PC4_CCP5 0x00021001
  19193. #define GPIO_PC4_PHA0 0x00021002
  19194. #define GPIO_PC4_CCP2 0x00021005
  19195. #define GPIO_PC4_CCP4 0x00021006
  19196. #define GPIO_PC4_CCP1 0x00021009
  19197. #define GPIO_PC5_CCP1 0x00021401
  19198. #define GPIO_PC5_C1O 0x00021402
  19199. #define GPIO_PC5_C0O 0x00021403
  19200. #define GPIO_PC5_FAULT2 0x00021404
  19201. #define GPIO_PC5_CCP3 0x00021405
  19202. #define GPIO_PC5_USB0EPEN 0x00021406
  19203. #define GPIO_PC6_CCP3 0x00021801
  19204. #define GPIO_PC6_PHB0 0x00021802
  19205. #define GPIO_PC6_U1RX 0x00021805
  19206. #define GPIO_PC6_CCP0 0x00021806
  19207. #define GPIO_PC6_USB0PFLT 0x00021807
  19208. #define GPIO_PC7_CCP4 0x00021C01
  19209. #define GPIO_PC7_PHB0 0x00021C02
  19210. #define GPIO_PC7_CCP0 0x00021C04
  19211. #define GPIO_PC7_U1TX 0x00021C05
  19212. #define GPIO_PC7_USB0PFLT 0x00021C06
  19213. #define GPIO_PC7_C1O 0x00021C07
  19214. #define GPIO_PD0_PWM0 0x00030001
  19215. #define GPIO_PD0_CAN0RX 0x00030002
  19216. #define GPIO_PD0_IDX0 0x00030003
  19217. #define GPIO_PD0_U2RX 0x00030004
  19218. #define GPIO_PD0_U1RX 0x00030005
  19219. #define GPIO_PD0_CCP6 0x00030006
  19220. #define GPIO_PD0_I2S0RXSCK 0x00030008
  19221. #define GPIO_PD0_U1CTS 0x00030009
  19222. #define GPIO_PD1_PWM1 0x00030401
  19223. #define GPIO_PD1_CAN0TX 0x00030402
  19224. #define GPIO_PD1_PHA0 0x00030403
  19225. #define GPIO_PD1_U2TX 0x00030404
  19226. #define GPIO_PD1_U1TX 0x00030405
  19227. #define GPIO_PD1_CCP7 0x00030406
  19228. #define GPIO_PD1_I2S0RXWS 0x00030408
  19229. #define GPIO_PD1_U1DCD 0x00030409
  19230. #define GPIO_PD1_CCP2 0x0003040A
  19231. #define GPIO_PD1_PHB1 0x0003040B
  19232. #define GPIO_PD2_U1RX 0x00030801
  19233. #define GPIO_PD2_CCP6 0x00030802
  19234. #define GPIO_PD2_PWM2 0x00030803
  19235. #define GPIO_PD2_CCP5 0x00030804
  19236. #define GPIO_PD3_U1TX 0x00030C01
  19237. #define GPIO_PD3_CCP7 0x00030C02
  19238. #define GPIO_PD3_PWM3 0x00030C03
  19239. #define GPIO_PD3_CCP0 0x00030C04
  19240. #define GPIO_PD4_CCP0 0x00031001
  19241. #define GPIO_PD4_CCP3 0x00031002
  19242. #define GPIO_PD4_I2S0RXSD 0x00031008
  19243. #define GPIO_PD4_U1RI 0x00031009
  19244. #define GPIO_PD5_CCP2 0x00031401
  19245. #define GPIO_PD5_CCP4 0x00031402
  19246. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  19247. #define GPIO_PD5_U2RX 0x00031409
  19248. #define GPIO_PD6_FAULT0 0x00031801
  19249. #define GPIO_PD6_I2S0TXSCK 0x00031808
  19250. #define GPIO_PD6_U2TX 0x00031809
  19251. #define GPIO_PD7_IDX0 0x00031C01
  19252. #define GPIO_PD7_C0O 0x00031C02
  19253. #define GPIO_PD7_CCP1 0x00031C03
  19254. #define GPIO_PD7_I2S0TXWS 0x00031C08
  19255. #define GPIO_PD7_U1DTR 0x00031C09
  19256. #define GPIO_PE0_PWM4 0x00040001
  19257. #define GPIO_PE0_SSI1CLK 0x00040002
  19258. #define GPIO_PE0_CCP3 0x00040003
  19259. #define GPIO_PE0_USB0PFLT 0x00040009
  19260. #define GPIO_PE1_PWM5 0x00040401
  19261. #define GPIO_PE1_SSI1FSS 0x00040402
  19262. #define GPIO_PE1_FAULT0 0x00040403
  19263. #define GPIO_PE1_CCP2 0x00040404
  19264. #define GPIO_PE1_CCP6 0x00040405
  19265. #define GPIO_PE2_CCP4 0x00040801
  19266. #define GPIO_PE2_SSI1RX 0x00040802
  19267. #define GPIO_PE2_PHB1 0x00040803
  19268. #define GPIO_PE2_PHA0 0x00040804
  19269. #define GPIO_PE2_CCP2 0x00040805
  19270. #define GPIO_PE3_CCP1 0x00040C01
  19271. #define GPIO_PE3_SSI1TX 0x00040C02
  19272. #define GPIO_PE3_PHA1 0x00040C03
  19273. #define GPIO_PE3_PHB0 0x00040C04
  19274. #define GPIO_PE3_CCP7 0x00040C05
  19275. #define GPIO_PE4_CCP3 0x00041001
  19276. #define GPIO_PE4_FAULT0 0x00041004
  19277. #define GPIO_PE4_U2TX 0x00041005
  19278. #define GPIO_PE4_CCP2 0x00041006
  19279. #define GPIO_PE4_I2S0TXWS 0x00041009
  19280. #define GPIO_PE5_CCP5 0x00041401
  19281. #define GPIO_PE5_I2S0TXSD 0x00041409
  19282. #define GPIO_PE6_PWM4 0x00041801
  19283. #define GPIO_PE6_C1O 0x00041802
  19284. #define GPIO_PE6_U1CTS 0x00041809
  19285. #define GPIO_PE7_PWM5 0x00041C01
  19286. #define GPIO_PE7_U1DCD 0x00041C09
  19287. #define GPIO_PF0_CAN1RX 0x00050001
  19288. #define GPIO_PF0_PHB0 0x00050002
  19289. #define GPIO_PF0_PWM0 0x00050003
  19290. #define GPIO_PF0_I2S0TXSD 0x00050008
  19291. #define GPIO_PF0_U1DSR 0x00050009
  19292. #define GPIO_PF1_CAN1TX 0x00050401
  19293. #define GPIO_PF1_IDX1 0x00050402
  19294. #define GPIO_PF1_PWM1 0x00050403
  19295. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  19296. #define GPIO_PF1_U1RTS 0x00050409
  19297. #define GPIO_PF1_CCP3 0x0005040A
  19298. #define GPIO_PF2_PWM4 0x00050802
  19299. #define GPIO_PF2_PWM2 0x00050804
  19300. #define GPIO_PF2_SSI1CLK 0x00050809
  19301. #define GPIO_PF3_PWM5 0x00050C02
  19302. #define GPIO_PF3_PWM3 0x00050C04
  19303. #define GPIO_PF3_SSI1FSS 0x00050C09
  19304. #define GPIO_PF4_CCP0 0x00051001
  19305. #define GPIO_PF4_C0O 0x00051002
  19306. #define GPIO_PF4_FAULT0 0x00051004
  19307. #define GPIO_PF4_SSI1RX 0x00051009
  19308. #define GPIO_PF5_CCP2 0x00051401
  19309. #define GPIO_PF5_C1O 0x00051402
  19310. #define GPIO_PF5_SSI1TX 0x00051409
  19311. #define GPIO_PF6_CCP1 0x00051801
  19312. #define GPIO_PF6_PHA0 0x00051804
  19313. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  19314. #define GPIO_PF6_U1RTS 0x0005180A
  19315. #define GPIO_PF7_CCP4 0x00051C01
  19316. #define GPIO_PF7_PHB0 0x00051C04
  19317. #define GPIO_PF7_FAULT1 0x00051C09
  19318. #define GPIO_PG0_U2RX 0x00060001
  19319. #define GPIO_PG0_PWM0 0x00060002
  19320. #define GPIO_PG0_I2C1SCL 0x00060003
  19321. #define GPIO_PG0_PWM4 0x00060004
  19322. #define GPIO_PG0_USB0EPEN 0x00060007
  19323. #define GPIO_PG1_U2TX 0x00060401
  19324. #define GPIO_PG1_PWM1 0x00060402
  19325. #define GPIO_PG1_I2C1SDA 0x00060403
  19326. #define GPIO_PG1_PWM5 0x00060404
  19327. #define GPIO_PG2_PWM0 0x00060801
  19328. #define GPIO_PG2_FAULT0 0x00060804
  19329. #define GPIO_PG2_IDX1 0x00060808
  19330. #define GPIO_PG2_I2S0RXSD 0x00060809
  19331. #define GPIO_PG3_PWM1 0x00060C01
  19332. #define GPIO_PG3_FAULT2 0x00060C04
  19333. #define GPIO_PG3_FAULT0 0x00060C08
  19334. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  19335. #define GPIO_PG4_CCP3 0x00061001
  19336. #define GPIO_PG4_FAULT1 0x00061004
  19337. #define GPIO_PG4_U1RI 0x0006100A
  19338. #define GPIO_PG5_CCP5 0x00061401
  19339. #define GPIO_PG5_IDX0 0x00061404
  19340. #define GPIO_PG5_FAULT1 0x00061405
  19341. #define GPIO_PG5_I2S0RXSCK 0x00061409
  19342. #define GPIO_PG5_U1DTR 0x0006140A
  19343. #define GPIO_PG6_PHA1 0x00061801
  19344. #define GPIO_PG6_FAULT1 0x00061808
  19345. #define GPIO_PG6_I2S0RXWS 0x00061809
  19346. #define GPIO_PG6_U1RI 0x0006180A
  19347. #define GPIO_PG7_PHB1 0x00061C01
  19348. #define GPIO_PG7_CCP5 0x00061C08
  19349. #define GPIO_PH0_CCP6 0x00070001
  19350. #define GPIO_PH0_PWM2 0x00070002
  19351. #define GPIO_PH0_PWM4 0x00070009
  19352. #define GPIO_PH1_CCP7 0x00070401
  19353. #define GPIO_PH1_PWM3 0x00070402
  19354. #define GPIO_PH1_PWM5 0x00070409
  19355. #define GPIO_PH2_IDX1 0x00070801
  19356. #define GPIO_PH2_C1O 0x00070802
  19357. #define GPIO_PH2_FAULT3 0x00070804
  19358. #define GPIO_PH3_PHB0 0x00070C01
  19359. #define GPIO_PH3_FAULT0 0x00070C02
  19360. #define GPIO_PH3_USB0EPEN 0x00070C04
  19361. #define GPIO_PH4_USB0PFLT 0x00071004
  19362. #define GPIO_PH4_SSI1CLK 0x0007100B
  19363. #define GPIO_PH5_FAULT2 0x0007140A
  19364. #define GPIO_PH5_SSI1FSS 0x0007140B
  19365. #define GPIO_PH6_PWM4 0x0007180A
  19366. #define GPIO_PH6_SSI1RX 0x0007180B
  19367. #define GPIO_PH7_PWM5 0x00071C0A
  19368. #define GPIO_PH7_SSI1TX 0x00071C0B
  19369. #define GPIO_PJ0_PWM0 0x0008000A
  19370. #define GPIO_PJ0_I2C1SCL 0x0008000B
  19371. #define GPIO_PJ1_USB0PFLT 0x00080409
  19372. #define GPIO_PJ1_PWM1 0x0008040A
  19373. #define GPIO_PJ1_I2C1SDA 0x0008040B
  19374. #define GPIO_PJ2_CCP0 0x00080809
  19375. #define GPIO_PJ2_FAULT0 0x0008080A
  19376. #endif // PART_LM3S5D51
  19377. //*****************************************************************************
  19378. //
  19379. // LM3S5D56 Port/Pin Mapping Definitions
  19380. //
  19381. //*****************************************************************************
  19382. #ifdef PART_LM3S5D56
  19383. #define GPIO_PA0_U0RX 0x00000001
  19384. #define GPIO_PA0_I2C1SCL 0x00000008
  19385. #define GPIO_PA0_U1RX 0x00000009
  19386. #define GPIO_PA1_U0TX 0x00000401
  19387. #define GPIO_PA1_I2C1SDA 0x00000408
  19388. #define GPIO_PA1_U1TX 0x00000409
  19389. #define GPIO_PA2_SSI0CLK 0x00000801
  19390. #define GPIO_PA2_PWM4 0x00000804
  19391. #define GPIO_PA3_SSI0FSS 0x00000C01
  19392. #define GPIO_PA3_PWM5 0x00000C04
  19393. #define GPIO_PA4_SSI0RX 0x00001001
  19394. #define GPIO_PA4_CAN0RX 0x00001005
  19395. #define GPIO_PA5_SSI0TX 0x00001401
  19396. #define GPIO_PA5_CAN0TX 0x00001405
  19397. #define GPIO_PA6_I2C1SCL 0x00001801
  19398. #define GPIO_PA6_CCP1 0x00001802
  19399. #define GPIO_PA6_PWM0 0x00001804
  19400. #define GPIO_PA6_PWM4 0x00001805
  19401. #define GPIO_PA6_CAN0RX 0x00001806
  19402. #define GPIO_PA6_USB0EPEN 0x00001808
  19403. #define GPIO_PA7_I2C1SDA 0x00001C01
  19404. #define GPIO_PA7_CCP4 0x00001C02
  19405. #define GPIO_PA7_PWM1 0x00001C04
  19406. #define GPIO_PA7_PWM5 0x00001C05
  19407. #define GPIO_PA7_CAN0TX 0x00001C06
  19408. #define GPIO_PA7_CCP3 0x00001C07
  19409. #define GPIO_PA7_USB0PFLT 0x00001C08
  19410. #define GPIO_PB0_CCP0 0x00010001
  19411. #define GPIO_PB0_PWM2 0x00010002
  19412. #define GPIO_PB0_U1RX 0x00010005
  19413. #define GPIO_PB1_CCP2 0x00010401
  19414. #define GPIO_PB1_PWM3 0x00010402
  19415. #define GPIO_PB1_CCP1 0x00010404
  19416. #define GPIO_PB1_U1TX 0x00010405
  19417. #define GPIO_PB2_I2C0SCL 0x00010801
  19418. #define GPIO_PB2_IDX0 0x00010802
  19419. #define GPIO_PB2_CCP3 0x00010804
  19420. #define GPIO_PB2_CCP0 0x00010805
  19421. #define GPIO_PB2_USB0EPEN 0x00010808
  19422. #define GPIO_PB3_I2C0SDA 0x00010C01
  19423. #define GPIO_PB3_FAULT0 0x00010C02
  19424. #define GPIO_PB3_FAULT3 0x00010C04
  19425. #define GPIO_PB3_USB0PFLT 0x00010C08
  19426. #define GPIO_PB4_U2RX 0x00011004
  19427. #define GPIO_PB4_CAN0RX 0x00011005
  19428. #define GPIO_PB4_IDX0 0x00011006
  19429. #define GPIO_PB4_U1RX 0x00011007
  19430. #define GPIO_PB5_C0O 0x00011401
  19431. #define GPIO_PB5_CCP5 0x00011402
  19432. #define GPIO_PB5_CCP6 0x00011403
  19433. #define GPIO_PB5_CCP0 0x00011404
  19434. #define GPIO_PB5_CAN0TX 0x00011405
  19435. #define GPIO_PB5_CCP2 0x00011406
  19436. #define GPIO_PB5_U1TX 0x00011407
  19437. #define GPIO_PB6_CCP1 0x00011801
  19438. #define GPIO_PB6_CCP7 0x00011802
  19439. #define GPIO_PB6_C0O 0x00011803
  19440. #define GPIO_PB6_FAULT1 0x00011804
  19441. #define GPIO_PB6_IDX0 0x00011805
  19442. #define GPIO_PB6_CCP5 0x00011806
  19443. #define GPIO_PB7_NMI 0x00011C04
  19444. #define GPIO_PC0_TCK 0x00020003
  19445. #define GPIO_PC0_SWCLK 0x00020003
  19446. #define GPIO_PC1_TMS 0x00020403
  19447. #define GPIO_PC1_SWDIO 0x00020403
  19448. #define GPIO_PC2_TDI 0x00020803
  19449. #define GPIO_PC3_SWO 0x00020C03
  19450. #define GPIO_PC3_TDO 0x00020C03
  19451. #define GPIO_PC4_CCP5 0x00021001
  19452. #define GPIO_PC4_PHA0 0x00021002
  19453. #define GPIO_PC4_CCP2 0x00021005
  19454. #define GPIO_PC4_CCP4 0x00021006
  19455. #define GPIO_PC4_CCP1 0x00021009
  19456. #define GPIO_PC5_CCP1 0x00021401
  19457. #define GPIO_PC5_C1O 0x00021402
  19458. #define GPIO_PC5_C0O 0x00021403
  19459. #define GPIO_PC5_FAULT2 0x00021404
  19460. #define GPIO_PC5_CCP3 0x00021405
  19461. #define GPIO_PC5_USB0EPEN 0x00021406
  19462. #define GPIO_PC6_CCP3 0x00021801
  19463. #define GPIO_PC6_PHB0 0x00021802
  19464. #define GPIO_PC6_U1RX 0x00021805
  19465. #define GPIO_PC6_CCP0 0x00021806
  19466. #define GPIO_PC6_USB0PFLT 0x00021807
  19467. #define GPIO_PC7_CCP4 0x00021C01
  19468. #define GPIO_PC7_PHB0 0x00021C02
  19469. #define GPIO_PC7_CCP0 0x00021C04
  19470. #define GPIO_PC7_U1TX 0x00021C05
  19471. #define GPIO_PC7_USB0PFLT 0x00021C06
  19472. #define GPIO_PC7_C1O 0x00021C07
  19473. #define GPIO_PD0_PWM0 0x00030001
  19474. #define GPIO_PD0_CAN0RX 0x00030002
  19475. #define GPIO_PD0_IDX0 0x00030003
  19476. #define GPIO_PD0_U2RX 0x00030004
  19477. #define GPIO_PD0_U1RX 0x00030005
  19478. #define GPIO_PD0_CCP6 0x00030006
  19479. #define GPIO_PD1_PWM1 0x00030401
  19480. #define GPIO_PD1_CAN0TX 0x00030402
  19481. #define GPIO_PD1_PHA0 0x00030403
  19482. #define GPIO_PD1_U2TX 0x00030404
  19483. #define GPIO_PD1_U1TX 0x00030405
  19484. #define GPIO_PD1_CCP7 0x00030406
  19485. #define GPIO_PD1_CCP2 0x0003040A
  19486. #define GPIO_PD2_U1RX 0x00030801
  19487. #define GPIO_PD2_CCP6 0x00030802
  19488. #define GPIO_PD2_PWM2 0x00030803
  19489. #define GPIO_PD2_CCP5 0x00030804
  19490. #define GPIO_PD3_U1TX 0x00030C01
  19491. #define GPIO_PD3_CCP7 0x00030C02
  19492. #define GPIO_PD3_PWM3 0x00030C03
  19493. #define GPIO_PD3_CCP0 0x00030C04
  19494. #define GPIO_PE0_PWM4 0x00040001
  19495. #define GPIO_PE0_SSI1CLK 0x00040002
  19496. #define GPIO_PE0_CCP3 0x00040003
  19497. #define GPIO_PE0_USB0PFLT 0x00040009
  19498. #define GPIO_PE1_PWM5 0x00040401
  19499. #define GPIO_PE1_SSI1FSS 0x00040402
  19500. #define GPIO_PE1_FAULT0 0x00040403
  19501. #define GPIO_PE1_CCP2 0x00040404
  19502. #define GPIO_PE1_CCP6 0x00040405
  19503. #define GPIO_PE2_CCP4 0x00040801
  19504. #define GPIO_PE2_SSI1RX 0x00040802
  19505. #define GPIO_PE2_PHA0 0x00040804
  19506. #define GPIO_PE2_CCP2 0x00040805
  19507. #define GPIO_PE3_CCP1 0x00040C01
  19508. #define GPIO_PE3_SSI1TX 0x00040C02
  19509. #define GPIO_PE3_PHB0 0x00040C04
  19510. #define GPIO_PE3_CCP7 0x00040C05
  19511. #define GPIO_PE4_CCP3 0x00041001
  19512. #define GPIO_PE4_FAULT0 0x00041004
  19513. #define GPIO_PE4_U2TX 0x00041005
  19514. #define GPIO_PE4_CCP2 0x00041006
  19515. #endif // PART_LM3S5D56
  19516. //*****************************************************************************
  19517. //
  19518. // LM3S5D91 Port/Pin Mapping Definitions
  19519. //
  19520. //*****************************************************************************
  19521. #ifdef PART_LM3S5D91
  19522. #define GPIO_PA0_U0RX 0x00000001
  19523. #define GPIO_PA0_I2C1SCL 0x00000008
  19524. #define GPIO_PA0_U1RX 0x00000009
  19525. #define GPIO_PA1_U0TX 0x00000401
  19526. #define GPIO_PA1_I2C1SDA 0x00000408
  19527. #define GPIO_PA1_U1TX 0x00000409
  19528. #define GPIO_PA2_SSI0CLK 0x00000801
  19529. #define GPIO_PA2_PWM4 0x00000804
  19530. #define GPIO_PA2_I2S0RXSD 0x00000809
  19531. #define GPIO_PA3_SSI0FSS 0x00000C01
  19532. #define GPIO_PA3_PWM5 0x00000C04
  19533. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  19534. #define GPIO_PA4_SSI0RX 0x00001001
  19535. #define GPIO_PA4_PWM6 0x00001004
  19536. #define GPIO_PA4_CAN0RX 0x00001005
  19537. #define GPIO_PA4_I2S0TXSCK 0x00001009
  19538. #define GPIO_PA5_SSI0TX 0x00001401
  19539. #define GPIO_PA5_PWM7 0x00001404
  19540. #define GPIO_PA5_CAN0TX 0x00001405
  19541. #define GPIO_PA5_I2S0TXWS 0x00001409
  19542. #define GPIO_PA6_I2C1SCL 0x00001801
  19543. #define GPIO_PA6_CCP1 0x00001802
  19544. #define GPIO_PA6_PWM0 0x00001804
  19545. #define GPIO_PA6_PWM4 0x00001805
  19546. #define GPIO_PA6_CAN0RX 0x00001806
  19547. #define GPIO_PA6_USB0EPEN 0x00001808
  19548. #define GPIO_PA6_U1CTS 0x00001809
  19549. #define GPIO_PA7_I2C1SDA 0x00001C01
  19550. #define GPIO_PA7_CCP4 0x00001C02
  19551. #define GPIO_PA7_PWM1 0x00001C04
  19552. #define GPIO_PA7_PWM5 0x00001C05
  19553. #define GPIO_PA7_CAN0TX 0x00001C06
  19554. #define GPIO_PA7_CCP3 0x00001C07
  19555. #define GPIO_PA7_USB0PFLT 0x00001C08
  19556. #define GPIO_PA7_U1DCD 0x00001C09
  19557. #define GPIO_PB0_CCP0 0x00010001
  19558. #define GPIO_PB0_PWM2 0x00010002
  19559. #define GPIO_PB0_U1RX 0x00010005
  19560. #define GPIO_PB1_CCP2 0x00010401
  19561. #define GPIO_PB1_PWM3 0x00010402
  19562. #define GPIO_PB1_CCP1 0x00010404
  19563. #define GPIO_PB1_U1TX 0x00010405
  19564. #define GPIO_PB2_I2C0SCL 0x00010801
  19565. #define GPIO_PB2_IDX0 0x00010802
  19566. #define GPIO_PB2_CCP3 0x00010804
  19567. #define GPIO_PB2_CCP0 0x00010805
  19568. #define GPIO_PB2_USB0EPEN 0x00010808
  19569. #define GPIO_PB3_I2C0SDA 0x00010C01
  19570. #define GPIO_PB3_FAULT0 0x00010C02
  19571. #define GPIO_PB3_FAULT3 0x00010C04
  19572. #define GPIO_PB3_USB0PFLT 0x00010C08
  19573. #define GPIO_PB4_U2RX 0x00011004
  19574. #define GPIO_PB4_CAN0RX 0x00011005
  19575. #define GPIO_PB4_IDX0 0x00011006
  19576. #define GPIO_PB4_U1RX 0x00011007
  19577. #define GPIO_PB4_EPI0S23 0x00011008
  19578. #define GPIO_PB5_C0O 0x00011401
  19579. #define GPIO_PB5_CCP5 0x00011402
  19580. #define GPIO_PB5_CCP6 0x00011403
  19581. #define GPIO_PB5_CCP0 0x00011404
  19582. #define GPIO_PB5_CAN0TX 0x00011405
  19583. #define GPIO_PB5_CCP2 0x00011406
  19584. #define GPIO_PB5_U1TX 0x00011407
  19585. #define GPIO_PB5_EPI0S22 0x00011408
  19586. #define GPIO_PB6_CCP1 0x00011801
  19587. #define GPIO_PB6_CCP7 0x00011802
  19588. #define GPIO_PB6_C0O 0x00011803
  19589. #define GPIO_PB6_FAULT1 0x00011804
  19590. #define GPIO_PB6_IDX0 0x00011805
  19591. #define GPIO_PB6_CCP5 0x00011806
  19592. #define GPIO_PB6_I2S0TXSCK 0x00011809
  19593. #define GPIO_PB7_NMI 0x00011C04
  19594. #define GPIO_PC0_TCK 0x00020003
  19595. #define GPIO_PC0_SWCLK 0x00020003
  19596. #define GPIO_PC1_TMS 0x00020403
  19597. #define GPIO_PC1_SWDIO 0x00020403
  19598. #define GPIO_PC2_TDI 0x00020803
  19599. #define GPIO_PC3_SWO 0x00020C03
  19600. #define GPIO_PC3_TDO 0x00020C03
  19601. #define GPIO_PC4_CCP5 0x00021001
  19602. #define GPIO_PC4_PHA0 0x00021002
  19603. #define GPIO_PC4_PWM6 0x00021004
  19604. #define GPIO_PC4_CCP2 0x00021005
  19605. #define GPIO_PC4_CCP4 0x00021006
  19606. #define GPIO_PC4_EPI0S2 0x00021008
  19607. #define GPIO_PC4_CCP1 0x00021009
  19608. #define GPIO_PC5_CCP1 0x00021401
  19609. #define GPIO_PC5_C1O 0x00021402
  19610. #define GPIO_PC5_C0O 0x00021403
  19611. #define GPIO_PC5_FAULT2 0x00021404
  19612. #define GPIO_PC5_CCP3 0x00021405
  19613. #define GPIO_PC5_USB0EPEN 0x00021406
  19614. #define GPIO_PC5_EPI0S3 0x00021408
  19615. #define GPIO_PC6_CCP3 0x00021801
  19616. #define GPIO_PC6_PHB0 0x00021802
  19617. #define GPIO_PC6_C2O 0x00021803
  19618. #define GPIO_PC6_PWM7 0x00021804
  19619. #define GPIO_PC6_U1RX 0x00021805
  19620. #define GPIO_PC6_CCP0 0x00021806
  19621. #define GPIO_PC6_USB0PFLT 0x00021807
  19622. #define GPIO_PC6_EPI0S4 0x00021808
  19623. #define GPIO_PC7_CCP4 0x00021C01
  19624. #define GPIO_PC7_PHB0 0x00021C02
  19625. #define GPIO_PC7_CCP0 0x00021C04
  19626. #define GPIO_PC7_U1TX 0x00021C05
  19627. #define GPIO_PC7_USB0PFLT 0x00021C06
  19628. #define GPIO_PC7_C1O 0x00021C07
  19629. #define GPIO_PC7_EPI0S5 0x00021C08
  19630. #define GPIO_PD0_PWM0 0x00030001
  19631. #define GPIO_PD0_CAN0RX 0x00030002
  19632. #define GPIO_PD0_IDX0 0x00030003
  19633. #define GPIO_PD0_U2RX 0x00030004
  19634. #define GPIO_PD0_U1RX 0x00030005
  19635. #define GPIO_PD0_CCP6 0x00030006
  19636. #define GPIO_PD0_I2S0RXSCK 0x00030008
  19637. #define GPIO_PD0_U1CTS 0x00030009
  19638. #define GPIO_PD1_PWM1 0x00030401
  19639. #define GPIO_PD1_CAN0TX 0x00030402
  19640. #define GPIO_PD1_PHA0 0x00030403
  19641. #define GPIO_PD1_U2TX 0x00030404
  19642. #define GPIO_PD1_U1TX 0x00030405
  19643. #define GPIO_PD1_CCP7 0x00030406
  19644. #define GPIO_PD1_I2S0RXWS 0x00030408
  19645. #define GPIO_PD1_U1DCD 0x00030409
  19646. #define GPIO_PD1_CCP2 0x0003040A
  19647. #define GPIO_PD1_PHB1 0x0003040B
  19648. #define GPIO_PD2_U1RX 0x00030801
  19649. #define GPIO_PD2_CCP6 0x00030802
  19650. #define GPIO_PD2_PWM2 0x00030803
  19651. #define GPIO_PD2_CCP5 0x00030804
  19652. #define GPIO_PD2_EPI0S20 0x00030808
  19653. #define GPIO_PD3_U1TX 0x00030C01
  19654. #define GPIO_PD3_CCP7 0x00030C02
  19655. #define GPIO_PD3_PWM3 0x00030C03
  19656. #define GPIO_PD3_CCP0 0x00030C04
  19657. #define GPIO_PD3_EPI0S21 0x00030C08
  19658. #define GPIO_PD4_CCP0 0x00031001
  19659. #define GPIO_PD4_CCP3 0x00031002
  19660. #define GPIO_PD4_I2S0RXSD 0x00031008
  19661. #define GPIO_PD4_U1RI 0x00031009
  19662. #define GPIO_PD4_EPI0S19 0x0003100A
  19663. #define GPIO_PD5_CCP2 0x00031401
  19664. #define GPIO_PD5_CCP4 0x00031402
  19665. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  19666. #define GPIO_PD5_U2RX 0x00031409
  19667. #define GPIO_PD5_EPI0S28 0x0003140A
  19668. #define GPIO_PD6_FAULT0 0x00031801
  19669. #define GPIO_PD6_I2S0TXSCK 0x00031808
  19670. #define GPIO_PD6_U2TX 0x00031809
  19671. #define GPIO_PD6_EPI0S29 0x0003180A
  19672. #define GPIO_PD7_IDX0 0x00031C01
  19673. #define GPIO_PD7_C0O 0x00031C02
  19674. #define GPIO_PD7_CCP1 0x00031C03
  19675. #define GPIO_PD7_I2S0TXWS 0x00031C08
  19676. #define GPIO_PD7_U1DTR 0x00031C09
  19677. #define GPIO_PD7_EPI0S30 0x00031C0A
  19678. #define GPIO_PE0_PWM4 0x00040001
  19679. #define GPIO_PE0_SSI1CLK 0x00040002
  19680. #define GPIO_PE0_CCP3 0x00040003
  19681. #define GPIO_PE0_EPI0S8 0x00040008
  19682. #define GPIO_PE0_USB0PFLT 0x00040009
  19683. #define GPIO_PE1_PWM5 0x00040401
  19684. #define GPIO_PE1_SSI1FSS 0x00040402
  19685. #define GPIO_PE1_FAULT0 0x00040403
  19686. #define GPIO_PE1_CCP2 0x00040404
  19687. #define GPIO_PE1_CCP6 0x00040405
  19688. #define GPIO_PE1_EPI0S9 0x00040408
  19689. #define GPIO_PE2_CCP4 0x00040801
  19690. #define GPIO_PE2_SSI1RX 0x00040802
  19691. #define GPIO_PE2_PHB1 0x00040803
  19692. #define GPIO_PE2_PHA0 0x00040804
  19693. #define GPIO_PE2_CCP2 0x00040805
  19694. #define GPIO_PE2_EPI0S24 0x00040808
  19695. #define GPIO_PE3_CCP1 0x00040C01
  19696. #define GPIO_PE3_SSI1TX 0x00040C02
  19697. #define GPIO_PE3_PHA1 0x00040C03
  19698. #define GPIO_PE3_PHB0 0x00040C04
  19699. #define GPIO_PE3_CCP7 0x00040C05
  19700. #define GPIO_PE3_EPI0S25 0x00040C08
  19701. #define GPIO_PE4_CCP3 0x00041001
  19702. #define GPIO_PE4_FAULT0 0x00041004
  19703. #define GPIO_PE4_U2TX 0x00041005
  19704. #define GPIO_PE4_CCP2 0x00041006
  19705. #define GPIO_PE4_I2S0TXWS 0x00041009
  19706. #define GPIO_PE5_CCP5 0x00041401
  19707. #define GPIO_PE5_I2S0TXSD 0x00041409
  19708. #define GPIO_PE6_PWM4 0x00041801
  19709. #define GPIO_PE6_C1O 0x00041802
  19710. #define GPIO_PE6_U1CTS 0x00041809
  19711. #define GPIO_PE7_PWM5 0x00041C01
  19712. #define GPIO_PE7_C2O 0x00041C02
  19713. #define GPIO_PE7_U1DCD 0x00041C09
  19714. #define GPIO_PF0_CAN1RX 0x00050001
  19715. #define GPIO_PF0_PHB0 0x00050002
  19716. #define GPIO_PF0_PWM0 0x00050003
  19717. #define GPIO_PF0_I2S0TXSD 0x00050008
  19718. #define GPIO_PF0_U1DSR 0x00050009
  19719. #define GPIO_PF1_CAN1TX 0x00050401
  19720. #define GPIO_PF1_IDX1 0x00050402
  19721. #define GPIO_PF1_PWM1 0x00050403
  19722. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  19723. #define GPIO_PF1_U1RTS 0x00050409
  19724. #define GPIO_PF1_CCP3 0x0005040A
  19725. #define GPIO_PF2_PWM4 0x00050802
  19726. #define GPIO_PF2_PWM2 0x00050804
  19727. #define GPIO_PF2_SSI1CLK 0x00050809
  19728. #define GPIO_PF3_PWM5 0x00050C02
  19729. #define GPIO_PF3_PWM3 0x00050C04
  19730. #define GPIO_PF3_SSI1FSS 0x00050C09
  19731. #define GPIO_PF4_CCP0 0x00051001
  19732. #define GPIO_PF4_C0O 0x00051002
  19733. #define GPIO_PF4_FAULT0 0x00051004
  19734. #define GPIO_PF4_EPI0S12 0x00051008
  19735. #define GPIO_PF4_SSI1RX 0x00051009
  19736. #define GPIO_PF5_CCP2 0x00051401
  19737. #define GPIO_PF5_C1O 0x00051402
  19738. #define GPIO_PF5_EPI0S15 0x00051408
  19739. #define GPIO_PF5_SSI1TX 0x00051409
  19740. #define GPIO_PF6_CCP1 0x00051801
  19741. #define GPIO_PF6_C2O 0x00051802
  19742. #define GPIO_PF6_PHA0 0x00051804
  19743. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  19744. #define GPIO_PF6_U1RTS 0x0005180A
  19745. #define GPIO_PF7_CCP4 0x00051C01
  19746. #define GPIO_PF7_PHB0 0x00051C04
  19747. #define GPIO_PF7_EPI0S12 0x00051C08
  19748. #define GPIO_PF7_FAULT1 0x00051C09
  19749. #define GPIO_PG0_U2RX 0x00060001
  19750. #define GPIO_PG0_PWM0 0x00060002
  19751. #define GPIO_PG0_I2C1SCL 0x00060003
  19752. #define GPIO_PG0_PWM4 0x00060004
  19753. #define GPIO_PG0_USB0EPEN 0x00060007
  19754. #define GPIO_PG0_EPI0S13 0x00060008
  19755. #define GPIO_PG1_U2TX 0x00060401
  19756. #define GPIO_PG1_PWM1 0x00060402
  19757. #define GPIO_PG1_I2C1SDA 0x00060403
  19758. #define GPIO_PG1_PWM5 0x00060404
  19759. #define GPIO_PG1_EPI0S14 0x00060408
  19760. #define GPIO_PG2_PWM0 0x00060801
  19761. #define GPIO_PG2_FAULT0 0x00060804
  19762. #define GPIO_PG2_IDX1 0x00060808
  19763. #define GPIO_PG2_I2S0RXSD 0x00060809
  19764. #define GPIO_PG3_PWM1 0x00060C01
  19765. #define GPIO_PG3_FAULT2 0x00060C04
  19766. #define GPIO_PG3_FAULT0 0x00060C08
  19767. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  19768. #define GPIO_PG4_CCP3 0x00061001
  19769. #define GPIO_PG4_FAULT1 0x00061004
  19770. #define GPIO_PG4_EPI0S15 0x00061008
  19771. #define GPIO_PG4_PWM6 0x00061009
  19772. #define GPIO_PG4_U1RI 0x0006100A
  19773. #define GPIO_PG5_CCP5 0x00061401
  19774. #define GPIO_PG5_IDX0 0x00061404
  19775. #define GPIO_PG5_FAULT1 0x00061405
  19776. #define GPIO_PG5_PWM7 0x00061408
  19777. #define GPIO_PG5_I2S0RXSCK 0x00061409
  19778. #define GPIO_PG5_U1DTR 0x0006140A
  19779. #define GPIO_PG6_PHA1 0x00061801
  19780. #define GPIO_PG6_PWM6 0x00061804
  19781. #define GPIO_PG6_FAULT1 0x00061808
  19782. #define GPIO_PG6_I2S0RXWS 0x00061809
  19783. #define GPIO_PG6_U1RI 0x0006180A
  19784. #define GPIO_PG7_PHB1 0x00061C01
  19785. #define GPIO_PG7_PWM7 0x00061C04
  19786. #define GPIO_PG7_CCP5 0x00061C08
  19787. #define GPIO_PG7_EPI0S31 0x00061C09
  19788. #define GPIO_PH0_CCP6 0x00070001
  19789. #define GPIO_PH0_PWM2 0x00070002
  19790. #define GPIO_PH0_EPI0S6 0x00070008
  19791. #define GPIO_PH0_PWM4 0x00070009
  19792. #define GPIO_PH1_CCP7 0x00070401
  19793. #define GPIO_PH1_PWM3 0x00070402
  19794. #define GPIO_PH1_EPI0S7 0x00070408
  19795. #define GPIO_PH1_PWM5 0x00070409
  19796. #define GPIO_PH2_IDX1 0x00070801
  19797. #define GPIO_PH2_C1O 0x00070802
  19798. #define GPIO_PH2_FAULT3 0x00070804
  19799. #define GPIO_PH2_EPI0S1 0x00070808
  19800. #define GPIO_PH3_PHB0 0x00070C01
  19801. #define GPIO_PH3_FAULT0 0x00070C02
  19802. #define GPIO_PH3_USB0EPEN 0x00070C04
  19803. #define GPIO_PH3_EPI0S0 0x00070C08
  19804. #define GPIO_PH4_USB0PFLT 0x00071004
  19805. #define GPIO_PH4_EPI0S10 0x00071008
  19806. #define GPIO_PH4_SSI1CLK 0x0007100B
  19807. #define GPIO_PH5_EPI0S11 0x00071408
  19808. #define GPIO_PH5_FAULT2 0x0007140A
  19809. #define GPIO_PH5_SSI1FSS 0x0007140B
  19810. #define GPIO_PH6_EPI0S26 0x00071808
  19811. #define GPIO_PH6_PWM4 0x0007180A
  19812. #define GPIO_PH6_SSI1RX 0x0007180B
  19813. #define GPIO_PH7_EPI0S27 0x00071C08
  19814. #define GPIO_PH7_PWM5 0x00071C0A
  19815. #define GPIO_PH7_SSI1TX 0x00071C0B
  19816. #define GPIO_PJ0_EPI0S16 0x00080008
  19817. #define GPIO_PJ0_PWM0 0x0008000A
  19818. #define GPIO_PJ0_I2C1SCL 0x0008000B
  19819. #define GPIO_PJ1_EPI0S17 0x00080408
  19820. #define GPIO_PJ1_USB0PFLT 0x00080409
  19821. #define GPIO_PJ1_PWM1 0x0008040A
  19822. #define GPIO_PJ1_I2C1SDA 0x0008040B
  19823. #define GPIO_PJ2_EPI0S18 0x00080808
  19824. #define GPIO_PJ2_CCP0 0x00080809
  19825. #define GPIO_PJ2_FAULT0 0x0008080A
  19826. #define GPIO_PJ3_EPI0S19 0x00080C08
  19827. #define GPIO_PJ3_U1CTS 0x00080C09
  19828. #define GPIO_PJ3_CCP6 0x00080C0A
  19829. #define GPIO_PJ4_EPI0S28 0x00081008
  19830. #define GPIO_PJ4_U1DCD 0x00081009
  19831. #define GPIO_PJ4_CCP4 0x0008100A
  19832. #define GPIO_PJ5_EPI0S29 0x00081408
  19833. #define GPIO_PJ5_U1DSR 0x00081409
  19834. #define GPIO_PJ5_CCP2 0x0008140A
  19835. #define GPIO_PJ6_EPI0S30 0x00081808
  19836. #define GPIO_PJ6_U1RTS 0x00081809
  19837. #define GPIO_PJ6_CCP1 0x0008180A
  19838. #define GPIO_PJ7_U1DTR 0x00081C09
  19839. #define GPIO_PJ7_CCP0 0x00081C0A
  19840. #endif // PART_LM3S5D91
  19841. //*****************************************************************************
  19842. //
  19843. // LM3S5G31 Port/Pin Mapping Definitions
  19844. //
  19845. //*****************************************************************************
  19846. #ifdef PART_LM3S5G31
  19847. #define GPIO_PA0_U0RX 0x00000001
  19848. #define GPIO_PA0_I2C1SCL 0x00000008
  19849. #define GPIO_PA0_U1RX 0x00000009
  19850. #define GPIO_PA1_U0TX 0x00000401
  19851. #define GPIO_PA1_I2C1SDA 0x00000408
  19852. #define GPIO_PA1_U1TX 0x00000409
  19853. #define GPIO_PA2_SSI0CLK 0x00000801
  19854. #define GPIO_PA2_PWM4 0x00000804
  19855. #define GPIO_PA3_SSI0FSS 0x00000C01
  19856. #define GPIO_PA3_PWM5 0x00000C04
  19857. #define GPIO_PA4_SSI0RX 0x00001001
  19858. #define GPIO_PA4_CAN0RX 0x00001005
  19859. #define GPIO_PA5_SSI0TX 0x00001401
  19860. #define GPIO_PA5_CAN0TX 0x00001405
  19861. #define GPIO_PA6_I2C1SCL 0x00001801
  19862. #define GPIO_PA6_CCP1 0x00001802
  19863. #define GPIO_PA6_PWM0 0x00001804
  19864. #define GPIO_PA6_PWM4 0x00001805
  19865. #define GPIO_PA6_CAN0RX 0x00001806
  19866. #define GPIO_PA6_U1CTS 0x00001809
  19867. #define GPIO_PA7_I2C1SDA 0x00001C01
  19868. #define GPIO_PA7_CCP4 0x00001C02
  19869. #define GPIO_PA7_PWM1 0x00001C04
  19870. #define GPIO_PA7_PWM5 0x00001C05
  19871. #define GPIO_PA7_CAN0TX 0x00001C06
  19872. #define GPIO_PA7_CCP3 0x00001C07
  19873. #define GPIO_PA7_U1DCD 0x00001C09
  19874. #define GPIO_PB0_CCP0 0x00010001
  19875. #define GPIO_PB0_PWM2 0x00010002
  19876. #define GPIO_PB0_U1RX 0x00010005
  19877. #define GPIO_PB1_CCP2 0x00010401
  19878. #define GPIO_PB1_PWM3 0x00010402
  19879. #define GPIO_PB1_CCP1 0x00010404
  19880. #define GPIO_PB1_U1TX 0x00010405
  19881. #define GPIO_PB2_I2C0SCL 0x00010801
  19882. #define GPIO_PB2_IDX0 0x00010802
  19883. #define GPIO_PB2_CCP3 0x00010804
  19884. #define GPIO_PB2_CCP0 0x00010805
  19885. #define GPIO_PB3_I2C0SDA 0x00010C01
  19886. #define GPIO_PB3_FAULT0 0x00010C02
  19887. #define GPIO_PB3_FAULT3 0x00010C04
  19888. #define GPIO_PB4_U2RX 0x00011004
  19889. #define GPIO_PB4_CAN0RX 0x00011005
  19890. #define GPIO_PB4_IDX0 0x00011006
  19891. #define GPIO_PB4_U1RX 0x00011007
  19892. #define GPIO_PB4_EPI0S23 0x00011008
  19893. #define GPIO_PB5_C0O 0x00011401
  19894. #define GPIO_PB5_CCP5 0x00011402
  19895. #define GPIO_PB5_CCP0 0x00011404
  19896. #define GPIO_PB5_CAN0TX 0x00011405
  19897. #define GPIO_PB5_CCP2 0x00011406
  19898. #define GPIO_PB5_U1TX 0x00011407
  19899. #define GPIO_PB5_EPI0S22 0x00011408
  19900. #define GPIO_PB6_CCP1 0x00011801
  19901. #define GPIO_PB6_C0O 0x00011803
  19902. #define GPIO_PB6_FAULT1 0x00011804
  19903. #define GPIO_PB6_IDX0 0x00011805
  19904. #define GPIO_PB6_CCP5 0x00011806
  19905. #define GPIO_PB7_NMI 0x00011C04
  19906. #define GPIO_PC0_TCK 0x00020003
  19907. #define GPIO_PC0_SWCLK 0x00020003
  19908. #define GPIO_PC1_TMS 0x00020403
  19909. #define GPIO_PC1_SWDIO 0x00020403
  19910. #define GPIO_PC2_TDI 0x00020803
  19911. #define GPIO_PC3_SWO 0x00020C03
  19912. #define GPIO_PC3_TDO 0x00020C03
  19913. #define GPIO_PC4_CCP5 0x00021001
  19914. #define GPIO_PC4_PHA0 0x00021002
  19915. #define GPIO_PC4_CCP2 0x00021005
  19916. #define GPIO_PC4_CCP4 0x00021006
  19917. #define GPIO_PC4_EPI0S2 0x00021008
  19918. #define GPIO_PC4_CCP1 0x00021009
  19919. #define GPIO_PC5_CCP1 0x00021401
  19920. #define GPIO_PC5_C1O 0x00021402
  19921. #define GPIO_PC5_C0O 0x00021403
  19922. #define GPIO_PC5_FAULT2 0x00021404
  19923. #define GPIO_PC5_CCP3 0x00021405
  19924. #define GPIO_PC5_EPI0S3 0x00021408
  19925. #define GPIO_PC6_CCP3 0x00021801
  19926. #define GPIO_PC6_PHB0 0x00021802
  19927. #define GPIO_PC6_U1RX 0x00021805
  19928. #define GPIO_PC6_CCP0 0x00021806
  19929. #define GPIO_PC6_EPI0S4 0x00021808
  19930. #define GPIO_PC7_CCP4 0x00021C01
  19931. #define GPIO_PC7_PHB0 0x00021C02
  19932. #define GPIO_PC7_CCP0 0x00021C04
  19933. #define GPIO_PC7_U1TX 0x00021C05
  19934. #define GPIO_PC7_C1O 0x00021C07
  19935. #define GPIO_PC7_EPI0S5 0x00021C08
  19936. #define GPIO_PD0_PWM0 0x00030001
  19937. #define GPIO_PD0_CAN0RX 0x00030002
  19938. #define GPIO_PD0_IDX0 0x00030003
  19939. #define GPIO_PD0_U2RX 0x00030004
  19940. #define GPIO_PD0_U1RX 0x00030005
  19941. #define GPIO_PD0_U1CTS 0x00030009
  19942. #define GPIO_PD1_PWM1 0x00030401
  19943. #define GPIO_PD1_CAN0TX 0x00030402
  19944. #define GPIO_PD1_PHA0 0x00030403
  19945. #define GPIO_PD1_U2TX 0x00030404
  19946. #define GPIO_PD1_U1TX 0x00030405
  19947. #define GPIO_PD1_U1DCD 0x00030409
  19948. #define GPIO_PD1_CCP2 0x0003040A
  19949. #define GPIO_PD1_PHB1 0x0003040B
  19950. #define GPIO_PD2_U1RX 0x00030801
  19951. #define GPIO_PD2_PWM2 0x00030803
  19952. #define GPIO_PD2_CCP5 0x00030804
  19953. #define GPIO_PD2_EPI0S20 0x00030808
  19954. #define GPIO_PD3_U1TX 0x00030C01
  19955. #define GPIO_PD3_PWM3 0x00030C03
  19956. #define GPIO_PD3_CCP0 0x00030C04
  19957. #define GPIO_PD3_EPI0S21 0x00030C08
  19958. #define GPIO_PD4_CCP0 0x00031001
  19959. #define GPIO_PD4_CCP3 0x00031002
  19960. #define GPIO_PD4_U1RI 0x00031009
  19961. #define GPIO_PD4_EPI0S19 0x0003100A
  19962. #define GPIO_PD5_CCP2 0x00031401
  19963. #define GPIO_PD5_CCP4 0x00031402
  19964. #define GPIO_PD5_U2RX 0x00031409
  19965. #define GPIO_PD5_EPI0S28 0x0003140A
  19966. #define GPIO_PD6_FAULT0 0x00031801
  19967. #define GPIO_PD6_U2TX 0x00031809
  19968. #define GPIO_PD6_EPI0S29 0x0003180A
  19969. #define GPIO_PD7_IDX0 0x00031C01
  19970. #define GPIO_PD7_C0O 0x00031C02
  19971. #define GPIO_PD7_CCP1 0x00031C03
  19972. #define GPIO_PD7_U1DTR 0x00031C09
  19973. #define GPIO_PD7_EPI0S30 0x00031C0A
  19974. #define GPIO_PE0_PWM4 0x00040001
  19975. #define GPIO_PE0_SSI1CLK 0x00040002
  19976. #define GPIO_PE0_CCP3 0x00040003
  19977. #define GPIO_PE0_EPI0S8 0x00040008
  19978. #define GPIO_PE1_PWM5 0x00040401
  19979. #define GPIO_PE1_SSI1FSS 0x00040402
  19980. #define GPIO_PE1_FAULT0 0x00040403
  19981. #define GPIO_PE1_CCP2 0x00040404
  19982. #define GPIO_PE1_EPI0S9 0x00040408
  19983. #define GPIO_PE2_CCP4 0x00040801
  19984. #define GPIO_PE2_SSI1RX 0x00040802
  19985. #define GPIO_PE2_PHB1 0x00040803
  19986. #define GPIO_PE2_PHA0 0x00040804
  19987. #define GPIO_PE2_CCP2 0x00040805
  19988. #define GPIO_PE2_EPI0S24 0x00040808
  19989. #define GPIO_PE3_CCP1 0x00040C01
  19990. #define GPIO_PE3_SSI1TX 0x00040C02
  19991. #define GPIO_PE3_PHA1 0x00040C03
  19992. #define GPIO_PE3_PHB0 0x00040C04
  19993. #define GPIO_PE3_EPI0S25 0x00040C08
  19994. #define GPIO_PE4_CCP3 0x00041001
  19995. #define GPIO_PE4_FAULT0 0x00041004
  19996. #define GPIO_PE4_U2TX 0x00041005
  19997. #define GPIO_PE4_CCP2 0x00041006
  19998. #define GPIO_PE5_CCP5 0x00041401
  19999. #define GPIO_PE6_PWM4 0x00041801
  20000. #define GPIO_PE6_C1O 0x00041802
  20001. #define GPIO_PE6_U1CTS 0x00041809
  20002. #define GPIO_PE7_PWM5 0x00041C01
  20003. #define GPIO_PE7_U1DCD 0x00041C09
  20004. #define GPIO_PF0_PHB0 0x00050002
  20005. #define GPIO_PF0_PWM0 0x00050003
  20006. #define GPIO_PF0_U1DSR 0x00050009
  20007. #define GPIO_PF1_IDX1 0x00050402
  20008. #define GPIO_PF1_PWM1 0x00050403
  20009. #define GPIO_PF1_U1RTS 0x00050409
  20010. #define GPIO_PF1_CCP3 0x0005040A
  20011. #define GPIO_PF2_PWM4 0x00050802
  20012. #define GPIO_PF2_PWM2 0x00050804
  20013. #define GPIO_PF2_SSI1CLK 0x00050809
  20014. #define GPIO_PF3_PWM5 0x00050C02
  20015. #define GPIO_PF3_PWM3 0x00050C04
  20016. #define GPIO_PF3_SSI1FSS 0x00050C09
  20017. #define GPIO_PF4_CCP0 0x00051001
  20018. #define GPIO_PF4_C0O 0x00051002
  20019. #define GPIO_PF4_FAULT0 0x00051004
  20020. #define GPIO_PF4_EPI0S12 0x00051008
  20021. #define GPIO_PF4_SSI1RX 0x00051009
  20022. #define GPIO_PF5_CCP2 0x00051401
  20023. #define GPIO_PF5_C1O 0x00051402
  20024. #define GPIO_PF5_EPI0S15 0x00051408
  20025. #define GPIO_PF5_SSI1TX 0x00051409
  20026. #define GPIO_PF6_CCP1 0x00051801
  20027. #define GPIO_PF6_PHA0 0x00051804
  20028. #define GPIO_PF6_U1RTS 0x0005180A
  20029. #define GPIO_PF7_CCP4 0x00051C01
  20030. #define GPIO_PF7_PHB0 0x00051C04
  20031. #define GPIO_PF7_EPI0S12 0x00051C08
  20032. #define GPIO_PF7_FAULT1 0x00051C09
  20033. #define GPIO_PG0_U2RX 0x00060001
  20034. #define GPIO_PG0_PWM0 0x00060002
  20035. #define GPIO_PG0_I2C1SCL 0x00060003
  20036. #define GPIO_PG0_PWM4 0x00060004
  20037. #define GPIO_PG0_EPI0S13 0x00060008
  20038. #define GPIO_PG1_U2TX 0x00060401
  20039. #define GPIO_PG1_PWM1 0x00060402
  20040. #define GPIO_PG1_I2C1SDA 0x00060403
  20041. #define GPIO_PG1_PWM5 0x00060404
  20042. #define GPIO_PG1_EPI0S14 0x00060408
  20043. #define GPIO_PG2_PWM0 0x00060801
  20044. #define GPIO_PG2_FAULT0 0x00060804
  20045. #define GPIO_PG2_IDX1 0x00060808
  20046. #define GPIO_PG3_PWM1 0x00060C01
  20047. #define GPIO_PG3_FAULT2 0x00060C04
  20048. #define GPIO_PG3_FAULT0 0x00060C08
  20049. #define GPIO_PG4_CCP3 0x00061001
  20050. #define GPIO_PG4_FAULT1 0x00061004
  20051. #define GPIO_PG4_EPI0S15 0x00061008
  20052. #define GPIO_PG4_U1RI 0x0006100A
  20053. #define GPIO_PG5_CCP5 0x00061401
  20054. #define GPIO_PG5_IDX0 0x00061404
  20055. #define GPIO_PG5_FAULT1 0x00061405
  20056. #define GPIO_PG5_U1DTR 0x0006140A
  20057. #define GPIO_PG6_PHA1 0x00061801
  20058. #define GPIO_PG6_FAULT1 0x00061808
  20059. #define GPIO_PG6_U1RI 0x0006180A
  20060. #define GPIO_PG7_PHB1 0x00061C01
  20061. #define GPIO_PG7_CCP5 0x00061C08
  20062. #define GPIO_PG7_EPI0S31 0x00061C09
  20063. #define GPIO_PH0_PWM2 0x00070002
  20064. #define GPIO_PH0_EPI0S6 0x00070008
  20065. #define GPIO_PH0_PWM4 0x00070009
  20066. #define GPIO_PH1_PWM3 0x00070402
  20067. #define GPIO_PH1_EPI0S7 0x00070408
  20068. #define GPIO_PH1_PWM5 0x00070409
  20069. #define GPIO_PH2_IDX1 0x00070801
  20070. #define GPIO_PH2_C1O 0x00070802
  20071. #define GPIO_PH2_FAULT3 0x00070804
  20072. #define GPIO_PH2_EPI0S1 0x00070808
  20073. #define GPIO_PH3_PHB0 0x00070C01
  20074. #define GPIO_PH3_FAULT0 0x00070C02
  20075. #define GPIO_PH3_EPI0S0 0x00070C08
  20076. #define GPIO_PH4_EPI0S10 0x00071008
  20077. #define GPIO_PH4_SSI1CLK 0x0007100B
  20078. #define GPIO_PH5_EPI0S11 0x00071408
  20079. #define GPIO_PH5_FAULT2 0x0007140A
  20080. #define GPIO_PH5_SSI1FSS 0x0007140B
  20081. #define GPIO_PH6_EPI0S26 0x00071808
  20082. #define GPIO_PH6_PWM4 0x0007180A
  20083. #define GPIO_PH6_SSI1RX 0x0007180B
  20084. #define GPIO_PH7_EPI0S27 0x00071C08
  20085. #define GPIO_PH7_PWM5 0x00071C0A
  20086. #define GPIO_PH7_SSI1TX 0x00071C0B
  20087. #define GPIO_PJ0_EPI0S16 0x00080008
  20088. #define GPIO_PJ0_PWM0 0x0008000A
  20089. #define GPIO_PJ0_I2C1SCL 0x0008000B
  20090. #define GPIO_PJ1_EPI0S17 0x00080408
  20091. #define GPIO_PJ1_PWM1 0x0008040A
  20092. #define GPIO_PJ1_I2C1SDA 0x0008040B
  20093. #define GPIO_PJ2_EPI0S18 0x00080808
  20094. #define GPIO_PJ2_CCP0 0x00080809
  20095. #define GPIO_PJ2_FAULT0 0x0008080A
  20096. #endif // PART_LM3S5G31
  20097. //*****************************************************************************
  20098. //
  20099. // LM3S5G36 Port/Pin Mapping Definitions
  20100. //
  20101. //*****************************************************************************
  20102. #ifdef PART_LM3S5G36
  20103. #define GPIO_PA0_U0RX 0x00000001
  20104. #define GPIO_PA0_I2C1SCL 0x00000008
  20105. #define GPIO_PA0_U1RX 0x00000009
  20106. #define GPIO_PA1_U0TX 0x00000401
  20107. #define GPIO_PA1_I2C1SDA 0x00000408
  20108. #define GPIO_PA1_U1TX 0x00000409
  20109. #define GPIO_PA2_SSI0CLK 0x00000801
  20110. #define GPIO_PA2_PWM4 0x00000804
  20111. #define GPIO_PA3_SSI0FSS 0x00000C01
  20112. #define GPIO_PA3_PWM5 0x00000C04
  20113. #define GPIO_PA4_SSI0RX 0x00001001
  20114. #define GPIO_PA4_PWM6 0x00001004
  20115. #define GPIO_PA4_CAN0RX 0x00001005
  20116. #define GPIO_PA5_SSI0TX 0x00001401
  20117. #define GPIO_PA5_PWM7 0x00001404
  20118. #define GPIO_PA5_CAN0TX 0x00001405
  20119. #define GPIO_PA6_I2C1SCL 0x00001801
  20120. #define GPIO_PA6_CCP1 0x00001802
  20121. #define GPIO_PA6_PWM0 0x00001804
  20122. #define GPIO_PA6_PWM4 0x00001805
  20123. #define GPIO_PA6_CAN0RX 0x00001806
  20124. #define GPIO_PA7_I2C1SDA 0x00001C01
  20125. #define GPIO_PA7_CCP4 0x00001C02
  20126. #define GPIO_PA7_PWM1 0x00001C04
  20127. #define GPIO_PA7_PWM5 0x00001C05
  20128. #define GPIO_PA7_CAN0TX 0x00001C06
  20129. #define GPIO_PA7_CCP3 0x00001C07
  20130. #define GPIO_PB0_CCP0 0x00010001
  20131. #define GPIO_PB0_PWM2 0x00010002
  20132. #define GPIO_PB0_U1RX 0x00010005
  20133. #define GPIO_PB1_CCP2 0x00010401
  20134. #define GPIO_PB1_PWM3 0x00010402
  20135. #define GPIO_PB1_CCP1 0x00010404
  20136. #define GPIO_PB1_U1TX 0x00010405
  20137. #define GPIO_PB2_I2C0SCL 0x00010801
  20138. #define GPIO_PB2_IDX0 0x00010802
  20139. #define GPIO_PB2_CCP3 0x00010804
  20140. #define GPIO_PB2_CCP0 0x00010805
  20141. #define GPIO_PB3_I2C0SDA 0x00010C01
  20142. #define GPIO_PB3_FAULT0 0x00010C02
  20143. #define GPIO_PB3_FAULT3 0x00010C04
  20144. #define GPIO_PB4_U2RX 0x00011004
  20145. #define GPIO_PB4_CAN0RX 0x00011005
  20146. #define GPIO_PB4_IDX0 0x00011006
  20147. #define GPIO_PB4_U1RX 0x00011007
  20148. #define GPIO_PB5_C0O 0x00011401
  20149. #define GPIO_PB5_CCP5 0x00011402
  20150. #define GPIO_PB5_CCP6 0x00011403
  20151. #define GPIO_PB5_CCP0 0x00011404
  20152. #define GPIO_PB5_CAN0TX 0x00011405
  20153. #define GPIO_PB5_CCP2 0x00011406
  20154. #define GPIO_PB5_U1TX 0x00011407
  20155. #define GPIO_PB6_CCP1 0x00011801
  20156. #define GPIO_PB6_CCP7 0x00011802
  20157. #define GPIO_PB6_C0O 0x00011803
  20158. #define GPIO_PB6_FAULT1 0x00011804
  20159. #define GPIO_PB6_IDX0 0x00011805
  20160. #define GPIO_PB6_CCP5 0x00011806
  20161. #define GPIO_PB7_NMI 0x00011C04
  20162. #define GPIO_PC0_TCK 0x00020003
  20163. #define GPIO_PC0_SWCLK 0x00020003
  20164. #define GPIO_PC1_TMS 0x00020403
  20165. #define GPIO_PC1_SWDIO 0x00020403
  20166. #define GPIO_PC2_TDI 0x00020803
  20167. #define GPIO_PC3_SWO 0x00020C03
  20168. #define GPIO_PC3_TDO 0x00020C03
  20169. #define GPIO_PC4_CCP5 0x00021001
  20170. #define GPIO_PC4_PHA0 0x00021002
  20171. #define GPIO_PC4_PWM6 0x00021004
  20172. #define GPIO_PC4_CCP2 0x00021005
  20173. #define GPIO_PC4_CCP4 0x00021006
  20174. #define GPIO_PC4_CCP1 0x00021009
  20175. #define GPIO_PC5_CCP1 0x00021401
  20176. #define GPIO_PC5_C1O 0x00021402
  20177. #define GPIO_PC5_C0O 0x00021403
  20178. #define GPIO_PC5_FAULT2 0x00021404
  20179. #define GPIO_PC5_CCP3 0x00021405
  20180. #define GPIO_PC6_CCP3 0x00021801
  20181. #define GPIO_PC6_PHB0 0x00021802
  20182. #define GPIO_PC6_PWM7 0x00021804
  20183. #define GPIO_PC6_U1RX 0x00021805
  20184. #define GPIO_PC6_CCP0 0x00021806
  20185. #define GPIO_PC7_CCP4 0x00021C01
  20186. #define GPIO_PC7_PHB0 0x00021C02
  20187. #define GPIO_PC7_CCP0 0x00021C04
  20188. #define GPIO_PC7_U1TX 0x00021C05
  20189. #define GPIO_PC7_C1O 0x00021C07
  20190. #define GPIO_PD0_PWM0 0x00030001
  20191. #define GPIO_PD0_CAN0RX 0x00030002
  20192. #define GPIO_PD0_IDX0 0x00030003
  20193. #define GPIO_PD0_U2RX 0x00030004
  20194. #define GPIO_PD0_U1RX 0x00030005
  20195. #define GPIO_PD0_CCP6 0x00030006
  20196. #define GPIO_PD1_PWM1 0x00030401
  20197. #define GPIO_PD1_CAN0TX 0x00030402
  20198. #define GPIO_PD1_PHA0 0x00030403
  20199. #define GPIO_PD1_U2TX 0x00030404
  20200. #define GPIO_PD1_U1TX 0x00030405
  20201. #define GPIO_PD1_CCP7 0x00030406
  20202. #define GPIO_PD1_CCP2 0x0003040A
  20203. #define GPIO_PD2_U1RX 0x00030801
  20204. #define GPIO_PD2_CCP6 0x00030802
  20205. #define GPIO_PD2_PWM2 0x00030803
  20206. #define GPIO_PD2_CCP5 0x00030804
  20207. #define GPIO_PD3_U1TX 0x00030C01
  20208. #define GPIO_PD3_CCP7 0x00030C02
  20209. #define GPIO_PD3_PWM3 0x00030C03
  20210. #define GPIO_PD3_CCP0 0x00030C04
  20211. #define GPIO_PE0_PWM4 0x00040001
  20212. #define GPIO_PE0_SSI1CLK 0x00040002
  20213. #define GPIO_PE0_CCP3 0x00040003
  20214. #define GPIO_PE1_PWM5 0x00040401
  20215. #define GPIO_PE1_SSI1FSS 0x00040402
  20216. #define GPIO_PE1_FAULT0 0x00040403
  20217. #define GPIO_PE1_CCP2 0x00040404
  20218. #define GPIO_PE1_CCP6 0x00040405
  20219. #define GPIO_PE2_CCP4 0x00040801
  20220. #define GPIO_PE2_SSI1RX 0x00040802
  20221. #define GPIO_PE2_PHA0 0x00040804
  20222. #define GPIO_PE2_CCP2 0x00040805
  20223. #define GPIO_PE3_CCP1 0x00040C01
  20224. #define GPIO_PE3_SSI1TX 0x00040C02
  20225. #define GPIO_PE3_PHB0 0x00040C04
  20226. #define GPIO_PE3_CCP7 0x00040C05
  20227. #define GPIO_PE4_CCP3 0x00041001
  20228. #define GPIO_PE4_FAULT0 0x00041004
  20229. #define GPIO_PE4_U2TX 0x00041005
  20230. #define GPIO_PE4_CCP2 0x00041006
  20231. #endif // PART_LM3S5G36
  20232. //*****************************************************************************
  20233. //
  20234. // LM3S5G51 Port/Pin Mapping Definitions
  20235. //
  20236. //*****************************************************************************
  20237. #ifdef PART_LM3S5G51
  20238. #define GPIO_PA0_U0RX 0x00000001
  20239. #define GPIO_PA0_I2C1SCL 0x00000008
  20240. #define GPIO_PA0_U1RX 0x00000009
  20241. #define GPIO_PA1_U0TX 0x00000401
  20242. #define GPIO_PA1_I2C1SDA 0x00000408
  20243. #define GPIO_PA1_U1TX 0x00000409
  20244. #define GPIO_PA2_SSI0CLK 0x00000801
  20245. #define GPIO_PA2_PWM4 0x00000804
  20246. #define GPIO_PA2_I2S0RXSD 0x00000809
  20247. #define GPIO_PA3_SSI0FSS 0x00000C01
  20248. #define GPIO_PA3_PWM5 0x00000C04
  20249. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  20250. #define GPIO_PA4_SSI0RX 0x00001001
  20251. #define GPIO_PA4_CAN0RX 0x00001005
  20252. #define GPIO_PA4_I2S0TXSCK 0x00001009
  20253. #define GPIO_PA5_SSI0TX 0x00001401
  20254. #define GPIO_PA5_CAN0TX 0x00001405
  20255. #define GPIO_PA5_I2S0TXWS 0x00001409
  20256. #define GPIO_PA6_I2C1SCL 0x00001801
  20257. #define GPIO_PA6_CCP1 0x00001802
  20258. #define GPIO_PA6_PWM0 0x00001804
  20259. #define GPIO_PA6_PWM4 0x00001805
  20260. #define GPIO_PA6_CAN0RX 0x00001806
  20261. #define GPIO_PA6_USB0EPEN 0x00001808
  20262. #define GPIO_PA6_U1CTS 0x00001809
  20263. #define GPIO_PA7_I2C1SDA 0x00001C01
  20264. #define GPIO_PA7_CCP4 0x00001C02
  20265. #define GPIO_PA7_PWM1 0x00001C04
  20266. #define GPIO_PA7_PWM5 0x00001C05
  20267. #define GPIO_PA7_CAN0TX 0x00001C06
  20268. #define GPIO_PA7_CCP3 0x00001C07
  20269. #define GPIO_PA7_USB0PFLT 0x00001C08
  20270. #define GPIO_PA7_U1DCD 0x00001C09
  20271. #define GPIO_PB0_CCP0 0x00010001
  20272. #define GPIO_PB0_PWM2 0x00010002
  20273. #define GPIO_PB0_U1RX 0x00010005
  20274. #define GPIO_PB1_CCP2 0x00010401
  20275. #define GPIO_PB1_PWM3 0x00010402
  20276. #define GPIO_PB1_CCP1 0x00010404
  20277. #define GPIO_PB1_U1TX 0x00010405
  20278. #define GPIO_PB2_I2C0SCL 0x00010801
  20279. #define GPIO_PB2_IDX0 0x00010802
  20280. #define GPIO_PB2_CCP3 0x00010804
  20281. #define GPIO_PB2_CCP0 0x00010805
  20282. #define GPIO_PB2_USB0EPEN 0x00010808
  20283. #define GPIO_PB3_I2C0SDA 0x00010C01
  20284. #define GPIO_PB3_FAULT0 0x00010C02
  20285. #define GPIO_PB3_FAULT3 0x00010C04
  20286. #define GPIO_PB3_USB0PFLT 0x00010C08
  20287. #define GPIO_PB4_U2RX 0x00011004
  20288. #define GPIO_PB4_CAN0RX 0x00011005
  20289. #define GPIO_PB4_IDX0 0x00011006
  20290. #define GPIO_PB4_U1RX 0x00011007
  20291. #define GPIO_PB5_C0O 0x00011401
  20292. #define GPIO_PB5_CCP5 0x00011402
  20293. #define GPIO_PB5_CCP6 0x00011403
  20294. #define GPIO_PB5_CCP0 0x00011404
  20295. #define GPIO_PB5_CAN0TX 0x00011405
  20296. #define GPIO_PB5_CCP2 0x00011406
  20297. #define GPIO_PB5_U1TX 0x00011407
  20298. #define GPIO_PB6_CCP1 0x00011801
  20299. #define GPIO_PB6_CCP7 0x00011802
  20300. #define GPIO_PB6_C0O 0x00011803
  20301. #define GPIO_PB6_FAULT1 0x00011804
  20302. #define GPIO_PB6_IDX0 0x00011805
  20303. #define GPIO_PB6_CCP5 0x00011806
  20304. #define GPIO_PB6_I2S0TXSCK 0x00011809
  20305. #define GPIO_PB7_NMI 0x00011C04
  20306. #define GPIO_PC0_TCK 0x00020003
  20307. #define GPIO_PC0_SWCLK 0x00020003
  20308. #define GPIO_PC1_TMS 0x00020403
  20309. #define GPIO_PC1_SWDIO 0x00020403
  20310. #define GPIO_PC2_TDI 0x00020803
  20311. #define GPIO_PC3_SWO 0x00020C03
  20312. #define GPIO_PC3_TDO 0x00020C03
  20313. #define GPIO_PC4_CCP5 0x00021001
  20314. #define GPIO_PC4_PHA0 0x00021002
  20315. #define GPIO_PC4_CCP2 0x00021005
  20316. #define GPIO_PC4_CCP4 0x00021006
  20317. #define GPIO_PC4_CCP1 0x00021009
  20318. #define GPIO_PC5_CCP1 0x00021401
  20319. #define GPIO_PC5_C1O 0x00021402
  20320. #define GPIO_PC5_C0O 0x00021403
  20321. #define GPIO_PC5_FAULT2 0x00021404
  20322. #define GPIO_PC5_CCP3 0x00021405
  20323. #define GPIO_PC5_USB0EPEN 0x00021406
  20324. #define GPIO_PC6_CCP3 0x00021801
  20325. #define GPIO_PC6_PHB0 0x00021802
  20326. #define GPIO_PC6_U1RX 0x00021805
  20327. #define GPIO_PC6_CCP0 0x00021806
  20328. #define GPIO_PC6_USB0PFLT 0x00021807
  20329. #define GPIO_PC7_CCP4 0x00021C01
  20330. #define GPIO_PC7_PHB0 0x00021C02
  20331. #define GPIO_PC7_CCP0 0x00021C04
  20332. #define GPIO_PC7_U1TX 0x00021C05
  20333. #define GPIO_PC7_USB0PFLT 0x00021C06
  20334. #define GPIO_PC7_C1O 0x00021C07
  20335. #define GPIO_PD0_PWM0 0x00030001
  20336. #define GPIO_PD0_CAN0RX 0x00030002
  20337. #define GPIO_PD0_IDX0 0x00030003
  20338. #define GPIO_PD0_U2RX 0x00030004
  20339. #define GPIO_PD0_U1RX 0x00030005
  20340. #define GPIO_PD0_CCP6 0x00030006
  20341. #define GPIO_PD0_I2S0RXSCK 0x00030008
  20342. #define GPIO_PD0_U1CTS 0x00030009
  20343. #define GPIO_PD1_PWM1 0x00030401
  20344. #define GPIO_PD1_CAN0TX 0x00030402
  20345. #define GPIO_PD1_PHA0 0x00030403
  20346. #define GPIO_PD1_U2TX 0x00030404
  20347. #define GPIO_PD1_U1TX 0x00030405
  20348. #define GPIO_PD1_CCP7 0x00030406
  20349. #define GPIO_PD1_I2S0RXWS 0x00030408
  20350. #define GPIO_PD1_U1DCD 0x00030409
  20351. #define GPIO_PD1_CCP2 0x0003040A
  20352. #define GPIO_PD1_PHB1 0x0003040B
  20353. #define GPIO_PD2_U1RX 0x00030801
  20354. #define GPIO_PD2_CCP6 0x00030802
  20355. #define GPIO_PD2_PWM2 0x00030803
  20356. #define GPIO_PD2_CCP5 0x00030804
  20357. #define GPIO_PD3_U1TX 0x00030C01
  20358. #define GPIO_PD3_CCP7 0x00030C02
  20359. #define GPIO_PD3_PWM3 0x00030C03
  20360. #define GPIO_PD3_CCP0 0x00030C04
  20361. #define GPIO_PD4_CCP0 0x00031001
  20362. #define GPIO_PD4_CCP3 0x00031002
  20363. #define GPIO_PD4_I2S0RXSD 0x00031008
  20364. #define GPIO_PD4_U1RI 0x00031009
  20365. #define GPIO_PD5_CCP2 0x00031401
  20366. #define GPIO_PD5_CCP4 0x00031402
  20367. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  20368. #define GPIO_PD5_U2RX 0x00031409
  20369. #define GPIO_PD6_FAULT0 0x00031801
  20370. #define GPIO_PD6_I2S0TXSCK 0x00031808
  20371. #define GPIO_PD6_U2TX 0x00031809
  20372. #define GPIO_PD7_IDX0 0x00031C01
  20373. #define GPIO_PD7_C0O 0x00031C02
  20374. #define GPIO_PD7_CCP1 0x00031C03
  20375. #define GPIO_PD7_I2S0TXWS 0x00031C08
  20376. #define GPIO_PD7_U1DTR 0x00031C09
  20377. #define GPIO_PE0_PWM4 0x00040001
  20378. #define GPIO_PE0_SSI1CLK 0x00040002
  20379. #define GPIO_PE0_CCP3 0x00040003
  20380. #define GPIO_PE0_USB0PFLT 0x00040009
  20381. #define GPIO_PE1_PWM5 0x00040401
  20382. #define GPIO_PE1_SSI1FSS 0x00040402
  20383. #define GPIO_PE1_FAULT0 0x00040403
  20384. #define GPIO_PE1_CCP2 0x00040404
  20385. #define GPIO_PE1_CCP6 0x00040405
  20386. #define GPIO_PE2_CCP4 0x00040801
  20387. #define GPIO_PE2_SSI1RX 0x00040802
  20388. #define GPIO_PE2_PHB1 0x00040803
  20389. #define GPIO_PE2_PHA0 0x00040804
  20390. #define GPIO_PE2_CCP2 0x00040805
  20391. #define GPIO_PE3_CCP1 0x00040C01
  20392. #define GPIO_PE3_SSI1TX 0x00040C02
  20393. #define GPIO_PE3_PHA1 0x00040C03
  20394. #define GPIO_PE3_PHB0 0x00040C04
  20395. #define GPIO_PE3_CCP7 0x00040C05
  20396. #define GPIO_PE4_CCP3 0x00041001
  20397. #define GPIO_PE4_FAULT0 0x00041004
  20398. #define GPIO_PE4_U2TX 0x00041005
  20399. #define GPIO_PE4_CCP2 0x00041006
  20400. #define GPIO_PE4_I2S0TXWS 0x00041009
  20401. #define GPIO_PE5_CCP5 0x00041401
  20402. #define GPIO_PE5_I2S0TXSD 0x00041409
  20403. #define GPIO_PE6_PWM4 0x00041801
  20404. #define GPIO_PE6_C1O 0x00041802
  20405. #define GPIO_PE6_U1CTS 0x00041809
  20406. #define GPIO_PE7_PWM5 0x00041C01
  20407. #define GPIO_PE7_U1DCD 0x00041C09
  20408. #define GPIO_PF0_CAN1RX 0x00050001
  20409. #define GPIO_PF0_PHB0 0x00050002
  20410. #define GPIO_PF0_PWM0 0x00050003
  20411. #define GPIO_PF0_I2S0TXSD 0x00050008
  20412. #define GPIO_PF0_U1DSR 0x00050009
  20413. #define GPIO_PF1_CAN1TX 0x00050401
  20414. #define GPIO_PF1_IDX1 0x00050402
  20415. #define GPIO_PF1_PWM1 0x00050403
  20416. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  20417. #define GPIO_PF1_U1RTS 0x00050409
  20418. #define GPIO_PF1_CCP3 0x0005040A
  20419. #define GPIO_PF2_PWM4 0x00050802
  20420. #define GPIO_PF2_PWM2 0x00050804
  20421. #define GPIO_PF2_SSI1CLK 0x00050809
  20422. #define GPIO_PF3_PWM5 0x00050C02
  20423. #define GPIO_PF3_PWM3 0x00050C04
  20424. #define GPIO_PF3_SSI1FSS 0x00050C09
  20425. #define GPIO_PF4_CCP0 0x00051001
  20426. #define GPIO_PF4_C0O 0x00051002
  20427. #define GPIO_PF4_FAULT0 0x00051004
  20428. #define GPIO_PF4_SSI1RX 0x00051009
  20429. #define GPIO_PF5_CCP2 0x00051401
  20430. #define GPIO_PF5_C1O 0x00051402
  20431. #define GPIO_PF5_SSI1TX 0x00051409
  20432. #define GPIO_PF6_CCP1 0x00051801
  20433. #define GPIO_PF6_PHA0 0x00051804
  20434. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  20435. #define GPIO_PF6_U1RTS 0x0005180A
  20436. #define GPIO_PF7_CCP4 0x00051C01
  20437. #define GPIO_PF7_PHB0 0x00051C04
  20438. #define GPIO_PF7_FAULT1 0x00051C09
  20439. #define GPIO_PG0_U2RX 0x00060001
  20440. #define GPIO_PG0_PWM0 0x00060002
  20441. #define GPIO_PG0_I2C1SCL 0x00060003
  20442. #define GPIO_PG0_PWM4 0x00060004
  20443. #define GPIO_PG0_USB0EPEN 0x00060007
  20444. #define GPIO_PG1_U2TX 0x00060401
  20445. #define GPIO_PG1_PWM1 0x00060402
  20446. #define GPIO_PG1_I2C1SDA 0x00060403
  20447. #define GPIO_PG1_PWM5 0x00060404
  20448. #define GPIO_PG2_PWM0 0x00060801
  20449. #define GPIO_PG2_FAULT0 0x00060804
  20450. #define GPIO_PG2_IDX1 0x00060808
  20451. #define GPIO_PG2_I2S0RXSD 0x00060809
  20452. #define GPIO_PG3_PWM1 0x00060C01
  20453. #define GPIO_PG3_FAULT2 0x00060C04
  20454. #define GPIO_PG3_FAULT0 0x00060C08
  20455. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  20456. #define GPIO_PG4_CCP3 0x00061001
  20457. #define GPIO_PG4_FAULT1 0x00061004
  20458. #define GPIO_PG4_U1RI 0x0006100A
  20459. #define GPIO_PG5_CCP5 0x00061401
  20460. #define GPIO_PG5_IDX0 0x00061404
  20461. #define GPIO_PG5_FAULT1 0x00061405
  20462. #define GPIO_PG5_I2S0RXSCK 0x00061409
  20463. #define GPIO_PG5_U1DTR 0x0006140A
  20464. #define GPIO_PG6_PHA1 0x00061801
  20465. #define GPIO_PG6_FAULT1 0x00061808
  20466. #define GPIO_PG6_I2S0RXWS 0x00061809
  20467. #define GPIO_PG6_U1RI 0x0006180A
  20468. #define GPIO_PG7_PHB1 0x00061C01
  20469. #define GPIO_PG7_CCP5 0x00061C08
  20470. #define GPIO_PH0_CCP6 0x00070001
  20471. #define GPIO_PH0_PWM2 0x00070002
  20472. #define GPIO_PH0_PWM4 0x00070009
  20473. #define GPIO_PH1_CCP7 0x00070401
  20474. #define GPIO_PH1_PWM3 0x00070402
  20475. #define GPIO_PH1_PWM5 0x00070409
  20476. #define GPIO_PH2_IDX1 0x00070801
  20477. #define GPIO_PH2_C1O 0x00070802
  20478. #define GPIO_PH2_FAULT3 0x00070804
  20479. #define GPIO_PH3_PHB0 0x00070C01
  20480. #define GPIO_PH3_FAULT0 0x00070C02
  20481. #define GPIO_PH3_USB0EPEN 0x00070C04
  20482. #define GPIO_PH4_USB0PFLT 0x00071004
  20483. #define GPIO_PH4_SSI1CLK 0x0007100B
  20484. #define GPIO_PH5_FAULT2 0x0007140A
  20485. #define GPIO_PH5_SSI1FSS 0x0007140B
  20486. #define GPIO_PH6_PWM4 0x0007180A
  20487. #define GPIO_PH6_SSI1RX 0x0007180B
  20488. #define GPIO_PH7_PWM5 0x00071C0A
  20489. #define GPIO_PH7_SSI1TX 0x00071C0B
  20490. #define GPIO_PJ0_PWM0 0x0008000A
  20491. #define GPIO_PJ0_I2C1SCL 0x0008000B
  20492. #define GPIO_PJ1_USB0PFLT 0x00080409
  20493. #define GPIO_PJ1_PWM1 0x0008040A
  20494. #define GPIO_PJ1_I2C1SDA 0x0008040B
  20495. #define GPIO_PJ2_CCP0 0x00080809
  20496. #define GPIO_PJ2_FAULT0 0x0008080A
  20497. #endif // PART_LM3S5G51
  20498. //*****************************************************************************
  20499. //
  20500. // LM3S5G56 Port/Pin Mapping Definitions
  20501. //
  20502. //*****************************************************************************
  20503. #ifdef PART_LM3S5G56
  20504. #define GPIO_PA0_U0RX 0x00000001
  20505. #define GPIO_PA0_I2C1SCL 0x00000008
  20506. #define GPIO_PA0_U1RX 0x00000009
  20507. #define GPIO_PA1_U0TX 0x00000401
  20508. #define GPIO_PA1_I2C1SDA 0x00000408
  20509. #define GPIO_PA1_U1TX 0x00000409
  20510. #define GPIO_PA2_SSI0CLK 0x00000801
  20511. #define GPIO_PA2_PWM4 0x00000804
  20512. #define GPIO_PA3_SSI0FSS 0x00000C01
  20513. #define GPIO_PA3_PWM5 0x00000C04
  20514. #define GPIO_PA4_SSI0RX 0x00001001
  20515. #define GPIO_PA4_CAN0RX 0x00001005
  20516. #define GPIO_PA5_SSI0TX 0x00001401
  20517. #define GPIO_PA5_CAN0TX 0x00001405
  20518. #define GPIO_PA6_I2C1SCL 0x00001801
  20519. #define GPIO_PA6_CCP1 0x00001802
  20520. #define GPIO_PA6_PWM0 0x00001804
  20521. #define GPIO_PA6_PWM4 0x00001805
  20522. #define GPIO_PA6_CAN0RX 0x00001806
  20523. #define GPIO_PA6_USB0EPEN 0x00001808
  20524. #define GPIO_PA7_I2C1SDA 0x00001C01
  20525. #define GPIO_PA7_CCP4 0x00001C02
  20526. #define GPIO_PA7_PWM1 0x00001C04
  20527. #define GPIO_PA7_PWM5 0x00001C05
  20528. #define GPIO_PA7_CAN0TX 0x00001C06
  20529. #define GPIO_PA7_CCP3 0x00001C07
  20530. #define GPIO_PA7_USB0PFLT 0x00001C08
  20531. #define GPIO_PB0_CCP0 0x00010001
  20532. #define GPIO_PB0_PWM2 0x00010002
  20533. #define GPIO_PB0_U1RX 0x00010005
  20534. #define GPIO_PB1_CCP2 0x00010401
  20535. #define GPIO_PB1_PWM3 0x00010402
  20536. #define GPIO_PB1_CCP1 0x00010404
  20537. #define GPIO_PB1_U1TX 0x00010405
  20538. #define GPIO_PB2_I2C0SCL 0x00010801
  20539. #define GPIO_PB2_IDX0 0x00010802
  20540. #define GPIO_PB2_CCP3 0x00010804
  20541. #define GPIO_PB2_CCP0 0x00010805
  20542. #define GPIO_PB2_USB0EPEN 0x00010808
  20543. #define GPIO_PB3_I2C0SDA 0x00010C01
  20544. #define GPIO_PB3_FAULT0 0x00010C02
  20545. #define GPIO_PB3_FAULT3 0x00010C04
  20546. #define GPIO_PB3_USB0PFLT 0x00010C08
  20547. #define GPIO_PB4_U2RX 0x00011004
  20548. #define GPIO_PB4_CAN0RX 0x00011005
  20549. #define GPIO_PB4_IDX0 0x00011006
  20550. #define GPIO_PB4_U1RX 0x00011007
  20551. #define GPIO_PB5_C0O 0x00011401
  20552. #define GPIO_PB5_CCP5 0x00011402
  20553. #define GPIO_PB5_CCP6 0x00011403
  20554. #define GPIO_PB5_CCP0 0x00011404
  20555. #define GPIO_PB5_CAN0TX 0x00011405
  20556. #define GPIO_PB5_CCP2 0x00011406
  20557. #define GPIO_PB5_U1TX 0x00011407
  20558. #define GPIO_PB6_CCP1 0x00011801
  20559. #define GPIO_PB6_CCP7 0x00011802
  20560. #define GPIO_PB6_C0O 0x00011803
  20561. #define GPIO_PB6_FAULT1 0x00011804
  20562. #define GPIO_PB6_IDX0 0x00011805
  20563. #define GPIO_PB6_CCP5 0x00011806
  20564. #define GPIO_PB7_NMI 0x00011C04
  20565. #define GPIO_PC0_TCK 0x00020003
  20566. #define GPIO_PC0_SWCLK 0x00020003
  20567. #define GPIO_PC1_TMS 0x00020403
  20568. #define GPIO_PC1_SWDIO 0x00020403
  20569. #define GPIO_PC2_TDI 0x00020803
  20570. #define GPIO_PC3_SWO 0x00020C03
  20571. #define GPIO_PC3_TDO 0x00020C03
  20572. #define GPIO_PC4_CCP5 0x00021001
  20573. #define GPIO_PC4_PHA0 0x00021002
  20574. #define GPIO_PC4_CCP2 0x00021005
  20575. #define GPIO_PC4_CCP4 0x00021006
  20576. #define GPIO_PC4_CCP1 0x00021009
  20577. #define GPIO_PC5_CCP1 0x00021401
  20578. #define GPIO_PC5_C1O 0x00021402
  20579. #define GPIO_PC5_C0O 0x00021403
  20580. #define GPIO_PC5_FAULT2 0x00021404
  20581. #define GPIO_PC5_CCP3 0x00021405
  20582. #define GPIO_PC5_USB0EPEN 0x00021406
  20583. #define GPIO_PC6_CCP3 0x00021801
  20584. #define GPIO_PC6_PHB0 0x00021802
  20585. #define GPIO_PC6_U1RX 0x00021805
  20586. #define GPIO_PC6_CCP0 0x00021806
  20587. #define GPIO_PC6_USB0PFLT 0x00021807
  20588. #define GPIO_PC7_CCP4 0x00021C01
  20589. #define GPIO_PC7_PHB0 0x00021C02
  20590. #define GPIO_PC7_CCP0 0x00021C04
  20591. #define GPIO_PC7_U1TX 0x00021C05
  20592. #define GPIO_PC7_USB0PFLT 0x00021C06
  20593. #define GPIO_PC7_C1O 0x00021C07
  20594. #define GPIO_PD0_PWM0 0x00030001
  20595. #define GPIO_PD0_CAN0RX 0x00030002
  20596. #define GPIO_PD0_IDX0 0x00030003
  20597. #define GPIO_PD0_U2RX 0x00030004
  20598. #define GPIO_PD0_U1RX 0x00030005
  20599. #define GPIO_PD0_CCP6 0x00030006
  20600. #define GPIO_PD1_PWM1 0x00030401
  20601. #define GPIO_PD1_CAN0TX 0x00030402
  20602. #define GPIO_PD1_PHA0 0x00030403
  20603. #define GPIO_PD1_U2TX 0x00030404
  20604. #define GPIO_PD1_U1TX 0x00030405
  20605. #define GPIO_PD1_CCP7 0x00030406
  20606. #define GPIO_PD1_CCP2 0x0003040A
  20607. #define GPIO_PD2_U1RX 0x00030801
  20608. #define GPIO_PD2_CCP6 0x00030802
  20609. #define GPIO_PD2_PWM2 0x00030803
  20610. #define GPIO_PD2_CCP5 0x00030804
  20611. #define GPIO_PD3_U1TX 0x00030C01
  20612. #define GPIO_PD3_CCP7 0x00030C02
  20613. #define GPIO_PD3_PWM3 0x00030C03
  20614. #define GPIO_PD3_CCP0 0x00030C04
  20615. #define GPIO_PE0_PWM4 0x00040001
  20616. #define GPIO_PE0_SSI1CLK 0x00040002
  20617. #define GPIO_PE0_CCP3 0x00040003
  20618. #define GPIO_PE0_USB0PFLT 0x00040009
  20619. #define GPIO_PE1_PWM5 0x00040401
  20620. #define GPIO_PE1_SSI1FSS 0x00040402
  20621. #define GPIO_PE1_FAULT0 0x00040403
  20622. #define GPIO_PE1_CCP2 0x00040404
  20623. #define GPIO_PE1_CCP6 0x00040405
  20624. #define GPIO_PE2_CCP4 0x00040801
  20625. #define GPIO_PE2_SSI1RX 0x00040802
  20626. #define GPIO_PE2_PHA0 0x00040804
  20627. #define GPIO_PE2_CCP2 0x00040805
  20628. #define GPIO_PE3_CCP1 0x00040C01
  20629. #define GPIO_PE3_SSI1TX 0x00040C02
  20630. #define GPIO_PE3_PHB0 0x00040C04
  20631. #define GPIO_PE3_CCP7 0x00040C05
  20632. #define GPIO_PE4_CCP3 0x00041001
  20633. #define GPIO_PE4_FAULT0 0x00041004
  20634. #define GPIO_PE4_U2TX 0x00041005
  20635. #define GPIO_PE4_CCP2 0x00041006
  20636. #endif // PART_LM3S5G56
  20637. //*****************************************************************************
  20638. //
  20639. // LM3S5K31 Port/Pin Mapping Definitions
  20640. //
  20641. //*****************************************************************************
  20642. #ifdef PART_LM3S5K31
  20643. #define GPIO_PA0_U0RX 0x00000001
  20644. #define GPIO_PA0_I2C1SCL 0x00000008
  20645. #define GPIO_PA0_U1RX 0x00000009
  20646. #define GPIO_PA1_U0TX 0x00000401
  20647. #define GPIO_PA1_I2C1SDA 0x00000408
  20648. #define GPIO_PA1_U1TX 0x00000409
  20649. #define GPIO_PA2_SSI0CLK 0x00000801
  20650. #define GPIO_PA2_PWM4 0x00000804
  20651. #define GPIO_PA3_SSI0FSS 0x00000C01
  20652. #define GPIO_PA3_PWM5 0x00000C04
  20653. #define GPIO_PA4_SSI0RX 0x00001001
  20654. #define GPIO_PA4_CAN0RX 0x00001005
  20655. #define GPIO_PA5_SSI0TX 0x00001401
  20656. #define GPIO_PA5_CAN0TX 0x00001405
  20657. #define GPIO_PA6_I2C1SCL 0x00001801
  20658. #define GPIO_PA6_CCP1 0x00001802
  20659. #define GPIO_PA6_PWM0 0x00001804
  20660. #define GPIO_PA6_PWM4 0x00001805
  20661. #define GPIO_PA6_CAN0RX 0x00001806
  20662. #define GPIO_PA6_U1CTS 0x00001809
  20663. #define GPIO_PA7_I2C1SDA 0x00001C01
  20664. #define GPIO_PA7_CCP4 0x00001C02
  20665. #define GPIO_PA7_PWM1 0x00001C04
  20666. #define GPIO_PA7_PWM5 0x00001C05
  20667. #define GPIO_PA7_CAN0TX 0x00001C06
  20668. #define GPIO_PA7_CCP3 0x00001C07
  20669. #define GPIO_PA7_U1DCD 0x00001C09
  20670. #define GPIO_PB0_CCP0 0x00010001
  20671. #define GPIO_PB0_PWM2 0x00010002
  20672. #define GPIO_PB0_U1RX 0x00010005
  20673. #define GPIO_PB1_CCP2 0x00010401
  20674. #define GPIO_PB1_PWM3 0x00010402
  20675. #define GPIO_PB1_CCP1 0x00010404
  20676. #define GPIO_PB1_U1TX 0x00010405
  20677. #define GPIO_PB2_I2C0SCL 0x00010801
  20678. #define GPIO_PB2_IDX0 0x00010802
  20679. #define GPIO_PB2_CCP3 0x00010804
  20680. #define GPIO_PB2_CCP0 0x00010805
  20681. #define GPIO_PB3_I2C0SDA 0x00010C01
  20682. #define GPIO_PB3_FAULT0 0x00010C02
  20683. #define GPIO_PB3_FAULT3 0x00010C04
  20684. #define GPIO_PB4_U2RX 0x00011004
  20685. #define GPIO_PB4_CAN0RX 0x00011005
  20686. #define GPIO_PB4_IDX0 0x00011006
  20687. #define GPIO_PB4_U1RX 0x00011007
  20688. #define GPIO_PB5_C0O 0x00011401
  20689. #define GPIO_PB5_CCP5 0x00011402
  20690. #define GPIO_PB5_CCP0 0x00011404
  20691. #define GPIO_PB5_CAN0TX 0x00011405
  20692. #define GPIO_PB5_CCP2 0x00011406
  20693. #define GPIO_PB5_U1TX 0x00011407
  20694. #define GPIO_PB6_CCP1 0x00011801
  20695. #define GPIO_PB6_C0O 0x00011803
  20696. #define GPIO_PB6_FAULT1 0x00011804
  20697. #define GPIO_PB6_IDX0 0x00011805
  20698. #define GPIO_PB6_CCP5 0x00011806
  20699. #define GPIO_PB7_NMI 0x00011C04
  20700. #define GPIO_PC0_TCK 0x00020003
  20701. #define GPIO_PC0_SWCLK 0x00020003
  20702. #define GPIO_PC1_TMS 0x00020403
  20703. #define GPIO_PC1_SWDIO 0x00020403
  20704. #define GPIO_PC2_TDI 0x00020803
  20705. #define GPIO_PC3_SWO 0x00020C03
  20706. #define GPIO_PC3_TDO 0x00020C03
  20707. #define GPIO_PC4_CCP5 0x00021001
  20708. #define GPIO_PC4_PHA0 0x00021002
  20709. #define GPIO_PC4_CCP2 0x00021005
  20710. #define GPIO_PC4_CCP4 0x00021006
  20711. #define GPIO_PC4_CCP1 0x00021009
  20712. #define GPIO_PC5_CCP1 0x00021401
  20713. #define GPIO_PC5_C1O 0x00021402
  20714. #define GPIO_PC5_C0O 0x00021403
  20715. #define GPIO_PC5_FAULT2 0x00021404
  20716. #define GPIO_PC5_CCP3 0x00021405
  20717. #define GPIO_PC6_CCP3 0x00021801
  20718. #define GPIO_PC6_PHB0 0x00021802
  20719. #define GPIO_PC6_U1RX 0x00021805
  20720. #define GPIO_PC6_CCP0 0x00021806
  20721. #define GPIO_PC7_CCP4 0x00021C01
  20722. #define GPIO_PC7_PHB0 0x00021C02
  20723. #define GPIO_PC7_CCP0 0x00021C04
  20724. #define GPIO_PC7_U1TX 0x00021C05
  20725. #define GPIO_PC7_C1O 0x00021C07
  20726. #define GPIO_PD0_PWM0 0x00030001
  20727. #define GPIO_PD0_CAN0RX 0x00030002
  20728. #define GPIO_PD0_IDX0 0x00030003
  20729. #define GPIO_PD0_U2RX 0x00030004
  20730. #define GPIO_PD0_U1RX 0x00030005
  20731. #define GPIO_PD0_U1CTS 0x00030009
  20732. #define GPIO_PD1_PWM1 0x00030401
  20733. #define GPIO_PD1_CAN0TX 0x00030402
  20734. #define GPIO_PD1_PHA0 0x00030403
  20735. #define GPIO_PD1_U2TX 0x00030404
  20736. #define GPIO_PD1_U1TX 0x00030405
  20737. #define GPIO_PD1_U1DCD 0x00030409
  20738. #define GPIO_PD1_CCP2 0x0003040A
  20739. #define GPIO_PD1_PHB1 0x0003040B
  20740. #define GPIO_PD2_U1RX 0x00030801
  20741. #define GPIO_PD2_PWM2 0x00030803
  20742. #define GPIO_PD2_CCP5 0x00030804
  20743. #define GPIO_PD3_U1TX 0x00030C01
  20744. #define GPIO_PD3_PWM3 0x00030C03
  20745. #define GPIO_PD3_CCP0 0x00030C04
  20746. #define GPIO_PD4_CCP0 0x00031001
  20747. #define GPIO_PD4_CCP3 0x00031002
  20748. #define GPIO_PD4_U1RI 0x00031009
  20749. #define GPIO_PD5_CCP2 0x00031401
  20750. #define GPIO_PD5_CCP4 0x00031402
  20751. #define GPIO_PD5_U2RX 0x00031409
  20752. #define GPIO_PD6_FAULT0 0x00031801
  20753. #define GPIO_PD6_U2TX 0x00031809
  20754. #define GPIO_PD7_IDX0 0x00031C01
  20755. #define GPIO_PD7_C0O 0x00031C02
  20756. #define GPIO_PD7_CCP1 0x00031C03
  20757. #define GPIO_PD7_U1DTR 0x00031C09
  20758. #define GPIO_PE0_PWM4 0x00040001
  20759. #define GPIO_PE0_SSI1CLK 0x00040002
  20760. #define GPIO_PE0_CCP3 0x00040003
  20761. #define GPIO_PE1_PWM5 0x00040401
  20762. #define GPIO_PE1_SSI1FSS 0x00040402
  20763. #define GPIO_PE1_FAULT0 0x00040403
  20764. #define GPIO_PE1_CCP2 0x00040404
  20765. #define GPIO_PE2_CCP4 0x00040801
  20766. #define GPIO_PE2_SSI1RX 0x00040802
  20767. #define GPIO_PE2_PHB1 0x00040803
  20768. #define GPIO_PE2_PHA0 0x00040804
  20769. #define GPIO_PE2_CCP2 0x00040805
  20770. #define GPIO_PE3_CCP1 0x00040C01
  20771. #define GPIO_PE3_SSI1TX 0x00040C02
  20772. #define GPIO_PE3_PHA1 0x00040C03
  20773. #define GPIO_PE3_PHB0 0x00040C04
  20774. #define GPIO_PE4_CCP3 0x00041001
  20775. #define GPIO_PE4_FAULT0 0x00041004
  20776. #define GPIO_PE4_U2TX 0x00041005
  20777. #define GPIO_PE4_CCP2 0x00041006
  20778. #define GPIO_PE5_CCP5 0x00041401
  20779. #define GPIO_PE6_PWM4 0x00041801
  20780. #define GPIO_PE6_C1O 0x00041802
  20781. #define GPIO_PE6_U1CTS 0x00041809
  20782. #define GPIO_PE7_PWM5 0x00041C01
  20783. #define GPIO_PE7_U1DCD 0x00041C09
  20784. #define GPIO_PF0_PHB0 0x00050002
  20785. #define GPIO_PF0_PWM0 0x00050003
  20786. #define GPIO_PF0_U1DSR 0x00050009
  20787. #define GPIO_PF1_IDX1 0x00050402
  20788. #define GPIO_PF1_PWM1 0x00050403
  20789. #define GPIO_PF1_U1RTS 0x00050409
  20790. #define GPIO_PF1_CCP3 0x0005040A
  20791. #define GPIO_PF2_PWM4 0x00050802
  20792. #define GPIO_PF2_PWM2 0x00050804
  20793. #define GPIO_PF2_SSI1CLK 0x00050809
  20794. #define GPIO_PF3_PWM5 0x00050C02
  20795. #define GPIO_PF3_PWM3 0x00050C04
  20796. #define GPIO_PF3_SSI1FSS 0x00050C09
  20797. #define GPIO_PF4_CCP0 0x00051001
  20798. #define GPIO_PF4_C0O 0x00051002
  20799. #define GPIO_PF4_FAULT0 0x00051004
  20800. #define GPIO_PF4_SSI1RX 0x00051009
  20801. #define GPIO_PF5_CCP2 0x00051401
  20802. #define GPIO_PF5_C1O 0x00051402
  20803. #define GPIO_PF5_SSI1TX 0x00051409
  20804. #define GPIO_PF6_CCP1 0x00051801
  20805. #define GPIO_PF6_PHA0 0x00051804
  20806. #define GPIO_PF6_U1RTS 0x0005180A
  20807. #define GPIO_PF7_CCP4 0x00051C01
  20808. #define GPIO_PF7_PHB0 0x00051C04
  20809. #define GPIO_PF7_FAULT1 0x00051C09
  20810. #define GPIO_PG0_U2RX 0x00060001
  20811. #define GPIO_PG0_PWM0 0x00060002
  20812. #define GPIO_PG0_I2C1SCL 0x00060003
  20813. #define GPIO_PG0_PWM4 0x00060004
  20814. #define GPIO_PG1_U2TX 0x00060401
  20815. #define GPIO_PG1_PWM1 0x00060402
  20816. #define GPIO_PG1_I2C1SDA 0x00060403
  20817. #define GPIO_PG1_PWM5 0x00060404
  20818. #define GPIO_PG2_PWM0 0x00060801
  20819. #define GPIO_PG2_FAULT0 0x00060804
  20820. #define GPIO_PG2_IDX1 0x00060808
  20821. #define GPIO_PG3_PWM1 0x00060C01
  20822. #define GPIO_PG3_FAULT2 0x00060C04
  20823. #define GPIO_PG3_FAULT0 0x00060C08
  20824. #define GPIO_PG4_CCP3 0x00061001
  20825. #define GPIO_PG4_FAULT1 0x00061004
  20826. #define GPIO_PG4_U1RI 0x0006100A
  20827. #define GPIO_PG5_CCP5 0x00061401
  20828. #define GPIO_PG5_IDX0 0x00061404
  20829. #define GPIO_PG5_FAULT1 0x00061405
  20830. #define GPIO_PG5_U1DTR 0x0006140A
  20831. #define GPIO_PG6_PHA1 0x00061801
  20832. #define GPIO_PG6_FAULT1 0x00061808
  20833. #define GPIO_PG6_U1RI 0x0006180A
  20834. #define GPIO_PG7_PHB1 0x00061C01
  20835. #define GPIO_PG7_CCP5 0x00061C08
  20836. #define GPIO_PH0_PWM2 0x00070002
  20837. #define GPIO_PH0_PWM4 0x00070009
  20838. #define GPIO_PH1_PWM3 0x00070402
  20839. #define GPIO_PH1_PWM5 0x00070409
  20840. #define GPIO_PH2_IDX1 0x00070801
  20841. #define GPIO_PH2_C1O 0x00070802
  20842. #define GPIO_PH2_FAULT3 0x00070804
  20843. #define GPIO_PH3_PHB0 0x00070C01
  20844. #define GPIO_PH3_FAULT0 0x00070C02
  20845. #define GPIO_PH4_SSI1CLK 0x0007100B
  20846. #define GPIO_PH5_FAULT2 0x0007140A
  20847. #define GPIO_PH5_SSI1FSS 0x0007140B
  20848. #define GPIO_PH6_PWM4 0x0007180A
  20849. #define GPIO_PH6_SSI1RX 0x0007180B
  20850. #define GPIO_PH7_PWM5 0x00071C0A
  20851. #define GPIO_PH7_SSI1TX 0x00071C0B
  20852. #define GPIO_PJ0_PWM0 0x0008000A
  20853. #define GPIO_PJ0_I2C1SCL 0x0008000B
  20854. #define GPIO_PJ1_PWM1 0x0008040A
  20855. #define GPIO_PJ1_I2C1SDA 0x0008040B
  20856. #define GPIO_PJ2_CCP0 0x00080809
  20857. #define GPIO_PJ2_FAULT0 0x0008080A
  20858. #endif // PART_LM3S5K31
  20859. //*****************************************************************************
  20860. //
  20861. // LM3S5K36 Port/Pin Mapping Definitions
  20862. //
  20863. //*****************************************************************************
  20864. #ifdef PART_LM3S5K36
  20865. #define GPIO_PA0_U0RX 0x00000001
  20866. #define GPIO_PA0_I2C1SCL 0x00000008
  20867. #define GPIO_PA0_U1RX 0x00000009
  20868. #define GPIO_PA1_U0TX 0x00000401
  20869. #define GPIO_PA1_I2C1SDA 0x00000408
  20870. #define GPIO_PA1_U1TX 0x00000409
  20871. #define GPIO_PA2_SSI0CLK 0x00000801
  20872. #define GPIO_PA2_PWM4 0x00000804
  20873. #define GPIO_PA3_SSI0FSS 0x00000C01
  20874. #define GPIO_PA3_PWM5 0x00000C04
  20875. #define GPIO_PA4_SSI0RX 0x00001001
  20876. #define GPIO_PA4_CAN0RX 0x00001005
  20877. #define GPIO_PA5_SSI0TX 0x00001401
  20878. #define GPIO_PA5_CAN0TX 0x00001405
  20879. #define GPIO_PA6_I2C1SCL 0x00001801
  20880. #define GPIO_PA6_CCP1 0x00001802
  20881. #define GPIO_PA6_PWM0 0x00001804
  20882. #define GPIO_PA6_PWM4 0x00001805
  20883. #define GPIO_PA6_CAN0RX 0x00001806
  20884. #define GPIO_PA7_I2C1SDA 0x00001C01
  20885. #define GPIO_PA7_CCP4 0x00001C02
  20886. #define GPIO_PA7_PWM1 0x00001C04
  20887. #define GPIO_PA7_PWM5 0x00001C05
  20888. #define GPIO_PA7_CAN0TX 0x00001C06
  20889. #define GPIO_PA7_CCP3 0x00001C07
  20890. #define GPIO_PB0_CCP0 0x00010001
  20891. #define GPIO_PB0_PWM2 0x00010002
  20892. #define GPIO_PB0_U1RX 0x00010005
  20893. #define GPIO_PB1_CCP2 0x00010401
  20894. #define GPIO_PB1_PWM3 0x00010402
  20895. #define GPIO_PB1_CCP1 0x00010404
  20896. #define GPIO_PB1_U1TX 0x00010405
  20897. #define GPIO_PB2_I2C0SCL 0x00010801
  20898. #define GPIO_PB2_IDX0 0x00010802
  20899. #define GPIO_PB2_CCP3 0x00010804
  20900. #define GPIO_PB2_CCP0 0x00010805
  20901. #define GPIO_PB3_I2C0SDA 0x00010C01
  20902. #define GPIO_PB3_FAULT0 0x00010C02
  20903. #define GPIO_PB3_FAULT3 0x00010C04
  20904. #define GPIO_PB4_U2RX 0x00011004
  20905. #define GPIO_PB4_CAN0RX 0x00011005
  20906. #define GPIO_PB4_IDX0 0x00011006
  20907. #define GPIO_PB4_U1RX 0x00011007
  20908. #define GPIO_PB5_C0O 0x00011401
  20909. #define GPIO_PB5_CCP5 0x00011402
  20910. #define GPIO_PB5_CCP0 0x00011404
  20911. #define GPIO_PB5_CAN0TX 0x00011405
  20912. #define GPIO_PB5_CCP2 0x00011406
  20913. #define GPIO_PB5_U1TX 0x00011407
  20914. #define GPIO_PB6_CCP1 0x00011801
  20915. #define GPIO_PB6_C0O 0x00011803
  20916. #define GPIO_PB6_FAULT1 0x00011804
  20917. #define GPIO_PB6_IDX0 0x00011805
  20918. #define GPIO_PB6_CCP5 0x00011806
  20919. #define GPIO_PB7_NMI 0x00011C04
  20920. #define GPIO_PC0_TCK 0x00020003
  20921. #define GPIO_PC0_SWCLK 0x00020003
  20922. #define GPIO_PC1_TMS 0x00020403
  20923. #define GPIO_PC1_SWDIO 0x00020403
  20924. #define GPIO_PC2_TDI 0x00020803
  20925. #define GPIO_PC3_SWO 0x00020C03
  20926. #define GPIO_PC3_TDO 0x00020C03
  20927. #define GPIO_PC4_CCP5 0x00021001
  20928. #define GPIO_PC4_PHA0 0x00021002
  20929. #define GPIO_PC4_CCP2 0x00021005
  20930. #define GPIO_PC4_CCP4 0x00021006
  20931. #define GPIO_PC4_CCP1 0x00021009
  20932. #define GPIO_PC5_CCP1 0x00021401
  20933. #define GPIO_PC5_C1O 0x00021402
  20934. #define GPIO_PC5_C0O 0x00021403
  20935. #define GPIO_PC5_FAULT2 0x00021404
  20936. #define GPIO_PC5_CCP3 0x00021405
  20937. #define GPIO_PC6_CCP3 0x00021801
  20938. #define GPIO_PC6_PHB0 0x00021802
  20939. #define GPIO_PC6_U1RX 0x00021805
  20940. #define GPIO_PC6_CCP0 0x00021806
  20941. #define GPIO_PC7_CCP4 0x00021C01
  20942. #define GPIO_PC7_PHB0 0x00021C02
  20943. #define GPIO_PC7_CCP0 0x00021C04
  20944. #define GPIO_PC7_U1TX 0x00021C05
  20945. #define GPIO_PC7_C1O 0x00021C07
  20946. #define GPIO_PD0_PWM0 0x00030001
  20947. #define GPIO_PD0_CAN0RX 0x00030002
  20948. #define GPIO_PD0_IDX0 0x00030003
  20949. #define GPIO_PD0_U2RX 0x00030004
  20950. #define GPIO_PD0_U1RX 0x00030005
  20951. #define GPIO_PD1_PWM1 0x00030401
  20952. #define GPIO_PD1_CAN0TX 0x00030402
  20953. #define GPIO_PD1_PHA0 0x00030403
  20954. #define GPIO_PD1_U2TX 0x00030404
  20955. #define GPIO_PD1_U1TX 0x00030405
  20956. #define GPIO_PD1_CCP2 0x0003040A
  20957. #define GPIO_PD2_U1RX 0x00030801
  20958. #define GPIO_PD2_PWM2 0x00030803
  20959. #define GPIO_PD2_CCP5 0x00030804
  20960. #define GPIO_PD3_U1TX 0x00030C01
  20961. #define GPIO_PD3_PWM3 0x00030C03
  20962. #define GPIO_PD3_CCP0 0x00030C04
  20963. #define GPIO_PE0_PWM4 0x00040001
  20964. #define GPIO_PE0_SSI1CLK 0x00040002
  20965. #define GPIO_PE0_CCP3 0x00040003
  20966. #define GPIO_PE1_PWM5 0x00040401
  20967. #define GPIO_PE1_SSI1FSS 0x00040402
  20968. #define GPIO_PE1_FAULT0 0x00040403
  20969. #define GPIO_PE1_CCP2 0x00040404
  20970. #define GPIO_PE2_CCP4 0x00040801
  20971. #define GPIO_PE2_SSI1RX 0x00040802
  20972. #define GPIO_PE2_PHA0 0x00040804
  20973. #define GPIO_PE2_CCP2 0x00040805
  20974. #define GPIO_PE3_CCP1 0x00040C01
  20975. #define GPIO_PE3_SSI1TX 0x00040C02
  20976. #define GPIO_PE3_PHB0 0x00040C04
  20977. #define GPIO_PE4_CCP3 0x00041001
  20978. #define GPIO_PE4_FAULT0 0x00041004
  20979. #define GPIO_PE4_U2TX 0x00041005
  20980. #define GPIO_PE4_CCP2 0x00041006
  20981. #endif // PART_LM3S5K36
  20982. //*****************************************************************************
  20983. //
  20984. // LM3S5P31 Port/Pin Mapping Definitions
  20985. //
  20986. //*****************************************************************************
  20987. #ifdef PART_LM3S5P31
  20988. #define GPIO_PA0_U0RX 0x00000001
  20989. #define GPIO_PA0_I2C1SCL 0x00000008
  20990. #define GPIO_PA0_U1RX 0x00000009
  20991. #define GPIO_PA1_U0TX 0x00000401
  20992. #define GPIO_PA1_I2C1SDA 0x00000408
  20993. #define GPIO_PA1_U1TX 0x00000409
  20994. #define GPIO_PA2_SSI0CLK 0x00000801
  20995. #define GPIO_PA2_PWM4 0x00000804
  20996. #define GPIO_PA3_SSI0FSS 0x00000C01
  20997. #define GPIO_PA3_PWM5 0x00000C04
  20998. #define GPIO_PA4_SSI0RX 0x00001001
  20999. #define GPIO_PA4_CAN0RX 0x00001005
  21000. #define GPIO_PA5_SSI0TX 0x00001401
  21001. #define GPIO_PA5_CAN0TX 0x00001405
  21002. #define GPIO_PA6_I2C1SCL 0x00001801
  21003. #define GPIO_PA6_CCP1 0x00001802
  21004. #define GPIO_PA6_PWM0 0x00001804
  21005. #define GPIO_PA6_PWM4 0x00001805
  21006. #define GPIO_PA6_CAN0RX 0x00001806
  21007. #define GPIO_PA6_U1CTS 0x00001809
  21008. #define GPIO_PA7_I2C1SDA 0x00001C01
  21009. #define GPIO_PA7_CCP4 0x00001C02
  21010. #define GPIO_PA7_PWM1 0x00001C04
  21011. #define GPIO_PA7_PWM5 0x00001C05
  21012. #define GPIO_PA7_CAN0TX 0x00001C06
  21013. #define GPIO_PA7_CCP3 0x00001C07
  21014. #define GPIO_PA7_U1DCD 0x00001C09
  21015. #define GPIO_PB0_CCP0 0x00010001
  21016. #define GPIO_PB0_PWM2 0x00010002
  21017. #define GPIO_PB0_U1RX 0x00010005
  21018. #define GPIO_PB1_CCP2 0x00010401
  21019. #define GPIO_PB1_PWM3 0x00010402
  21020. #define GPIO_PB1_CCP1 0x00010404
  21021. #define GPIO_PB1_U1TX 0x00010405
  21022. #define GPIO_PB2_I2C0SCL 0x00010801
  21023. #define GPIO_PB2_IDX0 0x00010802
  21024. #define GPIO_PB2_CCP3 0x00010804
  21025. #define GPIO_PB2_CCP0 0x00010805
  21026. #define GPIO_PB3_I2C0SDA 0x00010C01
  21027. #define GPIO_PB3_FAULT0 0x00010C02
  21028. #define GPIO_PB3_FAULT3 0x00010C04
  21029. #define GPIO_PB4_U2RX 0x00011004
  21030. #define GPIO_PB4_CAN0RX 0x00011005
  21031. #define GPIO_PB4_IDX0 0x00011006
  21032. #define GPIO_PB4_U1RX 0x00011007
  21033. #define GPIO_PB5_C0O 0x00011401
  21034. #define GPIO_PB5_CCP5 0x00011402
  21035. #define GPIO_PB5_CCP0 0x00011404
  21036. #define GPIO_PB5_CAN0TX 0x00011405
  21037. #define GPIO_PB5_CCP2 0x00011406
  21038. #define GPIO_PB5_U1TX 0x00011407
  21039. #define GPIO_PB6_CCP1 0x00011801
  21040. #define GPIO_PB6_C0O 0x00011803
  21041. #define GPIO_PB6_FAULT1 0x00011804
  21042. #define GPIO_PB6_IDX0 0x00011805
  21043. #define GPIO_PB6_CCP5 0x00011806
  21044. #define GPIO_PB7_NMI 0x00011C04
  21045. #define GPIO_PC0_TCK 0x00020003
  21046. #define GPIO_PC0_SWCLK 0x00020003
  21047. #define GPIO_PC1_TMS 0x00020403
  21048. #define GPIO_PC1_SWDIO 0x00020403
  21049. #define GPIO_PC2_TDI 0x00020803
  21050. #define GPIO_PC3_SWO 0x00020C03
  21051. #define GPIO_PC3_TDO 0x00020C03
  21052. #define GPIO_PC4_CCP5 0x00021001
  21053. #define GPIO_PC4_PHA0 0x00021002
  21054. #define GPIO_PC4_CCP2 0x00021005
  21055. #define GPIO_PC4_CCP4 0x00021006
  21056. #define GPIO_PC4_CCP1 0x00021009
  21057. #define GPIO_PC5_CCP1 0x00021401
  21058. #define GPIO_PC5_C1O 0x00021402
  21059. #define GPIO_PC5_C0O 0x00021403
  21060. #define GPIO_PC5_FAULT2 0x00021404
  21061. #define GPIO_PC5_CCP3 0x00021405
  21062. #define GPIO_PC6_CCP3 0x00021801
  21063. #define GPIO_PC6_PHB0 0x00021802
  21064. #define GPIO_PC6_U1RX 0x00021805
  21065. #define GPIO_PC6_CCP0 0x00021806
  21066. #define GPIO_PC7_CCP4 0x00021C01
  21067. #define GPIO_PC7_PHB0 0x00021C02
  21068. #define GPIO_PC7_CCP0 0x00021C04
  21069. #define GPIO_PC7_U1TX 0x00021C05
  21070. #define GPIO_PC7_C1O 0x00021C07
  21071. #define GPIO_PD0_PWM0 0x00030001
  21072. #define GPIO_PD0_CAN0RX 0x00030002
  21073. #define GPIO_PD0_IDX0 0x00030003
  21074. #define GPIO_PD0_U2RX 0x00030004
  21075. #define GPIO_PD0_U1RX 0x00030005
  21076. #define GPIO_PD0_U1CTS 0x00030009
  21077. #define GPIO_PD1_PWM1 0x00030401
  21078. #define GPIO_PD1_CAN0TX 0x00030402
  21079. #define GPIO_PD1_PHA0 0x00030403
  21080. #define GPIO_PD1_U2TX 0x00030404
  21081. #define GPIO_PD1_U1TX 0x00030405
  21082. #define GPIO_PD1_U1DCD 0x00030409
  21083. #define GPIO_PD1_CCP2 0x0003040A
  21084. #define GPIO_PD1_PHB1 0x0003040B
  21085. #define GPIO_PD2_U1RX 0x00030801
  21086. #define GPIO_PD2_PWM2 0x00030803
  21087. #define GPIO_PD2_CCP5 0x00030804
  21088. #define GPIO_PD3_U1TX 0x00030C01
  21089. #define GPIO_PD3_PWM3 0x00030C03
  21090. #define GPIO_PD3_CCP0 0x00030C04
  21091. #define GPIO_PD4_CCP0 0x00031001
  21092. #define GPIO_PD4_CCP3 0x00031002
  21093. #define GPIO_PD4_U1RI 0x00031009
  21094. #define GPIO_PD5_CCP2 0x00031401
  21095. #define GPIO_PD5_CCP4 0x00031402
  21096. #define GPIO_PD5_U2RX 0x00031409
  21097. #define GPIO_PD6_FAULT0 0x00031801
  21098. #define GPIO_PD6_U2TX 0x00031809
  21099. #define GPIO_PD7_IDX0 0x00031C01
  21100. #define GPIO_PD7_C0O 0x00031C02
  21101. #define GPIO_PD7_CCP1 0x00031C03
  21102. #define GPIO_PD7_U1DTR 0x00031C09
  21103. #define GPIO_PE0_PWM4 0x00040001
  21104. #define GPIO_PE0_SSI1CLK 0x00040002
  21105. #define GPIO_PE0_CCP3 0x00040003
  21106. #define GPIO_PE1_PWM5 0x00040401
  21107. #define GPIO_PE1_SSI1FSS 0x00040402
  21108. #define GPIO_PE1_FAULT0 0x00040403
  21109. #define GPIO_PE1_CCP2 0x00040404
  21110. #define GPIO_PE2_CCP4 0x00040801
  21111. #define GPIO_PE2_SSI1RX 0x00040802
  21112. #define GPIO_PE2_PHB1 0x00040803
  21113. #define GPIO_PE2_PHA0 0x00040804
  21114. #define GPIO_PE2_CCP2 0x00040805
  21115. #define GPIO_PE3_CCP1 0x00040C01
  21116. #define GPIO_PE3_SSI1TX 0x00040C02
  21117. #define GPIO_PE3_PHA1 0x00040C03
  21118. #define GPIO_PE3_PHB0 0x00040C04
  21119. #define GPIO_PE4_CCP3 0x00041001
  21120. #define GPIO_PE4_FAULT0 0x00041004
  21121. #define GPIO_PE4_U2TX 0x00041005
  21122. #define GPIO_PE4_CCP2 0x00041006
  21123. #define GPIO_PE5_CCP5 0x00041401
  21124. #define GPIO_PE6_PWM4 0x00041801
  21125. #define GPIO_PE6_C1O 0x00041802
  21126. #define GPIO_PE6_U1CTS 0x00041809
  21127. #define GPIO_PE7_PWM5 0x00041C01
  21128. #define GPIO_PE7_U1DCD 0x00041C09
  21129. #define GPIO_PF0_PHB0 0x00050002
  21130. #define GPIO_PF0_PWM0 0x00050003
  21131. #define GPIO_PF0_U1DSR 0x00050009
  21132. #define GPIO_PF1_IDX1 0x00050402
  21133. #define GPIO_PF1_PWM1 0x00050403
  21134. #define GPIO_PF1_U1RTS 0x00050409
  21135. #define GPIO_PF1_CCP3 0x0005040A
  21136. #define GPIO_PF2_PWM4 0x00050802
  21137. #define GPIO_PF2_PWM2 0x00050804
  21138. #define GPIO_PF2_SSI1CLK 0x00050809
  21139. #define GPIO_PF3_PWM5 0x00050C02
  21140. #define GPIO_PF3_PWM3 0x00050C04
  21141. #define GPIO_PF3_SSI1FSS 0x00050C09
  21142. #define GPIO_PF4_CCP0 0x00051001
  21143. #define GPIO_PF4_C0O 0x00051002
  21144. #define GPIO_PF4_FAULT0 0x00051004
  21145. #define GPIO_PF4_SSI1RX 0x00051009
  21146. #define GPIO_PF5_CCP2 0x00051401
  21147. #define GPIO_PF5_C1O 0x00051402
  21148. #define GPIO_PF5_SSI1TX 0x00051409
  21149. #define GPIO_PF6_CCP1 0x00051801
  21150. #define GPIO_PF6_PHA0 0x00051804
  21151. #define GPIO_PF6_U1RTS 0x0005180A
  21152. #define GPIO_PF7_CCP4 0x00051C01
  21153. #define GPIO_PF7_PHB0 0x00051C04
  21154. #define GPIO_PF7_FAULT1 0x00051C09
  21155. #define GPIO_PG0_U2RX 0x00060001
  21156. #define GPIO_PG0_PWM0 0x00060002
  21157. #define GPIO_PG0_I2C1SCL 0x00060003
  21158. #define GPIO_PG0_PWM4 0x00060004
  21159. #define GPIO_PG1_U2TX 0x00060401
  21160. #define GPIO_PG1_PWM1 0x00060402
  21161. #define GPIO_PG1_I2C1SDA 0x00060403
  21162. #define GPIO_PG1_PWM5 0x00060404
  21163. #define GPIO_PG2_PWM0 0x00060801
  21164. #define GPIO_PG2_FAULT0 0x00060804
  21165. #define GPIO_PG2_IDX1 0x00060808
  21166. #define GPIO_PG3_PWM1 0x00060C01
  21167. #define GPIO_PG3_FAULT2 0x00060C04
  21168. #define GPIO_PG3_FAULT0 0x00060C08
  21169. #define GPIO_PG4_CCP3 0x00061001
  21170. #define GPIO_PG4_FAULT1 0x00061004
  21171. #define GPIO_PG4_U1RI 0x0006100A
  21172. #define GPIO_PG5_CCP5 0x00061401
  21173. #define GPIO_PG5_IDX0 0x00061404
  21174. #define GPIO_PG5_FAULT1 0x00061405
  21175. #define GPIO_PG5_U1DTR 0x0006140A
  21176. #define GPIO_PG6_PHA1 0x00061801
  21177. #define GPIO_PG6_FAULT1 0x00061808
  21178. #define GPIO_PG6_U1RI 0x0006180A
  21179. #define GPIO_PG7_PHB1 0x00061C01
  21180. #define GPIO_PG7_CCP5 0x00061C08
  21181. #define GPIO_PH0_PWM2 0x00070002
  21182. #define GPIO_PH0_PWM4 0x00070009
  21183. #define GPIO_PH1_PWM3 0x00070402
  21184. #define GPIO_PH1_PWM5 0x00070409
  21185. #define GPIO_PH2_IDX1 0x00070801
  21186. #define GPIO_PH2_C1O 0x00070802
  21187. #define GPIO_PH2_FAULT3 0x00070804
  21188. #define GPIO_PH3_PHB0 0x00070C01
  21189. #define GPIO_PH3_FAULT0 0x00070C02
  21190. #define GPIO_PH4_SSI1CLK 0x0007100B
  21191. #define GPIO_PH5_FAULT2 0x0007140A
  21192. #define GPIO_PH5_SSI1FSS 0x0007140B
  21193. #define GPIO_PH6_PWM4 0x0007180A
  21194. #define GPIO_PH6_SSI1RX 0x0007180B
  21195. #define GPIO_PH7_PWM5 0x00071C0A
  21196. #define GPIO_PH7_SSI1TX 0x00071C0B
  21197. #define GPIO_PJ0_PWM0 0x0008000A
  21198. #define GPIO_PJ0_I2C1SCL 0x0008000B
  21199. #define GPIO_PJ1_PWM1 0x0008040A
  21200. #define GPIO_PJ1_I2C1SDA 0x0008040B
  21201. #define GPIO_PJ2_CCP0 0x00080809
  21202. #define GPIO_PJ2_FAULT0 0x0008080A
  21203. #endif // PART_LM3S5P31
  21204. //*****************************************************************************
  21205. //
  21206. // LM3S5P36 Port/Pin Mapping Definitions
  21207. //
  21208. //*****************************************************************************
  21209. #ifdef PART_LM3S5P36
  21210. #define GPIO_PA0_U0RX 0x00000001
  21211. #define GPIO_PA0_I2C1SCL 0x00000008
  21212. #define GPIO_PA0_U1RX 0x00000009
  21213. #define GPIO_PA1_U0TX 0x00000401
  21214. #define GPIO_PA1_I2C1SDA 0x00000408
  21215. #define GPIO_PA1_U1TX 0x00000409
  21216. #define GPIO_PA2_SSI0CLK 0x00000801
  21217. #define GPIO_PA2_PWM4 0x00000804
  21218. #define GPIO_PA3_SSI0FSS 0x00000C01
  21219. #define GPIO_PA3_PWM5 0x00000C04
  21220. #define GPIO_PA4_SSI0RX 0x00001001
  21221. #define GPIO_PA4_CAN0RX 0x00001005
  21222. #define GPIO_PA5_SSI0TX 0x00001401
  21223. #define GPIO_PA5_CAN0TX 0x00001405
  21224. #define GPIO_PA6_I2C1SCL 0x00001801
  21225. #define GPIO_PA6_CCP1 0x00001802
  21226. #define GPIO_PA6_PWM0 0x00001804
  21227. #define GPIO_PA6_PWM4 0x00001805
  21228. #define GPIO_PA6_CAN0RX 0x00001806
  21229. #define GPIO_PA7_I2C1SDA 0x00001C01
  21230. #define GPIO_PA7_CCP4 0x00001C02
  21231. #define GPIO_PA7_PWM1 0x00001C04
  21232. #define GPIO_PA7_PWM5 0x00001C05
  21233. #define GPIO_PA7_CAN0TX 0x00001C06
  21234. #define GPIO_PA7_CCP3 0x00001C07
  21235. #define GPIO_PB0_CCP0 0x00010001
  21236. #define GPIO_PB0_PWM2 0x00010002
  21237. #define GPIO_PB0_U1RX 0x00010005
  21238. #define GPIO_PB1_CCP2 0x00010401
  21239. #define GPIO_PB1_PWM3 0x00010402
  21240. #define GPIO_PB1_CCP1 0x00010404
  21241. #define GPIO_PB1_U1TX 0x00010405
  21242. #define GPIO_PB2_I2C0SCL 0x00010801
  21243. #define GPIO_PB2_IDX0 0x00010802
  21244. #define GPIO_PB2_CCP3 0x00010804
  21245. #define GPIO_PB2_CCP0 0x00010805
  21246. #define GPIO_PB3_I2C0SDA 0x00010C01
  21247. #define GPIO_PB3_FAULT0 0x00010C02
  21248. #define GPIO_PB3_FAULT3 0x00010C04
  21249. #define GPIO_PB4_U2RX 0x00011004
  21250. #define GPIO_PB4_CAN0RX 0x00011005
  21251. #define GPIO_PB4_IDX0 0x00011006
  21252. #define GPIO_PB4_U1RX 0x00011007
  21253. #define GPIO_PB5_C0O 0x00011401
  21254. #define GPIO_PB5_CCP5 0x00011402
  21255. #define GPIO_PB5_CCP0 0x00011404
  21256. #define GPIO_PB5_CAN0TX 0x00011405
  21257. #define GPIO_PB5_CCP2 0x00011406
  21258. #define GPIO_PB5_U1TX 0x00011407
  21259. #define GPIO_PB6_CCP1 0x00011801
  21260. #define GPIO_PB6_C0O 0x00011803
  21261. #define GPIO_PB6_FAULT1 0x00011804
  21262. #define GPIO_PB6_IDX0 0x00011805
  21263. #define GPIO_PB6_CCP5 0x00011806
  21264. #define GPIO_PB7_NMI 0x00011C04
  21265. #define GPIO_PC0_TCK 0x00020003
  21266. #define GPIO_PC0_SWCLK 0x00020003
  21267. #define GPIO_PC1_TMS 0x00020403
  21268. #define GPIO_PC1_SWDIO 0x00020403
  21269. #define GPIO_PC2_TDI 0x00020803
  21270. #define GPIO_PC3_SWO 0x00020C03
  21271. #define GPIO_PC3_TDO 0x00020C03
  21272. #define GPIO_PC4_CCP5 0x00021001
  21273. #define GPIO_PC4_PHA0 0x00021002
  21274. #define GPIO_PC4_CCP2 0x00021005
  21275. #define GPIO_PC4_CCP4 0x00021006
  21276. #define GPIO_PC4_CCP1 0x00021009
  21277. #define GPIO_PC5_CCP1 0x00021401
  21278. #define GPIO_PC5_C1O 0x00021402
  21279. #define GPIO_PC5_C0O 0x00021403
  21280. #define GPIO_PC5_FAULT2 0x00021404
  21281. #define GPIO_PC5_CCP3 0x00021405
  21282. #define GPIO_PC6_CCP3 0x00021801
  21283. #define GPIO_PC6_PHB0 0x00021802
  21284. #define GPIO_PC6_U1RX 0x00021805
  21285. #define GPIO_PC6_CCP0 0x00021806
  21286. #define GPIO_PC7_CCP4 0x00021C01
  21287. #define GPIO_PC7_PHB0 0x00021C02
  21288. #define GPIO_PC7_CCP0 0x00021C04
  21289. #define GPIO_PC7_U1TX 0x00021C05
  21290. #define GPIO_PC7_C1O 0x00021C07
  21291. #define GPIO_PD0_PWM0 0x00030001
  21292. #define GPIO_PD0_CAN0RX 0x00030002
  21293. #define GPIO_PD0_IDX0 0x00030003
  21294. #define GPIO_PD0_U2RX 0x00030004
  21295. #define GPIO_PD0_U1RX 0x00030005
  21296. #define GPIO_PD1_PWM1 0x00030401
  21297. #define GPIO_PD1_CAN0TX 0x00030402
  21298. #define GPIO_PD1_PHA0 0x00030403
  21299. #define GPIO_PD1_U2TX 0x00030404
  21300. #define GPIO_PD1_U1TX 0x00030405
  21301. #define GPIO_PD1_CCP2 0x0003040A
  21302. #define GPIO_PD2_U1RX 0x00030801
  21303. #define GPIO_PD2_PWM2 0x00030803
  21304. #define GPIO_PD2_CCP5 0x00030804
  21305. #define GPIO_PD3_U1TX 0x00030C01
  21306. #define GPIO_PD3_PWM3 0x00030C03
  21307. #define GPIO_PD3_CCP0 0x00030C04
  21308. #define GPIO_PE0_PWM4 0x00040001
  21309. #define GPIO_PE0_SSI1CLK 0x00040002
  21310. #define GPIO_PE0_CCP3 0x00040003
  21311. #define GPIO_PE1_PWM5 0x00040401
  21312. #define GPIO_PE1_SSI1FSS 0x00040402
  21313. #define GPIO_PE1_FAULT0 0x00040403
  21314. #define GPIO_PE1_CCP2 0x00040404
  21315. #define GPIO_PE2_CCP4 0x00040801
  21316. #define GPIO_PE2_SSI1RX 0x00040802
  21317. #define GPIO_PE2_PHA0 0x00040804
  21318. #define GPIO_PE2_CCP2 0x00040805
  21319. #define GPIO_PE3_CCP1 0x00040C01
  21320. #define GPIO_PE3_SSI1TX 0x00040C02
  21321. #define GPIO_PE3_PHB0 0x00040C04
  21322. #define GPIO_PE4_CCP3 0x00041001
  21323. #define GPIO_PE4_FAULT0 0x00041004
  21324. #define GPIO_PE4_U2TX 0x00041005
  21325. #define GPIO_PE4_CCP2 0x00041006
  21326. #endif // PART_LM3S5P36
  21327. //*****************************************************************************
  21328. //
  21329. // LM3S5P3B Port/Pin Mapping Definitions
  21330. //
  21331. //*****************************************************************************
  21332. #ifdef PART_LM3S5P3B
  21333. #define GPIO_PA0_U0RX 0x00000001
  21334. #define GPIO_PA0_I2C1SCL 0x00000008
  21335. #define GPIO_PA0_U1RX 0x00000009
  21336. #define GPIO_PA1_U0TX 0x00000401
  21337. #define GPIO_PA1_I2C1SDA 0x00000408
  21338. #define GPIO_PA1_U1TX 0x00000409
  21339. #define GPIO_PA2_SSI0CLK 0x00000801
  21340. #define GPIO_PA2_PWM4 0x00000804
  21341. #define GPIO_PA2_I2S0RXSD 0x00000809
  21342. #define GPIO_PA3_SSI0FSS 0x00000C01
  21343. #define GPIO_PA3_PWM5 0x00000C04
  21344. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  21345. #define GPIO_PA4_SSI0RX 0x00001001
  21346. #define GPIO_PA4_CAN0RX 0x00001005
  21347. #define GPIO_PA4_I2S0TXSCK 0x00001009
  21348. #define GPIO_PA5_SSI0TX 0x00001401
  21349. #define GPIO_PA5_CAN0TX 0x00001405
  21350. #define GPIO_PA5_I2S0TXWS 0x00001409
  21351. #define GPIO_PA6_I2C1SCL 0x00001801
  21352. #define GPIO_PA6_CCP1 0x00001802
  21353. #define GPIO_PA6_PWM0 0x00001804
  21354. #define GPIO_PA6_PWM4 0x00001805
  21355. #define GPIO_PA6_CAN0RX 0x00001806
  21356. #define GPIO_PA6_U1CTS 0x00001809
  21357. #define GPIO_PA7_I2C1SDA 0x00001C01
  21358. #define GPIO_PA7_CCP4 0x00001C02
  21359. #define GPIO_PA7_PWM1 0x00001C04
  21360. #define GPIO_PA7_PWM5 0x00001C05
  21361. #define GPIO_PA7_CAN0TX 0x00001C06
  21362. #define GPIO_PA7_CCP3 0x00001C07
  21363. #define GPIO_PA7_U1DCD 0x00001C09
  21364. #define GPIO_PB0_CCP0 0x00010001
  21365. #define GPIO_PB0_PWM2 0x00010002
  21366. #define GPIO_PB0_U1RX 0x00010005
  21367. #define GPIO_PB1_CCP2 0x00010401
  21368. #define GPIO_PB1_PWM3 0x00010402
  21369. #define GPIO_PB1_CCP1 0x00010404
  21370. #define GPIO_PB1_U1TX 0x00010405
  21371. #define GPIO_PB2_I2C0SCL 0x00010801
  21372. #define GPIO_PB2_IDX0 0x00010802
  21373. #define GPIO_PB2_CCP3 0x00010804
  21374. #define GPIO_PB2_CCP0 0x00010805
  21375. #define GPIO_PB3_I2C0SDA 0x00010C01
  21376. #define GPIO_PB3_FAULT0 0x00010C02
  21377. #define GPIO_PB3_FAULT3 0x00010C04
  21378. #define GPIO_PB4_U2RX 0x00011004
  21379. #define GPIO_PB4_CAN0RX 0x00011005
  21380. #define GPIO_PB4_IDX0 0x00011006
  21381. #define GPIO_PB4_U1RX 0x00011007
  21382. #define GPIO_PB5_C0O 0x00011401
  21383. #define GPIO_PB5_CCP5 0x00011402
  21384. #define GPIO_PB5_CCP0 0x00011404
  21385. #define GPIO_PB5_CAN0TX 0x00011405
  21386. #define GPIO_PB5_CCP2 0x00011406
  21387. #define GPIO_PB5_U1TX 0x00011407
  21388. #define GPIO_PB6_CCP1 0x00011801
  21389. #define GPIO_PB6_C0O 0x00011803
  21390. #define GPIO_PB6_FAULT1 0x00011804
  21391. #define GPIO_PB6_IDX0 0x00011805
  21392. #define GPIO_PB6_CCP5 0x00011806
  21393. #define GPIO_PB6_I2S0TXSCK 0x00011809
  21394. #define GPIO_PB7_NMI 0x00011C04
  21395. #define GPIO_PC0_TCK 0x00020003
  21396. #define GPIO_PC0_SWCLK 0x00020003
  21397. #define GPIO_PC1_TMS 0x00020403
  21398. #define GPIO_PC1_SWDIO 0x00020403
  21399. #define GPIO_PC2_TDI 0x00020803
  21400. #define GPIO_PC3_SWO 0x00020C03
  21401. #define GPIO_PC3_TDO 0x00020C03
  21402. #define GPIO_PC4_CCP5 0x00021001
  21403. #define GPIO_PC4_PHA0 0x00021002
  21404. #define GPIO_PC4_CCP2 0x00021005
  21405. #define GPIO_PC4_CCP4 0x00021006
  21406. #define GPIO_PC4_CCP1 0x00021009
  21407. #define GPIO_PC5_CCP1 0x00021401
  21408. #define GPIO_PC5_C1O 0x00021402
  21409. #define GPIO_PC5_C0O 0x00021403
  21410. #define GPIO_PC5_FAULT2 0x00021404
  21411. #define GPIO_PC5_CCP3 0x00021405
  21412. #define GPIO_PC6_CCP3 0x00021801
  21413. #define GPIO_PC6_PHB0 0x00021802
  21414. #define GPIO_PC6_U1RX 0x00021805
  21415. #define GPIO_PC6_CCP0 0x00021806
  21416. #define GPIO_PC7_CCP4 0x00021C01
  21417. #define GPIO_PC7_PHB0 0x00021C02
  21418. #define GPIO_PC7_CCP0 0x00021C04
  21419. #define GPIO_PC7_U1TX 0x00021C05
  21420. #define GPIO_PC7_C1O 0x00021C07
  21421. #define GPIO_PD0_PWM0 0x00030001
  21422. #define GPIO_PD0_CAN0RX 0x00030002
  21423. #define GPIO_PD0_IDX0 0x00030003
  21424. #define GPIO_PD0_U2RX 0x00030004
  21425. #define GPIO_PD0_U1RX 0x00030005
  21426. #define GPIO_PD0_I2S0RXSCK 0x00030008
  21427. #define GPIO_PD0_U1CTS 0x00030009
  21428. #define GPIO_PD1_PWM1 0x00030401
  21429. #define GPIO_PD1_CAN0TX 0x00030402
  21430. #define GPIO_PD1_PHA0 0x00030403
  21431. #define GPIO_PD1_U2TX 0x00030404
  21432. #define GPIO_PD1_U1TX 0x00030405
  21433. #define GPIO_PD1_I2S0RXWS 0x00030408
  21434. #define GPIO_PD1_U1DCD 0x00030409
  21435. #define GPIO_PD1_CCP2 0x0003040A
  21436. #define GPIO_PD1_PHB1 0x0003040B
  21437. #define GPIO_PD2_U1RX 0x00030801
  21438. #define GPIO_PD2_PWM2 0x00030803
  21439. #define GPIO_PD2_CCP5 0x00030804
  21440. #define GPIO_PD3_U1TX 0x00030C01
  21441. #define GPIO_PD3_PWM3 0x00030C03
  21442. #define GPIO_PD3_CCP0 0x00030C04
  21443. #define GPIO_PD4_CCP0 0x00031001
  21444. #define GPIO_PD4_CCP3 0x00031002
  21445. #define GPIO_PD4_I2S0RXSD 0x00031008
  21446. #define GPIO_PD4_U1RI 0x00031009
  21447. #define GPIO_PD5_CCP2 0x00031401
  21448. #define GPIO_PD5_CCP4 0x00031402
  21449. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  21450. #define GPIO_PD5_U2RX 0x00031409
  21451. #define GPIO_PD6_FAULT0 0x00031801
  21452. #define GPIO_PD6_I2S0TXSCK 0x00031808
  21453. #define GPIO_PD6_U2TX 0x00031809
  21454. #define GPIO_PD7_IDX0 0x00031C01
  21455. #define GPIO_PD7_C0O 0x00031C02
  21456. #define GPIO_PD7_CCP1 0x00031C03
  21457. #define GPIO_PD7_I2S0TXWS 0x00031C08
  21458. #define GPIO_PD7_U1DTR 0x00031C09
  21459. #define GPIO_PE0_PWM4 0x00040001
  21460. #define GPIO_PE0_SSI1CLK 0x00040002
  21461. #define GPIO_PE0_CCP3 0x00040003
  21462. #define GPIO_PE1_PWM5 0x00040401
  21463. #define GPIO_PE1_SSI1FSS 0x00040402
  21464. #define GPIO_PE1_FAULT0 0x00040403
  21465. #define GPIO_PE1_CCP2 0x00040404
  21466. #define GPIO_PE2_CCP4 0x00040801
  21467. #define GPIO_PE2_SSI1RX 0x00040802
  21468. #define GPIO_PE2_PHB1 0x00040803
  21469. #define GPIO_PE2_PHA0 0x00040804
  21470. #define GPIO_PE2_CCP2 0x00040805
  21471. #define GPIO_PE3_CCP1 0x00040C01
  21472. #define GPIO_PE3_SSI1TX 0x00040C02
  21473. #define GPIO_PE3_PHA1 0x00040C03
  21474. #define GPIO_PE3_PHB0 0x00040C04
  21475. #define GPIO_PE4_CCP3 0x00041001
  21476. #define GPIO_PE4_FAULT0 0x00041004
  21477. #define GPIO_PE4_U2TX 0x00041005
  21478. #define GPIO_PE4_CCP2 0x00041006
  21479. #define GPIO_PE4_I2S0TXWS 0x00041009
  21480. #define GPIO_PE5_CCP5 0x00041401
  21481. #define GPIO_PE5_I2S0TXSD 0x00041409
  21482. #define GPIO_PE6_PWM4 0x00041801
  21483. #define GPIO_PE6_C1O 0x00041802
  21484. #define GPIO_PE6_U1CTS 0x00041809
  21485. #define GPIO_PE7_PWM5 0x00041C01
  21486. #define GPIO_PE7_U1DCD 0x00041C09
  21487. #define GPIO_PF0_PHB0 0x00050002
  21488. #define GPIO_PF0_PWM0 0x00050003
  21489. #define GPIO_PF0_I2S0TXSD 0x00050008
  21490. #define GPIO_PF0_U1DSR 0x00050009
  21491. #define GPIO_PF1_IDX1 0x00050402
  21492. #define GPIO_PF1_PWM1 0x00050403
  21493. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  21494. #define GPIO_PF1_U1RTS 0x00050409
  21495. #define GPIO_PF1_CCP3 0x0005040A
  21496. #define GPIO_PF2_PWM4 0x00050802
  21497. #define GPIO_PF2_PWM2 0x00050804
  21498. #define GPIO_PF2_SSI1CLK 0x00050809
  21499. #define GPIO_PF3_PWM5 0x00050C02
  21500. #define GPIO_PF3_PWM3 0x00050C04
  21501. #define GPIO_PF3_SSI1FSS 0x00050C09
  21502. #define GPIO_PF4_CCP0 0x00051001
  21503. #define GPIO_PF4_C0O 0x00051002
  21504. #define GPIO_PF4_FAULT0 0x00051004
  21505. #define GPIO_PF4_SSI1RX 0x00051009
  21506. #define GPIO_PF5_CCP2 0x00051401
  21507. #define GPIO_PF5_C1O 0x00051402
  21508. #define GPIO_PF5_SSI1TX 0x00051409
  21509. #define GPIO_PF6_CCP1 0x00051801
  21510. #define GPIO_PF6_PHA0 0x00051804
  21511. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  21512. #define GPIO_PF6_U1RTS 0x0005180A
  21513. #define GPIO_PF7_CCP4 0x00051C01
  21514. #define GPIO_PF7_PHB0 0x00051C04
  21515. #define GPIO_PF7_FAULT1 0x00051C09
  21516. #define GPIO_PG0_U2RX 0x00060001
  21517. #define GPIO_PG0_PWM0 0x00060002
  21518. #define GPIO_PG0_I2C1SCL 0x00060003
  21519. #define GPIO_PG0_PWM4 0x00060004
  21520. #define GPIO_PG1_U2TX 0x00060401
  21521. #define GPIO_PG1_PWM1 0x00060402
  21522. #define GPIO_PG1_I2C1SDA 0x00060403
  21523. #define GPIO_PG1_PWM5 0x00060404
  21524. #define GPIO_PG2_PWM0 0x00060801
  21525. #define GPIO_PG2_FAULT0 0x00060804
  21526. #define GPIO_PG2_IDX1 0x00060808
  21527. #define GPIO_PG2_I2S0RXSD 0x00060809
  21528. #define GPIO_PG3_PWM1 0x00060C01
  21529. #define GPIO_PG3_FAULT2 0x00060C04
  21530. #define GPIO_PG3_FAULT0 0x00060C08
  21531. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  21532. #define GPIO_PG4_CCP3 0x00061001
  21533. #define GPIO_PG4_FAULT1 0x00061004
  21534. #define GPIO_PG4_U1RI 0x0006100A
  21535. #define GPIO_PG5_CCP5 0x00061401
  21536. #define GPIO_PG5_IDX0 0x00061404
  21537. #define GPIO_PG5_FAULT1 0x00061405
  21538. #define GPIO_PG5_I2S0RXSCK 0x00061409
  21539. #define GPIO_PG5_U1DTR 0x0006140A
  21540. #define GPIO_PG6_PHA1 0x00061801
  21541. #define GPIO_PG6_FAULT1 0x00061808
  21542. #define GPIO_PG6_I2S0RXWS 0x00061809
  21543. #define GPIO_PG6_U1RI 0x0006180A
  21544. #define GPIO_PG7_PHB1 0x00061C01
  21545. #define GPIO_PG7_CCP5 0x00061C08
  21546. #define GPIO_PH0_PWM2 0x00070002
  21547. #define GPIO_PH0_PWM4 0x00070009
  21548. #define GPIO_PH1_PWM3 0x00070402
  21549. #define GPIO_PH1_PWM5 0x00070409
  21550. #define GPIO_PH2_IDX1 0x00070801
  21551. #define GPIO_PH2_C1O 0x00070802
  21552. #define GPIO_PH2_FAULT3 0x00070804
  21553. #define GPIO_PH3_PHB0 0x00070C01
  21554. #define GPIO_PH3_FAULT0 0x00070C02
  21555. #define GPIO_PH4_SSI1CLK 0x0007100B
  21556. #define GPIO_PH5_FAULT2 0x0007140A
  21557. #define GPIO_PH5_SSI1FSS 0x0007140B
  21558. #define GPIO_PH6_PWM4 0x0007180A
  21559. #define GPIO_PH6_SSI1RX 0x0007180B
  21560. #define GPIO_PH7_PWM5 0x00071C0A
  21561. #define GPIO_PH7_SSI1TX 0x00071C0B
  21562. #define GPIO_PJ0_PWM0 0x0008000A
  21563. #define GPIO_PJ0_I2C1SCL 0x0008000B
  21564. #define GPIO_PJ1_PWM1 0x0008040A
  21565. #define GPIO_PJ1_I2C1SDA 0x0008040B
  21566. #define GPIO_PJ2_CCP0 0x00080809
  21567. #define GPIO_PJ2_FAULT0 0x0008080A
  21568. #endif // PART_LM3S5P3B
  21569. //*****************************************************************************
  21570. //
  21571. // LM3S5P51 Port/Pin Mapping Definitions
  21572. //
  21573. //*****************************************************************************
  21574. #ifdef PART_LM3S5P51
  21575. #define GPIO_PA0_U0RX 0x00000001
  21576. #define GPIO_PA0_I2C1SCL 0x00000008
  21577. #define GPIO_PA0_U1RX 0x00000009
  21578. #define GPIO_PA1_U0TX 0x00000401
  21579. #define GPIO_PA1_I2C1SDA 0x00000408
  21580. #define GPIO_PA1_U1TX 0x00000409
  21581. #define GPIO_PA2_SSI0CLK 0x00000801
  21582. #define GPIO_PA2_PWM4 0x00000804
  21583. #define GPIO_PA2_I2S0RXSD 0x00000809
  21584. #define GPIO_PA3_SSI0FSS 0x00000C01
  21585. #define GPIO_PA3_PWM5 0x00000C04
  21586. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  21587. #define GPIO_PA4_SSI0RX 0x00001001
  21588. #define GPIO_PA4_CAN0RX 0x00001005
  21589. #define GPIO_PA4_I2S0TXSCK 0x00001009
  21590. #define GPIO_PA5_SSI0TX 0x00001401
  21591. #define GPIO_PA5_CAN0TX 0x00001405
  21592. #define GPIO_PA5_I2S0TXWS 0x00001409
  21593. #define GPIO_PA6_I2C1SCL 0x00001801
  21594. #define GPIO_PA6_CCP1 0x00001802
  21595. #define GPIO_PA6_PWM0 0x00001804
  21596. #define GPIO_PA6_PWM4 0x00001805
  21597. #define GPIO_PA6_CAN0RX 0x00001806
  21598. #define GPIO_PA6_USB0EPEN 0x00001808
  21599. #define GPIO_PA6_U1CTS 0x00001809
  21600. #define GPIO_PA7_I2C1SDA 0x00001C01
  21601. #define GPIO_PA7_CCP4 0x00001C02
  21602. #define GPIO_PA7_PWM1 0x00001C04
  21603. #define GPIO_PA7_PWM5 0x00001C05
  21604. #define GPIO_PA7_CAN0TX 0x00001C06
  21605. #define GPIO_PA7_CCP3 0x00001C07
  21606. #define GPIO_PA7_USB0PFLT 0x00001C08
  21607. #define GPIO_PA7_U1DCD 0x00001C09
  21608. #define GPIO_PB0_CCP0 0x00010001
  21609. #define GPIO_PB0_PWM2 0x00010002
  21610. #define GPIO_PB0_U1RX 0x00010005
  21611. #define GPIO_PB1_CCP2 0x00010401
  21612. #define GPIO_PB1_PWM3 0x00010402
  21613. #define GPIO_PB1_CCP1 0x00010404
  21614. #define GPIO_PB1_U1TX 0x00010405
  21615. #define GPIO_PB2_I2C0SCL 0x00010801
  21616. #define GPIO_PB2_IDX0 0x00010802
  21617. #define GPIO_PB2_CCP3 0x00010804
  21618. #define GPIO_PB2_CCP0 0x00010805
  21619. #define GPIO_PB2_USB0EPEN 0x00010808
  21620. #define GPIO_PB3_I2C0SDA 0x00010C01
  21621. #define GPIO_PB3_FAULT0 0x00010C02
  21622. #define GPIO_PB3_FAULT3 0x00010C04
  21623. #define GPIO_PB3_USB0PFLT 0x00010C08
  21624. #define GPIO_PB4_U2RX 0x00011004
  21625. #define GPIO_PB4_CAN0RX 0x00011005
  21626. #define GPIO_PB4_IDX0 0x00011006
  21627. #define GPIO_PB4_U1RX 0x00011007
  21628. #define GPIO_PB5_C0O 0x00011401
  21629. #define GPIO_PB5_CCP5 0x00011402
  21630. #define GPIO_PB5_CCP6 0x00011403
  21631. #define GPIO_PB5_CCP0 0x00011404
  21632. #define GPIO_PB5_CAN0TX 0x00011405
  21633. #define GPIO_PB5_CCP2 0x00011406
  21634. #define GPIO_PB5_U1TX 0x00011407
  21635. #define GPIO_PB6_CCP1 0x00011801
  21636. #define GPIO_PB6_CCP7 0x00011802
  21637. #define GPIO_PB6_C0O 0x00011803
  21638. #define GPIO_PB6_FAULT1 0x00011804
  21639. #define GPIO_PB6_IDX0 0x00011805
  21640. #define GPIO_PB6_CCP5 0x00011806
  21641. #define GPIO_PB6_I2S0TXSCK 0x00011809
  21642. #define GPIO_PB7_NMI 0x00011C04
  21643. #define GPIO_PC0_TCK 0x00020003
  21644. #define GPIO_PC0_SWCLK 0x00020003
  21645. #define GPIO_PC1_TMS 0x00020403
  21646. #define GPIO_PC1_SWDIO 0x00020403
  21647. #define GPIO_PC2_TDI 0x00020803
  21648. #define GPIO_PC3_SWO 0x00020C03
  21649. #define GPIO_PC3_TDO 0x00020C03
  21650. #define GPIO_PC4_CCP5 0x00021001
  21651. #define GPIO_PC4_PHA0 0x00021002
  21652. #define GPIO_PC4_CCP2 0x00021005
  21653. #define GPIO_PC4_CCP4 0x00021006
  21654. #define GPIO_PC4_CCP1 0x00021009
  21655. #define GPIO_PC5_CCP1 0x00021401
  21656. #define GPIO_PC5_C1O 0x00021402
  21657. #define GPIO_PC5_C0O 0x00021403
  21658. #define GPIO_PC5_FAULT2 0x00021404
  21659. #define GPIO_PC5_CCP3 0x00021405
  21660. #define GPIO_PC5_USB0EPEN 0x00021406
  21661. #define GPIO_PC6_CCP3 0x00021801
  21662. #define GPIO_PC6_PHB0 0x00021802
  21663. #define GPIO_PC6_U1RX 0x00021805
  21664. #define GPIO_PC6_CCP0 0x00021806
  21665. #define GPIO_PC6_USB0PFLT 0x00021807
  21666. #define GPIO_PC7_CCP4 0x00021C01
  21667. #define GPIO_PC7_PHB0 0x00021C02
  21668. #define GPIO_PC7_CCP0 0x00021C04
  21669. #define GPIO_PC7_U1TX 0x00021C05
  21670. #define GPIO_PC7_USB0PFLT 0x00021C06
  21671. #define GPIO_PC7_C1O 0x00021C07
  21672. #define GPIO_PD0_PWM0 0x00030001
  21673. #define GPIO_PD0_CAN0RX 0x00030002
  21674. #define GPIO_PD0_IDX0 0x00030003
  21675. #define GPIO_PD0_U2RX 0x00030004
  21676. #define GPIO_PD0_U1RX 0x00030005
  21677. #define GPIO_PD0_CCP6 0x00030006
  21678. #define GPIO_PD0_I2S0RXSCK 0x00030008
  21679. #define GPIO_PD0_U1CTS 0x00030009
  21680. #define GPIO_PD1_PWM1 0x00030401
  21681. #define GPIO_PD1_CAN0TX 0x00030402
  21682. #define GPIO_PD1_PHA0 0x00030403
  21683. #define GPIO_PD1_U2TX 0x00030404
  21684. #define GPIO_PD1_U1TX 0x00030405
  21685. #define GPIO_PD1_CCP7 0x00030406
  21686. #define GPIO_PD1_I2S0RXWS 0x00030408
  21687. #define GPIO_PD1_U1DCD 0x00030409
  21688. #define GPIO_PD1_CCP2 0x0003040A
  21689. #define GPIO_PD1_PHB1 0x0003040B
  21690. #define GPIO_PD2_U1RX 0x00030801
  21691. #define GPIO_PD2_CCP6 0x00030802
  21692. #define GPIO_PD2_PWM2 0x00030803
  21693. #define GPIO_PD2_CCP5 0x00030804
  21694. #define GPIO_PD3_U1TX 0x00030C01
  21695. #define GPIO_PD3_CCP7 0x00030C02
  21696. #define GPIO_PD3_PWM3 0x00030C03
  21697. #define GPIO_PD3_CCP0 0x00030C04
  21698. #define GPIO_PD4_CCP0 0x00031001
  21699. #define GPIO_PD4_CCP3 0x00031002
  21700. #define GPIO_PD4_I2S0RXSD 0x00031008
  21701. #define GPIO_PD4_U1RI 0x00031009
  21702. #define GPIO_PD5_CCP2 0x00031401
  21703. #define GPIO_PD5_CCP4 0x00031402
  21704. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  21705. #define GPIO_PD5_U2RX 0x00031409
  21706. #define GPIO_PD6_FAULT0 0x00031801
  21707. #define GPIO_PD6_I2S0TXSCK 0x00031808
  21708. #define GPIO_PD6_U2TX 0x00031809
  21709. #define GPIO_PD7_IDX0 0x00031C01
  21710. #define GPIO_PD7_C0O 0x00031C02
  21711. #define GPIO_PD7_CCP1 0x00031C03
  21712. #define GPIO_PD7_I2S0TXWS 0x00031C08
  21713. #define GPIO_PD7_U1DTR 0x00031C09
  21714. #define GPIO_PE0_PWM4 0x00040001
  21715. #define GPIO_PE0_SSI1CLK 0x00040002
  21716. #define GPIO_PE0_CCP3 0x00040003
  21717. #define GPIO_PE0_USB0PFLT 0x00040009
  21718. #define GPIO_PE1_PWM5 0x00040401
  21719. #define GPIO_PE1_SSI1FSS 0x00040402
  21720. #define GPIO_PE1_FAULT0 0x00040403
  21721. #define GPIO_PE1_CCP2 0x00040404
  21722. #define GPIO_PE1_CCP6 0x00040405
  21723. #define GPIO_PE2_CCP4 0x00040801
  21724. #define GPIO_PE2_SSI1RX 0x00040802
  21725. #define GPIO_PE2_PHB1 0x00040803
  21726. #define GPIO_PE2_PHA0 0x00040804
  21727. #define GPIO_PE2_CCP2 0x00040805
  21728. #define GPIO_PE3_CCP1 0x00040C01
  21729. #define GPIO_PE3_SSI1TX 0x00040C02
  21730. #define GPIO_PE3_PHA1 0x00040C03
  21731. #define GPIO_PE3_PHB0 0x00040C04
  21732. #define GPIO_PE3_CCP7 0x00040C05
  21733. #define GPIO_PE4_CCP3 0x00041001
  21734. #define GPIO_PE4_FAULT0 0x00041004
  21735. #define GPIO_PE4_U2TX 0x00041005
  21736. #define GPIO_PE4_CCP2 0x00041006
  21737. #define GPIO_PE4_I2S0TXWS 0x00041009
  21738. #define GPIO_PE5_CCP5 0x00041401
  21739. #define GPIO_PE5_I2S0TXSD 0x00041409
  21740. #define GPIO_PE6_PWM4 0x00041801
  21741. #define GPIO_PE6_C1O 0x00041802
  21742. #define GPIO_PE6_U1CTS 0x00041809
  21743. #define GPIO_PE7_PWM5 0x00041C01
  21744. #define GPIO_PE7_U1DCD 0x00041C09
  21745. #define GPIO_PF0_CAN1RX 0x00050001
  21746. #define GPIO_PF0_PHB0 0x00050002
  21747. #define GPIO_PF0_PWM0 0x00050003
  21748. #define GPIO_PF0_I2S0TXSD 0x00050008
  21749. #define GPIO_PF0_U1DSR 0x00050009
  21750. #define GPIO_PF1_CAN1TX 0x00050401
  21751. #define GPIO_PF1_IDX1 0x00050402
  21752. #define GPIO_PF1_PWM1 0x00050403
  21753. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  21754. #define GPIO_PF1_U1RTS 0x00050409
  21755. #define GPIO_PF1_CCP3 0x0005040A
  21756. #define GPIO_PF2_PWM4 0x00050802
  21757. #define GPIO_PF2_PWM2 0x00050804
  21758. #define GPIO_PF2_SSI1CLK 0x00050809
  21759. #define GPIO_PF3_PWM5 0x00050C02
  21760. #define GPIO_PF3_PWM3 0x00050C04
  21761. #define GPIO_PF3_SSI1FSS 0x00050C09
  21762. #define GPIO_PF4_CCP0 0x00051001
  21763. #define GPIO_PF4_C0O 0x00051002
  21764. #define GPIO_PF4_FAULT0 0x00051004
  21765. #define GPIO_PF4_SSI1RX 0x00051009
  21766. #define GPIO_PF5_CCP2 0x00051401
  21767. #define GPIO_PF5_C1O 0x00051402
  21768. #define GPIO_PF5_SSI1TX 0x00051409
  21769. #define GPIO_PF6_CCP1 0x00051801
  21770. #define GPIO_PF6_PHA0 0x00051804
  21771. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  21772. #define GPIO_PF6_U1RTS 0x0005180A
  21773. #define GPIO_PF7_CCP4 0x00051C01
  21774. #define GPIO_PF7_PHB0 0x00051C04
  21775. #define GPIO_PF7_FAULT1 0x00051C09
  21776. #define GPIO_PG0_U2RX 0x00060001
  21777. #define GPIO_PG0_PWM0 0x00060002
  21778. #define GPIO_PG0_I2C1SCL 0x00060003
  21779. #define GPIO_PG0_PWM4 0x00060004
  21780. #define GPIO_PG0_USB0EPEN 0x00060007
  21781. #define GPIO_PG1_U2TX 0x00060401
  21782. #define GPIO_PG1_PWM1 0x00060402
  21783. #define GPIO_PG1_I2C1SDA 0x00060403
  21784. #define GPIO_PG1_PWM5 0x00060404
  21785. #define GPIO_PG2_PWM0 0x00060801
  21786. #define GPIO_PG2_FAULT0 0x00060804
  21787. #define GPIO_PG2_IDX1 0x00060808
  21788. #define GPIO_PG2_I2S0RXSD 0x00060809
  21789. #define GPIO_PG3_PWM1 0x00060C01
  21790. #define GPIO_PG3_FAULT2 0x00060C04
  21791. #define GPIO_PG3_FAULT0 0x00060C08
  21792. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  21793. #define GPIO_PG4_CCP3 0x00061001
  21794. #define GPIO_PG4_FAULT1 0x00061004
  21795. #define GPIO_PG4_U1RI 0x0006100A
  21796. #define GPIO_PG5_CCP5 0x00061401
  21797. #define GPIO_PG5_IDX0 0x00061404
  21798. #define GPIO_PG5_FAULT1 0x00061405
  21799. #define GPIO_PG5_I2S0RXSCK 0x00061409
  21800. #define GPIO_PG5_U1DTR 0x0006140A
  21801. #define GPIO_PG6_PHA1 0x00061801
  21802. #define GPIO_PG6_FAULT1 0x00061808
  21803. #define GPIO_PG6_I2S0RXWS 0x00061809
  21804. #define GPIO_PG6_U1RI 0x0006180A
  21805. #define GPIO_PG7_PHB1 0x00061C01
  21806. #define GPIO_PG7_CCP5 0x00061C08
  21807. #define GPIO_PH0_CCP6 0x00070001
  21808. #define GPIO_PH0_PWM2 0x00070002
  21809. #define GPIO_PH0_PWM4 0x00070009
  21810. #define GPIO_PH1_CCP7 0x00070401
  21811. #define GPIO_PH1_PWM3 0x00070402
  21812. #define GPIO_PH1_PWM5 0x00070409
  21813. #define GPIO_PH2_IDX1 0x00070801
  21814. #define GPIO_PH2_C1O 0x00070802
  21815. #define GPIO_PH2_FAULT3 0x00070804
  21816. #define GPIO_PH3_PHB0 0x00070C01
  21817. #define GPIO_PH3_FAULT0 0x00070C02
  21818. #define GPIO_PH3_USB0EPEN 0x00070C04
  21819. #define GPIO_PH4_USB0PFLT 0x00071004
  21820. #define GPIO_PH4_SSI1CLK 0x0007100B
  21821. #define GPIO_PH5_FAULT2 0x0007140A
  21822. #define GPIO_PH5_SSI1FSS 0x0007140B
  21823. #define GPIO_PH6_PWM4 0x0007180A
  21824. #define GPIO_PH6_SSI1RX 0x0007180B
  21825. #define GPIO_PH7_PWM5 0x00071C0A
  21826. #define GPIO_PH7_SSI1TX 0x00071C0B
  21827. #define GPIO_PJ0_PWM0 0x0008000A
  21828. #define GPIO_PJ0_I2C1SCL 0x0008000B
  21829. #define GPIO_PJ1_USB0PFLT 0x00080409
  21830. #define GPIO_PJ1_PWM1 0x0008040A
  21831. #define GPIO_PJ1_I2C1SDA 0x0008040B
  21832. #define GPIO_PJ2_CCP0 0x00080809
  21833. #define GPIO_PJ2_FAULT0 0x0008080A
  21834. #endif // PART_LM3S5P51
  21835. //*****************************************************************************
  21836. //
  21837. // LM3S5P56 Port/Pin Mapping Definitions
  21838. //
  21839. //*****************************************************************************
  21840. #ifdef PART_LM3S5P56
  21841. #define GPIO_PA0_U0RX 0x00000001
  21842. #define GPIO_PA0_I2C1SCL 0x00000008
  21843. #define GPIO_PA0_U1RX 0x00000009
  21844. #define GPIO_PA1_U0TX 0x00000401
  21845. #define GPIO_PA1_I2C1SDA 0x00000408
  21846. #define GPIO_PA1_U1TX 0x00000409
  21847. #define GPIO_PA2_SSI0CLK 0x00000801
  21848. #define GPIO_PA2_PWM4 0x00000804
  21849. #define GPIO_PA3_SSI0FSS 0x00000C01
  21850. #define GPIO_PA3_PWM5 0x00000C04
  21851. #define GPIO_PA4_SSI0RX 0x00001001
  21852. #define GPIO_PA4_CAN0RX 0x00001005
  21853. #define GPIO_PA5_SSI0TX 0x00001401
  21854. #define GPIO_PA5_CAN0TX 0x00001405
  21855. #define GPIO_PA6_I2C1SCL 0x00001801
  21856. #define GPIO_PA6_CCP1 0x00001802
  21857. #define GPIO_PA6_PWM0 0x00001804
  21858. #define GPIO_PA6_PWM4 0x00001805
  21859. #define GPIO_PA6_CAN0RX 0x00001806
  21860. #define GPIO_PA6_USB0EPEN 0x00001808
  21861. #define GPIO_PA7_I2C1SDA 0x00001C01
  21862. #define GPIO_PA7_CCP4 0x00001C02
  21863. #define GPIO_PA7_PWM1 0x00001C04
  21864. #define GPIO_PA7_PWM5 0x00001C05
  21865. #define GPIO_PA7_CAN0TX 0x00001C06
  21866. #define GPIO_PA7_CCP3 0x00001C07
  21867. #define GPIO_PA7_USB0PFLT 0x00001C08
  21868. #define GPIO_PB0_CCP0 0x00010001
  21869. #define GPIO_PB0_PWM2 0x00010002
  21870. #define GPIO_PB0_U1RX 0x00010005
  21871. #define GPIO_PB1_CCP2 0x00010401
  21872. #define GPIO_PB1_PWM3 0x00010402
  21873. #define GPIO_PB1_CCP1 0x00010404
  21874. #define GPIO_PB1_U1TX 0x00010405
  21875. #define GPIO_PB2_I2C0SCL 0x00010801
  21876. #define GPIO_PB2_IDX0 0x00010802
  21877. #define GPIO_PB2_CCP3 0x00010804
  21878. #define GPIO_PB2_CCP0 0x00010805
  21879. #define GPIO_PB2_USB0EPEN 0x00010808
  21880. #define GPIO_PB3_I2C0SDA 0x00010C01
  21881. #define GPIO_PB3_FAULT0 0x00010C02
  21882. #define GPIO_PB3_FAULT3 0x00010C04
  21883. #define GPIO_PB3_USB0PFLT 0x00010C08
  21884. #define GPIO_PB4_U2RX 0x00011004
  21885. #define GPIO_PB4_CAN0RX 0x00011005
  21886. #define GPIO_PB4_IDX0 0x00011006
  21887. #define GPIO_PB4_U1RX 0x00011007
  21888. #define GPIO_PB5_C0O 0x00011401
  21889. #define GPIO_PB5_CCP5 0x00011402
  21890. #define GPIO_PB5_CCP6 0x00011403
  21891. #define GPIO_PB5_CCP0 0x00011404
  21892. #define GPIO_PB5_CAN0TX 0x00011405
  21893. #define GPIO_PB5_CCP2 0x00011406
  21894. #define GPIO_PB5_U1TX 0x00011407
  21895. #define GPIO_PB6_CCP1 0x00011801
  21896. #define GPIO_PB6_CCP7 0x00011802
  21897. #define GPIO_PB6_C0O 0x00011803
  21898. #define GPIO_PB6_FAULT1 0x00011804
  21899. #define GPIO_PB6_IDX0 0x00011805
  21900. #define GPIO_PB6_CCP5 0x00011806
  21901. #define GPIO_PB7_NMI 0x00011C04
  21902. #define GPIO_PC0_TCK 0x00020003
  21903. #define GPIO_PC0_SWCLK 0x00020003
  21904. #define GPIO_PC1_TMS 0x00020403
  21905. #define GPIO_PC1_SWDIO 0x00020403
  21906. #define GPIO_PC2_TDI 0x00020803
  21907. #define GPIO_PC3_SWO 0x00020C03
  21908. #define GPIO_PC3_TDO 0x00020C03
  21909. #define GPIO_PC4_CCP5 0x00021001
  21910. #define GPIO_PC4_PHA0 0x00021002
  21911. #define GPIO_PC4_CCP2 0x00021005
  21912. #define GPIO_PC4_CCP4 0x00021006
  21913. #define GPIO_PC4_CCP1 0x00021009
  21914. #define GPIO_PC5_CCP1 0x00021401
  21915. #define GPIO_PC5_C1O 0x00021402
  21916. #define GPIO_PC5_C0O 0x00021403
  21917. #define GPIO_PC5_FAULT2 0x00021404
  21918. #define GPIO_PC5_CCP3 0x00021405
  21919. #define GPIO_PC5_USB0EPEN 0x00021406
  21920. #define GPIO_PC6_CCP3 0x00021801
  21921. #define GPIO_PC6_PHB0 0x00021802
  21922. #define GPIO_PC6_U1RX 0x00021805
  21923. #define GPIO_PC6_CCP0 0x00021806
  21924. #define GPIO_PC6_USB0PFLT 0x00021807
  21925. #define GPIO_PC7_CCP4 0x00021C01
  21926. #define GPIO_PC7_PHB0 0x00021C02
  21927. #define GPIO_PC7_CCP0 0x00021C04
  21928. #define GPIO_PC7_U1TX 0x00021C05
  21929. #define GPIO_PC7_USB0PFLT 0x00021C06
  21930. #define GPIO_PC7_C1O 0x00021C07
  21931. #define GPIO_PD0_PWM0 0x00030001
  21932. #define GPIO_PD0_CAN0RX 0x00030002
  21933. #define GPIO_PD0_IDX0 0x00030003
  21934. #define GPIO_PD0_U2RX 0x00030004
  21935. #define GPIO_PD0_U1RX 0x00030005
  21936. #define GPIO_PD0_CCP6 0x00030006
  21937. #define GPIO_PD1_PWM1 0x00030401
  21938. #define GPIO_PD1_CAN0TX 0x00030402
  21939. #define GPIO_PD1_PHA0 0x00030403
  21940. #define GPIO_PD1_U2TX 0x00030404
  21941. #define GPIO_PD1_U1TX 0x00030405
  21942. #define GPIO_PD1_CCP7 0x00030406
  21943. #define GPIO_PD1_CCP2 0x0003040A
  21944. #define GPIO_PD2_U1RX 0x00030801
  21945. #define GPIO_PD2_CCP6 0x00030802
  21946. #define GPIO_PD2_PWM2 0x00030803
  21947. #define GPIO_PD2_CCP5 0x00030804
  21948. #define GPIO_PD3_U1TX 0x00030C01
  21949. #define GPIO_PD3_CCP7 0x00030C02
  21950. #define GPIO_PD3_PWM3 0x00030C03
  21951. #define GPIO_PD3_CCP0 0x00030C04
  21952. #define GPIO_PE0_PWM4 0x00040001
  21953. #define GPIO_PE0_SSI1CLK 0x00040002
  21954. #define GPIO_PE0_CCP3 0x00040003
  21955. #define GPIO_PE0_USB0PFLT 0x00040009
  21956. #define GPIO_PE1_PWM5 0x00040401
  21957. #define GPIO_PE1_SSI1FSS 0x00040402
  21958. #define GPIO_PE1_FAULT0 0x00040403
  21959. #define GPIO_PE1_CCP2 0x00040404
  21960. #define GPIO_PE1_CCP6 0x00040405
  21961. #define GPIO_PE2_CCP4 0x00040801
  21962. #define GPIO_PE2_SSI1RX 0x00040802
  21963. #define GPIO_PE2_PHA0 0x00040804
  21964. #define GPIO_PE2_CCP2 0x00040805
  21965. #define GPIO_PE3_CCP1 0x00040C01
  21966. #define GPIO_PE3_SSI1TX 0x00040C02
  21967. #define GPIO_PE3_PHB0 0x00040C04
  21968. #define GPIO_PE3_CCP7 0x00040C05
  21969. #define GPIO_PE4_CCP3 0x00041001
  21970. #define GPIO_PE4_FAULT0 0x00041004
  21971. #define GPIO_PE4_U2TX 0x00041005
  21972. #define GPIO_PE4_CCP2 0x00041006
  21973. #endif // PART_LM3S5P56
  21974. //*****************************************************************************
  21975. //
  21976. // LM3S5R31 Port/Pin Mapping Definitions
  21977. //
  21978. //*****************************************************************************
  21979. #ifdef PART_LM3S5R31
  21980. #define GPIO_PA0_U0RX 0x00000001
  21981. #define GPIO_PA0_I2C1SCL 0x00000008
  21982. #define GPIO_PA0_U1RX 0x00000009
  21983. #define GPIO_PA1_U0TX 0x00000401
  21984. #define GPIO_PA1_I2C1SDA 0x00000408
  21985. #define GPIO_PA1_U1TX 0x00000409
  21986. #define GPIO_PA2_SSI0CLK 0x00000801
  21987. #define GPIO_PA2_PWM4 0x00000804
  21988. #define GPIO_PA2_I2S0RXSD 0x00000809
  21989. #define GPIO_PA3_SSI0FSS 0x00000C01
  21990. #define GPIO_PA3_PWM5 0x00000C04
  21991. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  21992. #define GPIO_PA4_SSI0RX 0x00001001
  21993. #define GPIO_PA4_PWM6 0x00001004
  21994. #define GPIO_PA4_CAN0RX 0x00001005
  21995. #define GPIO_PA4_I2S0TXSCK 0x00001009
  21996. #define GPIO_PA5_SSI0TX 0x00001401
  21997. #define GPIO_PA5_PWM7 0x00001404
  21998. #define GPIO_PA5_CAN0TX 0x00001405
  21999. #define GPIO_PA5_I2S0TXWS 0x00001409
  22000. #define GPIO_PA6_I2C1SCL 0x00001801
  22001. #define GPIO_PA6_CCP1 0x00001802
  22002. #define GPIO_PA6_PWM0 0x00001804
  22003. #define GPIO_PA6_PWM4 0x00001805
  22004. #define GPIO_PA6_CAN0RX 0x00001806
  22005. #define GPIO_PA6_U1CTS 0x00001809
  22006. #define GPIO_PA7_I2C1SDA 0x00001C01
  22007. #define GPIO_PA7_CCP4 0x00001C02
  22008. #define GPIO_PA7_PWM1 0x00001C04
  22009. #define GPIO_PA7_PWM5 0x00001C05
  22010. #define GPIO_PA7_CAN0TX 0x00001C06
  22011. #define GPIO_PA7_CCP3 0x00001C07
  22012. #define GPIO_PA7_U1DCD 0x00001C09
  22013. #define GPIO_PB0_CCP0 0x00010001
  22014. #define GPIO_PB0_PWM2 0x00010002
  22015. #define GPIO_PB0_U1RX 0x00010005
  22016. #define GPIO_PB1_CCP2 0x00010401
  22017. #define GPIO_PB1_PWM3 0x00010402
  22018. #define GPIO_PB1_CCP1 0x00010404
  22019. #define GPIO_PB1_U1TX 0x00010405
  22020. #define GPIO_PB2_I2C0SCL 0x00010801
  22021. #define GPIO_PB2_IDX0 0x00010802
  22022. #define GPIO_PB2_CCP3 0x00010804
  22023. #define GPIO_PB2_CCP0 0x00010805
  22024. #define GPIO_PB3_I2C0SDA 0x00010C01
  22025. #define GPIO_PB3_FAULT0 0x00010C02
  22026. #define GPIO_PB3_FAULT3 0x00010C04
  22027. #define GPIO_PB4_U2RX 0x00011004
  22028. #define GPIO_PB4_CAN0RX 0x00011005
  22029. #define GPIO_PB4_IDX0 0x00011006
  22030. #define GPIO_PB4_U1RX 0x00011007
  22031. #define GPIO_PB4_EPI0S23 0x00011008
  22032. #define GPIO_PB5_C0O 0x00011401
  22033. #define GPIO_PB5_CCP5 0x00011402
  22034. #define GPIO_PB5_CCP6 0x00011403
  22035. #define GPIO_PB5_CCP0 0x00011404
  22036. #define GPIO_PB5_CAN0TX 0x00011405
  22037. #define GPIO_PB5_CCP2 0x00011406
  22038. #define GPIO_PB5_U1TX 0x00011407
  22039. #define GPIO_PB5_EPI0S22 0x00011408
  22040. #define GPIO_PB6_CCP1 0x00011801
  22041. #define GPIO_PB6_CCP7 0x00011802
  22042. #define GPIO_PB6_C0O 0x00011803
  22043. #define GPIO_PB6_FAULT1 0x00011804
  22044. #define GPIO_PB6_IDX0 0x00011805
  22045. #define GPIO_PB6_CCP5 0x00011806
  22046. #define GPIO_PB6_I2S0TXSCK 0x00011809
  22047. #define GPIO_PB7_NMI 0x00011C04
  22048. #define GPIO_PC0_TCK 0x00020003
  22049. #define GPIO_PC0_SWCLK 0x00020003
  22050. #define GPIO_PC1_TMS 0x00020403
  22051. #define GPIO_PC1_SWDIO 0x00020403
  22052. #define GPIO_PC2_TDI 0x00020803
  22053. #define GPIO_PC3_SWO 0x00020C03
  22054. #define GPIO_PC3_TDO 0x00020C03
  22055. #define GPIO_PC4_CCP5 0x00021001
  22056. #define GPIO_PC4_PHA0 0x00021002
  22057. #define GPIO_PC4_PWM6 0x00021004
  22058. #define GPIO_PC4_CCP2 0x00021005
  22059. #define GPIO_PC4_CCP4 0x00021006
  22060. #define GPIO_PC4_EPI0S2 0x00021008
  22061. #define GPIO_PC4_CCP1 0x00021009
  22062. #define GPIO_PC5_CCP1 0x00021401
  22063. #define GPIO_PC5_C1O 0x00021402
  22064. #define GPIO_PC5_C0O 0x00021403
  22065. #define GPIO_PC5_FAULT2 0x00021404
  22066. #define GPIO_PC5_CCP3 0x00021405
  22067. #define GPIO_PC5_EPI0S3 0x00021408
  22068. #define GPIO_PC6_CCP3 0x00021801
  22069. #define GPIO_PC6_PHB0 0x00021802
  22070. #define GPIO_PC6_PWM7 0x00021804
  22071. #define GPIO_PC6_U1RX 0x00021805
  22072. #define GPIO_PC6_CCP0 0x00021806
  22073. #define GPIO_PC6_EPI0S4 0x00021808
  22074. #define GPIO_PC7_CCP4 0x00021C01
  22075. #define GPIO_PC7_PHB0 0x00021C02
  22076. #define GPIO_PC7_CCP0 0x00021C04
  22077. #define GPIO_PC7_U1TX 0x00021C05
  22078. #define GPIO_PC7_C1O 0x00021C07
  22079. #define GPIO_PC7_EPI0S5 0x00021C08
  22080. #define GPIO_PD0_PWM0 0x00030001
  22081. #define GPIO_PD0_CAN0RX 0x00030002
  22082. #define GPIO_PD0_IDX0 0x00030003
  22083. #define GPIO_PD0_U2RX 0x00030004
  22084. #define GPIO_PD0_U1RX 0x00030005
  22085. #define GPIO_PD0_CCP6 0x00030006
  22086. #define GPIO_PD0_I2S0RXSCK 0x00030008
  22087. #define GPIO_PD0_U1CTS 0x00030009
  22088. #define GPIO_PD1_PWM1 0x00030401
  22089. #define GPIO_PD1_CAN0TX 0x00030402
  22090. #define GPIO_PD1_PHA0 0x00030403
  22091. #define GPIO_PD1_U2TX 0x00030404
  22092. #define GPIO_PD1_U1TX 0x00030405
  22093. #define GPIO_PD1_CCP7 0x00030406
  22094. #define GPIO_PD1_I2S0RXWS 0x00030408
  22095. #define GPIO_PD1_U1DCD 0x00030409
  22096. #define GPIO_PD1_CCP2 0x0003040A
  22097. #define GPIO_PD1_PHB1 0x0003040B
  22098. #define GPIO_PD2_U1RX 0x00030801
  22099. #define GPIO_PD2_CCP6 0x00030802
  22100. #define GPIO_PD2_PWM2 0x00030803
  22101. #define GPIO_PD2_CCP5 0x00030804
  22102. #define GPIO_PD2_EPI0S20 0x00030808
  22103. #define GPIO_PD3_U1TX 0x00030C01
  22104. #define GPIO_PD3_CCP7 0x00030C02
  22105. #define GPIO_PD3_PWM3 0x00030C03
  22106. #define GPIO_PD3_CCP0 0x00030C04
  22107. #define GPIO_PD3_EPI0S21 0x00030C08
  22108. #define GPIO_PD4_CCP0 0x00031001
  22109. #define GPIO_PD4_CCP3 0x00031002
  22110. #define GPIO_PD4_I2S0RXSD 0x00031008
  22111. #define GPIO_PD4_U1RI 0x00031009
  22112. #define GPIO_PD4_EPI0S19 0x0003100A
  22113. #define GPIO_PD5_CCP2 0x00031401
  22114. #define GPIO_PD5_CCP4 0x00031402
  22115. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  22116. #define GPIO_PD5_U2RX 0x00031409
  22117. #define GPIO_PD5_EPI0S28 0x0003140A
  22118. #define GPIO_PD6_FAULT0 0x00031801
  22119. #define GPIO_PD6_I2S0TXSCK 0x00031808
  22120. #define GPIO_PD6_U2TX 0x00031809
  22121. #define GPIO_PD6_EPI0S29 0x0003180A
  22122. #define GPIO_PD7_IDX0 0x00031C01
  22123. #define GPIO_PD7_C0O 0x00031C02
  22124. #define GPIO_PD7_CCP1 0x00031C03
  22125. #define GPIO_PD7_I2S0TXWS 0x00031C08
  22126. #define GPIO_PD7_U1DTR 0x00031C09
  22127. #define GPIO_PD7_EPI0S30 0x00031C0A
  22128. #define GPIO_PE0_PWM4 0x00040001
  22129. #define GPIO_PE0_SSI1CLK 0x00040002
  22130. #define GPIO_PE0_CCP3 0x00040003
  22131. #define GPIO_PE0_EPI0S8 0x00040008
  22132. #define GPIO_PE1_PWM5 0x00040401
  22133. #define GPIO_PE1_SSI1FSS 0x00040402
  22134. #define GPIO_PE1_FAULT0 0x00040403
  22135. #define GPIO_PE1_CCP2 0x00040404
  22136. #define GPIO_PE1_CCP6 0x00040405
  22137. #define GPIO_PE1_EPI0S9 0x00040408
  22138. #define GPIO_PE2_CCP4 0x00040801
  22139. #define GPIO_PE2_SSI1RX 0x00040802
  22140. #define GPIO_PE2_PHB1 0x00040803
  22141. #define GPIO_PE2_PHA0 0x00040804
  22142. #define GPIO_PE2_CCP2 0x00040805
  22143. #define GPIO_PE2_EPI0S24 0x00040808
  22144. #define GPIO_PE3_CCP1 0x00040C01
  22145. #define GPIO_PE3_SSI1TX 0x00040C02
  22146. #define GPIO_PE3_PHA1 0x00040C03
  22147. #define GPIO_PE3_PHB0 0x00040C04
  22148. #define GPIO_PE3_CCP7 0x00040C05
  22149. #define GPIO_PE3_EPI0S25 0x00040C08
  22150. #define GPIO_PE4_CCP3 0x00041001
  22151. #define GPIO_PE4_FAULT0 0x00041004
  22152. #define GPIO_PE4_U2TX 0x00041005
  22153. #define GPIO_PE4_CCP2 0x00041006
  22154. #define GPIO_PE4_I2S0TXWS 0x00041009
  22155. #define GPIO_PE5_CCP5 0x00041401
  22156. #define GPIO_PE5_I2S0TXSD 0x00041409
  22157. #define GPIO_PE6_PWM4 0x00041801
  22158. #define GPIO_PE6_C1O 0x00041802
  22159. #define GPIO_PE6_U1CTS 0x00041809
  22160. #define GPIO_PE7_PWM5 0x00041C01
  22161. #define GPIO_PE7_U1DCD 0x00041C09
  22162. #define GPIO_PF0_PHB0 0x00050002
  22163. #define GPIO_PF0_PWM0 0x00050003
  22164. #define GPIO_PF0_I2S0TXSD 0x00050008
  22165. #define GPIO_PF0_U1DSR 0x00050009
  22166. #define GPIO_PF1_IDX1 0x00050402
  22167. #define GPIO_PF1_PWM1 0x00050403
  22168. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  22169. #define GPIO_PF1_U1RTS 0x00050409
  22170. #define GPIO_PF1_CCP3 0x0005040A
  22171. #define GPIO_PF2_PWM4 0x00050802
  22172. #define GPIO_PF2_PWM2 0x00050804
  22173. #define GPIO_PF2_SSI1CLK 0x00050809
  22174. #define GPIO_PF3_PWM5 0x00050C02
  22175. #define GPIO_PF3_PWM3 0x00050C04
  22176. #define GPIO_PF3_SSI1FSS 0x00050C09
  22177. #define GPIO_PF4_CCP0 0x00051001
  22178. #define GPIO_PF4_C0O 0x00051002
  22179. #define GPIO_PF4_FAULT0 0x00051004
  22180. #define GPIO_PF4_EPI0S12 0x00051008
  22181. #define GPIO_PF4_SSI1RX 0x00051009
  22182. #define GPIO_PF5_CCP2 0x00051401
  22183. #define GPIO_PF5_C1O 0x00051402
  22184. #define GPIO_PF5_EPI0S15 0x00051408
  22185. #define GPIO_PF5_SSI1TX 0x00051409
  22186. #define GPIO_PF6_CCP1 0x00051801
  22187. #define GPIO_PF6_PHA0 0x00051804
  22188. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  22189. #define GPIO_PF6_U1RTS 0x0005180A
  22190. #define GPIO_PF7_CCP4 0x00051C01
  22191. #define GPIO_PF7_PHB0 0x00051C04
  22192. #define GPIO_PF7_EPI0S12 0x00051C08
  22193. #define GPIO_PF7_FAULT1 0x00051C09
  22194. #define GPIO_PG0_U2RX 0x00060001
  22195. #define GPIO_PG0_PWM0 0x00060002
  22196. #define GPIO_PG0_I2C1SCL 0x00060003
  22197. #define GPIO_PG0_PWM4 0x00060004
  22198. #define GPIO_PG0_EPI0S13 0x00060008
  22199. #define GPIO_PG1_U2TX 0x00060401
  22200. #define GPIO_PG1_PWM1 0x00060402
  22201. #define GPIO_PG1_I2C1SDA 0x00060403
  22202. #define GPIO_PG1_PWM5 0x00060404
  22203. #define GPIO_PG1_EPI0S14 0x00060408
  22204. #define GPIO_PG2_PWM0 0x00060801
  22205. #define GPIO_PG2_FAULT0 0x00060804
  22206. #define GPIO_PG2_IDX1 0x00060808
  22207. #define GPIO_PG2_I2S0RXSD 0x00060809
  22208. #define GPIO_PG3_PWM1 0x00060C01
  22209. #define GPIO_PG3_FAULT2 0x00060C04
  22210. #define GPIO_PG3_FAULT0 0x00060C08
  22211. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  22212. #define GPIO_PG4_CCP3 0x00061001
  22213. #define GPIO_PG4_FAULT1 0x00061004
  22214. #define GPIO_PG4_EPI0S15 0x00061008
  22215. #define GPIO_PG4_PWM6 0x00061009
  22216. #define GPIO_PG4_U1RI 0x0006100A
  22217. #define GPIO_PG5_CCP5 0x00061401
  22218. #define GPIO_PG5_IDX0 0x00061404
  22219. #define GPIO_PG5_FAULT1 0x00061405
  22220. #define GPIO_PG5_PWM7 0x00061408
  22221. #define GPIO_PG5_I2S0RXSCK 0x00061409
  22222. #define GPIO_PG5_U1DTR 0x0006140A
  22223. #define GPIO_PG6_PHA1 0x00061801
  22224. #define GPIO_PG6_PWM6 0x00061804
  22225. #define GPIO_PG6_FAULT1 0x00061808
  22226. #define GPIO_PG6_I2S0RXWS 0x00061809
  22227. #define GPIO_PG6_U1RI 0x0006180A
  22228. #define GPIO_PG7_PHB1 0x00061C01
  22229. #define GPIO_PG7_PWM7 0x00061C04
  22230. #define GPIO_PG7_CCP5 0x00061C08
  22231. #define GPIO_PG7_EPI0S31 0x00061C09
  22232. #define GPIO_PH0_CCP6 0x00070001
  22233. #define GPIO_PH0_PWM2 0x00070002
  22234. #define GPIO_PH0_EPI0S6 0x00070008
  22235. #define GPIO_PH0_PWM4 0x00070009
  22236. #define GPIO_PH1_CCP7 0x00070401
  22237. #define GPIO_PH1_PWM3 0x00070402
  22238. #define GPIO_PH1_EPI0S7 0x00070408
  22239. #define GPIO_PH1_PWM5 0x00070409
  22240. #define GPIO_PH2_IDX1 0x00070801
  22241. #define GPIO_PH2_C1O 0x00070802
  22242. #define GPIO_PH2_FAULT3 0x00070804
  22243. #define GPIO_PH2_EPI0S1 0x00070808
  22244. #define GPIO_PH3_PHB0 0x00070C01
  22245. #define GPIO_PH3_FAULT0 0x00070C02
  22246. #define GPIO_PH3_EPI0S0 0x00070C08
  22247. #define GPIO_PH4_EPI0S10 0x00071008
  22248. #define GPIO_PH4_SSI1CLK 0x0007100B
  22249. #define GPIO_PH5_EPI0S11 0x00071408
  22250. #define GPIO_PH5_FAULT2 0x0007140A
  22251. #define GPIO_PH5_SSI1FSS 0x0007140B
  22252. #define GPIO_PH6_EPI0S26 0x00071808
  22253. #define GPIO_PH6_PWM4 0x0007180A
  22254. #define GPIO_PH6_SSI1RX 0x0007180B
  22255. #define GPIO_PH7_EPI0S27 0x00071C08
  22256. #define GPIO_PH7_PWM5 0x00071C0A
  22257. #define GPIO_PH7_SSI1TX 0x00071C0B
  22258. #define GPIO_PJ0_EPI0S16 0x00080008
  22259. #define GPIO_PJ0_PWM0 0x0008000A
  22260. #define GPIO_PJ0_I2C1SCL 0x0008000B
  22261. #define GPIO_PJ1_EPI0S17 0x00080408
  22262. #define GPIO_PJ1_PWM1 0x0008040A
  22263. #define GPIO_PJ1_I2C1SDA 0x0008040B
  22264. #define GPIO_PJ2_EPI0S18 0x00080808
  22265. #define GPIO_PJ2_CCP0 0x00080809
  22266. #define GPIO_PJ2_FAULT0 0x0008080A
  22267. #endif // PART_LM3S5R31
  22268. //*****************************************************************************
  22269. //
  22270. // LM3S5R36 Port/Pin Mapping Definitions
  22271. //
  22272. //*****************************************************************************
  22273. #ifdef PART_LM3S5R36
  22274. #define GPIO_PA0_U0RX 0x00000001
  22275. #define GPIO_PA0_I2C1SCL 0x00000008
  22276. #define GPIO_PA0_U1RX 0x00000009
  22277. #define GPIO_PA1_U0TX 0x00000401
  22278. #define GPIO_PA1_I2C1SDA 0x00000408
  22279. #define GPIO_PA1_U1TX 0x00000409
  22280. #define GPIO_PA2_SSI0CLK 0x00000801
  22281. #define GPIO_PA2_PWM4 0x00000804
  22282. #define GPIO_PA3_SSI0FSS 0x00000C01
  22283. #define GPIO_PA3_PWM5 0x00000C04
  22284. #define GPIO_PA4_SSI0RX 0x00001001
  22285. #define GPIO_PA4_PWM6 0x00001004
  22286. #define GPIO_PA4_CAN0RX 0x00001005
  22287. #define GPIO_PA5_SSI0TX 0x00001401
  22288. #define GPIO_PA5_PWM7 0x00001404
  22289. #define GPIO_PA5_CAN0TX 0x00001405
  22290. #define GPIO_PA6_I2C1SCL 0x00001801
  22291. #define GPIO_PA6_CCP1 0x00001802
  22292. #define GPIO_PA6_PWM0 0x00001804
  22293. #define GPIO_PA6_PWM4 0x00001805
  22294. #define GPIO_PA6_CAN0RX 0x00001806
  22295. #define GPIO_PA7_I2C1SDA 0x00001C01
  22296. #define GPIO_PA7_CCP4 0x00001C02
  22297. #define GPIO_PA7_PWM1 0x00001C04
  22298. #define GPIO_PA7_PWM5 0x00001C05
  22299. #define GPIO_PA7_CAN0TX 0x00001C06
  22300. #define GPIO_PA7_CCP3 0x00001C07
  22301. #define GPIO_PB0_CCP0 0x00010001
  22302. #define GPIO_PB0_PWM2 0x00010002
  22303. #define GPIO_PB0_U1RX 0x00010005
  22304. #define GPIO_PB1_CCP2 0x00010401
  22305. #define GPIO_PB1_PWM3 0x00010402
  22306. #define GPIO_PB1_CCP1 0x00010404
  22307. #define GPIO_PB1_U1TX 0x00010405
  22308. #define GPIO_PB2_I2C0SCL 0x00010801
  22309. #define GPIO_PB2_IDX0 0x00010802
  22310. #define GPIO_PB2_CCP3 0x00010804
  22311. #define GPIO_PB2_CCP0 0x00010805
  22312. #define GPIO_PB3_I2C0SDA 0x00010C01
  22313. #define GPIO_PB3_FAULT0 0x00010C02
  22314. #define GPIO_PB3_FAULT3 0x00010C04
  22315. #define GPIO_PB4_U2RX 0x00011004
  22316. #define GPIO_PB4_CAN0RX 0x00011005
  22317. #define GPIO_PB4_IDX0 0x00011006
  22318. #define GPIO_PB4_U1RX 0x00011007
  22319. #define GPIO_PB5_C0O 0x00011401
  22320. #define GPIO_PB5_CCP5 0x00011402
  22321. #define GPIO_PB5_CCP6 0x00011403
  22322. #define GPIO_PB5_CCP0 0x00011404
  22323. #define GPIO_PB5_CAN0TX 0x00011405
  22324. #define GPIO_PB5_CCP2 0x00011406
  22325. #define GPIO_PB5_U1TX 0x00011407
  22326. #define GPIO_PB6_CCP1 0x00011801
  22327. #define GPIO_PB6_CCP7 0x00011802
  22328. #define GPIO_PB6_C0O 0x00011803
  22329. #define GPIO_PB6_FAULT1 0x00011804
  22330. #define GPIO_PB6_IDX0 0x00011805
  22331. #define GPIO_PB6_CCP5 0x00011806
  22332. #define GPIO_PB7_NMI 0x00011C04
  22333. #define GPIO_PC0_TCK 0x00020003
  22334. #define GPIO_PC0_SWCLK 0x00020003
  22335. #define GPIO_PC1_TMS 0x00020403
  22336. #define GPIO_PC1_SWDIO 0x00020403
  22337. #define GPIO_PC2_TDI 0x00020803
  22338. #define GPIO_PC3_SWO 0x00020C03
  22339. #define GPIO_PC3_TDO 0x00020C03
  22340. #define GPIO_PC4_CCP5 0x00021001
  22341. #define GPIO_PC4_PHA0 0x00021002
  22342. #define GPIO_PC4_PWM6 0x00021004
  22343. #define GPIO_PC4_CCP2 0x00021005
  22344. #define GPIO_PC4_CCP4 0x00021006
  22345. #define GPIO_PC4_CCP1 0x00021009
  22346. #define GPIO_PC5_CCP1 0x00021401
  22347. #define GPIO_PC5_C1O 0x00021402
  22348. #define GPIO_PC5_C0O 0x00021403
  22349. #define GPIO_PC5_FAULT2 0x00021404
  22350. #define GPIO_PC5_CCP3 0x00021405
  22351. #define GPIO_PC6_CCP3 0x00021801
  22352. #define GPIO_PC6_PHB0 0x00021802
  22353. #define GPIO_PC6_PWM7 0x00021804
  22354. #define GPIO_PC6_U1RX 0x00021805
  22355. #define GPIO_PC6_CCP0 0x00021806
  22356. #define GPIO_PC7_CCP4 0x00021C01
  22357. #define GPIO_PC7_PHB0 0x00021C02
  22358. #define GPIO_PC7_CCP0 0x00021C04
  22359. #define GPIO_PC7_U1TX 0x00021C05
  22360. #define GPIO_PC7_C1O 0x00021C07
  22361. #define GPIO_PD0_PWM0 0x00030001
  22362. #define GPIO_PD0_CAN0RX 0x00030002
  22363. #define GPIO_PD0_IDX0 0x00030003
  22364. #define GPIO_PD0_U2RX 0x00030004
  22365. #define GPIO_PD0_U1RX 0x00030005
  22366. #define GPIO_PD0_CCP6 0x00030006
  22367. #define GPIO_PD1_PWM1 0x00030401
  22368. #define GPIO_PD1_CAN0TX 0x00030402
  22369. #define GPIO_PD1_PHA0 0x00030403
  22370. #define GPIO_PD1_U2TX 0x00030404
  22371. #define GPIO_PD1_U1TX 0x00030405
  22372. #define GPIO_PD1_CCP7 0x00030406
  22373. #define GPIO_PD1_CCP2 0x0003040A
  22374. #define GPIO_PD2_U1RX 0x00030801
  22375. #define GPIO_PD2_CCP6 0x00030802
  22376. #define GPIO_PD2_PWM2 0x00030803
  22377. #define GPIO_PD2_CCP5 0x00030804
  22378. #define GPIO_PD3_U1TX 0x00030C01
  22379. #define GPIO_PD3_CCP7 0x00030C02
  22380. #define GPIO_PD3_PWM3 0x00030C03
  22381. #define GPIO_PD3_CCP0 0x00030C04
  22382. #define GPIO_PE0_PWM4 0x00040001
  22383. #define GPIO_PE0_SSI1CLK 0x00040002
  22384. #define GPIO_PE0_CCP3 0x00040003
  22385. #define GPIO_PE1_PWM5 0x00040401
  22386. #define GPIO_PE1_SSI1FSS 0x00040402
  22387. #define GPIO_PE1_FAULT0 0x00040403
  22388. #define GPIO_PE1_CCP2 0x00040404
  22389. #define GPIO_PE1_CCP6 0x00040405
  22390. #define GPIO_PE2_CCP4 0x00040801
  22391. #define GPIO_PE2_SSI1RX 0x00040802
  22392. #define GPIO_PE2_PHA0 0x00040804
  22393. #define GPIO_PE2_CCP2 0x00040805
  22394. #define GPIO_PE3_CCP1 0x00040C01
  22395. #define GPIO_PE3_SSI1TX 0x00040C02
  22396. #define GPIO_PE3_PHB0 0x00040C04
  22397. #define GPIO_PE3_CCP7 0x00040C05
  22398. #define GPIO_PE4_CCP3 0x00041001
  22399. #define GPIO_PE4_FAULT0 0x00041004
  22400. #define GPIO_PE4_U2TX 0x00041005
  22401. #define GPIO_PE4_CCP2 0x00041006
  22402. #endif // PART_LM3S5R36
  22403. //*****************************************************************************
  22404. //
  22405. // LM3S5T36 Port/Pin Mapping Definitions
  22406. //
  22407. //*****************************************************************************
  22408. #ifdef PART_LM3S5T36
  22409. #define GPIO_PA0_U0RX 0x00000001
  22410. #define GPIO_PA0_I2C1SCL 0x00000008
  22411. #define GPIO_PA0_U1RX 0x00000009
  22412. #define GPIO_PA1_U0TX 0x00000401
  22413. #define GPIO_PA1_I2C1SDA 0x00000408
  22414. #define GPIO_PA1_U1TX 0x00000409
  22415. #define GPIO_PA2_SSI0CLK 0x00000801
  22416. #define GPIO_PA2_PWM4 0x00000804
  22417. #define GPIO_PA3_SSI0FSS 0x00000C01
  22418. #define GPIO_PA3_PWM5 0x00000C04
  22419. #define GPIO_PA4_SSI0RX 0x00001001
  22420. #define GPIO_PA4_CAN0RX 0x00001005
  22421. #define GPIO_PA5_SSI0TX 0x00001401
  22422. #define GPIO_PA5_CAN0TX 0x00001405
  22423. #define GPIO_PA6_I2C1SCL 0x00001801
  22424. #define GPIO_PA6_CCP1 0x00001802
  22425. #define GPIO_PA6_PWM0 0x00001804
  22426. #define GPIO_PA6_PWM4 0x00001805
  22427. #define GPIO_PA6_CAN0RX 0x00001806
  22428. #define GPIO_PA7_I2C1SDA 0x00001C01
  22429. #define GPIO_PA7_CCP4 0x00001C02
  22430. #define GPIO_PA7_PWM1 0x00001C04
  22431. #define GPIO_PA7_PWM5 0x00001C05
  22432. #define GPIO_PA7_CAN0TX 0x00001C06
  22433. #define GPIO_PA7_CCP3 0x00001C07
  22434. #define GPIO_PB0_CCP0 0x00010001
  22435. #define GPIO_PB0_PWM2 0x00010002
  22436. #define GPIO_PB0_U1RX 0x00010005
  22437. #define GPIO_PB1_CCP2 0x00010401
  22438. #define GPIO_PB1_PWM3 0x00010402
  22439. #define GPIO_PB1_CCP1 0x00010404
  22440. #define GPIO_PB1_U1TX 0x00010405
  22441. #define GPIO_PB2_I2C0SCL 0x00010801
  22442. #define GPIO_PB2_IDX0 0x00010802
  22443. #define GPIO_PB2_CCP3 0x00010804
  22444. #define GPIO_PB2_CCP0 0x00010805
  22445. #define GPIO_PB3_I2C0SDA 0x00010C01
  22446. #define GPIO_PB3_FAULT0 0x00010C02
  22447. #define GPIO_PB3_FAULT3 0x00010C04
  22448. #define GPIO_PB4_U2RX 0x00011004
  22449. #define GPIO_PB4_CAN0RX 0x00011005
  22450. #define GPIO_PB4_IDX0 0x00011006
  22451. #define GPIO_PB4_U1RX 0x00011007
  22452. #define GPIO_PB5_C0O 0x00011401
  22453. #define GPIO_PB5_CCP5 0x00011402
  22454. #define GPIO_PB5_CCP0 0x00011404
  22455. #define GPIO_PB5_CAN0TX 0x00011405
  22456. #define GPIO_PB5_CCP2 0x00011406
  22457. #define GPIO_PB5_U1TX 0x00011407
  22458. #define GPIO_PB6_CCP1 0x00011801
  22459. #define GPIO_PB6_C0O 0x00011803
  22460. #define GPIO_PB6_FAULT1 0x00011804
  22461. #define GPIO_PB6_IDX0 0x00011805
  22462. #define GPIO_PB6_CCP5 0x00011806
  22463. #define GPIO_PB7_NMI 0x00011C04
  22464. #define GPIO_PC0_TCK 0x00020003
  22465. #define GPIO_PC0_SWCLK 0x00020003
  22466. #define GPIO_PC1_TMS 0x00020403
  22467. #define GPIO_PC1_SWDIO 0x00020403
  22468. #define GPIO_PC2_TDI 0x00020803
  22469. #define GPIO_PC3_SWO 0x00020C03
  22470. #define GPIO_PC3_TDO 0x00020C03
  22471. #define GPIO_PC4_CCP5 0x00021001
  22472. #define GPIO_PC4_PHA0 0x00021002
  22473. #define GPIO_PC4_CCP2 0x00021005
  22474. #define GPIO_PC4_CCP4 0x00021006
  22475. #define GPIO_PC4_CCP1 0x00021009
  22476. #define GPIO_PC5_CCP1 0x00021401
  22477. #define GPIO_PC5_C1O 0x00021402
  22478. #define GPIO_PC5_C0O 0x00021403
  22479. #define GPIO_PC5_FAULT2 0x00021404
  22480. #define GPIO_PC5_CCP3 0x00021405
  22481. #define GPIO_PC6_CCP3 0x00021801
  22482. #define GPIO_PC6_PHB0 0x00021802
  22483. #define GPIO_PC6_U1RX 0x00021805
  22484. #define GPIO_PC6_CCP0 0x00021806
  22485. #define GPIO_PC7_CCP4 0x00021C01
  22486. #define GPIO_PC7_PHB0 0x00021C02
  22487. #define GPIO_PC7_CCP0 0x00021C04
  22488. #define GPIO_PC7_U1TX 0x00021C05
  22489. #define GPIO_PC7_C1O 0x00021C07
  22490. #define GPIO_PD0_PWM0 0x00030001
  22491. #define GPIO_PD0_CAN0RX 0x00030002
  22492. #define GPIO_PD0_IDX0 0x00030003
  22493. #define GPIO_PD0_U2RX 0x00030004
  22494. #define GPIO_PD0_U1RX 0x00030005
  22495. #define GPIO_PD1_PWM1 0x00030401
  22496. #define GPIO_PD1_CAN0TX 0x00030402
  22497. #define GPIO_PD1_PHA0 0x00030403
  22498. #define GPIO_PD1_U2TX 0x00030404
  22499. #define GPIO_PD1_U1TX 0x00030405
  22500. #define GPIO_PD1_CCP2 0x0003040A
  22501. #define GPIO_PD2_U1RX 0x00030801
  22502. #define GPIO_PD2_PWM2 0x00030803
  22503. #define GPIO_PD2_CCP5 0x00030804
  22504. #define GPIO_PD3_U1TX 0x00030C01
  22505. #define GPIO_PD3_PWM3 0x00030C03
  22506. #define GPIO_PD3_CCP0 0x00030C04
  22507. #define GPIO_PE0_PWM4 0x00040001
  22508. #define GPIO_PE0_SSI1CLK 0x00040002
  22509. #define GPIO_PE0_CCP3 0x00040003
  22510. #define GPIO_PE1_PWM5 0x00040401
  22511. #define GPIO_PE1_SSI1FSS 0x00040402
  22512. #define GPIO_PE1_FAULT0 0x00040403
  22513. #define GPIO_PE1_CCP2 0x00040404
  22514. #define GPIO_PE2_CCP4 0x00040801
  22515. #define GPIO_PE2_SSI1RX 0x00040802
  22516. #define GPIO_PE2_PHA0 0x00040804
  22517. #define GPIO_PE2_CCP2 0x00040805
  22518. #define GPIO_PE3_CCP1 0x00040C01
  22519. #define GPIO_PE3_SSI1TX 0x00040C02
  22520. #define GPIO_PE3_PHB0 0x00040C04
  22521. #define GPIO_PE4_CCP3 0x00041001
  22522. #define GPIO_PE4_FAULT0 0x00041004
  22523. #define GPIO_PE4_U2TX 0x00041005
  22524. #define GPIO_PE4_CCP2 0x00041006
  22525. #endif // PART_LM3S5T36
  22526. //*****************************************************************************
  22527. //
  22528. // LM3S5U91 Port/Pin Mapping Definitions
  22529. //
  22530. //*****************************************************************************
  22531. #ifdef PART_LM3S5U91
  22532. #define GPIO_PA0_U0RX 0x00000001
  22533. #define GPIO_PA0_I2C1SCL 0x00000008
  22534. #define GPIO_PA0_U1RX 0x00000009
  22535. #define GPIO_PA1_U0TX 0x00000401
  22536. #define GPIO_PA1_I2C1SDA 0x00000408
  22537. #define GPIO_PA1_U1TX 0x00000409
  22538. #define GPIO_PA2_SSI0CLK 0x00000801
  22539. #define GPIO_PA2_PWM4 0x00000804
  22540. #define GPIO_PA2_I2S0RXSD 0x00000809
  22541. #define GPIO_PA3_SSI0FSS 0x00000C01
  22542. #define GPIO_PA3_PWM5 0x00000C04
  22543. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  22544. #define GPIO_PA4_SSI0RX 0x00001001
  22545. #define GPIO_PA4_PWM6 0x00001004
  22546. #define GPIO_PA4_CAN0RX 0x00001005
  22547. #define GPIO_PA4_I2S0TXSCK 0x00001009
  22548. #define GPIO_PA5_SSI0TX 0x00001401
  22549. #define GPIO_PA5_PWM7 0x00001404
  22550. #define GPIO_PA5_CAN0TX 0x00001405
  22551. #define GPIO_PA5_I2S0TXWS 0x00001409
  22552. #define GPIO_PA6_I2C1SCL 0x00001801
  22553. #define GPIO_PA6_CCP1 0x00001802
  22554. #define GPIO_PA6_PWM0 0x00001804
  22555. #define GPIO_PA6_PWM4 0x00001805
  22556. #define GPIO_PA6_CAN0RX 0x00001806
  22557. #define GPIO_PA6_USB0EPEN 0x00001808
  22558. #define GPIO_PA6_U1CTS 0x00001809
  22559. #define GPIO_PA7_I2C1SDA 0x00001C01
  22560. #define GPIO_PA7_CCP4 0x00001C02
  22561. #define GPIO_PA7_PWM1 0x00001C04
  22562. #define GPIO_PA7_PWM5 0x00001C05
  22563. #define GPIO_PA7_CAN0TX 0x00001C06
  22564. #define GPIO_PA7_CCP3 0x00001C07
  22565. #define GPIO_PA7_USB0PFLT 0x00001C08
  22566. #define GPIO_PA7_U1DCD 0x00001C09
  22567. #define GPIO_PB0_CCP0 0x00010001
  22568. #define GPIO_PB0_PWM2 0x00010002
  22569. #define GPIO_PB0_U1RX 0x00010005
  22570. #define GPIO_PB1_CCP2 0x00010401
  22571. #define GPIO_PB1_PWM3 0x00010402
  22572. #define GPIO_PB1_CCP1 0x00010404
  22573. #define GPIO_PB1_U1TX 0x00010405
  22574. #define GPIO_PB2_I2C0SCL 0x00010801
  22575. #define GPIO_PB2_IDX0 0x00010802
  22576. #define GPIO_PB2_CCP3 0x00010804
  22577. #define GPIO_PB2_CCP0 0x00010805
  22578. #define GPIO_PB2_USB0EPEN 0x00010808
  22579. #define GPIO_PB3_I2C0SDA 0x00010C01
  22580. #define GPIO_PB3_FAULT0 0x00010C02
  22581. #define GPIO_PB3_FAULT3 0x00010C04
  22582. #define GPIO_PB3_USB0PFLT 0x00010C08
  22583. #define GPIO_PB4_U2RX 0x00011004
  22584. #define GPIO_PB4_CAN0RX 0x00011005
  22585. #define GPIO_PB4_IDX0 0x00011006
  22586. #define GPIO_PB4_U1RX 0x00011007
  22587. #define GPIO_PB4_EPI0S23 0x00011008
  22588. #define GPIO_PB5_C0O 0x00011401
  22589. #define GPIO_PB5_CCP5 0x00011402
  22590. #define GPIO_PB5_CCP6 0x00011403
  22591. #define GPIO_PB5_CCP0 0x00011404
  22592. #define GPIO_PB5_CAN0TX 0x00011405
  22593. #define GPIO_PB5_CCP2 0x00011406
  22594. #define GPIO_PB5_U1TX 0x00011407
  22595. #define GPIO_PB5_EPI0S22 0x00011408
  22596. #define GPIO_PB6_CCP1 0x00011801
  22597. #define GPIO_PB6_CCP7 0x00011802
  22598. #define GPIO_PB6_C0O 0x00011803
  22599. #define GPIO_PB6_FAULT1 0x00011804
  22600. #define GPIO_PB6_IDX0 0x00011805
  22601. #define GPIO_PB6_CCP5 0x00011806
  22602. #define GPIO_PB6_I2S0TXSCK 0x00011809
  22603. #define GPIO_PB7_NMI 0x00011C04
  22604. #define GPIO_PC0_TCK 0x00020003
  22605. #define GPIO_PC0_SWCLK 0x00020003
  22606. #define GPIO_PC1_TMS 0x00020403
  22607. #define GPIO_PC1_SWDIO 0x00020403
  22608. #define GPIO_PC2_TDI 0x00020803
  22609. #define GPIO_PC3_SWO 0x00020C03
  22610. #define GPIO_PC3_TDO 0x00020C03
  22611. #define GPIO_PC4_CCP5 0x00021001
  22612. #define GPIO_PC4_PHA0 0x00021002
  22613. #define GPIO_PC4_PWM6 0x00021004
  22614. #define GPIO_PC4_CCP2 0x00021005
  22615. #define GPIO_PC4_CCP4 0x00021006
  22616. #define GPIO_PC4_EPI0S2 0x00021008
  22617. #define GPIO_PC4_CCP1 0x00021009
  22618. #define GPIO_PC5_CCP1 0x00021401
  22619. #define GPIO_PC5_C1O 0x00021402
  22620. #define GPIO_PC5_C0O 0x00021403
  22621. #define GPIO_PC5_FAULT2 0x00021404
  22622. #define GPIO_PC5_CCP3 0x00021405
  22623. #define GPIO_PC5_USB0EPEN 0x00021406
  22624. #define GPIO_PC5_EPI0S3 0x00021408
  22625. #define GPIO_PC6_CCP3 0x00021801
  22626. #define GPIO_PC6_PHB0 0x00021802
  22627. #define GPIO_PC6_C2O 0x00021803
  22628. #define GPIO_PC6_PWM7 0x00021804
  22629. #define GPIO_PC6_U1RX 0x00021805
  22630. #define GPIO_PC6_CCP0 0x00021806
  22631. #define GPIO_PC6_USB0PFLT 0x00021807
  22632. #define GPIO_PC6_EPI0S4 0x00021808
  22633. #define GPIO_PC7_CCP4 0x00021C01
  22634. #define GPIO_PC7_PHB0 0x00021C02
  22635. #define GPIO_PC7_CCP0 0x00021C04
  22636. #define GPIO_PC7_U1TX 0x00021C05
  22637. #define GPIO_PC7_USB0PFLT 0x00021C06
  22638. #define GPIO_PC7_C1O 0x00021C07
  22639. #define GPIO_PC7_EPI0S5 0x00021C08
  22640. #define GPIO_PD0_PWM0 0x00030001
  22641. #define GPIO_PD0_CAN0RX 0x00030002
  22642. #define GPIO_PD0_IDX0 0x00030003
  22643. #define GPIO_PD0_U2RX 0x00030004
  22644. #define GPIO_PD0_U1RX 0x00030005
  22645. #define GPIO_PD0_CCP6 0x00030006
  22646. #define GPIO_PD0_I2S0RXSCK 0x00030008
  22647. #define GPIO_PD0_U1CTS 0x00030009
  22648. #define GPIO_PD1_PWM1 0x00030401
  22649. #define GPIO_PD1_CAN0TX 0x00030402
  22650. #define GPIO_PD1_PHA0 0x00030403
  22651. #define GPIO_PD1_U2TX 0x00030404
  22652. #define GPIO_PD1_U1TX 0x00030405
  22653. #define GPIO_PD1_CCP7 0x00030406
  22654. #define GPIO_PD1_I2S0RXWS 0x00030408
  22655. #define GPIO_PD1_U1DCD 0x00030409
  22656. #define GPIO_PD1_CCP2 0x0003040A
  22657. #define GPIO_PD1_PHB1 0x0003040B
  22658. #define GPIO_PD2_U1RX 0x00030801
  22659. #define GPIO_PD2_CCP6 0x00030802
  22660. #define GPIO_PD2_PWM2 0x00030803
  22661. #define GPIO_PD2_CCP5 0x00030804
  22662. #define GPIO_PD2_EPI0S20 0x00030808
  22663. #define GPIO_PD3_U1TX 0x00030C01
  22664. #define GPIO_PD3_CCP7 0x00030C02
  22665. #define GPIO_PD3_PWM3 0x00030C03
  22666. #define GPIO_PD3_CCP0 0x00030C04
  22667. #define GPIO_PD3_EPI0S21 0x00030C08
  22668. #define GPIO_PD4_CCP0 0x00031001
  22669. #define GPIO_PD4_CCP3 0x00031002
  22670. #define GPIO_PD4_I2S0RXSD 0x00031008
  22671. #define GPIO_PD4_U1RI 0x00031009
  22672. #define GPIO_PD4_EPI0S19 0x0003100A
  22673. #define GPIO_PD5_CCP2 0x00031401
  22674. #define GPIO_PD5_CCP4 0x00031402
  22675. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  22676. #define GPIO_PD5_U2RX 0x00031409
  22677. #define GPIO_PD5_EPI0S28 0x0003140A
  22678. #define GPIO_PD6_FAULT0 0x00031801
  22679. #define GPIO_PD6_I2S0TXSCK 0x00031808
  22680. #define GPIO_PD6_U2TX 0x00031809
  22681. #define GPIO_PD6_EPI0S29 0x0003180A
  22682. #define GPIO_PD7_IDX0 0x00031C01
  22683. #define GPIO_PD7_C0O 0x00031C02
  22684. #define GPIO_PD7_CCP1 0x00031C03
  22685. #define GPIO_PD7_I2S0TXWS 0x00031C08
  22686. #define GPIO_PD7_U1DTR 0x00031C09
  22687. #define GPIO_PD7_EPI0S30 0x00031C0A
  22688. #define GPIO_PE0_PWM4 0x00040001
  22689. #define GPIO_PE0_SSI1CLK 0x00040002
  22690. #define GPIO_PE0_CCP3 0x00040003
  22691. #define GPIO_PE0_EPI0S8 0x00040008
  22692. #define GPIO_PE0_USB0PFLT 0x00040009
  22693. #define GPIO_PE1_PWM5 0x00040401
  22694. #define GPIO_PE1_SSI1FSS 0x00040402
  22695. #define GPIO_PE1_FAULT0 0x00040403
  22696. #define GPIO_PE1_CCP2 0x00040404
  22697. #define GPIO_PE1_CCP6 0x00040405
  22698. #define GPIO_PE1_EPI0S9 0x00040408
  22699. #define GPIO_PE2_CCP4 0x00040801
  22700. #define GPIO_PE2_SSI1RX 0x00040802
  22701. #define GPIO_PE2_PHB1 0x00040803
  22702. #define GPIO_PE2_PHA0 0x00040804
  22703. #define GPIO_PE2_CCP2 0x00040805
  22704. #define GPIO_PE2_EPI0S24 0x00040808
  22705. #define GPIO_PE3_CCP1 0x00040C01
  22706. #define GPIO_PE3_SSI1TX 0x00040C02
  22707. #define GPIO_PE3_PHA1 0x00040C03
  22708. #define GPIO_PE3_PHB0 0x00040C04
  22709. #define GPIO_PE3_CCP7 0x00040C05
  22710. #define GPIO_PE3_EPI0S25 0x00040C08
  22711. #define GPIO_PE4_CCP3 0x00041001
  22712. #define GPIO_PE4_FAULT0 0x00041004
  22713. #define GPIO_PE4_U2TX 0x00041005
  22714. #define GPIO_PE4_CCP2 0x00041006
  22715. #define GPIO_PE4_I2S0TXWS 0x00041009
  22716. #define GPIO_PE5_CCP5 0x00041401
  22717. #define GPIO_PE5_I2S0TXSD 0x00041409
  22718. #define GPIO_PE6_PWM4 0x00041801
  22719. #define GPIO_PE6_C1O 0x00041802
  22720. #define GPIO_PE6_U1CTS 0x00041809
  22721. #define GPIO_PE7_PWM5 0x00041C01
  22722. #define GPIO_PE7_C2O 0x00041C02
  22723. #define GPIO_PE7_U1DCD 0x00041C09
  22724. #define GPIO_PF0_CAN1RX 0x00050001
  22725. #define GPIO_PF0_PHB0 0x00050002
  22726. #define GPIO_PF0_PWM0 0x00050003
  22727. #define GPIO_PF0_I2S0TXSD 0x00050008
  22728. #define GPIO_PF0_U1DSR 0x00050009
  22729. #define GPIO_PF1_CAN1TX 0x00050401
  22730. #define GPIO_PF1_IDX1 0x00050402
  22731. #define GPIO_PF1_PWM1 0x00050403
  22732. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  22733. #define GPIO_PF1_U1RTS 0x00050409
  22734. #define GPIO_PF1_CCP3 0x0005040A
  22735. #define GPIO_PF2_PWM4 0x00050802
  22736. #define GPIO_PF2_PWM2 0x00050804
  22737. #define GPIO_PF2_SSI1CLK 0x00050809
  22738. #define GPIO_PF3_PWM5 0x00050C02
  22739. #define GPIO_PF3_PWM3 0x00050C04
  22740. #define GPIO_PF3_SSI1FSS 0x00050C09
  22741. #define GPIO_PF4_CCP0 0x00051001
  22742. #define GPIO_PF4_C0O 0x00051002
  22743. #define GPIO_PF4_FAULT0 0x00051004
  22744. #define GPIO_PF4_EPI0S12 0x00051008
  22745. #define GPIO_PF4_SSI1RX 0x00051009
  22746. #define GPIO_PF5_CCP2 0x00051401
  22747. #define GPIO_PF5_C1O 0x00051402
  22748. #define GPIO_PF5_EPI0S15 0x00051408
  22749. #define GPIO_PF5_SSI1TX 0x00051409
  22750. #define GPIO_PF6_CCP1 0x00051801
  22751. #define GPIO_PF6_C2O 0x00051802
  22752. #define GPIO_PF6_PHA0 0x00051804
  22753. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  22754. #define GPIO_PF6_U1RTS 0x0005180A
  22755. #define GPIO_PF7_CCP4 0x00051C01
  22756. #define GPIO_PF7_PHB0 0x00051C04
  22757. #define GPIO_PF7_EPI0S12 0x00051C08
  22758. #define GPIO_PF7_FAULT1 0x00051C09
  22759. #define GPIO_PG0_U2RX 0x00060001
  22760. #define GPIO_PG0_PWM0 0x00060002
  22761. #define GPIO_PG0_I2C1SCL 0x00060003
  22762. #define GPIO_PG0_PWM4 0x00060004
  22763. #define GPIO_PG0_USB0EPEN 0x00060007
  22764. #define GPIO_PG0_EPI0S13 0x00060008
  22765. #define GPIO_PG1_U2TX 0x00060401
  22766. #define GPIO_PG1_PWM1 0x00060402
  22767. #define GPIO_PG1_I2C1SDA 0x00060403
  22768. #define GPIO_PG1_PWM5 0x00060404
  22769. #define GPIO_PG1_EPI0S14 0x00060408
  22770. #define GPIO_PG2_PWM0 0x00060801
  22771. #define GPIO_PG2_FAULT0 0x00060804
  22772. #define GPIO_PG2_IDX1 0x00060808
  22773. #define GPIO_PG2_I2S0RXSD 0x00060809
  22774. #define GPIO_PG3_PWM1 0x00060C01
  22775. #define GPIO_PG3_FAULT2 0x00060C04
  22776. #define GPIO_PG3_FAULT0 0x00060C08
  22777. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  22778. #define GPIO_PG4_CCP3 0x00061001
  22779. #define GPIO_PG4_FAULT1 0x00061004
  22780. #define GPIO_PG4_EPI0S15 0x00061008
  22781. #define GPIO_PG4_PWM6 0x00061009
  22782. #define GPIO_PG4_U1RI 0x0006100A
  22783. #define GPIO_PG5_CCP5 0x00061401
  22784. #define GPIO_PG5_IDX0 0x00061404
  22785. #define GPIO_PG5_FAULT1 0x00061405
  22786. #define GPIO_PG5_PWM7 0x00061408
  22787. #define GPIO_PG5_I2S0RXSCK 0x00061409
  22788. #define GPIO_PG5_U1DTR 0x0006140A
  22789. #define GPIO_PG6_PHA1 0x00061801
  22790. #define GPIO_PG6_PWM6 0x00061804
  22791. #define GPIO_PG6_FAULT1 0x00061808
  22792. #define GPIO_PG6_I2S0RXWS 0x00061809
  22793. #define GPIO_PG6_U1RI 0x0006180A
  22794. #define GPIO_PG7_PHB1 0x00061C01
  22795. #define GPIO_PG7_PWM7 0x00061C04
  22796. #define GPIO_PG7_CCP5 0x00061C08
  22797. #define GPIO_PG7_EPI0S31 0x00061C09
  22798. #define GPIO_PH0_CCP6 0x00070001
  22799. #define GPIO_PH0_PWM2 0x00070002
  22800. #define GPIO_PH0_EPI0S6 0x00070008
  22801. #define GPIO_PH0_PWM4 0x00070009
  22802. #define GPIO_PH1_CCP7 0x00070401
  22803. #define GPIO_PH1_PWM3 0x00070402
  22804. #define GPIO_PH1_EPI0S7 0x00070408
  22805. #define GPIO_PH1_PWM5 0x00070409
  22806. #define GPIO_PH2_IDX1 0x00070801
  22807. #define GPIO_PH2_C1O 0x00070802
  22808. #define GPIO_PH2_FAULT3 0x00070804
  22809. #define GPIO_PH2_EPI0S1 0x00070808
  22810. #define GPIO_PH3_PHB0 0x00070C01
  22811. #define GPIO_PH3_FAULT0 0x00070C02
  22812. #define GPIO_PH3_USB0EPEN 0x00070C04
  22813. #define GPIO_PH3_EPI0S0 0x00070C08
  22814. #define GPIO_PH4_USB0PFLT 0x00071004
  22815. #define GPIO_PH4_EPI0S10 0x00071008
  22816. #define GPIO_PH4_SSI1CLK 0x0007100B
  22817. #define GPIO_PH5_EPI0S11 0x00071408
  22818. #define GPIO_PH5_FAULT2 0x0007140A
  22819. #define GPIO_PH5_SSI1FSS 0x0007140B
  22820. #define GPIO_PH6_EPI0S26 0x00071808
  22821. #define GPIO_PH6_PWM4 0x0007180A
  22822. #define GPIO_PH6_SSI1RX 0x0007180B
  22823. #define GPIO_PH7_EPI0S27 0x00071C08
  22824. #define GPIO_PH7_PWM5 0x00071C0A
  22825. #define GPIO_PH7_SSI1TX 0x00071C0B
  22826. #define GPIO_PJ0_EPI0S16 0x00080008
  22827. #define GPIO_PJ0_PWM0 0x0008000A
  22828. #define GPIO_PJ0_I2C1SCL 0x0008000B
  22829. #define GPIO_PJ1_EPI0S17 0x00080408
  22830. #define GPIO_PJ1_USB0PFLT 0x00080409
  22831. #define GPIO_PJ1_PWM1 0x0008040A
  22832. #define GPIO_PJ1_I2C1SDA 0x0008040B
  22833. #define GPIO_PJ2_EPI0S18 0x00080808
  22834. #define GPIO_PJ2_CCP0 0x00080809
  22835. #define GPIO_PJ2_FAULT0 0x0008080A
  22836. #define GPIO_PJ3_EPI0S19 0x00080C08
  22837. #define GPIO_PJ3_U1CTS 0x00080C09
  22838. #define GPIO_PJ3_CCP6 0x00080C0A
  22839. #define GPIO_PJ4_EPI0S28 0x00081008
  22840. #define GPIO_PJ4_U1DCD 0x00081009
  22841. #define GPIO_PJ4_CCP4 0x0008100A
  22842. #define GPIO_PJ5_EPI0S29 0x00081408
  22843. #define GPIO_PJ5_U1DSR 0x00081409
  22844. #define GPIO_PJ5_CCP2 0x0008140A
  22845. #define GPIO_PJ6_EPI0S30 0x00081808
  22846. #define GPIO_PJ6_U1RTS 0x00081809
  22847. #define GPIO_PJ6_CCP1 0x0008180A
  22848. #define GPIO_PJ7_U1DTR 0x00081C09
  22849. #define GPIO_PJ7_CCP0 0x00081C0A
  22850. #endif // PART_LM3S5U91
  22851. //*****************************************************************************
  22852. //
  22853. // LM3S5Y36 Port/Pin Mapping Definitions
  22854. //
  22855. //*****************************************************************************
  22856. #ifdef PART_LM3S5Y36
  22857. #define GPIO_PA0_U0RX 0x00000001
  22858. #define GPIO_PA0_I2C1SCL 0x00000008
  22859. #define GPIO_PA0_U1RX 0x00000009
  22860. #define GPIO_PA1_U0TX 0x00000401
  22861. #define GPIO_PA1_I2C1SDA 0x00000408
  22862. #define GPIO_PA1_U1TX 0x00000409
  22863. #define GPIO_PA2_SSI0CLK 0x00000801
  22864. #define GPIO_PA2_PWM4 0x00000804
  22865. #define GPIO_PA3_SSI0FSS 0x00000C01
  22866. #define GPIO_PA3_PWM5 0x00000C04
  22867. #define GPIO_PA4_SSI0RX 0x00001001
  22868. #define GPIO_PA4_CAN0RX 0x00001005
  22869. #define GPIO_PA5_SSI0TX 0x00001401
  22870. #define GPIO_PA5_CAN0TX 0x00001405
  22871. #define GPIO_PA6_I2C1SCL 0x00001801
  22872. #define GPIO_PA6_CCP1 0x00001802
  22873. #define GPIO_PA6_PWM0 0x00001804
  22874. #define GPIO_PA6_PWM4 0x00001805
  22875. #define GPIO_PA6_CAN0RX 0x00001806
  22876. #define GPIO_PA7_I2C1SDA 0x00001C01
  22877. #define GPIO_PA7_CCP4 0x00001C02
  22878. #define GPIO_PA7_PWM1 0x00001C04
  22879. #define GPIO_PA7_PWM5 0x00001C05
  22880. #define GPIO_PA7_CAN0TX 0x00001C06
  22881. #define GPIO_PA7_CCP3 0x00001C07
  22882. #define GPIO_PB0_CCP0 0x00010001
  22883. #define GPIO_PB0_PWM2 0x00010002
  22884. #define GPIO_PB0_U1RX 0x00010005
  22885. #define GPIO_PB1_CCP2 0x00010401
  22886. #define GPIO_PB1_PWM3 0x00010402
  22887. #define GPIO_PB1_CCP1 0x00010404
  22888. #define GPIO_PB1_U1TX 0x00010405
  22889. #define GPIO_PB2_I2C0SCL 0x00010801
  22890. #define GPIO_PB2_IDX0 0x00010802
  22891. #define GPIO_PB2_CCP3 0x00010804
  22892. #define GPIO_PB2_CCP0 0x00010805
  22893. #define GPIO_PB3_I2C0SDA 0x00010C01
  22894. #define GPIO_PB3_FAULT0 0x00010C02
  22895. #define GPIO_PB3_FAULT3 0x00010C04
  22896. #define GPIO_PB4_U2RX 0x00011004
  22897. #define GPIO_PB4_CAN0RX 0x00011005
  22898. #define GPIO_PB4_IDX0 0x00011006
  22899. #define GPIO_PB4_U1RX 0x00011007
  22900. #define GPIO_PB5_C0O 0x00011401
  22901. #define GPIO_PB5_CCP5 0x00011402
  22902. #define GPIO_PB5_CCP0 0x00011404
  22903. #define GPIO_PB5_CAN0TX 0x00011405
  22904. #define GPIO_PB5_CCP2 0x00011406
  22905. #define GPIO_PB5_U1TX 0x00011407
  22906. #define GPIO_PB6_CCP1 0x00011801
  22907. #define GPIO_PB6_C0O 0x00011803
  22908. #define GPIO_PB6_FAULT1 0x00011804
  22909. #define GPIO_PB6_IDX0 0x00011805
  22910. #define GPIO_PB6_CCP5 0x00011806
  22911. #define GPIO_PB7_NMI 0x00011C04
  22912. #define GPIO_PC0_TCK 0x00020003
  22913. #define GPIO_PC0_SWCLK 0x00020003
  22914. #define GPIO_PC1_TMS 0x00020403
  22915. #define GPIO_PC1_SWDIO 0x00020403
  22916. #define GPIO_PC2_TDI 0x00020803
  22917. #define GPIO_PC3_SWO 0x00020C03
  22918. #define GPIO_PC3_TDO 0x00020C03
  22919. #define GPIO_PC4_CCP5 0x00021001
  22920. #define GPIO_PC4_PHA0 0x00021002
  22921. #define GPIO_PC4_CCP2 0x00021005
  22922. #define GPIO_PC4_CCP4 0x00021006
  22923. #define GPIO_PC4_CCP1 0x00021009
  22924. #define GPIO_PC5_CCP1 0x00021401
  22925. #define GPIO_PC5_C1O 0x00021402
  22926. #define GPIO_PC5_C0O 0x00021403
  22927. #define GPIO_PC5_FAULT2 0x00021404
  22928. #define GPIO_PC5_CCP3 0x00021405
  22929. #define GPIO_PC6_CCP3 0x00021801
  22930. #define GPIO_PC6_PHB0 0x00021802
  22931. #define GPIO_PC6_U1RX 0x00021805
  22932. #define GPIO_PC6_CCP0 0x00021806
  22933. #define GPIO_PC7_CCP4 0x00021C01
  22934. #define GPIO_PC7_PHB0 0x00021C02
  22935. #define GPIO_PC7_CCP0 0x00021C04
  22936. #define GPIO_PC7_U1TX 0x00021C05
  22937. #define GPIO_PC7_C1O 0x00021C07
  22938. #define GPIO_PD0_PWM0 0x00030001
  22939. #define GPIO_PD0_CAN0RX 0x00030002
  22940. #define GPIO_PD0_IDX0 0x00030003
  22941. #define GPIO_PD0_U2RX 0x00030004
  22942. #define GPIO_PD0_U1RX 0x00030005
  22943. #define GPIO_PD1_PWM1 0x00030401
  22944. #define GPIO_PD1_CAN0TX 0x00030402
  22945. #define GPIO_PD1_PHA0 0x00030403
  22946. #define GPIO_PD1_U2TX 0x00030404
  22947. #define GPIO_PD1_U1TX 0x00030405
  22948. #define GPIO_PD1_CCP2 0x0003040A
  22949. #define GPIO_PD2_U1RX 0x00030801
  22950. #define GPIO_PD2_PWM2 0x00030803
  22951. #define GPIO_PD2_CCP5 0x00030804
  22952. #define GPIO_PD3_U1TX 0x00030C01
  22953. #define GPIO_PD3_PWM3 0x00030C03
  22954. #define GPIO_PD3_CCP0 0x00030C04
  22955. #define GPIO_PE0_PWM4 0x00040001
  22956. #define GPIO_PE0_SSI1CLK 0x00040002
  22957. #define GPIO_PE0_CCP3 0x00040003
  22958. #define GPIO_PE1_PWM5 0x00040401
  22959. #define GPIO_PE1_SSI1FSS 0x00040402
  22960. #define GPIO_PE1_FAULT0 0x00040403
  22961. #define GPIO_PE1_CCP2 0x00040404
  22962. #define GPIO_PE2_CCP4 0x00040801
  22963. #define GPIO_PE2_SSI1RX 0x00040802
  22964. #define GPIO_PE2_PHA0 0x00040804
  22965. #define GPIO_PE2_CCP2 0x00040805
  22966. #define GPIO_PE3_CCP1 0x00040C01
  22967. #define GPIO_PE3_SSI1TX 0x00040C02
  22968. #define GPIO_PE3_PHB0 0x00040C04
  22969. #define GPIO_PE4_CCP3 0x00041001
  22970. #define GPIO_PE4_FAULT0 0x00041004
  22971. #define GPIO_PE4_U2TX 0x00041005
  22972. #define GPIO_PE4_CCP2 0x00041006
  22973. #endif // PART_LM3S5Y36
  22974. //*****************************************************************************
  22975. //
  22976. // LM3S6100 Port/Pin Mapping Definitions
  22977. //
  22978. //*****************************************************************************
  22979. #ifdef PART_LM3S6100
  22980. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  22981. #define C0O_PORT GPIO_PORTB_BASE
  22982. #define C0O_PIN GPIO_PIN_5
  22983. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  22984. #define C0_MINUS_PORT GPIO_PORTB_BASE
  22985. #define C0_MINUS_PIN GPIO_PIN_4
  22986. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  22987. #define C0_PLUS_PORT GPIO_PORTB_BASE
  22988. #define C0_PLUS_PIN GPIO_PIN_6
  22989. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  22990. #define CCP0_PORT GPIO_PORTB_BASE
  22991. #define CCP0_PIN GPIO_PIN_0
  22992. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  22993. #define CCP1_PORT GPIO_PORTA_BASE
  22994. #define CCP1_PIN GPIO_PIN_6
  22995. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  22996. #define CCP2_PORT GPIO_PORTB_BASE
  22997. #define CCP2_PIN GPIO_PIN_1
  22998. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  22999. #define CCP3_PORT GPIO_PORTC_BASE
  23000. #define CCP3_PIN GPIO_PIN_6
  23001. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  23002. #define LED0_PORT GPIO_PORTF_BASE
  23003. #define LED0_PIN GPIO_PIN_3
  23004. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  23005. #define LED1_PORT GPIO_PORTF_BASE
  23006. #define LED1_PIN GPIO_PIN_2
  23007. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  23008. #define SSI0CLK_PORT GPIO_PORTA_BASE
  23009. #define SSI0CLK_PIN GPIO_PIN_2
  23010. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  23011. #define SSI0FSS_PORT GPIO_PORTA_BASE
  23012. #define SSI0FSS_PIN GPIO_PIN_3
  23013. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23014. #define SSI0RX_PORT GPIO_PORTA_BASE
  23015. #define SSI0RX_PIN GPIO_PIN_4
  23016. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23017. #define SSI0TX_PORT GPIO_PORTA_BASE
  23018. #define SSI0TX_PIN GPIO_PIN_5
  23019. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  23020. #define SWCLK_PORT GPIO_PORTC_BASE
  23021. #define SWCLK_PIN GPIO_PIN_0
  23022. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  23023. #define SWDIO_PORT GPIO_PORTC_BASE
  23024. #define SWDIO_PIN GPIO_PIN_1
  23025. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  23026. #define SWO_PORT GPIO_PORTC_BASE
  23027. #define SWO_PIN GPIO_PIN_3
  23028. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  23029. #define TCK_PORT GPIO_PORTC_BASE
  23030. #define TCK_PIN GPIO_PIN_0
  23031. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  23032. #define TDI_PORT GPIO_PORTC_BASE
  23033. #define TDI_PIN GPIO_PIN_2
  23034. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  23035. #define TDO_PORT GPIO_PORTC_BASE
  23036. #define TDO_PIN GPIO_PIN_3
  23037. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  23038. #define TMS_PORT GPIO_PORTC_BASE
  23039. #define TMS_PIN GPIO_PIN_1
  23040. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  23041. #define TRST_PORT GPIO_PORTB_BASE
  23042. #define TRST_PIN GPIO_PIN_7
  23043. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23044. #define U0RX_PORT GPIO_PORTA_BASE
  23045. #define U0RX_PIN GPIO_PIN_0
  23046. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23047. #define U0TX_PORT GPIO_PORTA_BASE
  23048. #define U0TX_PIN GPIO_PIN_1
  23049. #endif // PART_LM3S6100
  23050. //*****************************************************************************
  23051. //
  23052. // LM3S6110 Port/Pin Mapping Definitions
  23053. //
  23054. //*****************************************************************************
  23055. #ifdef PART_LM3S6110
  23056. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  23057. #define C0O_PORT GPIO_PORTD_BASE
  23058. #define C0O_PIN GPIO_PIN_7
  23059. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23060. #define C0_MINUS_PORT GPIO_PORTB_BASE
  23061. #define C0_MINUS_PIN GPIO_PIN_4
  23062. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  23063. #define C0_PLUS_PORT GPIO_PORTB_BASE
  23064. #define C0_PLUS_PIN GPIO_PIN_6
  23065. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23066. #define C1_MINUS_PORT GPIO_PORTB_BASE
  23067. #define C1_MINUS_PIN GPIO_PIN_5
  23068. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  23069. #define C1_PLUS_PORT GPIO_PORTC_BASE
  23070. #define C1_PLUS_PIN GPIO_PIN_5
  23071. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  23072. #define C2_MINUS_PORT GPIO_PORTC_BASE
  23073. #define C2_MINUS_PIN GPIO_PIN_7
  23074. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  23075. #define C2_PLUS_PORT GPIO_PORTC_BASE
  23076. #define C2_PLUS_PIN GPIO_PIN_6
  23077. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  23078. #define CCP0_PORT GPIO_PORTB_BASE
  23079. #define CCP0_PIN GPIO_PIN_0
  23080. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  23081. #define CCP1_PORT GPIO_PORTA_BASE
  23082. #define CCP1_PIN GPIO_PIN_6
  23083. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  23084. #define CCP2_PORT GPIO_PORTB_BASE
  23085. #define CCP2_PIN GPIO_PIN_1
  23086. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  23087. #define CCP3_PORT GPIO_PORTD_BASE
  23088. #define CCP3_PIN GPIO_PIN_4
  23089. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOB
  23090. #define FAULT_PORT GPIO_PORTB_BASE
  23091. #define FAULT_PIN GPIO_PIN_3
  23092. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  23093. #define LED0_PORT GPIO_PORTF_BASE
  23094. #define LED0_PIN GPIO_PIN_3
  23095. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  23096. #define LED1_PORT GPIO_PORTF_BASE
  23097. #define LED1_PIN GPIO_PIN_2
  23098. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  23099. #define PWM0_PORT GPIO_PORTD_BASE
  23100. #define PWM0_PIN GPIO_PIN_0
  23101. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  23102. #define PWM1_PORT GPIO_PORTD_BASE
  23103. #define PWM1_PIN GPIO_PIN_1
  23104. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  23105. #define SSI0CLK_PORT GPIO_PORTA_BASE
  23106. #define SSI0CLK_PIN GPIO_PIN_2
  23107. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  23108. #define SSI0FSS_PORT GPIO_PORTA_BASE
  23109. #define SSI0FSS_PIN GPIO_PIN_3
  23110. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23111. #define SSI0RX_PORT GPIO_PORTA_BASE
  23112. #define SSI0RX_PIN GPIO_PIN_4
  23113. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23114. #define SSI0TX_PORT GPIO_PORTA_BASE
  23115. #define SSI0TX_PIN GPIO_PIN_5
  23116. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  23117. #define SWCLK_PORT GPIO_PORTC_BASE
  23118. #define SWCLK_PIN GPIO_PIN_0
  23119. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  23120. #define SWDIO_PORT GPIO_PORTC_BASE
  23121. #define SWDIO_PIN GPIO_PIN_1
  23122. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  23123. #define SWO_PORT GPIO_PORTC_BASE
  23124. #define SWO_PIN GPIO_PIN_3
  23125. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  23126. #define TCK_PORT GPIO_PORTC_BASE
  23127. #define TCK_PIN GPIO_PIN_0
  23128. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  23129. #define TDI_PORT GPIO_PORTC_BASE
  23130. #define TDI_PIN GPIO_PIN_2
  23131. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  23132. #define TDO_PORT GPIO_PORTC_BASE
  23133. #define TDO_PIN GPIO_PIN_3
  23134. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  23135. #define TMS_PORT GPIO_PORTC_BASE
  23136. #define TMS_PIN GPIO_PIN_1
  23137. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  23138. #define TRST_PORT GPIO_PORTB_BASE
  23139. #define TRST_PIN GPIO_PIN_7
  23140. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23141. #define U0RX_PORT GPIO_PORTA_BASE
  23142. #define U0RX_PIN GPIO_PIN_0
  23143. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23144. #define U0TX_PORT GPIO_PORTA_BASE
  23145. #define U0TX_PIN GPIO_PIN_1
  23146. #endif // PART_LM3S6110
  23147. //*****************************************************************************
  23148. //
  23149. // LM3S6420 Port/Pin Mapping Definitions
  23150. //
  23151. //*****************************************************************************
  23152. #ifdef PART_LM3S6420
  23153. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  23154. #define C0O_PORT GPIO_PORTD_BASE
  23155. #define C0O_PIN GPIO_PIN_7
  23156. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23157. #define C0_MINUS_PORT GPIO_PORTB_BASE
  23158. #define C0_MINUS_PIN GPIO_PIN_4
  23159. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  23160. #define C0_PLUS_PORT GPIO_PORTB_BASE
  23161. #define C0_PLUS_PIN GPIO_PIN_6
  23162. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  23163. #define C1O_PORT GPIO_PORTE_BASE
  23164. #define C1O_PIN GPIO_PIN_6
  23165. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23166. #define C1_MINUS_PORT GPIO_PORTB_BASE
  23167. #define C1_MINUS_PIN GPIO_PIN_5
  23168. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  23169. #define C1_PLUS_PORT GPIO_PORTC_BASE
  23170. #define C1_PLUS_PIN GPIO_PIN_5
  23171. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  23172. #define CCP0_PORT GPIO_PORTB_BASE
  23173. #define CCP0_PIN GPIO_PIN_0
  23174. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  23175. #define CCP1_PORT GPIO_PORTA_BASE
  23176. #define CCP1_PIN GPIO_PIN_6
  23177. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  23178. #define CCP2_PORT GPIO_PORTB_BASE
  23179. #define CCP2_PIN GPIO_PIN_1
  23180. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  23181. #define CCP3_PORT GPIO_PORTC_BASE
  23182. #define CCP3_PIN GPIO_PIN_6
  23183. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  23184. #define LED0_PORT GPIO_PORTF_BASE
  23185. #define LED0_PIN GPIO_PIN_3
  23186. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  23187. #define LED1_PORT GPIO_PORTF_BASE
  23188. #define LED1_PIN GPIO_PIN_2
  23189. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  23190. #define SSI0CLK_PORT GPIO_PORTA_BASE
  23191. #define SSI0CLK_PIN GPIO_PIN_2
  23192. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  23193. #define SSI0FSS_PORT GPIO_PORTA_BASE
  23194. #define SSI0FSS_PIN GPIO_PIN_3
  23195. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23196. #define SSI0RX_PORT GPIO_PORTA_BASE
  23197. #define SSI0RX_PIN GPIO_PIN_4
  23198. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23199. #define SSI0TX_PORT GPIO_PORTA_BASE
  23200. #define SSI0TX_PIN GPIO_PIN_5
  23201. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  23202. #define SWCLK_PORT GPIO_PORTC_BASE
  23203. #define SWCLK_PIN GPIO_PIN_0
  23204. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  23205. #define SWDIO_PORT GPIO_PORTC_BASE
  23206. #define SWDIO_PIN GPIO_PIN_1
  23207. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  23208. #define SWO_PORT GPIO_PORTC_BASE
  23209. #define SWO_PIN GPIO_PIN_3
  23210. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  23211. #define TCK_PORT GPIO_PORTC_BASE
  23212. #define TCK_PIN GPIO_PIN_0
  23213. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  23214. #define TDI_PORT GPIO_PORTC_BASE
  23215. #define TDI_PIN GPIO_PIN_2
  23216. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  23217. #define TDO_PORT GPIO_PORTC_BASE
  23218. #define TDO_PIN GPIO_PIN_3
  23219. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  23220. #define TMS_PORT GPIO_PORTC_BASE
  23221. #define TMS_PIN GPIO_PIN_1
  23222. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  23223. #define TRST_PORT GPIO_PORTB_BASE
  23224. #define TRST_PIN GPIO_PIN_7
  23225. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23226. #define U0RX_PORT GPIO_PORTA_BASE
  23227. #define U0RX_PIN GPIO_PIN_0
  23228. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23229. #define U0TX_PORT GPIO_PORTA_BASE
  23230. #define U0TX_PIN GPIO_PIN_1
  23231. #endif // PART_LM3S6420
  23232. //*****************************************************************************
  23233. //
  23234. // LM3S6422 Port/Pin Mapping Definitions
  23235. //
  23236. //*****************************************************************************
  23237. #ifdef PART_LM3S6422
  23238. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  23239. #define C0O_PORT GPIO_PORTD_BASE
  23240. #define C0O_PIN GPIO_PIN_7
  23241. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23242. #define C0_MINUS_PORT GPIO_PORTB_BASE
  23243. #define C0_MINUS_PIN GPIO_PIN_4
  23244. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  23245. #define C0_PLUS_PORT GPIO_PORTB_BASE
  23246. #define C0_PLUS_PIN GPIO_PIN_6
  23247. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  23248. #define C1O_PORT GPIO_PORTC_BASE
  23249. #define C1O_PIN GPIO_PIN_5
  23250. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23251. #define C1_MINUS_PORT GPIO_PORTB_BASE
  23252. #define C1_MINUS_PIN GPIO_PIN_5
  23253. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  23254. #define C1_PLUS_PORT GPIO_PORTC_BASE
  23255. #define C1_PLUS_PIN GPIO_PIN_5
  23256. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  23257. #define CCP0_PORT GPIO_PORTB_BASE
  23258. #define CCP0_PIN GPIO_PIN_0
  23259. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  23260. #define CCP1_PORT GPIO_PORTA_BASE
  23261. #define CCP1_PIN GPIO_PIN_6
  23262. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  23263. #define CCP2_PORT GPIO_PORTB_BASE
  23264. #define CCP2_PIN GPIO_PIN_1
  23265. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  23266. #define CCP3_PORT GPIO_PORTC_BASE
  23267. #define CCP3_PIN GPIO_PIN_6
  23268. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  23269. #define LED0_PORT GPIO_PORTF_BASE
  23270. #define LED0_PIN GPIO_PIN_3
  23271. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  23272. #define LED1_PORT GPIO_PORTF_BASE
  23273. #define LED1_PIN GPIO_PIN_2
  23274. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  23275. #define SSI0CLK_PORT GPIO_PORTA_BASE
  23276. #define SSI0CLK_PIN GPIO_PIN_2
  23277. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  23278. #define SSI0FSS_PORT GPIO_PORTA_BASE
  23279. #define SSI0FSS_PIN GPIO_PIN_3
  23280. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23281. #define SSI0RX_PORT GPIO_PORTA_BASE
  23282. #define SSI0RX_PIN GPIO_PIN_4
  23283. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23284. #define SSI0TX_PORT GPIO_PORTA_BASE
  23285. #define SSI0TX_PIN GPIO_PIN_5
  23286. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  23287. #define SWCLK_PORT GPIO_PORTC_BASE
  23288. #define SWCLK_PIN GPIO_PIN_0
  23289. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  23290. #define SWDIO_PORT GPIO_PORTC_BASE
  23291. #define SWDIO_PIN GPIO_PIN_1
  23292. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  23293. #define SWO_PORT GPIO_PORTC_BASE
  23294. #define SWO_PIN GPIO_PIN_3
  23295. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  23296. #define TCK_PORT GPIO_PORTC_BASE
  23297. #define TCK_PIN GPIO_PIN_0
  23298. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  23299. #define TDI_PORT GPIO_PORTC_BASE
  23300. #define TDI_PIN GPIO_PIN_2
  23301. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  23302. #define TDO_PORT GPIO_PORTC_BASE
  23303. #define TDO_PIN GPIO_PIN_3
  23304. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  23305. #define TMS_PORT GPIO_PORTC_BASE
  23306. #define TMS_PIN GPIO_PIN_1
  23307. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  23308. #define TRST_PORT GPIO_PORTB_BASE
  23309. #define TRST_PIN GPIO_PIN_7
  23310. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23311. #define U0RX_PORT GPIO_PORTA_BASE
  23312. #define U0RX_PIN GPIO_PIN_0
  23313. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23314. #define U0TX_PORT GPIO_PORTA_BASE
  23315. #define U0TX_PIN GPIO_PIN_1
  23316. #endif // PART_LM3S6422
  23317. //*****************************************************************************
  23318. //
  23319. // LM3S6432 Port/Pin Mapping Definitions
  23320. //
  23321. //*****************************************************************************
  23322. #ifdef PART_LM3S6432
  23323. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  23324. #define C0O_PORT GPIO_PORTD_BASE
  23325. #define C0O_PIN GPIO_PIN_7
  23326. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23327. #define C0_MINUS_PORT GPIO_PORTB_BASE
  23328. #define C0_MINUS_PIN GPIO_PIN_4
  23329. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  23330. #define C0_PLUS_PORT GPIO_PORTB_BASE
  23331. #define C0_PLUS_PIN GPIO_PIN_6
  23332. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23333. #define C1_MINUS_PORT GPIO_PORTB_BASE
  23334. #define C1_MINUS_PIN GPIO_PIN_5
  23335. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  23336. #define C1_PLUS_PORT GPIO_PORTC_BASE
  23337. #define C1_PLUS_PIN GPIO_PIN_5
  23338. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  23339. #define CCP0_PORT GPIO_PORTB_BASE
  23340. #define CCP0_PIN GPIO_PIN_0
  23341. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  23342. #define CCP1_PORT GPIO_PORTA_BASE
  23343. #define CCP1_PIN GPIO_PIN_6
  23344. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  23345. #define CCP2_PORT GPIO_PORTB_BASE
  23346. #define CCP2_PIN GPIO_PIN_1
  23347. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  23348. #define CCP3_PORT GPIO_PORTC_BASE
  23349. #define CCP3_PIN GPIO_PIN_6
  23350. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  23351. #define FAULT_PORT GPIO_PORTD_BASE
  23352. #define FAULT_PIN GPIO_PIN_6
  23353. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  23354. #define I2C0SCL_PORT GPIO_PORTB_BASE
  23355. #define I2C0SCL_PIN GPIO_PIN_2
  23356. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  23357. #define I2C0SDA_PORT GPIO_PORTB_BASE
  23358. #define I2C0SDA_PIN GPIO_PIN_3
  23359. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  23360. #define LED0_PORT GPIO_PORTF_BASE
  23361. #define LED0_PIN GPIO_PIN_3
  23362. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  23363. #define LED1_PORT GPIO_PORTF_BASE
  23364. #define LED1_PIN GPIO_PIN_2
  23365. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  23366. #define PWM0_PORT GPIO_PORTD_BASE
  23367. #define PWM0_PIN GPIO_PIN_0
  23368. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  23369. #define PWM1_PORT GPIO_PORTD_BASE
  23370. #define PWM1_PIN GPIO_PIN_1
  23371. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  23372. #define SSI0CLK_PORT GPIO_PORTA_BASE
  23373. #define SSI0CLK_PIN GPIO_PIN_2
  23374. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  23375. #define SSI0FSS_PORT GPIO_PORTA_BASE
  23376. #define SSI0FSS_PIN GPIO_PIN_3
  23377. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23378. #define SSI0RX_PORT GPIO_PORTA_BASE
  23379. #define SSI0RX_PIN GPIO_PIN_4
  23380. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23381. #define SSI0TX_PORT GPIO_PORTA_BASE
  23382. #define SSI0TX_PIN GPIO_PIN_5
  23383. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  23384. #define SWCLK_PORT GPIO_PORTC_BASE
  23385. #define SWCLK_PIN GPIO_PIN_0
  23386. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  23387. #define SWDIO_PORT GPIO_PORTC_BASE
  23388. #define SWDIO_PIN GPIO_PIN_1
  23389. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  23390. #define SWO_PORT GPIO_PORTC_BASE
  23391. #define SWO_PIN GPIO_PIN_3
  23392. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  23393. #define TCK_PORT GPIO_PORTC_BASE
  23394. #define TCK_PIN GPIO_PIN_0
  23395. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  23396. #define TDI_PORT GPIO_PORTC_BASE
  23397. #define TDI_PIN GPIO_PIN_2
  23398. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  23399. #define TDO_PORT GPIO_PORTC_BASE
  23400. #define TDO_PIN GPIO_PIN_3
  23401. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  23402. #define TMS_PORT GPIO_PORTC_BASE
  23403. #define TMS_PIN GPIO_PIN_1
  23404. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  23405. #define TRST_PORT GPIO_PORTB_BASE
  23406. #define TRST_PIN GPIO_PIN_7
  23407. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23408. #define U0RX_PORT GPIO_PORTA_BASE
  23409. #define U0RX_PIN GPIO_PIN_0
  23410. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23411. #define U0TX_PORT GPIO_PORTA_BASE
  23412. #define U0TX_PIN GPIO_PIN_1
  23413. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  23414. #define U1RX_PORT GPIO_PORTD_BASE
  23415. #define U1RX_PIN GPIO_PIN_2
  23416. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  23417. #define U1TX_PORT GPIO_PORTD_BASE
  23418. #define U1TX_PIN GPIO_PIN_3
  23419. #endif // PART_LM3S6432
  23420. //*****************************************************************************
  23421. //
  23422. // LM3S6537 Port/Pin Mapping Definitions
  23423. //
  23424. //*****************************************************************************
  23425. #ifdef PART_LM3S6537
  23426. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  23427. #define C0O_PORT GPIO_PORTD_BASE
  23428. #define C0O_PIN GPIO_PIN_7
  23429. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23430. #define C0_MINUS_PORT GPIO_PORTB_BASE
  23431. #define C0_MINUS_PIN GPIO_PIN_4
  23432. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  23433. #define C0_PLUS_PORT GPIO_PORTB_BASE
  23434. #define C0_PLUS_PIN GPIO_PIN_6
  23435. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23436. #define C1_MINUS_PORT GPIO_PORTB_BASE
  23437. #define C1_MINUS_PIN GPIO_PIN_5
  23438. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  23439. #define C1_PLUS_PORT GPIO_PORTC_BASE
  23440. #define C1_PLUS_PIN GPIO_PIN_5
  23441. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  23442. #define CCP0_PORT GPIO_PORTD_BASE
  23443. #define CCP0_PIN GPIO_PIN_4
  23444. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  23445. #define CCP1_PORT GPIO_PORTA_BASE
  23446. #define CCP1_PIN GPIO_PIN_6
  23447. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  23448. #define CCP2_PORT GPIO_PORTD_BASE
  23449. #define CCP2_PIN GPIO_PIN_5
  23450. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  23451. #define CCP3_PORT GPIO_PORTC_BASE
  23452. #define CCP3_PIN GPIO_PIN_6
  23453. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  23454. #define CCP4_PORT GPIO_PORTA_BASE
  23455. #define CCP4_PIN GPIO_PIN_7
  23456. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  23457. #define CCP5_PORT GPIO_PORTC_BASE
  23458. #define CCP5_PIN GPIO_PIN_4
  23459. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  23460. #define FAULT_PORT GPIO_PORTD_BASE
  23461. #define FAULT_PIN GPIO_PIN_6
  23462. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  23463. #define I2C0SCL_PORT GPIO_PORTB_BASE
  23464. #define I2C0SCL_PIN GPIO_PIN_2
  23465. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  23466. #define I2C0SDA_PORT GPIO_PORTB_BASE
  23467. #define I2C0SDA_PIN GPIO_PIN_3
  23468. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  23469. #define LED0_PORT GPIO_PORTF_BASE
  23470. #define LED0_PIN GPIO_PIN_3
  23471. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  23472. #define LED1_PORT GPIO_PORTF_BASE
  23473. #define LED1_PIN GPIO_PIN_2
  23474. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  23475. #define PWM0_PORT GPIO_PORTD_BASE
  23476. #define PWM0_PIN GPIO_PIN_0
  23477. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  23478. #define PWM1_PORT GPIO_PORTD_BASE
  23479. #define PWM1_PIN GPIO_PIN_1
  23480. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  23481. #define PWM2_PORT GPIO_PORTB_BASE
  23482. #define PWM2_PIN GPIO_PIN_0
  23483. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  23484. #define PWM3_PORT GPIO_PORTB_BASE
  23485. #define PWM3_PIN GPIO_PIN_1
  23486. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  23487. #define PWM4_PORT GPIO_PORTE_BASE
  23488. #define PWM4_PIN GPIO_PIN_0
  23489. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  23490. #define PWM5_PORT GPIO_PORTE_BASE
  23491. #define PWM5_PIN GPIO_PIN_1
  23492. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  23493. #define SSI0CLK_PORT GPIO_PORTA_BASE
  23494. #define SSI0CLK_PIN GPIO_PIN_2
  23495. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  23496. #define SSI0FSS_PORT GPIO_PORTA_BASE
  23497. #define SSI0FSS_PIN GPIO_PIN_3
  23498. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23499. #define SSI0RX_PORT GPIO_PORTA_BASE
  23500. #define SSI0RX_PIN GPIO_PIN_4
  23501. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23502. #define SSI0TX_PORT GPIO_PORTA_BASE
  23503. #define SSI0TX_PIN GPIO_PIN_5
  23504. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  23505. #define SWCLK_PORT GPIO_PORTC_BASE
  23506. #define SWCLK_PIN GPIO_PIN_0
  23507. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  23508. #define SWDIO_PORT GPIO_PORTC_BASE
  23509. #define SWDIO_PIN GPIO_PIN_1
  23510. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  23511. #define SWO_PORT GPIO_PORTC_BASE
  23512. #define SWO_PIN GPIO_PIN_3
  23513. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  23514. #define TCK_PORT GPIO_PORTC_BASE
  23515. #define TCK_PIN GPIO_PIN_0
  23516. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  23517. #define TDI_PORT GPIO_PORTC_BASE
  23518. #define TDI_PIN GPIO_PIN_2
  23519. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  23520. #define TDO_PORT GPIO_PORTC_BASE
  23521. #define TDO_PIN GPIO_PIN_3
  23522. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  23523. #define TMS_PORT GPIO_PORTC_BASE
  23524. #define TMS_PIN GPIO_PIN_1
  23525. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  23526. #define TRST_PORT GPIO_PORTB_BASE
  23527. #define TRST_PIN GPIO_PIN_7
  23528. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23529. #define U0RX_PORT GPIO_PORTA_BASE
  23530. #define U0RX_PIN GPIO_PIN_0
  23531. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23532. #define U0TX_PORT GPIO_PORTA_BASE
  23533. #define U0TX_PIN GPIO_PIN_1
  23534. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  23535. #define U1RX_PORT GPIO_PORTD_BASE
  23536. #define U1RX_PIN GPIO_PIN_2
  23537. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  23538. #define U1TX_PORT GPIO_PORTD_BASE
  23539. #define U1TX_PIN GPIO_PIN_3
  23540. #endif // PART_LM3S6537
  23541. //*****************************************************************************
  23542. //
  23543. // LM3S6610 Port/Pin Mapping Definitions
  23544. //
  23545. //*****************************************************************************
  23546. #ifdef PART_LM3S6610
  23547. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  23548. #define C0O_PORT GPIO_PORTC_BASE
  23549. #define C0O_PIN GPIO_PIN_5
  23550. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23551. #define C0_MINUS_PORT GPIO_PORTB_BASE
  23552. #define C0_MINUS_PIN GPIO_PIN_4
  23553. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  23554. #define C0_PLUS_PORT GPIO_PORTB_BASE
  23555. #define C0_PLUS_PIN GPIO_PIN_6
  23556. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  23557. #define C1O_PORT GPIO_PORTE_BASE
  23558. #define C1O_PIN GPIO_PIN_6
  23559. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23560. #define C1_MINUS_PORT GPIO_PORTB_BASE
  23561. #define C1_MINUS_PIN GPIO_PIN_5
  23562. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  23563. #define C1_PLUS_PORT GPIO_PORTC_BASE
  23564. #define C1_PLUS_PIN GPIO_PIN_5
  23565. #define C2O_PERIPH SYSCTL_PERIPH_GPIOE
  23566. #define C2O_PORT GPIO_PORTE_BASE
  23567. #define C2O_PIN GPIO_PIN_7
  23568. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  23569. #define C2_MINUS_PORT GPIO_PORTC_BASE
  23570. #define C2_MINUS_PIN GPIO_PIN_7
  23571. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  23572. #define C2_PLUS_PORT GPIO_PORTC_BASE
  23573. #define C2_PLUS_PIN GPIO_PIN_6
  23574. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  23575. #define CCP0_PORT GPIO_PORTD_BASE
  23576. #define CCP0_PIN GPIO_PIN_4
  23577. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  23578. #define CCP1_PORT GPIO_PORTA_BASE
  23579. #define CCP1_PIN GPIO_PIN_6
  23580. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  23581. #define CCP2_PORT GPIO_PORTD_BASE
  23582. #define CCP2_PIN GPIO_PIN_5
  23583. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  23584. #define CCP3_PORT GPIO_PORTE_BASE
  23585. #define CCP3_PIN GPIO_PIN_0
  23586. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  23587. #define CCP4_PORT GPIO_PORTA_BASE
  23588. #define CCP4_PIN GPIO_PIN_7
  23589. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  23590. #define CCP5_PORT GPIO_PORTC_BASE
  23591. #define CCP5_PIN GPIO_PIN_4
  23592. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  23593. #define FAULT_PORT GPIO_PORTD_BASE
  23594. #define FAULT_PIN GPIO_PIN_6
  23595. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  23596. #define I2C0SCL_PORT GPIO_PORTB_BASE
  23597. #define I2C0SCL_PIN GPIO_PIN_2
  23598. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  23599. #define I2C0SDA_PORT GPIO_PORTB_BASE
  23600. #define I2C0SDA_PIN GPIO_PIN_3
  23601. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  23602. #define IDX0_PORT GPIO_PORTD_BASE
  23603. #define IDX0_PIN GPIO_PIN_7
  23604. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  23605. #define LED0_PORT GPIO_PORTF_BASE
  23606. #define LED0_PIN GPIO_PIN_3
  23607. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  23608. #define LED1_PORT GPIO_PORTF_BASE
  23609. #define LED1_PIN GPIO_PIN_2
  23610. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOD
  23611. #define PHA0_PORT GPIO_PORTD_BASE
  23612. #define PHA0_PIN GPIO_PIN_1
  23613. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOF
  23614. #define PHB0_PORT GPIO_PORTF_BASE
  23615. #define PHB0_PIN GPIO_PIN_0
  23616. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  23617. #define PWM0_PORT GPIO_PORTD_BASE
  23618. #define PWM0_PIN GPIO_PIN_0
  23619. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  23620. #define PWM1_PORT GPIO_PORTF_BASE
  23621. #define PWM1_PIN GPIO_PIN_1
  23622. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  23623. #define PWM2_PORT GPIO_PORTB_BASE
  23624. #define PWM2_PIN GPIO_PIN_0
  23625. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  23626. #define PWM3_PORT GPIO_PORTB_BASE
  23627. #define PWM3_PIN GPIO_PIN_1
  23628. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  23629. #define SSI0CLK_PORT GPIO_PORTA_BASE
  23630. #define SSI0CLK_PIN GPIO_PIN_2
  23631. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  23632. #define SSI0FSS_PORT GPIO_PORTA_BASE
  23633. #define SSI0FSS_PIN GPIO_PIN_3
  23634. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23635. #define SSI0RX_PORT GPIO_PORTA_BASE
  23636. #define SSI0RX_PIN GPIO_PIN_4
  23637. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23638. #define SSI0TX_PORT GPIO_PORTA_BASE
  23639. #define SSI0TX_PIN GPIO_PIN_5
  23640. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  23641. #define SWCLK_PORT GPIO_PORTC_BASE
  23642. #define SWCLK_PIN GPIO_PIN_0
  23643. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  23644. #define SWDIO_PORT GPIO_PORTC_BASE
  23645. #define SWDIO_PIN GPIO_PIN_1
  23646. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  23647. #define SWO_PORT GPIO_PORTC_BASE
  23648. #define SWO_PIN GPIO_PIN_3
  23649. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  23650. #define TCK_PORT GPIO_PORTC_BASE
  23651. #define TCK_PIN GPIO_PIN_0
  23652. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  23653. #define TDI_PORT GPIO_PORTC_BASE
  23654. #define TDI_PIN GPIO_PIN_2
  23655. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  23656. #define TDO_PORT GPIO_PORTC_BASE
  23657. #define TDO_PIN GPIO_PIN_3
  23658. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  23659. #define TMS_PORT GPIO_PORTC_BASE
  23660. #define TMS_PIN GPIO_PIN_1
  23661. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  23662. #define TRST_PORT GPIO_PORTB_BASE
  23663. #define TRST_PIN GPIO_PIN_7
  23664. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23665. #define U0RX_PORT GPIO_PORTA_BASE
  23666. #define U0RX_PIN GPIO_PIN_0
  23667. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23668. #define U0TX_PORT GPIO_PORTA_BASE
  23669. #define U0TX_PIN GPIO_PIN_1
  23670. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  23671. #define U1RX_PORT GPIO_PORTD_BASE
  23672. #define U1RX_PIN GPIO_PIN_2
  23673. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  23674. #define U1TX_PORT GPIO_PORTD_BASE
  23675. #define U1TX_PIN GPIO_PIN_3
  23676. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  23677. #define U2RX_PORT GPIO_PORTG_BASE
  23678. #define U2RX_PIN GPIO_PIN_0
  23679. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  23680. #define U2TX_PORT GPIO_PORTG_BASE
  23681. #define U2TX_PIN GPIO_PIN_1
  23682. #endif // PART_LM3S6610
  23683. //*****************************************************************************
  23684. //
  23685. // LM3S6611 Port/Pin Mapping Definitions
  23686. //
  23687. //*****************************************************************************
  23688. #ifdef PART_LM3S6611
  23689. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  23690. #define C0O_PORT GPIO_PORTC_BASE
  23691. #define C0O_PIN GPIO_PIN_5
  23692. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23693. #define C0_MINUS_PORT GPIO_PORTB_BASE
  23694. #define C0_MINUS_PIN GPIO_PIN_4
  23695. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  23696. #define C0_PLUS_PORT GPIO_PORTB_BASE
  23697. #define C0_PLUS_PIN GPIO_PIN_6
  23698. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  23699. #define C1O_PORT GPIO_PORTE_BASE
  23700. #define C1O_PIN GPIO_PIN_6
  23701. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23702. #define C1_MINUS_PORT GPIO_PORTB_BASE
  23703. #define C1_MINUS_PIN GPIO_PIN_5
  23704. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  23705. #define C1_PLUS_PORT GPIO_PORTC_BASE
  23706. #define C1_PLUS_PIN GPIO_PIN_5
  23707. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  23708. #define CCP0_PORT GPIO_PORTB_BASE
  23709. #define CCP0_PIN GPIO_PIN_0
  23710. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOD
  23711. #define CCP1_PORT GPIO_PORTD_BASE
  23712. #define CCP1_PIN GPIO_PIN_7
  23713. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  23714. #define CCP2_PORT GPIO_PORTB_BASE
  23715. #define CCP2_PIN GPIO_PIN_1
  23716. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  23717. #define CCP3_PORT GPIO_PORTC_BASE
  23718. #define CCP3_PIN GPIO_PIN_6
  23719. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  23720. #define CCP4_PORT GPIO_PORTC_BASE
  23721. #define CCP4_PIN GPIO_PIN_7
  23722. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  23723. #define CCP5_PORT GPIO_PORTC_BASE
  23724. #define CCP5_PIN GPIO_PIN_4
  23725. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  23726. #define I2C0SCL_PORT GPIO_PORTB_BASE
  23727. #define I2C0SCL_PIN GPIO_PIN_2
  23728. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  23729. #define I2C0SDA_PORT GPIO_PORTB_BASE
  23730. #define I2C0SDA_PIN GPIO_PIN_3
  23731. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  23732. #define I2C1SCL_PORT GPIO_PORTA_BASE
  23733. #define I2C1SCL_PIN GPIO_PIN_6
  23734. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  23735. #define I2C1SDA_PORT GPIO_PORTA_BASE
  23736. #define I2C1SDA_PIN GPIO_PIN_7
  23737. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  23738. #define LED0_PORT GPIO_PORTF_BASE
  23739. #define LED0_PIN GPIO_PIN_3
  23740. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  23741. #define LED1_PORT GPIO_PORTF_BASE
  23742. #define LED1_PIN GPIO_PIN_2
  23743. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  23744. #define SSI0CLK_PORT GPIO_PORTA_BASE
  23745. #define SSI0CLK_PIN GPIO_PIN_2
  23746. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  23747. #define SSI0FSS_PORT GPIO_PORTA_BASE
  23748. #define SSI0FSS_PIN GPIO_PIN_3
  23749. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23750. #define SSI0RX_PORT GPIO_PORTA_BASE
  23751. #define SSI0RX_PIN GPIO_PIN_4
  23752. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23753. #define SSI0TX_PORT GPIO_PORTA_BASE
  23754. #define SSI0TX_PIN GPIO_PIN_5
  23755. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  23756. #define SSI1CLK_PORT GPIO_PORTE_BASE
  23757. #define SSI1CLK_PIN GPIO_PIN_0
  23758. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  23759. #define SSI1FSS_PORT GPIO_PORTE_BASE
  23760. #define SSI1FSS_PIN GPIO_PIN_1
  23761. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  23762. #define SSI1RX_PORT GPIO_PORTE_BASE
  23763. #define SSI1RX_PIN GPIO_PIN_2
  23764. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  23765. #define SSI1TX_PORT GPIO_PORTE_BASE
  23766. #define SSI1TX_PIN GPIO_PIN_3
  23767. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  23768. #define SWCLK_PORT GPIO_PORTC_BASE
  23769. #define SWCLK_PIN GPIO_PIN_0
  23770. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  23771. #define SWDIO_PORT GPIO_PORTC_BASE
  23772. #define SWDIO_PIN GPIO_PIN_1
  23773. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  23774. #define SWO_PORT GPIO_PORTC_BASE
  23775. #define SWO_PIN GPIO_PIN_3
  23776. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  23777. #define TCK_PORT GPIO_PORTC_BASE
  23778. #define TCK_PIN GPIO_PIN_0
  23779. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  23780. #define TDI_PORT GPIO_PORTC_BASE
  23781. #define TDI_PIN GPIO_PIN_2
  23782. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  23783. #define TDO_PORT GPIO_PORTC_BASE
  23784. #define TDO_PIN GPIO_PIN_3
  23785. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  23786. #define TMS_PORT GPIO_PORTC_BASE
  23787. #define TMS_PIN GPIO_PIN_1
  23788. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  23789. #define TRST_PORT GPIO_PORTB_BASE
  23790. #define TRST_PIN GPIO_PIN_7
  23791. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23792. #define U0RX_PORT GPIO_PORTA_BASE
  23793. #define U0RX_PIN GPIO_PIN_0
  23794. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23795. #define U0TX_PORT GPIO_PORTA_BASE
  23796. #define U0TX_PIN GPIO_PIN_1
  23797. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  23798. #define U1RX_PORT GPIO_PORTD_BASE
  23799. #define U1RX_PIN GPIO_PIN_2
  23800. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  23801. #define U1TX_PORT GPIO_PORTD_BASE
  23802. #define U1TX_PIN GPIO_PIN_3
  23803. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  23804. #define U2RX_PORT GPIO_PORTG_BASE
  23805. #define U2RX_PIN GPIO_PIN_0
  23806. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  23807. #define U2TX_PORT GPIO_PORTG_BASE
  23808. #define U2TX_PIN GPIO_PIN_1
  23809. #endif // PART_LM3S6611
  23810. //*****************************************************************************
  23811. //
  23812. // LM3S6618 Port/Pin Mapping Definitions
  23813. //
  23814. //*****************************************************************************
  23815. #ifdef PART_LM3S6618
  23816. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  23817. #define C0O_PORT GPIO_PORTC_BASE
  23818. #define C0O_PIN GPIO_PIN_5
  23819. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23820. #define C0_MINUS_PORT GPIO_PORTB_BASE
  23821. #define C0_MINUS_PIN GPIO_PIN_4
  23822. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  23823. #define C0_PLUS_PORT GPIO_PORTB_BASE
  23824. #define C0_PLUS_PIN GPIO_PIN_6
  23825. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23826. #define C1_MINUS_PORT GPIO_PORTB_BASE
  23827. #define C1_MINUS_PIN GPIO_PIN_5
  23828. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  23829. #define C1_PLUS_PORT GPIO_PORTC_BASE
  23830. #define C1_PLUS_PIN GPIO_PIN_5
  23831. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  23832. #define CCP0_PORT GPIO_PORTB_BASE
  23833. #define CCP0_PIN GPIO_PIN_0
  23834. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  23835. #define CCP1_PORT GPIO_PORTA_BASE
  23836. #define CCP1_PIN GPIO_PIN_6
  23837. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  23838. #define CCP2_PORT GPIO_PORTB_BASE
  23839. #define CCP2_PIN GPIO_PIN_1
  23840. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  23841. #define CCP3_PORT GPIO_PORTC_BASE
  23842. #define CCP3_PIN GPIO_PIN_6
  23843. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  23844. #define CCP4_PORT GPIO_PORTC_BASE
  23845. #define CCP4_PIN GPIO_PIN_7
  23846. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  23847. #define CCP5_PORT GPIO_PORTC_BASE
  23848. #define CCP5_PIN GPIO_PIN_4
  23849. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  23850. #define I2C0SCL_PORT GPIO_PORTB_BASE
  23851. #define I2C0SCL_PIN GPIO_PIN_2
  23852. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  23853. #define I2C0SDA_PORT GPIO_PORTB_BASE
  23854. #define I2C0SDA_PIN GPIO_PIN_3
  23855. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOG
  23856. #define I2C1SCL_PORT GPIO_PORTG_BASE
  23857. #define I2C1SCL_PIN GPIO_PIN_0
  23858. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  23859. #define I2C1SDA_PORT GPIO_PORTA_BASE
  23860. #define I2C1SDA_PIN GPIO_PIN_7
  23861. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  23862. #define LED0_PORT GPIO_PORTF_BASE
  23863. #define LED0_PIN GPIO_PIN_3
  23864. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  23865. #define LED1_PORT GPIO_PORTF_BASE
  23866. #define LED1_PIN GPIO_PIN_2
  23867. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  23868. #define SSI0CLK_PORT GPIO_PORTA_BASE
  23869. #define SSI0CLK_PIN GPIO_PIN_2
  23870. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  23871. #define SSI0FSS_PORT GPIO_PORTA_BASE
  23872. #define SSI0FSS_PIN GPIO_PIN_3
  23873. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23874. #define SSI0RX_PORT GPIO_PORTA_BASE
  23875. #define SSI0RX_PIN GPIO_PIN_4
  23876. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23877. #define SSI0TX_PORT GPIO_PORTA_BASE
  23878. #define SSI0TX_PIN GPIO_PIN_5
  23879. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  23880. #define SSI1CLK_PORT GPIO_PORTE_BASE
  23881. #define SSI1CLK_PIN GPIO_PIN_0
  23882. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  23883. #define SSI1FSS_PORT GPIO_PORTE_BASE
  23884. #define SSI1FSS_PIN GPIO_PIN_1
  23885. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  23886. #define SSI1RX_PORT GPIO_PORTE_BASE
  23887. #define SSI1RX_PIN GPIO_PIN_2
  23888. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  23889. #define SSI1TX_PORT GPIO_PORTE_BASE
  23890. #define SSI1TX_PIN GPIO_PIN_3
  23891. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  23892. #define SWCLK_PORT GPIO_PORTC_BASE
  23893. #define SWCLK_PIN GPIO_PIN_0
  23894. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  23895. #define SWDIO_PORT GPIO_PORTC_BASE
  23896. #define SWDIO_PIN GPIO_PIN_1
  23897. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  23898. #define SWO_PORT GPIO_PORTC_BASE
  23899. #define SWO_PIN GPIO_PIN_3
  23900. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  23901. #define TCK_PORT GPIO_PORTC_BASE
  23902. #define TCK_PIN GPIO_PIN_0
  23903. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  23904. #define TDI_PORT GPIO_PORTC_BASE
  23905. #define TDI_PIN GPIO_PIN_2
  23906. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  23907. #define TDO_PORT GPIO_PORTC_BASE
  23908. #define TDO_PIN GPIO_PIN_3
  23909. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  23910. #define TMS_PORT GPIO_PORTC_BASE
  23911. #define TMS_PIN GPIO_PIN_1
  23912. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  23913. #define TRST_PORT GPIO_PORTB_BASE
  23914. #define TRST_PIN GPIO_PIN_7
  23915. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23916. #define U0RX_PORT GPIO_PORTA_BASE
  23917. #define U0RX_PIN GPIO_PIN_0
  23918. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23919. #define U0TX_PORT GPIO_PORTA_BASE
  23920. #define U0TX_PIN GPIO_PIN_1
  23921. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  23922. #define U1RX_PORT GPIO_PORTD_BASE
  23923. #define U1RX_PIN GPIO_PIN_2
  23924. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  23925. #define U1TX_PORT GPIO_PORTD_BASE
  23926. #define U1TX_PIN GPIO_PIN_3
  23927. #endif // PART_LM3S6618
  23928. //*****************************************************************************
  23929. //
  23930. // LM3S6633 Port/Pin Mapping Definitions
  23931. //
  23932. //*****************************************************************************
  23933. #ifdef PART_LM3S6633
  23934. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  23935. #define C0O_PORT GPIO_PORTC_BASE
  23936. #define C0O_PIN GPIO_PIN_5
  23937. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  23938. #define C0_MINUS_PORT GPIO_PORTB_BASE
  23939. #define C0_MINUS_PIN GPIO_PIN_4
  23940. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  23941. #define C0_PLUS_PORT GPIO_PORTB_BASE
  23942. #define C0_PLUS_PIN GPIO_PIN_6
  23943. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  23944. #define CCP0_PORT GPIO_PORTB_BASE
  23945. #define CCP0_PIN GPIO_PIN_0
  23946. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  23947. #define CCP1_PORT GPIO_PORTA_BASE
  23948. #define CCP1_PIN GPIO_PIN_6
  23949. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  23950. #define CCP2_PORT GPIO_PORTB_BASE
  23951. #define CCP2_PIN GPIO_PIN_1
  23952. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  23953. #define CCP3_PORT GPIO_PORTC_BASE
  23954. #define CCP3_PIN GPIO_PIN_6
  23955. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  23956. #define CCP4_PORT GPIO_PORTA_BASE
  23957. #define CCP4_PIN GPIO_PIN_7
  23958. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  23959. #define CCP5_PORT GPIO_PORTB_BASE
  23960. #define CCP5_PIN GPIO_PIN_5
  23961. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  23962. #define I2C0SCL_PORT GPIO_PORTB_BASE
  23963. #define I2C0SCL_PIN GPIO_PIN_2
  23964. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  23965. #define I2C0SDA_PORT GPIO_PORTB_BASE
  23966. #define I2C0SDA_PIN GPIO_PIN_3
  23967. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  23968. #define LED0_PORT GPIO_PORTF_BASE
  23969. #define LED0_PIN GPIO_PIN_3
  23970. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  23971. #define LED1_PORT GPIO_PORTF_BASE
  23972. #define LED1_PIN GPIO_PIN_2
  23973. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  23974. #define SSI0CLK_PORT GPIO_PORTA_BASE
  23975. #define SSI0CLK_PIN GPIO_PIN_2
  23976. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  23977. #define SSI0FSS_PORT GPIO_PORTA_BASE
  23978. #define SSI0FSS_PIN GPIO_PIN_3
  23979. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  23980. #define SSI0RX_PORT GPIO_PORTA_BASE
  23981. #define SSI0RX_PIN GPIO_PIN_4
  23982. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  23983. #define SSI0TX_PORT GPIO_PORTA_BASE
  23984. #define SSI0TX_PIN GPIO_PIN_5
  23985. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  23986. #define SWCLK_PORT GPIO_PORTC_BASE
  23987. #define SWCLK_PIN GPIO_PIN_0
  23988. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  23989. #define SWDIO_PORT GPIO_PORTC_BASE
  23990. #define SWDIO_PIN GPIO_PIN_1
  23991. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  23992. #define SWO_PORT GPIO_PORTC_BASE
  23993. #define SWO_PIN GPIO_PIN_3
  23994. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  23995. #define TCK_PORT GPIO_PORTC_BASE
  23996. #define TCK_PIN GPIO_PIN_0
  23997. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  23998. #define TDI_PORT GPIO_PORTC_BASE
  23999. #define TDI_PIN GPIO_PIN_2
  24000. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  24001. #define TDO_PORT GPIO_PORTC_BASE
  24002. #define TDO_PIN GPIO_PIN_3
  24003. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  24004. #define TMS_PORT GPIO_PORTC_BASE
  24005. #define TMS_PIN GPIO_PIN_1
  24006. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  24007. #define TRST_PORT GPIO_PORTB_BASE
  24008. #define TRST_PIN GPIO_PIN_7
  24009. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24010. #define U0RX_PORT GPIO_PORTA_BASE
  24011. #define U0RX_PIN GPIO_PIN_0
  24012. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24013. #define U0TX_PORT GPIO_PORTA_BASE
  24014. #define U0TX_PIN GPIO_PIN_1
  24015. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  24016. #define U1RX_PORT GPIO_PORTD_BASE
  24017. #define U1RX_PIN GPIO_PIN_2
  24018. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  24019. #define U1TX_PORT GPIO_PORTD_BASE
  24020. #define U1TX_PIN GPIO_PIN_3
  24021. #endif // PART_LM3S6633
  24022. //*****************************************************************************
  24023. //
  24024. // LM3S6637 Port/Pin Mapping Definitions
  24025. //
  24026. //*****************************************************************************
  24027. #ifdef PART_LM3S6637
  24028. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  24029. #define C0O_PORT GPIO_PORTD_BASE
  24030. #define C0O_PIN GPIO_PIN_7
  24031. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24032. #define C0_MINUS_PORT GPIO_PORTB_BASE
  24033. #define C0_MINUS_PIN GPIO_PIN_4
  24034. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  24035. #define C0_PLUS_PORT GPIO_PORTB_BASE
  24036. #define C0_PLUS_PIN GPIO_PIN_6
  24037. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  24038. #define C1O_PORT GPIO_PORTC_BASE
  24039. #define C1O_PIN GPIO_PIN_5
  24040. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24041. #define C1_MINUS_PORT GPIO_PORTB_BASE
  24042. #define C1_MINUS_PIN GPIO_PIN_5
  24043. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  24044. #define C1_PLUS_PORT GPIO_PORTC_BASE
  24045. #define C1_PLUS_PIN GPIO_PIN_5
  24046. #define C2O_PERIPH SYSCTL_PERIPH_GPIOC
  24047. #define C2O_PORT GPIO_PORTC_BASE
  24048. #define C2O_PIN GPIO_PIN_6
  24049. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  24050. #define C2_MINUS_PORT GPIO_PORTC_BASE
  24051. #define C2_MINUS_PIN GPIO_PIN_7
  24052. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  24053. #define C2_PLUS_PORT GPIO_PORTC_BASE
  24054. #define C2_PLUS_PIN GPIO_PIN_6
  24055. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  24056. #define CCP0_PORT GPIO_PORTB_BASE
  24057. #define CCP0_PIN GPIO_PIN_0
  24058. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  24059. #define CCP1_PORT GPIO_PORTA_BASE
  24060. #define CCP1_PIN GPIO_PIN_6
  24061. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  24062. #define CCP2_PORT GPIO_PORTB_BASE
  24063. #define CCP2_PIN GPIO_PIN_1
  24064. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  24065. #define CCP3_PORT GPIO_PORTD_BASE
  24066. #define CCP3_PIN GPIO_PIN_4
  24067. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  24068. #define CCP4_PORT GPIO_PORTA_BASE
  24069. #define CCP4_PIN GPIO_PIN_7
  24070. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  24071. #define CCP5_PORT GPIO_PORTC_BASE
  24072. #define CCP5_PIN GPIO_PIN_4
  24073. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  24074. #define I2C0SCL_PORT GPIO_PORTB_BASE
  24075. #define I2C0SCL_PIN GPIO_PIN_2
  24076. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  24077. #define I2C0SDA_PORT GPIO_PORTB_BASE
  24078. #define I2C0SDA_PIN GPIO_PIN_3
  24079. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  24080. #define LED0_PORT GPIO_PORTF_BASE
  24081. #define LED0_PIN GPIO_PIN_3
  24082. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  24083. #define LED1_PORT GPIO_PORTF_BASE
  24084. #define LED1_PIN GPIO_PIN_2
  24085. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  24086. #define SSI0CLK_PORT GPIO_PORTA_BASE
  24087. #define SSI0CLK_PIN GPIO_PIN_2
  24088. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  24089. #define SSI0FSS_PORT GPIO_PORTA_BASE
  24090. #define SSI0FSS_PIN GPIO_PIN_3
  24091. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24092. #define SSI0RX_PORT GPIO_PORTA_BASE
  24093. #define SSI0RX_PIN GPIO_PIN_4
  24094. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24095. #define SSI0TX_PORT GPIO_PORTA_BASE
  24096. #define SSI0TX_PIN GPIO_PIN_5
  24097. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  24098. #define SWCLK_PORT GPIO_PORTC_BASE
  24099. #define SWCLK_PIN GPIO_PIN_0
  24100. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  24101. #define SWDIO_PORT GPIO_PORTC_BASE
  24102. #define SWDIO_PIN GPIO_PIN_1
  24103. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  24104. #define SWO_PORT GPIO_PORTC_BASE
  24105. #define SWO_PIN GPIO_PIN_3
  24106. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  24107. #define TCK_PORT GPIO_PORTC_BASE
  24108. #define TCK_PIN GPIO_PIN_0
  24109. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  24110. #define TDI_PORT GPIO_PORTC_BASE
  24111. #define TDI_PIN GPIO_PIN_2
  24112. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  24113. #define TDO_PORT GPIO_PORTC_BASE
  24114. #define TDO_PIN GPIO_PIN_3
  24115. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  24116. #define TMS_PORT GPIO_PORTC_BASE
  24117. #define TMS_PIN GPIO_PIN_1
  24118. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  24119. #define TRST_PORT GPIO_PORTB_BASE
  24120. #define TRST_PIN GPIO_PIN_7
  24121. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24122. #define U0RX_PORT GPIO_PORTA_BASE
  24123. #define U0RX_PIN GPIO_PIN_0
  24124. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24125. #define U0TX_PORT GPIO_PORTA_BASE
  24126. #define U0TX_PIN GPIO_PIN_1
  24127. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  24128. #define U1RX_PORT GPIO_PORTD_BASE
  24129. #define U1RX_PIN GPIO_PIN_2
  24130. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  24131. #define U1TX_PORT GPIO_PORTD_BASE
  24132. #define U1TX_PIN GPIO_PIN_3
  24133. #endif // PART_LM3S6637
  24134. //*****************************************************************************
  24135. //
  24136. // LM3S6730 Port/Pin Mapping Definitions
  24137. //
  24138. //*****************************************************************************
  24139. #ifdef PART_LM3S6730
  24140. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  24141. #define C0O_PORT GPIO_PORTD_BASE
  24142. #define C0O_PIN GPIO_PIN_7
  24143. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24144. #define C0_MINUS_PORT GPIO_PORTB_BASE
  24145. #define C0_MINUS_PIN GPIO_PIN_4
  24146. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  24147. #define C0_PLUS_PORT GPIO_PORTB_BASE
  24148. #define C0_PLUS_PIN GPIO_PIN_6
  24149. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  24150. #define C1O_PORT GPIO_PORTE_BASE
  24151. #define C1O_PIN GPIO_PIN_6
  24152. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24153. #define C1_MINUS_PORT GPIO_PORTB_BASE
  24154. #define C1_MINUS_PIN GPIO_PIN_5
  24155. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  24156. #define C1_PLUS_PORT GPIO_PORTC_BASE
  24157. #define C1_PLUS_PIN GPIO_PIN_5
  24158. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  24159. #define CCP0_PORT GPIO_PORTB_BASE
  24160. #define CCP0_PIN GPIO_PIN_0
  24161. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  24162. #define CCP1_PORT GPIO_PORTA_BASE
  24163. #define CCP1_PIN GPIO_PIN_6
  24164. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  24165. #define CCP2_PORT GPIO_PORTB_BASE
  24166. #define CCP2_PIN GPIO_PIN_1
  24167. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  24168. #define CCP3_PORT GPIO_PORTC_BASE
  24169. #define CCP3_PIN GPIO_PIN_6
  24170. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  24171. #define LED0_PORT GPIO_PORTF_BASE
  24172. #define LED0_PIN GPIO_PIN_3
  24173. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  24174. #define LED1_PORT GPIO_PORTF_BASE
  24175. #define LED1_PIN GPIO_PIN_2
  24176. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  24177. #define SSI0CLK_PORT GPIO_PORTA_BASE
  24178. #define SSI0CLK_PIN GPIO_PIN_2
  24179. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  24180. #define SSI0FSS_PORT GPIO_PORTA_BASE
  24181. #define SSI0FSS_PIN GPIO_PIN_3
  24182. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24183. #define SSI0RX_PORT GPIO_PORTA_BASE
  24184. #define SSI0RX_PIN GPIO_PIN_4
  24185. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24186. #define SSI0TX_PORT GPIO_PORTA_BASE
  24187. #define SSI0TX_PIN GPIO_PIN_5
  24188. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  24189. #define SWCLK_PORT GPIO_PORTC_BASE
  24190. #define SWCLK_PIN GPIO_PIN_0
  24191. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  24192. #define SWDIO_PORT GPIO_PORTC_BASE
  24193. #define SWDIO_PIN GPIO_PIN_1
  24194. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  24195. #define SWO_PORT GPIO_PORTC_BASE
  24196. #define SWO_PIN GPIO_PIN_3
  24197. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  24198. #define TCK_PORT GPIO_PORTC_BASE
  24199. #define TCK_PIN GPIO_PIN_0
  24200. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  24201. #define TDI_PORT GPIO_PORTC_BASE
  24202. #define TDI_PIN GPIO_PIN_2
  24203. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  24204. #define TDO_PORT GPIO_PORTC_BASE
  24205. #define TDO_PIN GPIO_PIN_3
  24206. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  24207. #define TMS_PORT GPIO_PORTC_BASE
  24208. #define TMS_PIN GPIO_PIN_1
  24209. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  24210. #define TRST_PORT GPIO_PORTB_BASE
  24211. #define TRST_PIN GPIO_PIN_7
  24212. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24213. #define U0RX_PORT GPIO_PORTA_BASE
  24214. #define U0RX_PIN GPIO_PIN_0
  24215. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24216. #define U0TX_PORT GPIO_PORTA_BASE
  24217. #define U0TX_PIN GPIO_PIN_1
  24218. #endif // PART_LM3S6730
  24219. //*****************************************************************************
  24220. //
  24221. // LM3S6753 Port/Pin Mapping Definitions
  24222. //
  24223. //*****************************************************************************
  24224. #ifdef PART_LM3S6753
  24225. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  24226. #define C0O_PORT GPIO_PORTD_BASE
  24227. #define C0O_PIN GPIO_PIN_7
  24228. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24229. #define C0_MINUS_PORT GPIO_PORTB_BASE
  24230. #define C0_MINUS_PIN GPIO_PIN_4
  24231. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  24232. #define C0_PLUS_PORT GPIO_PORTB_BASE
  24233. #define C0_PLUS_PIN GPIO_PIN_6
  24234. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24235. #define C1_MINUS_PORT GPIO_PORTB_BASE
  24236. #define C1_MINUS_PIN GPIO_PIN_5
  24237. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  24238. #define C1_PLUS_PORT GPIO_PORTC_BASE
  24239. #define C1_PLUS_PIN GPIO_PIN_5
  24240. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  24241. #define CCP0_PORT GPIO_PORTD_BASE
  24242. #define CCP0_PIN GPIO_PIN_4
  24243. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  24244. #define CCP1_PORT GPIO_PORTA_BASE
  24245. #define CCP1_PIN GPIO_PIN_6
  24246. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  24247. #define CCP2_PORT GPIO_PORTD_BASE
  24248. #define CCP2_PIN GPIO_PIN_5
  24249. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  24250. #define CCP3_PORT GPIO_PORTC_BASE
  24251. #define CCP3_PIN GPIO_PIN_6
  24252. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  24253. #define FAULT_PORT GPIO_PORTD_BASE
  24254. #define FAULT_PIN GPIO_PIN_6
  24255. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  24256. #define I2C0SCL_PORT GPIO_PORTB_BASE
  24257. #define I2C0SCL_PIN GPIO_PIN_2
  24258. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  24259. #define I2C0SDA_PORT GPIO_PORTB_BASE
  24260. #define I2C0SDA_PIN GPIO_PIN_3
  24261. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  24262. #define IDX0_PORT GPIO_PORTD_BASE
  24263. #define IDX0_PIN GPIO_PIN_0
  24264. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  24265. #define LED0_PORT GPIO_PORTF_BASE
  24266. #define LED0_PIN GPIO_PIN_3
  24267. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  24268. #define LED1_PORT GPIO_PORTF_BASE
  24269. #define LED1_PIN GPIO_PIN_2
  24270. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  24271. #define PHA0_PORT GPIO_PORTC_BASE
  24272. #define PHA0_PIN GPIO_PIN_4
  24273. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  24274. #define PHB0_PORT GPIO_PORTC_BASE
  24275. #define PHB0_PIN GPIO_PIN_7
  24276. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  24277. #define PWM0_PORT GPIO_PORTF_BASE
  24278. #define PWM0_PIN GPIO_PIN_0
  24279. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  24280. #define PWM1_PORT GPIO_PORTD_BASE
  24281. #define PWM1_PIN GPIO_PIN_1
  24282. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  24283. #define PWM2_PORT GPIO_PORTB_BASE
  24284. #define PWM2_PIN GPIO_PIN_0
  24285. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  24286. #define PWM3_PORT GPIO_PORTB_BASE
  24287. #define PWM3_PIN GPIO_PIN_1
  24288. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  24289. #define PWM4_PORT GPIO_PORTE_BASE
  24290. #define PWM4_PIN GPIO_PIN_0
  24291. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  24292. #define PWM5_PORT GPIO_PORTE_BASE
  24293. #define PWM5_PIN GPIO_PIN_1
  24294. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  24295. #define SSI0CLK_PORT GPIO_PORTA_BASE
  24296. #define SSI0CLK_PIN GPIO_PIN_2
  24297. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  24298. #define SSI0FSS_PORT GPIO_PORTA_BASE
  24299. #define SSI0FSS_PIN GPIO_PIN_3
  24300. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24301. #define SSI0RX_PORT GPIO_PORTA_BASE
  24302. #define SSI0RX_PIN GPIO_PIN_4
  24303. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24304. #define SSI0TX_PORT GPIO_PORTA_BASE
  24305. #define SSI0TX_PIN GPIO_PIN_5
  24306. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  24307. #define SWCLK_PORT GPIO_PORTC_BASE
  24308. #define SWCLK_PIN GPIO_PIN_0
  24309. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  24310. #define SWDIO_PORT GPIO_PORTC_BASE
  24311. #define SWDIO_PIN GPIO_PIN_1
  24312. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  24313. #define SWO_PORT GPIO_PORTC_BASE
  24314. #define SWO_PIN GPIO_PIN_3
  24315. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  24316. #define TCK_PORT GPIO_PORTC_BASE
  24317. #define TCK_PIN GPIO_PIN_0
  24318. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  24319. #define TDI_PORT GPIO_PORTC_BASE
  24320. #define TDI_PIN GPIO_PIN_2
  24321. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  24322. #define TDO_PORT GPIO_PORTC_BASE
  24323. #define TDO_PIN GPIO_PIN_3
  24324. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  24325. #define TMS_PORT GPIO_PORTC_BASE
  24326. #define TMS_PIN GPIO_PIN_1
  24327. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  24328. #define TRST_PORT GPIO_PORTB_BASE
  24329. #define TRST_PIN GPIO_PIN_7
  24330. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24331. #define U0RX_PORT GPIO_PORTA_BASE
  24332. #define U0RX_PIN GPIO_PIN_0
  24333. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24334. #define U0TX_PORT GPIO_PORTA_BASE
  24335. #define U0TX_PIN GPIO_PIN_1
  24336. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  24337. #define U1RX_PORT GPIO_PORTD_BASE
  24338. #define U1RX_PIN GPIO_PIN_2
  24339. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  24340. #define U1TX_PORT GPIO_PORTD_BASE
  24341. #define U1TX_PIN GPIO_PIN_3
  24342. #endif // PART_LM3S6753
  24343. //*****************************************************************************
  24344. //
  24345. // LM3S6816 Port/Pin Mapping Definitions
  24346. //
  24347. //*****************************************************************************
  24348. #ifdef PART_LM3S6816
  24349. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  24350. #define CCP0_PORT GPIO_PORTB_BASE
  24351. #define CCP0_PIN GPIO_PIN_0
  24352. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  24353. #define CCP1_PORT GPIO_PORTA_BASE
  24354. #define CCP1_PIN GPIO_PIN_6
  24355. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  24356. #define CCP2_PORT GPIO_PORTB_BASE
  24357. #define CCP2_PIN GPIO_PIN_1
  24358. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  24359. #define CCP3_PORT GPIO_PORTC_BASE
  24360. #define CCP3_PIN GPIO_PIN_6
  24361. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  24362. #define CCP4_PORT GPIO_PORTA_BASE
  24363. #define CCP4_PIN GPIO_PIN_7
  24364. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  24365. #define CCP5_PORT GPIO_PORTB_BASE
  24366. #define CCP5_PIN GPIO_PIN_5
  24367. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOE
  24368. #define FAULT_PORT GPIO_PORTE_BASE
  24369. #define FAULT_PIN GPIO_PIN_1
  24370. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  24371. #define I2C0SCL_PORT GPIO_PORTB_BASE
  24372. #define I2C0SCL_PIN GPIO_PIN_2
  24373. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  24374. #define I2C0SDA_PORT GPIO_PORTB_BASE
  24375. #define I2C0SDA_PIN GPIO_PIN_3
  24376. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  24377. #define LED0_PORT GPIO_PORTF_BASE
  24378. #define LED0_PIN GPIO_PIN_3
  24379. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  24380. #define LED1_PORT GPIO_PORTF_BASE
  24381. #define LED1_PIN GPIO_PIN_2
  24382. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  24383. #define PWM0_PORT GPIO_PORTD_BASE
  24384. #define PWM0_PIN GPIO_PIN_0
  24385. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  24386. #define PWM1_PORT GPIO_PORTD_BASE
  24387. #define PWM1_PIN GPIO_PIN_1
  24388. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  24389. #define SSI0CLK_PORT GPIO_PORTA_BASE
  24390. #define SSI0CLK_PIN GPIO_PIN_2
  24391. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  24392. #define SSI0FSS_PORT GPIO_PORTA_BASE
  24393. #define SSI0FSS_PIN GPIO_PIN_3
  24394. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24395. #define SSI0RX_PORT GPIO_PORTA_BASE
  24396. #define SSI0RX_PIN GPIO_PIN_4
  24397. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24398. #define SSI0TX_PORT GPIO_PORTA_BASE
  24399. #define SSI0TX_PIN GPIO_PIN_5
  24400. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  24401. #define SWCLK_PORT GPIO_PORTC_BASE
  24402. #define SWCLK_PIN GPIO_PIN_0
  24403. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  24404. #define SWDIO_PORT GPIO_PORTC_BASE
  24405. #define SWDIO_PIN GPIO_PIN_1
  24406. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  24407. #define SWO_PORT GPIO_PORTC_BASE
  24408. #define SWO_PIN GPIO_PIN_3
  24409. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  24410. #define TCK_PORT GPIO_PORTC_BASE
  24411. #define TCK_PIN GPIO_PIN_0
  24412. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  24413. #define TDI_PORT GPIO_PORTC_BASE
  24414. #define TDI_PIN GPIO_PIN_2
  24415. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  24416. #define TDO_PORT GPIO_PORTC_BASE
  24417. #define TDO_PIN GPIO_PIN_3
  24418. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  24419. #define TMS_PORT GPIO_PORTC_BASE
  24420. #define TMS_PIN GPIO_PIN_1
  24421. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  24422. #define TRST_PORT GPIO_PORTB_BASE
  24423. #define TRST_PIN GPIO_PIN_7
  24424. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24425. #define U0RX_PORT GPIO_PORTA_BASE
  24426. #define U0RX_PIN GPIO_PIN_0
  24427. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24428. #define U0TX_PORT GPIO_PORTA_BASE
  24429. #define U0TX_PIN GPIO_PIN_1
  24430. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  24431. #define U1RX_PORT GPIO_PORTD_BASE
  24432. #define U1RX_PIN GPIO_PIN_2
  24433. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  24434. #define U1TX_PORT GPIO_PORTD_BASE
  24435. #define U1TX_PIN GPIO_PIN_3
  24436. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  24437. #define U2RX_PORT GPIO_PORTG_BASE
  24438. #define U2RX_PIN GPIO_PIN_0
  24439. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  24440. #define U2TX_PORT GPIO_PORTG_BASE
  24441. #define U2TX_PIN GPIO_PIN_1
  24442. #endif // PART_LM3S6816
  24443. //*****************************************************************************
  24444. //
  24445. // LM3S6911 Port/Pin Mapping Definitions
  24446. //
  24447. //*****************************************************************************
  24448. #ifdef PART_LM3S6911
  24449. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  24450. #define C0O_PORT GPIO_PORTC_BASE
  24451. #define C0O_PIN GPIO_PIN_5
  24452. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24453. #define C0_MINUS_PORT GPIO_PORTB_BASE
  24454. #define C0_MINUS_PIN GPIO_PIN_4
  24455. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  24456. #define C0_PLUS_PORT GPIO_PORTB_BASE
  24457. #define C0_PLUS_PIN GPIO_PIN_6
  24458. #define C1O_PERIPH SYSCTL_PERIPH_GPIOE
  24459. #define C1O_PORT GPIO_PORTE_BASE
  24460. #define C1O_PIN GPIO_PIN_6
  24461. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24462. #define C1_MINUS_PORT GPIO_PORTB_BASE
  24463. #define C1_MINUS_PIN GPIO_PIN_5
  24464. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  24465. #define C1_PLUS_PORT GPIO_PORTC_BASE
  24466. #define C1_PLUS_PIN GPIO_PIN_5
  24467. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  24468. #define CCP0_PORT GPIO_PORTB_BASE
  24469. #define CCP0_PIN GPIO_PIN_0
  24470. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOD
  24471. #define CCP1_PORT GPIO_PORTD_BASE
  24472. #define CCP1_PIN GPIO_PIN_7
  24473. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  24474. #define CCP2_PORT GPIO_PORTB_BASE
  24475. #define CCP2_PIN GPIO_PIN_1
  24476. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  24477. #define CCP3_PORT GPIO_PORTC_BASE
  24478. #define CCP3_PIN GPIO_PIN_6
  24479. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  24480. #define CCP4_PORT GPIO_PORTC_BASE
  24481. #define CCP4_PIN GPIO_PIN_7
  24482. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  24483. #define CCP5_PORT GPIO_PORTC_BASE
  24484. #define CCP5_PIN GPIO_PIN_4
  24485. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  24486. #define I2C0SCL_PORT GPIO_PORTB_BASE
  24487. #define I2C0SCL_PIN GPIO_PIN_2
  24488. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  24489. #define I2C0SDA_PORT GPIO_PORTB_BASE
  24490. #define I2C0SDA_PIN GPIO_PIN_3
  24491. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  24492. #define I2C1SCL_PORT GPIO_PORTA_BASE
  24493. #define I2C1SCL_PIN GPIO_PIN_6
  24494. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  24495. #define I2C1SDA_PORT GPIO_PORTA_BASE
  24496. #define I2C1SDA_PIN GPIO_PIN_7
  24497. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  24498. #define LED0_PORT GPIO_PORTF_BASE
  24499. #define LED0_PIN GPIO_PIN_3
  24500. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  24501. #define LED1_PORT GPIO_PORTF_BASE
  24502. #define LED1_PIN GPIO_PIN_2
  24503. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  24504. #define SSI0CLK_PORT GPIO_PORTA_BASE
  24505. #define SSI0CLK_PIN GPIO_PIN_2
  24506. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  24507. #define SSI0FSS_PORT GPIO_PORTA_BASE
  24508. #define SSI0FSS_PIN GPIO_PIN_3
  24509. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24510. #define SSI0RX_PORT GPIO_PORTA_BASE
  24511. #define SSI0RX_PIN GPIO_PIN_4
  24512. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24513. #define SSI0TX_PORT GPIO_PORTA_BASE
  24514. #define SSI0TX_PIN GPIO_PIN_5
  24515. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  24516. #define SSI1CLK_PORT GPIO_PORTE_BASE
  24517. #define SSI1CLK_PIN GPIO_PIN_0
  24518. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  24519. #define SSI1FSS_PORT GPIO_PORTE_BASE
  24520. #define SSI1FSS_PIN GPIO_PIN_1
  24521. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  24522. #define SSI1RX_PORT GPIO_PORTE_BASE
  24523. #define SSI1RX_PIN GPIO_PIN_2
  24524. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  24525. #define SSI1TX_PORT GPIO_PORTE_BASE
  24526. #define SSI1TX_PIN GPIO_PIN_3
  24527. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  24528. #define SWCLK_PORT GPIO_PORTC_BASE
  24529. #define SWCLK_PIN GPIO_PIN_0
  24530. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  24531. #define SWDIO_PORT GPIO_PORTC_BASE
  24532. #define SWDIO_PIN GPIO_PIN_1
  24533. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  24534. #define SWO_PORT GPIO_PORTC_BASE
  24535. #define SWO_PIN GPIO_PIN_3
  24536. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  24537. #define TCK_PORT GPIO_PORTC_BASE
  24538. #define TCK_PIN GPIO_PIN_0
  24539. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  24540. #define TDI_PORT GPIO_PORTC_BASE
  24541. #define TDI_PIN GPIO_PIN_2
  24542. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  24543. #define TDO_PORT GPIO_PORTC_BASE
  24544. #define TDO_PIN GPIO_PIN_3
  24545. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  24546. #define TMS_PORT GPIO_PORTC_BASE
  24547. #define TMS_PIN GPIO_PIN_1
  24548. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  24549. #define TRST_PORT GPIO_PORTB_BASE
  24550. #define TRST_PIN GPIO_PIN_7
  24551. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24552. #define U0RX_PORT GPIO_PORTA_BASE
  24553. #define U0RX_PIN GPIO_PIN_0
  24554. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24555. #define U0TX_PORT GPIO_PORTA_BASE
  24556. #define U0TX_PIN GPIO_PIN_1
  24557. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  24558. #define U1RX_PORT GPIO_PORTD_BASE
  24559. #define U1RX_PIN GPIO_PIN_2
  24560. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  24561. #define U1TX_PORT GPIO_PORTD_BASE
  24562. #define U1TX_PIN GPIO_PIN_3
  24563. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  24564. #define U2RX_PORT GPIO_PORTG_BASE
  24565. #define U2RX_PIN GPIO_PIN_0
  24566. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  24567. #define U2TX_PORT GPIO_PORTG_BASE
  24568. #define U2TX_PIN GPIO_PIN_1
  24569. #endif // PART_LM3S6911
  24570. //*****************************************************************************
  24571. //
  24572. // LM3S6916 Port/Pin Mapping Definitions
  24573. //
  24574. //*****************************************************************************
  24575. #ifdef PART_LM3S6916
  24576. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  24577. #define CCP0_PORT GPIO_PORTB_BASE
  24578. #define CCP0_PIN GPIO_PIN_0
  24579. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  24580. #define CCP1_PORT GPIO_PORTA_BASE
  24581. #define CCP1_PIN GPIO_PIN_6
  24582. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  24583. #define CCP2_PORT GPIO_PORTB_BASE
  24584. #define CCP2_PIN GPIO_PIN_1
  24585. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  24586. #define CCP3_PORT GPIO_PORTC_BASE
  24587. #define CCP3_PIN GPIO_PIN_6
  24588. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  24589. #define CCP4_PORT GPIO_PORTA_BASE
  24590. #define CCP4_PIN GPIO_PIN_7
  24591. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  24592. #define CCP5_PORT GPIO_PORTB_BASE
  24593. #define CCP5_PIN GPIO_PIN_5
  24594. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOE
  24595. #define FAULT_PORT GPIO_PORTE_BASE
  24596. #define FAULT_PIN GPIO_PIN_1
  24597. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  24598. #define I2C0SCL_PORT GPIO_PORTB_BASE
  24599. #define I2C0SCL_PIN GPIO_PIN_2
  24600. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  24601. #define I2C0SDA_PORT GPIO_PORTB_BASE
  24602. #define I2C0SDA_PIN GPIO_PIN_3
  24603. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  24604. #define LED0_PORT GPIO_PORTF_BASE
  24605. #define LED0_PIN GPIO_PIN_3
  24606. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  24607. #define LED1_PORT GPIO_PORTF_BASE
  24608. #define LED1_PIN GPIO_PIN_2
  24609. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  24610. #define PWM0_PORT GPIO_PORTD_BASE
  24611. #define PWM0_PIN GPIO_PIN_0
  24612. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  24613. #define PWM1_PORT GPIO_PORTD_BASE
  24614. #define PWM1_PIN GPIO_PIN_1
  24615. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  24616. #define SSI0CLK_PORT GPIO_PORTA_BASE
  24617. #define SSI0CLK_PIN GPIO_PIN_2
  24618. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  24619. #define SSI0FSS_PORT GPIO_PORTA_BASE
  24620. #define SSI0FSS_PIN GPIO_PIN_3
  24621. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24622. #define SSI0RX_PORT GPIO_PORTA_BASE
  24623. #define SSI0RX_PIN GPIO_PIN_4
  24624. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24625. #define SSI0TX_PORT GPIO_PORTA_BASE
  24626. #define SSI0TX_PIN GPIO_PIN_5
  24627. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  24628. #define SWCLK_PORT GPIO_PORTC_BASE
  24629. #define SWCLK_PIN GPIO_PIN_0
  24630. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  24631. #define SWDIO_PORT GPIO_PORTC_BASE
  24632. #define SWDIO_PIN GPIO_PIN_1
  24633. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  24634. #define SWO_PORT GPIO_PORTC_BASE
  24635. #define SWO_PIN GPIO_PIN_3
  24636. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  24637. #define TCK_PORT GPIO_PORTC_BASE
  24638. #define TCK_PIN GPIO_PIN_0
  24639. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  24640. #define TDI_PORT GPIO_PORTC_BASE
  24641. #define TDI_PIN GPIO_PIN_2
  24642. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  24643. #define TDO_PORT GPIO_PORTC_BASE
  24644. #define TDO_PIN GPIO_PIN_3
  24645. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  24646. #define TMS_PORT GPIO_PORTC_BASE
  24647. #define TMS_PIN GPIO_PIN_1
  24648. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  24649. #define TRST_PORT GPIO_PORTB_BASE
  24650. #define TRST_PIN GPIO_PIN_7
  24651. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24652. #define U0RX_PORT GPIO_PORTA_BASE
  24653. #define U0RX_PIN GPIO_PIN_0
  24654. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24655. #define U0TX_PORT GPIO_PORTA_BASE
  24656. #define U0TX_PIN GPIO_PIN_1
  24657. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  24658. #define U1RX_PORT GPIO_PORTD_BASE
  24659. #define U1RX_PIN GPIO_PIN_2
  24660. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  24661. #define U1TX_PORT GPIO_PORTD_BASE
  24662. #define U1TX_PIN GPIO_PIN_3
  24663. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  24664. #define U2RX_PORT GPIO_PORTG_BASE
  24665. #define U2RX_PIN GPIO_PIN_0
  24666. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  24667. #define U2TX_PORT GPIO_PORTG_BASE
  24668. #define U2TX_PIN GPIO_PIN_1
  24669. #endif // PART_LM3S6916
  24670. //*****************************************************************************
  24671. //
  24672. // LM3S6918 Port/Pin Mapping Definitions
  24673. //
  24674. //*****************************************************************************
  24675. #ifdef PART_LM3S6918
  24676. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  24677. #define C0O_PORT GPIO_PORTC_BASE
  24678. #define C0O_PIN GPIO_PIN_5
  24679. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24680. #define C0_MINUS_PORT GPIO_PORTB_BASE
  24681. #define C0_MINUS_PIN GPIO_PIN_4
  24682. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  24683. #define C0_PLUS_PORT GPIO_PORTB_BASE
  24684. #define C0_PLUS_PIN GPIO_PIN_6
  24685. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24686. #define C1_MINUS_PORT GPIO_PORTB_BASE
  24687. #define C1_MINUS_PIN GPIO_PIN_5
  24688. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  24689. #define C1_PLUS_PORT GPIO_PORTC_BASE
  24690. #define C1_PLUS_PIN GPIO_PIN_5
  24691. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  24692. #define CCP0_PORT GPIO_PORTB_BASE
  24693. #define CCP0_PIN GPIO_PIN_0
  24694. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  24695. #define CCP1_PORT GPIO_PORTA_BASE
  24696. #define CCP1_PIN GPIO_PIN_6
  24697. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  24698. #define CCP2_PORT GPIO_PORTB_BASE
  24699. #define CCP2_PIN GPIO_PIN_1
  24700. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  24701. #define CCP3_PORT GPIO_PORTC_BASE
  24702. #define CCP3_PIN GPIO_PIN_6
  24703. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOC
  24704. #define CCP4_PORT GPIO_PORTC_BASE
  24705. #define CCP4_PIN GPIO_PIN_7
  24706. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  24707. #define CCP5_PORT GPIO_PORTC_BASE
  24708. #define CCP5_PIN GPIO_PIN_4
  24709. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  24710. #define I2C0SCL_PORT GPIO_PORTB_BASE
  24711. #define I2C0SCL_PIN GPIO_PIN_2
  24712. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  24713. #define I2C0SDA_PORT GPIO_PORTB_BASE
  24714. #define I2C0SDA_PIN GPIO_PIN_3
  24715. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOG
  24716. #define I2C1SCL_PORT GPIO_PORTG_BASE
  24717. #define I2C1SCL_PIN GPIO_PIN_0
  24718. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  24719. #define I2C1SDA_PORT GPIO_PORTA_BASE
  24720. #define I2C1SDA_PIN GPIO_PIN_7
  24721. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  24722. #define LED0_PORT GPIO_PORTF_BASE
  24723. #define LED0_PIN GPIO_PIN_3
  24724. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  24725. #define LED1_PORT GPIO_PORTF_BASE
  24726. #define LED1_PIN GPIO_PIN_2
  24727. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  24728. #define SSI0CLK_PORT GPIO_PORTA_BASE
  24729. #define SSI0CLK_PIN GPIO_PIN_2
  24730. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  24731. #define SSI0FSS_PORT GPIO_PORTA_BASE
  24732. #define SSI0FSS_PIN GPIO_PIN_3
  24733. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24734. #define SSI0RX_PORT GPIO_PORTA_BASE
  24735. #define SSI0RX_PIN GPIO_PIN_4
  24736. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24737. #define SSI0TX_PORT GPIO_PORTA_BASE
  24738. #define SSI0TX_PIN GPIO_PIN_5
  24739. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  24740. #define SSI1CLK_PORT GPIO_PORTE_BASE
  24741. #define SSI1CLK_PIN GPIO_PIN_0
  24742. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  24743. #define SSI1FSS_PORT GPIO_PORTE_BASE
  24744. #define SSI1FSS_PIN GPIO_PIN_1
  24745. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  24746. #define SSI1RX_PORT GPIO_PORTE_BASE
  24747. #define SSI1RX_PIN GPIO_PIN_2
  24748. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  24749. #define SSI1TX_PORT GPIO_PORTE_BASE
  24750. #define SSI1TX_PIN GPIO_PIN_3
  24751. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  24752. #define SWCLK_PORT GPIO_PORTC_BASE
  24753. #define SWCLK_PIN GPIO_PIN_0
  24754. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  24755. #define SWDIO_PORT GPIO_PORTC_BASE
  24756. #define SWDIO_PIN GPIO_PIN_1
  24757. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  24758. #define SWO_PORT GPIO_PORTC_BASE
  24759. #define SWO_PIN GPIO_PIN_3
  24760. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  24761. #define TCK_PORT GPIO_PORTC_BASE
  24762. #define TCK_PIN GPIO_PIN_0
  24763. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  24764. #define TDI_PORT GPIO_PORTC_BASE
  24765. #define TDI_PIN GPIO_PIN_2
  24766. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  24767. #define TDO_PORT GPIO_PORTC_BASE
  24768. #define TDO_PIN GPIO_PIN_3
  24769. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  24770. #define TMS_PORT GPIO_PORTC_BASE
  24771. #define TMS_PIN GPIO_PIN_1
  24772. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  24773. #define TRST_PORT GPIO_PORTB_BASE
  24774. #define TRST_PIN GPIO_PIN_7
  24775. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24776. #define U0RX_PORT GPIO_PORTA_BASE
  24777. #define U0RX_PIN GPIO_PIN_0
  24778. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24779. #define U0TX_PORT GPIO_PORTA_BASE
  24780. #define U0TX_PIN GPIO_PIN_1
  24781. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  24782. #define U1RX_PORT GPIO_PORTD_BASE
  24783. #define U1RX_PIN GPIO_PIN_2
  24784. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  24785. #define U1TX_PORT GPIO_PORTD_BASE
  24786. #define U1TX_PIN GPIO_PIN_3
  24787. #endif // PART_LM3S6918
  24788. //*****************************************************************************
  24789. //
  24790. // LM3S6938 Port/Pin Mapping Definitions
  24791. //
  24792. //*****************************************************************************
  24793. #ifdef PART_LM3S6938
  24794. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  24795. #define C0O_PORT GPIO_PORTB_BASE
  24796. #define C0O_PIN GPIO_PIN_6
  24797. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24798. #define C0_MINUS_PORT GPIO_PORTB_BASE
  24799. #define C0_MINUS_PIN GPIO_PIN_4
  24800. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  24801. #define C0_PLUS_PORT GPIO_PORTB_BASE
  24802. #define C0_PLUS_PIN GPIO_PIN_6
  24803. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  24804. #define C1O_PORT GPIO_PORTC_BASE
  24805. #define C1O_PIN GPIO_PIN_5
  24806. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24807. #define C1_MINUS_PORT GPIO_PORTB_BASE
  24808. #define C1_MINUS_PIN GPIO_PIN_5
  24809. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  24810. #define C1_PLUS_PORT GPIO_PORTC_BASE
  24811. #define C1_PLUS_PIN GPIO_PIN_5
  24812. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  24813. #define C2_MINUS_PORT GPIO_PORTC_BASE
  24814. #define C2_MINUS_PIN GPIO_PIN_7
  24815. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  24816. #define C2_PLUS_PORT GPIO_PORTC_BASE
  24817. #define C2_PLUS_PIN GPIO_PIN_6
  24818. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  24819. #define CCP0_PORT GPIO_PORTB_BASE
  24820. #define CCP0_PIN GPIO_PIN_0
  24821. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  24822. #define CCP1_PORT GPIO_PORTA_BASE
  24823. #define CCP1_PIN GPIO_PIN_6
  24824. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  24825. #define CCP2_PORT GPIO_PORTB_BASE
  24826. #define CCP2_PIN GPIO_PIN_1
  24827. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  24828. #define CCP3_PORT GPIO_PORTE_BASE
  24829. #define CCP3_PIN GPIO_PIN_0
  24830. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  24831. #define CCP4_PORT GPIO_PORTA_BASE
  24832. #define CCP4_PIN GPIO_PIN_7
  24833. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  24834. #define CCP5_PORT GPIO_PORTC_BASE
  24835. #define CCP5_PIN GPIO_PIN_4
  24836. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  24837. #define I2C0SCL_PORT GPIO_PORTB_BASE
  24838. #define I2C0SCL_PIN GPIO_PIN_2
  24839. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  24840. #define I2C0SDA_PORT GPIO_PORTB_BASE
  24841. #define I2C0SDA_PIN GPIO_PIN_3
  24842. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  24843. #define LED0_PORT GPIO_PORTF_BASE
  24844. #define LED0_PIN GPIO_PIN_3
  24845. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  24846. #define LED1_PORT GPIO_PORTF_BASE
  24847. #define LED1_PIN GPIO_PIN_2
  24848. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  24849. #define SSI0CLK_PORT GPIO_PORTA_BASE
  24850. #define SSI0CLK_PIN GPIO_PIN_2
  24851. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  24852. #define SSI0FSS_PORT GPIO_PORTA_BASE
  24853. #define SSI0FSS_PIN GPIO_PIN_3
  24854. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24855. #define SSI0RX_PORT GPIO_PORTA_BASE
  24856. #define SSI0RX_PIN GPIO_PIN_4
  24857. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24858. #define SSI0TX_PORT GPIO_PORTA_BASE
  24859. #define SSI0TX_PIN GPIO_PIN_5
  24860. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  24861. #define SWCLK_PORT GPIO_PORTC_BASE
  24862. #define SWCLK_PIN GPIO_PIN_0
  24863. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  24864. #define SWDIO_PORT GPIO_PORTC_BASE
  24865. #define SWDIO_PIN GPIO_PIN_1
  24866. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  24867. #define SWO_PORT GPIO_PORTC_BASE
  24868. #define SWO_PIN GPIO_PIN_3
  24869. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  24870. #define TCK_PORT GPIO_PORTC_BASE
  24871. #define TCK_PIN GPIO_PIN_0
  24872. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  24873. #define TDI_PORT GPIO_PORTC_BASE
  24874. #define TDI_PIN GPIO_PIN_2
  24875. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  24876. #define TDO_PORT GPIO_PORTC_BASE
  24877. #define TDO_PIN GPIO_PIN_3
  24878. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  24879. #define TMS_PORT GPIO_PORTC_BASE
  24880. #define TMS_PIN GPIO_PIN_1
  24881. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  24882. #define TRST_PORT GPIO_PORTB_BASE
  24883. #define TRST_PIN GPIO_PIN_7
  24884. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  24885. #define U0RX_PORT GPIO_PORTA_BASE
  24886. #define U0RX_PIN GPIO_PIN_0
  24887. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  24888. #define U0TX_PORT GPIO_PORTA_BASE
  24889. #define U0TX_PIN GPIO_PIN_1
  24890. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  24891. #define U1RX_PORT GPIO_PORTD_BASE
  24892. #define U1RX_PIN GPIO_PIN_2
  24893. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  24894. #define U1TX_PORT GPIO_PORTD_BASE
  24895. #define U1TX_PIN GPIO_PIN_3
  24896. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  24897. #define U2RX_PORT GPIO_PORTG_BASE
  24898. #define U2RX_PIN GPIO_PIN_0
  24899. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  24900. #define U2TX_PORT GPIO_PORTG_BASE
  24901. #define U2TX_PIN GPIO_PIN_1
  24902. #endif // PART_LM3S6938
  24903. //*****************************************************************************
  24904. //
  24905. // LM3S6950 Port/Pin Mapping Definitions
  24906. //
  24907. //*****************************************************************************
  24908. #ifdef PART_LM3S6950
  24909. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  24910. #define C0O_PORT GPIO_PORTB_BASE
  24911. #define C0O_PIN GPIO_PIN_6
  24912. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24913. #define C0_MINUS_PORT GPIO_PORTB_BASE
  24914. #define C0_MINUS_PIN GPIO_PIN_4
  24915. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  24916. #define C0_PLUS_PORT GPIO_PORTB_BASE
  24917. #define C0_PLUS_PIN GPIO_PIN_6
  24918. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  24919. #define C1O_PORT GPIO_PORTC_BASE
  24920. #define C1O_PIN GPIO_PIN_5
  24921. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  24922. #define C1_MINUS_PORT GPIO_PORTB_BASE
  24923. #define C1_MINUS_PIN GPIO_PIN_5
  24924. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  24925. #define C1_PLUS_PORT GPIO_PORTC_BASE
  24926. #define C1_PLUS_PIN GPIO_PIN_5
  24927. #define C2O_PERIPH SYSCTL_PERIPH_GPIOC
  24928. #define C2O_PORT GPIO_PORTC_BASE
  24929. #define C2O_PIN GPIO_PIN_6
  24930. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  24931. #define C2_MINUS_PORT GPIO_PORTC_BASE
  24932. #define C2_MINUS_PIN GPIO_PIN_7
  24933. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  24934. #define C2_PLUS_PORT GPIO_PORTC_BASE
  24935. #define C2_PLUS_PIN GPIO_PIN_6
  24936. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  24937. #define CCP0_PORT GPIO_PORTD_BASE
  24938. #define CCP0_PIN GPIO_PIN_4
  24939. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  24940. #define CCP1_PORT GPIO_PORTA_BASE
  24941. #define CCP1_PIN GPIO_PIN_6
  24942. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  24943. #define CCP2_PORT GPIO_PORTD_BASE
  24944. #define CCP2_PIN GPIO_PIN_5
  24945. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  24946. #define CCP3_PORT GPIO_PORTE_BASE
  24947. #define CCP3_PIN GPIO_PIN_4
  24948. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  24949. #define CCP4_PORT GPIO_PORTA_BASE
  24950. #define CCP4_PIN GPIO_PIN_7
  24951. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  24952. #define CCP5_PORT GPIO_PORTC_BASE
  24953. #define CCP5_PIN GPIO_PIN_4
  24954. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  24955. #define FAULT_PORT GPIO_PORTD_BASE
  24956. #define FAULT_PIN GPIO_PIN_6
  24957. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  24958. #define I2C0SCL_PORT GPIO_PORTB_BASE
  24959. #define I2C0SCL_PIN GPIO_PIN_2
  24960. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  24961. #define I2C0SDA_PORT GPIO_PORTB_BASE
  24962. #define I2C0SDA_PIN GPIO_PIN_3
  24963. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  24964. #define IDX0_PORT GPIO_PORTD_BASE
  24965. #define IDX0_PIN GPIO_PIN_7
  24966. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  24967. #define LED0_PORT GPIO_PORTF_BASE
  24968. #define LED0_PIN GPIO_PIN_3
  24969. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  24970. #define LED1_PORT GPIO_PORTF_BASE
  24971. #define LED1_PIN GPIO_PIN_2
  24972. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOD
  24973. #define PHA0_PORT GPIO_PORTD_BASE
  24974. #define PHA0_PIN GPIO_PIN_1
  24975. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOF
  24976. #define PHB0_PORT GPIO_PORTF_BASE
  24977. #define PHB0_PIN GPIO_PIN_0
  24978. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  24979. #define PWM0_PORT GPIO_PORTD_BASE
  24980. #define PWM0_PIN GPIO_PIN_0
  24981. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  24982. #define PWM1_PORT GPIO_PORTF_BASE
  24983. #define PWM1_PIN GPIO_PIN_1
  24984. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  24985. #define PWM2_PORT GPIO_PORTB_BASE
  24986. #define PWM2_PIN GPIO_PIN_0
  24987. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  24988. #define PWM3_PORT GPIO_PORTB_BASE
  24989. #define PWM3_PIN GPIO_PIN_1
  24990. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  24991. #define PWM4_PORT GPIO_PORTE_BASE
  24992. #define PWM4_PIN GPIO_PIN_6
  24993. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  24994. #define PWM5_PORT GPIO_PORTE_BASE
  24995. #define PWM5_PIN GPIO_PIN_7
  24996. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  24997. #define SSI0CLK_PORT GPIO_PORTA_BASE
  24998. #define SSI0CLK_PIN GPIO_PIN_2
  24999. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  25000. #define SSI0FSS_PORT GPIO_PORTA_BASE
  25001. #define SSI0FSS_PIN GPIO_PIN_3
  25002. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  25003. #define SSI0RX_PORT GPIO_PORTA_BASE
  25004. #define SSI0RX_PIN GPIO_PIN_4
  25005. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  25006. #define SSI0TX_PORT GPIO_PORTA_BASE
  25007. #define SSI0TX_PIN GPIO_PIN_5
  25008. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  25009. #define SSI1CLK_PORT GPIO_PORTE_BASE
  25010. #define SSI1CLK_PIN GPIO_PIN_0
  25011. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  25012. #define SSI1FSS_PORT GPIO_PORTE_BASE
  25013. #define SSI1FSS_PIN GPIO_PIN_1
  25014. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  25015. #define SSI1RX_PORT GPIO_PORTE_BASE
  25016. #define SSI1RX_PIN GPIO_PIN_2
  25017. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  25018. #define SSI1TX_PORT GPIO_PORTE_BASE
  25019. #define SSI1TX_PIN GPIO_PIN_3
  25020. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  25021. #define SWCLK_PORT GPIO_PORTC_BASE
  25022. #define SWCLK_PIN GPIO_PIN_0
  25023. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  25024. #define SWDIO_PORT GPIO_PORTC_BASE
  25025. #define SWDIO_PIN GPIO_PIN_1
  25026. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  25027. #define SWO_PORT GPIO_PORTC_BASE
  25028. #define SWO_PIN GPIO_PIN_3
  25029. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  25030. #define TCK_PORT GPIO_PORTC_BASE
  25031. #define TCK_PIN GPIO_PIN_0
  25032. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  25033. #define TDI_PORT GPIO_PORTC_BASE
  25034. #define TDI_PIN GPIO_PIN_2
  25035. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  25036. #define TDO_PORT GPIO_PORTC_BASE
  25037. #define TDO_PIN GPIO_PIN_3
  25038. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  25039. #define TMS_PORT GPIO_PORTC_BASE
  25040. #define TMS_PIN GPIO_PIN_1
  25041. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  25042. #define TRST_PORT GPIO_PORTB_BASE
  25043. #define TRST_PIN GPIO_PIN_7
  25044. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  25045. #define U0RX_PORT GPIO_PORTA_BASE
  25046. #define U0RX_PIN GPIO_PIN_0
  25047. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  25048. #define U0TX_PORT GPIO_PORTA_BASE
  25049. #define U0TX_PIN GPIO_PIN_1
  25050. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  25051. #define U1RX_PORT GPIO_PORTD_BASE
  25052. #define U1RX_PIN GPIO_PIN_2
  25053. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  25054. #define U1TX_PORT GPIO_PORTD_BASE
  25055. #define U1TX_PIN GPIO_PIN_3
  25056. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  25057. #define U2RX_PORT GPIO_PORTG_BASE
  25058. #define U2RX_PIN GPIO_PIN_0
  25059. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  25060. #define U2TX_PORT GPIO_PORTG_BASE
  25061. #define U2TX_PIN GPIO_PIN_1
  25062. #endif // PART_LM3S6950
  25063. //*****************************************************************************
  25064. //
  25065. // LM3S6952 Port/Pin Mapping Definitions
  25066. //
  25067. //*****************************************************************************
  25068. #ifdef PART_LM3S6952
  25069. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  25070. #define C0O_PORT GPIO_PORTB_BASE
  25071. #define C0O_PIN GPIO_PIN_6
  25072. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  25073. #define C0_MINUS_PORT GPIO_PORTB_BASE
  25074. #define C0_MINUS_PIN GPIO_PIN_4
  25075. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  25076. #define C0_PLUS_PORT GPIO_PORTB_BASE
  25077. #define C0_PLUS_PIN GPIO_PIN_6
  25078. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  25079. #define C1O_PORT GPIO_PORTC_BASE
  25080. #define C1O_PIN GPIO_PIN_5
  25081. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  25082. #define C1_MINUS_PORT GPIO_PORTB_BASE
  25083. #define C1_MINUS_PIN GPIO_PIN_5
  25084. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  25085. #define C1_PLUS_PORT GPIO_PORTC_BASE
  25086. #define C1_PLUS_PIN GPIO_PIN_5
  25087. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  25088. #define C2_MINUS_PORT GPIO_PORTC_BASE
  25089. #define C2_MINUS_PIN GPIO_PIN_7
  25090. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  25091. #define C2_PLUS_PORT GPIO_PORTC_BASE
  25092. #define C2_PLUS_PIN GPIO_PIN_6
  25093. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  25094. #define CCP0_PORT GPIO_PORTD_BASE
  25095. #define CCP0_PIN GPIO_PIN_4
  25096. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  25097. #define CCP1_PORT GPIO_PORTA_BASE
  25098. #define CCP1_PIN GPIO_PIN_6
  25099. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  25100. #define CCP2_PORT GPIO_PORTD_BASE
  25101. #define CCP2_PIN GPIO_PIN_5
  25102. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  25103. #define CCP3_PORT GPIO_PORTE_BASE
  25104. #define CCP3_PIN GPIO_PIN_0
  25105. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  25106. #define FAULT_PORT GPIO_PORTD_BASE
  25107. #define FAULT_PIN GPIO_PIN_6
  25108. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  25109. #define I2C0SCL_PORT GPIO_PORTB_BASE
  25110. #define I2C0SCL_PIN GPIO_PIN_2
  25111. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  25112. #define I2C0SDA_PORT GPIO_PORTB_BASE
  25113. #define I2C0SDA_PIN GPIO_PIN_3
  25114. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  25115. #define IDX0_PORT GPIO_PORTD_BASE
  25116. #define IDX0_PIN GPIO_PIN_7
  25117. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  25118. #define LED0_PORT GPIO_PORTF_BASE
  25119. #define LED0_PIN GPIO_PIN_3
  25120. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  25121. #define LED1_PORT GPIO_PORTF_BASE
  25122. #define LED1_PIN GPIO_PIN_2
  25123. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  25124. #define PHA0_PORT GPIO_PORTC_BASE
  25125. #define PHA0_PIN GPIO_PIN_4
  25126. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOF
  25127. #define PHB0_PORT GPIO_PORTF_BASE
  25128. #define PHB0_PIN GPIO_PIN_0
  25129. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOD
  25130. #define PWM0_PORT GPIO_PORTD_BASE
  25131. #define PWM0_PIN GPIO_PIN_0
  25132. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  25133. #define PWM1_PORT GPIO_PORTD_BASE
  25134. #define PWM1_PIN GPIO_PIN_1
  25135. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  25136. #define PWM2_PORT GPIO_PORTB_BASE
  25137. #define PWM2_PIN GPIO_PIN_0
  25138. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  25139. #define PWM3_PORT GPIO_PORTB_BASE
  25140. #define PWM3_PIN GPIO_PIN_1
  25141. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  25142. #define SSI0CLK_PORT GPIO_PORTA_BASE
  25143. #define SSI0CLK_PIN GPIO_PIN_2
  25144. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  25145. #define SSI0FSS_PORT GPIO_PORTA_BASE
  25146. #define SSI0FSS_PIN GPIO_PIN_3
  25147. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  25148. #define SSI0RX_PORT GPIO_PORTA_BASE
  25149. #define SSI0RX_PIN GPIO_PIN_4
  25150. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  25151. #define SSI0TX_PORT GPIO_PORTA_BASE
  25152. #define SSI0TX_PIN GPIO_PIN_5
  25153. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  25154. #define SWCLK_PORT GPIO_PORTC_BASE
  25155. #define SWCLK_PIN GPIO_PIN_0
  25156. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  25157. #define SWDIO_PORT GPIO_PORTC_BASE
  25158. #define SWDIO_PIN GPIO_PIN_1
  25159. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  25160. #define SWO_PORT GPIO_PORTC_BASE
  25161. #define SWO_PIN GPIO_PIN_3
  25162. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  25163. #define TCK_PORT GPIO_PORTC_BASE
  25164. #define TCK_PIN GPIO_PIN_0
  25165. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  25166. #define TDI_PORT GPIO_PORTC_BASE
  25167. #define TDI_PIN GPIO_PIN_2
  25168. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  25169. #define TDO_PORT GPIO_PORTC_BASE
  25170. #define TDO_PIN GPIO_PIN_3
  25171. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  25172. #define TMS_PORT GPIO_PORTC_BASE
  25173. #define TMS_PIN GPIO_PIN_1
  25174. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  25175. #define TRST_PORT GPIO_PORTB_BASE
  25176. #define TRST_PIN GPIO_PIN_7
  25177. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  25178. #define U0RX_PORT GPIO_PORTA_BASE
  25179. #define U0RX_PIN GPIO_PIN_0
  25180. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  25181. #define U0TX_PORT GPIO_PORTA_BASE
  25182. #define U0TX_PIN GPIO_PIN_1
  25183. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  25184. #define U1RX_PORT GPIO_PORTD_BASE
  25185. #define U1RX_PIN GPIO_PIN_2
  25186. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  25187. #define U1TX_PORT GPIO_PORTD_BASE
  25188. #define U1TX_PIN GPIO_PIN_3
  25189. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  25190. #define U2RX_PORT GPIO_PORTG_BASE
  25191. #define U2RX_PIN GPIO_PIN_0
  25192. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  25193. #define U2TX_PORT GPIO_PORTG_BASE
  25194. #define U2TX_PIN GPIO_PIN_1
  25195. #endif // PART_LM3S6952
  25196. //*****************************************************************************
  25197. //
  25198. // LM3S6965 Port/Pin Mapping Definitions
  25199. //
  25200. //*****************************************************************************
  25201. #ifdef PART_LM3S6965
  25202. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  25203. #define C0O_PORT GPIO_PORTC_BASE
  25204. #define C0O_PIN GPIO_PIN_5
  25205. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  25206. #define C0_MINUS_PORT GPIO_PORTB_BASE
  25207. #define C0_MINUS_PIN GPIO_PIN_4
  25208. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  25209. #define C0_PLUS_PORT GPIO_PORTB_BASE
  25210. #define C0_PLUS_PIN GPIO_PIN_6
  25211. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  25212. #define C1_MINUS_PORT GPIO_PORTB_BASE
  25213. #define C1_MINUS_PIN GPIO_PIN_5
  25214. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  25215. #define C1_PLUS_PORT GPIO_PORTC_BASE
  25216. #define C1_PLUS_PIN GPIO_PIN_5
  25217. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  25218. #define CCP0_PORT GPIO_PORTD_BASE
  25219. #define CCP0_PIN GPIO_PIN_4
  25220. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOD
  25221. #define CCP1_PORT GPIO_PORTD_BASE
  25222. #define CCP1_PIN GPIO_PIN_7
  25223. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOD
  25224. #define CCP2_PORT GPIO_PORTD_BASE
  25225. #define CCP2_PIN GPIO_PIN_5
  25226. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  25227. #define CCP3_PORT GPIO_PORTC_BASE
  25228. #define CCP3_PIN GPIO_PIN_6
  25229. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  25230. #define FAULT_PORT GPIO_PORTD_BASE
  25231. #define FAULT_PIN GPIO_PIN_6
  25232. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  25233. #define I2C0SCL_PORT GPIO_PORTB_BASE
  25234. #define I2C0SCL_PIN GPIO_PIN_2
  25235. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  25236. #define I2C0SDA_PORT GPIO_PORTB_BASE
  25237. #define I2C0SDA_PIN GPIO_PIN_3
  25238. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  25239. #define I2C1SCL_PORT GPIO_PORTA_BASE
  25240. #define I2C1SCL_PIN GPIO_PIN_6
  25241. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  25242. #define I2C1SDA_PORT GPIO_PORTA_BASE
  25243. #define I2C1SDA_PIN GPIO_PIN_7
  25244. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  25245. #define IDX0_PORT GPIO_PORTD_BASE
  25246. #define IDX0_PIN GPIO_PIN_0
  25247. #define IDX1_PERIPH SYSCTL_PERIPH_GPIOF
  25248. #define IDX1_PORT GPIO_PORTF_BASE
  25249. #define IDX1_PIN GPIO_PIN_1
  25250. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  25251. #define LED0_PORT GPIO_PORTF_BASE
  25252. #define LED0_PIN GPIO_PIN_3
  25253. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  25254. #define LED1_PORT GPIO_PORTF_BASE
  25255. #define LED1_PIN GPIO_PIN_2
  25256. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  25257. #define PHA0_PORT GPIO_PORTC_BASE
  25258. #define PHA0_PIN GPIO_PIN_4
  25259. #define PHA1_PERIPH SYSCTL_PERIPH_GPIOE
  25260. #define PHA1_PORT GPIO_PORTE_BASE
  25261. #define PHA1_PIN GPIO_PIN_3
  25262. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  25263. #define PHB0_PORT GPIO_PORTC_BASE
  25264. #define PHB0_PIN GPIO_PIN_7
  25265. #define PHB1_PERIPH SYSCTL_PERIPH_GPIOE
  25266. #define PHB1_PORT GPIO_PORTE_BASE
  25267. #define PHB1_PIN GPIO_PIN_2
  25268. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  25269. #define PWM0_PORT GPIO_PORTF_BASE
  25270. #define PWM0_PIN GPIO_PIN_0
  25271. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOD
  25272. #define PWM1_PORT GPIO_PORTD_BASE
  25273. #define PWM1_PIN GPIO_PIN_1
  25274. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  25275. #define PWM2_PORT GPIO_PORTB_BASE
  25276. #define PWM2_PIN GPIO_PIN_0
  25277. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  25278. #define PWM3_PORT GPIO_PORTB_BASE
  25279. #define PWM3_PIN GPIO_PIN_1
  25280. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  25281. #define PWM4_PORT GPIO_PORTE_BASE
  25282. #define PWM4_PIN GPIO_PIN_0
  25283. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  25284. #define PWM5_PORT GPIO_PORTE_BASE
  25285. #define PWM5_PIN GPIO_PIN_1
  25286. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  25287. #define SSI0CLK_PORT GPIO_PORTA_BASE
  25288. #define SSI0CLK_PIN GPIO_PIN_2
  25289. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  25290. #define SSI0FSS_PORT GPIO_PORTA_BASE
  25291. #define SSI0FSS_PIN GPIO_PIN_3
  25292. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  25293. #define SSI0RX_PORT GPIO_PORTA_BASE
  25294. #define SSI0RX_PIN GPIO_PIN_4
  25295. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  25296. #define SSI0TX_PORT GPIO_PORTA_BASE
  25297. #define SSI0TX_PIN GPIO_PIN_5
  25298. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  25299. #define SWCLK_PORT GPIO_PORTC_BASE
  25300. #define SWCLK_PIN GPIO_PIN_0
  25301. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  25302. #define SWDIO_PORT GPIO_PORTC_BASE
  25303. #define SWDIO_PIN GPIO_PIN_1
  25304. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  25305. #define SWO_PORT GPIO_PORTC_BASE
  25306. #define SWO_PIN GPIO_PIN_3
  25307. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  25308. #define TCK_PORT GPIO_PORTC_BASE
  25309. #define TCK_PIN GPIO_PIN_0
  25310. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  25311. #define TDI_PORT GPIO_PORTC_BASE
  25312. #define TDI_PIN GPIO_PIN_2
  25313. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  25314. #define TDO_PORT GPIO_PORTC_BASE
  25315. #define TDO_PIN GPIO_PIN_3
  25316. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  25317. #define TMS_PORT GPIO_PORTC_BASE
  25318. #define TMS_PIN GPIO_PIN_1
  25319. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  25320. #define TRST_PORT GPIO_PORTB_BASE
  25321. #define TRST_PIN GPIO_PIN_7
  25322. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  25323. #define U0RX_PORT GPIO_PORTA_BASE
  25324. #define U0RX_PIN GPIO_PIN_0
  25325. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  25326. #define U0TX_PORT GPIO_PORTA_BASE
  25327. #define U0TX_PIN GPIO_PIN_1
  25328. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  25329. #define U1RX_PORT GPIO_PORTD_BASE
  25330. #define U1RX_PIN GPIO_PIN_2
  25331. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  25332. #define U1TX_PORT GPIO_PORTD_BASE
  25333. #define U1TX_PIN GPIO_PIN_3
  25334. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  25335. #define U2RX_PORT GPIO_PORTG_BASE
  25336. #define U2RX_PIN GPIO_PIN_0
  25337. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  25338. #define U2TX_PORT GPIO_PORTG_BASE
  25339. #define U2TX_PIN GPIO_PIN_1
  25340. #endif // PART_LM3S6965
  25341. //*****************************************************************************
  25342. //
  25343. // LM3S6C11 Port/Pin Mapping Definitions
  25344. //
  25345. //*****************************************************************************
  25346. #ifdef PART_LM3S6C11
  25347. #define GPIO_PA0_U0RX 0x00000001
  25348. #define GPIO_PA0_I2C1SCL 0x00000008
  25349. #define GPIO_PA0_U1RX 0x00000009
  25350. #define GPIO_PA1_U0TX 0x00000401
  25351. #define GPIO_PA1_I2C1SDA 0x00000408
  25352. #define GPIO_PA1_U1TX 0x00000409
  25353. #define GPIO_PA2_SSI0CLK 0x00000801
  25354. #define GPIO_PA3_SSI0FSS 0x00000C01
  25355. #define GPIO_PA4_SSI0RX 0x00001001
  25356. #define GPIO_PA5_SSI0TX 0x00001401
  25357. #define GPIO_PA6_I2C1SCL 0x00001801
  25358. #define GPIO_PA6_CCP1 0x00001802
  25359. #define GPIO_PA7_I2C1SDA 0x00001C01
  25360. #define GPIO_PA7_CCP4 0x00001C02
  25361. #define GPIO_PA7_CCP3 0x00001C07
  25362. #define GPIO_PB0_CCP0 0x00010001
  25363. #define GPIO_PB0_U1RX 0x00010005
  25364. #define GPIO_PB1_CCP2 0x00010401
  25365. #define GPIO_PB1_CCP1 0x00010404
  25366. #define GPIO_PB1_U1TX 0x00010405
  25367. #define GPIO_PB2_I2C0SCL 0x00010801
  25368. #define GPIO_PB2_CCP3 0x00010804
  25369. #define GPIO_PB2_CCP0 0x00010805
  25370. #define GPIO_PB3_I2C0SDA 0x00010C01
  25371. #define GPIO_PB4_U2RX 0x00011004
  25372. #define GPIO_PB4_U1RX 0x00011007
  25373. #define GPIO_PB5_C0O 0x00011401
  25374. #define GPIO_PB5_CCP5 0x00011402
  25375. #define GPIO_PB5_CCP6 0x00011403
  25376. #define GPIO_PB5_CCP0 0x00011404
  25377. #define GPIO_PB5_CCP2 0x00011406
  25378. #define GPIO_PB5_U1TX 0x00011407
  25379. #define GPIO_PB6_CCP1 0x00011801
  25380. #define GPIO_PB6_CCP7 0x00011802
  25381. #define GPIO_PB6_C0O 0x00011803
  25382. #define GPIO_PB6_CCP5 0x00011806
  25383. #define GPIO_PB7_NMI 0x00011C04
  25384. #define GPIO_PC0_TCK 0x00020003
  25385. #define GPIO_PC0_SWCLK 0x00020003
  25386. #define GPIO_PC1_TMS 0x00020403
  25387. #define GPIO_PC1_SWDIO 0x00020403
  25388. #define GPIO_PC2_TDI 0x00020803
  25389. #define GPIO_PC3_SWO 0x00020C03
  25390. #define GPIO_PC3_TDO 0x00020C03
  25391. #define GPIO_PC4_CCP5 0x00021001
  25392. #define GPIO_PC4_CCP2 0x00021005
  25393. #define GPIO_PC4_CCP4 0x00021006
  25394. #define GPIO_PC4_CCP1 0x00021009
  25395. #define GPIO_PC5_CCP1 0x00021401
  25396. #define GPIO_PC5_C1O 0x00021402
  25397. #define GPIO_PC5_C0O 0x00021403
  25398. #define GPIO_PC5_CCP3 0x00021405
  25399. #define GPIO_PC6_CCP3 0x00021801
  25400. #define GPIO_PC6_U1RX 0x00021805
  25401. #define GPIO_PC6_CCP0 0x00021806
  25402. #define GPIO_PC7_CCP4 0x00021C01
  25403. #define GPIO_PC7_CCP0 0x00021C04
  25404. #define GPIO_PC7_U1TX 0x00021C05
  25405. #define GPIO_PC7_C1O 0x00021C07
  25406. #define GPIO_PD0_U2RX 0x00030004
  25407. #define GPIO_PD0_U1RX 0x00030005
  25408. #define GPIO_PD0_CCP6 0x00030006
  25409. #define GPIO_PD1_U2TX 0x00030404
  25410. #define GPIO_PD1_U1TX 0x00030405
  25411. #define GPIO_PD1_CCP7 0x00030406
  25412. #define GPIO_PD1_CCP2 0x0003040A
  25413. #define GPIO_PD2_U1RX 0x00030801
  25414. #define GPIO_PD2_CCP6 0x00030802
  25415. #define GPIO_PD2_CCP5 0x00030804
  25416. #define GPIO_PD3_U1TX 0x00030C01
  25417. #define GPIO_PD3_CCP7 0x00030C02
  25418. #define GPIO_PD3_CCP0 0x00030C04
  25419. #define GPIO_PD4_CCP0 0x00031001
  25420. #define GPIO_PD4_CCP3 0x00031002
  25421. #define GPIO_PD5_CCP2 0x00031401
  25422. #define GPIO_PD5_CCP4 0x00031402
  25423. #define GPIO_PD5_U2RX 0x00031409
  25424. #define GPIO_PD6_U2TX 0x00031809
  25425. #define GPIO_PD7_C0O 0x00031C02
  25426. #define GPIO_PD7_CCP1 0x00031C03
  25427. #define GPIO_PE0_SSI1CLK 0x00040002
  25428. #define GPIO_PE0_CCP3 0x00040003
  25429. #define GPIO_PE1_SSI1FSS 0x00040402
  25430. #define GPIO_PE1_CCP2 0x00040404
  25431. #define GPIO_PE1_CCP6 0x00040405
  25432. #define GPIO_PE2_CCP4 0x00040801
  25433. #define GPIO_PE2_SSI1RX 0x00040802
  25434. #define GPIO_PE2_CCP2 0x00040805
  25435. #define GPIO_PE3_CCP1 0x00040C01
  25436. #define GPIO_PE3_SSI1TX 0x00040C02
  25437. #define GPIO_PE3_CCP7 0x00040C05
  25438. #define GPIO_PE4_CCP3 0x00041001
  25439. #define GPIO_PE4_U2TX 0x00041005
  25440. #define GPIO_PE4_CCP2 0x00041006
  25441. #define GPIO_PE5_CCP5 0x00041401
  25442. #define GPIO_PE6_C1O 0x00041802
  25443. #define GPIO_PF0_U1DSR 0x00050009
  25444. #define GPIO_PF1_CCP3 0x0005040A
  25445. #define GPIO_PF2_LED1 0x00050801
  25446. #define GPIO_PF2_SSI1CLK 0x00050809
  25447. #define GPIO_PF3_LED0 0x00050C01
  25448. #define GPIO_PF3_SSI1FSS 0x00050C09
  25449. #define GPIO_PG0_U2RX 0x00060001
  25450. #define GPIO_PG0_I2C1SCL 0x00060003
  25451. #define GPIO_PG1_U2TX 0x00060401
  25452. #define GPIO_PG1_I2C1SDA 0x00060403
  25453. #endif // PART_LM3S6C11
  25454. //*****************************************************************************
  25455. //
  25456. // LM3S6C65 Port/Pin Mapping Definitions
  25457. //
  25458. //*****************************************************************************
  25459. #ifdef PART_LM3S6C65
  25460. #define GPIO_PA0_U0RX 0x00000001
  25461. #define GPIO_PA0_I2C1SCL 0x00000008
  25462. #define GPIO_PA0_U1RX 0x00000009
  25463. #define GPIO_PA1_U0TX 0x00000401
  25464. #define GPIO_PA1_I2C1SDA 0x00000408
  25465. #define GPIO_PA1_U1TX 0x00000409
  25466. #define GPIO_PA2_SSI0CLK 0x00000801
  25467. #define GPIO_PA2_PWM4 0x00000804
  25468. #define GPIO_PA3_SSI0FSS 0x00000C01
  25469. #define GPIO_PA3_PWM5 0x00000C04
  25470. #define GPIO_PA4_SSI0RX 0x00001001
  25471. #define GPIO_PA5_SSI0TX 0x00001401
  25472. #define GPIO_PA6_I2C1SCL 0x00001801
  25473. #define GPIO_PA6_CCP1 0x00001802
  25474. #define GPIO_PA6_PWM0 0x00001804
  25475. #define GPIO_PA6_PWM4 0x00001805
  25476. #define GPIO_PA7_I2C1SDA 0x00001C01
  25477. #define GPIO_PA7_CCP4 0x00001C02
  25478. #define GPIO_PA7_PWM1 0x00001C04
  25479. #define GPIO_PA7_PWM5 0x00001C05
  25480. #define GPIO_PA7_CCP3 0x00001C07
  25481. #define GPIO_PB0_CCP0 0x00010001
  25482. #define GPIO_PB0_PWM2 0x00010002
  25483. #define GPIO_PB0_U1RX 0x00010005
  25484. #define GPIO_PB1_CCP2 0x00010401
  25485. #define GPIO_PB1_PWM3 0x00010402
  25486. #define GPIO_PB1_CCP1 0x00010404
  25487. #define GPIO_PB1_U1TX 0x00010405
  25488. #define GPIO_PB2_I2C0SCL 0x00010801
  25489. #define GPIO_PB2_IDX0 0x00010802
  25490. #define GPIO_PB2_CCP3 0x00010804
  25491. #define GPIO_PB2_CCP0 0x00010805
  25492. #define GPIO_PB3_I2C0SDA 0x00010C01
  25493. #define GPIO_PB3_FAULT0 0x00010C02
  25494. #define GPIO_PB3_FAULT3 0x00010C04
  25495. #define GPIO_PB4_U2RX 0x00011004
  25496. #define GPIO_PB4_IDX0 0x00011006
  25497. #define GPIO_PB4_U1RX 0x00011007
  25498. #define GPIO_PB5_C0O 0x00011401
  25499. #define GPIO_PB5_CCP5 0x00011402
  25500. #define GPIO_PB5_CCP6 0x00011403
  25501. #define GPIO_PB5_CCP0 0x00011404
  25502. #define GPIO_PB5_CCP2 0x00011406
  25503. #define GPIO_PB5_U1TX 0x00011407
  25504. #define GPIO_PB6_CCP1 0x00011801
  25505. #define GPIO_PB6_CCP7 0x00011802
  25506. #define GPIO_PB6_C0O 0x00011803
  25507. #define GPIO_PB6_FAULT1 0x00011804
  25508. #define GPIO_PB6_IDX0 0x00011805
  25509. #define GPIO_PB6_CCP5 0x00011806
  25510. #define GPIO_PB7_NMI 0x00011C04
  25511. #define GPIO_PC0_TCK 0x00020003
  25512. #define GPIO_PC0_SWCLK 0x00020003
  25513. #define GPIO_PC1_TMS 0x00020403
  25514. #define GPIO_PC1_SWDIO 0x00020403
  25515. #define GPIO_PC2_TDI 0x00020803
  25516. #define GPIO_PC3_SWO 0x00020C03
  25517. #define GPIO_PC3_TDO 0x00020C03
  25518. #define GPIO_PC4_CCP5 0x00021001
  25519. #define GPIO_PC4_PHA0 0x00021002
  25520. #define GPIO_PC4_CCP2 0x00021005
  25521. #define GPIO_PC4_CCP4 0x00021006
  25522. #define GPIO_PC4_CCP1 0x00021009
  25523. #define GPIO_PC5_CCP1 0x00021401
  25524. #define GPIO_PC5_C1O 0x00021402
  25525. #define GPIO_PC5_C0O 0x00021403
  25526. #define GPIO_PC5_FAULT2 0x00021404
  25527. #define GPIO_PC5_CCP3 0x00021405
  25528. #define GPIO_PC6_CCP3 0x00021801
  25529. #define GPIO_PC6_PHB0 0x00021802
  25530. #define GPIO_PC6_U1RX 0x00021805
  25531. #define GPIO_PC6_CCP0 0x00021806
  25532. #define GPIO_PC7_CCP4 0x00021C01
  25533. #define GPIO_PC7_PHB0 0x00021C02
  25534. #define GPIO_PC7_CCP0 0x00021C04
  25535. #define GPIO_PC7_U1TX 0x00021C05
  25536. #define GPIO_PC7_C1O 0x00021C07
  25537. #define GPIO_PD0_PWM0 0x00030001
  25538. #define GPIO_PD0_IDX0 0x00030003
  25539. #define GPIO_PD0_U2RX 0x00030004
  25540. #define GPIO_PD0_U1RX 0x00030005
  25541. #define GPIO_PD0_CCP6 0x00030006
  25542. #define GPIO_PD1_PWM1 0x00030401
  25543. #define GPIO_PD1_PHA0 0x00030403
  25544. #define GPIO_PD1_U2TX 0x00030404
  25545. #define GPIO_PD1_U1TX 0x00030405
  25546. #define GPIO_PD1_CCP7 0x00030406
  25547. #define GPIO_PD1_CCP2 0x0003040A
  25548. #define GPIO_PD1_PHB1 0x0003040B
  25549. #define GPIO_PD2_U1RX 0x00030801
  25550. #define GPIO_PD2_CCP6 0x00030802
  25551. #define GPIO_PD2_PWM2 0x00030803
  25552. #define GPIO_PD2_CCP5 0x00030804
  25553. #define GPIO_PD3_U1TX 0x00030C01
  25554. #define GPIO_PD3_CCP7 0x00030C02
  25555. #define GPIO_PD3_PWM3 0x00030C03
  25556. #define GPIO_PD3_CCP0 0x00030C04
  25557. #define GPIO_PD4_CCP0 0x00031001
  25558. #define GPIO_PD4_CCP3 0x00031002
  25559. #define GPIO_PD5_CCP2 0x00031401
  25560. #define GPIO_PD5_CCP4 0x00031402
  25561. #define GPIO_PD5_U2RX 0x00031409
  25562. #define GPIO_PD6_FAULT0 0x00031801
  25563. #define GPIO_PD6_U2TX 0x00031809
  25564. #define GPIO_PD7_IDX0 0x00031C01
  25565. #define GPIO_PD7_C0O 0x00031C02
  25566. #define GPIO_PD7_CCP1 0x00031C03
  25567. #define GPIO_PE0_PWM4 0x00040001
  25568. #define GPIO_PE0_CCP3 0x00040003
  25569. #define GPIO_PE1_PWM5 0x00040401
  25570. #define GPIO_PE1_FAULT0 0x00040403
  25571. #define GPIO_PE1_CCP2 0x00040404
  25572. #define GPIO_PE1_CCP6 0x00040405
  25573. #define GPIO_PE2_CCP4 0x00040801
  25574. #define GPIO_PE2_PHB1 0x00040803
  25575. #define GPIO_PE2_PHA0 0x00040804
  25576. #define GPIO_PE2_CCP2 0x00040805
  25577. #define GPIO_PE3_CCP1 0x00040C01
  25578. #define GPIO_PE3_PHA1 0x00040C03
  25579. #define GPIO_PE3_PHB0 0x00040C04
  25580. #define GPIO_PE3_CCP7 0x00040C05
  25581. #define GPIO_PE4_CCP3 0x00041001
  25582. #define GPIO_PE4_FAULT0 0x00041004
  25583. #define GPIO_PE4_U2TX 0x00041005
  25584. #define GPIO_PE4_CCP2 0x00041006
  25585. #define GPIO_PE5_CCP5 0x00041401
  25586. #define GPIO_PE6_PWM4 0x00041801
  25587. #define GPIO_PE6_C1O 0x00041802
  25588. #define GPIO_PE7_PWM5 0x00041C01
  25589. #define GPIO_PF0_PHB0 0x00050002
  25590. #define GPIO_PF0_PWM0 0x00050003
  25591. #define GPIO_PF0_U1DSR 0x00050009
  25592. #define GPIO_PF1_IDX1 0x00050402
  25593. #define GPIO_PF1_PWM1 0x00050403
  25594. #define GPIO_PF1_CCP3 0x0005040A
  25595. #define GPIO_PF2_LED1 0x00050801
  25596. #define GPIO_PF2_PWM4 0x00050802
  25597. #define GPIO_PF2_PWM2 0x00050804
  25598. #define GPIO_PF3_LED0 0x00050C01
  25599. #define GPIO_PF3_PWM5 0x00050C02
  25600. #define GPIO_PF3_PWM3 0x00050C04
  25601. #define GPIO_PG0_U2RX 0x00060001
  25602. #define GPIO_PG0_PWM0 0x00060002
  25603. #define GPIO_PG0_I2C1SCL 0x00060003
  25604. #define GPIO_PG0_PWM4 0x00060004
  25605. #define GPIO_PG1_U2TX 0x00060401
  25606. #define GPIO_PG1_PWM1 0x00060402
  25607. #define GPIO_PG1_I2C1SDA 0x00060403
  25608. #define GPIO_PG1_PWM5 0x00060404
  25609. #endif // PART_LM3S6C65
  25610. //*****************************************************************************
  25611. //
  25612. // LM3S6G11 Port/Pin Mapping Definitions
  25613. //
  25614. //*****************************************************************************
  25615. #ifdef PART_LM3S6G11
  25616. #define GPIO_PA0_U0RX 0x00000001
  25617. #define GPIO_PA0_I2C1SCL 0x00000008
  25618. #define GPIO_PA0_U1RX 0x00000009
  25619. #define GPIO_PA1_U0TX 0x00000401
  25620. #define GPIO_PA1_I2C1SDA 0x00000408
  25621. #define GPIO_PA1_U1TX 0x00000409
  25622. #define GPIO_PA2_SSI0CLK 0x00000801
  25623. #define GPIO_PA3_SSI0FSS 0x00000C01
  25624. #define GPIO_PA4_SSI0RX 0x00001001
  25625. #define GPIO_PA5_SSI0TX 0x00001401
  25626. #define GPIO_PA6_I2C1SCL 0x00001801
  25627. #define GPIO_PA6_CCP1 0x00001802
  25628. #define GPIO_PA7_I2C1SDA 0x00001C01
  25629. #define GPIO_PA7_CCP4 0x00001C02
  25630. #define GPIO_PA7_CCP3 0x00001C07
  25631. #define GPIO_PB0_CCP0 0x00010001
  25632. #define GPIO_PB0_U1RX 0x00010005
  25633. #define GPIO_PB1_CCP2 0x00010401
  25634. #define GPIO_PB1_CCP1 0x00010404
  25635. #define GPIO_PB1_U1TX 0x00010405
  25636. #define GPIO_PB2_I2C0SCL 0x00010801
  25637. #define GPIO_PB2_CCP3 0x00010804
  25638. #define GPIO_PB2_CCP0 0x00010805
  25639. #define GPIO_PB3_I2C0SDA 0x00010C01
  25640. #define GPIO_PB4_U2RX 0x00011004
  25641. #define GPIO_PB4_U1RX 0x00011007
  25642. #define GPIO_PB5_C0O 0x00011401
  25643. #define GPIO_PB5_CCP5 0x00011402
  25644. #define GPIO_PB5_CCP6 0x00011403
  25645. #define GPIO_PB5_CCP0 0x00011404
  25646. #define GPIO_PB5_CCP2 0x00011406
  25647. #define GPIO_PB5_U1TX 0x00011407
  25648. #define GPIO_PB6_CCP1 0x00011801
  25649. #define GPIO_PB6_CCP7 0x00011802
  25650. #define GPIO_PB6_C0O 0x00011803
  25651. #define GPIO_PB6_CCP5 0x00011806
  25652. #define GPIO_PB7_NMI 0x00011C04
  25653. #define GPIO_PC0_TCK 0x00020003
  25654. #define GPIO_PC0_SWCLK 0x00020003
  25655. #define GPIO_PC1_TMS 0x00020403
  25656. #define GPIO_PC1_SWDIO 0x00020403
  25657. #define GPIO_PC2_TDI 0x00020803
  25658. #define GPIO_PC3_SWO 0x00020C03
  25659. #define GPIO_PC3_TDO 0x00020C03
  25660. #define GPIO_PC4_CCP5 0x00021001
  25661. #define GPIO_PC4_CCP2 0x00021005
  25662. #define GPIO_PC4_CCP4 0x00021006
  25663. #define GPIO_PC4_CCP1 0x00021009
  25664. #define GPIO_PC5_CCP1 0x00021401
  25665. #define GPIO_PC5_C1O 0x00021402
  25666. #define GPIO_PC5_C0O 0x00021403
  25667. #define GPIO_PC5_CCP3 0x00021405
  25668. #define GPIO_PC6_CCP3 0x00021801
  25669. #define GPIO_PC6_U1RX 0x00021805
  25670. #define GPIO_PC6_CCP0 0x00021806
  25671. #define GPIO_PC7_CCP4 0x00021C01
  25672. #define GPIO_PC7_CCP0 0x00021C04
  25673. #define GPIO_PC7_U1TX 0x00021C05
  25674. #define GPIO_PC7_C1O 0x00021C07
  25675. #define GPIO_PD0_U2RX 0x00030004
  25676. #define GPIO_PD0_U1RX 0x00030005
  25677. #define GPIO_PD0_CCP6 0x00030006
  25678. #define GPIO_PD1_U2TX 0x00030404
  25679. #define GPIO_PD1_U1TX 0x00030405
  25680. #define GPIO_PD1_CCP7 0x00030406
  25681. #define GPIO_PD1_CCP2 0x0003040A
  25682. #define GPIO_PD2_U1RX 0x00030801
  25683. #define GPIO_PD2_CCP6 0x00030802
  25684. #define GPIO_PD2_CCP5 0x00030804
  25685. #define GPIO_PD3_U1TX 0x00030C01
  25686. #define GPIO_PD3_CCP7 0x00030C02
  25687. #define GPIO_PD3_CCP0 0x00030C04
  25688. #define GPIO_PD4_CCP0 0x00031001
  25689. #define GPIO_PD4_CCP3 0x00031002
  25690. #define GPIO_PD5_CCP2 0x00031401
  25691. #define GPIO_PD5_CCP4 0x00031402
  25692. #define GPIO_PD5_U2RX 0x00031409
  25693. #define GPIO_PD6_U2TX 0x00031809
  25694. #define GPIO_PD7_C0O 0x00031C02
  25695. #define GPIO_PD7_CCP1 0x00031C03
  25696. #define GPIO_PE0_SSI1CLK 0x00040002
  25697. #define GPIO_PE0_CCP3 0x00040003
  25698. #define GPIO_PE1_SSI1FSS 0x00040402
  25699. #define GPIO_PE1_CCP2 0x00040404
  25700. #define GPIO_PE1_CCP6 0x00040405
  25701. #define GPIO_PE2_CCP4 0x00040801
  25702. #define GPIO_PE2_SSI1RX 0x00040802
  25703. #define GPIO_PE2_CCP2 0x00040805
  25704. #define GPIO_PE3_CCP1 0x00040C01
  25705. #define GPIO_PE3_SSI1TX 0x00040C02
  25706. #define GPIO_PE3_CCP7 0x00040C05
  25707. #define GPIO_PE4_CCP3 0x00041001
  25708. #define GPIO_PE4_U2TX 0x00041005
  25709. #define GPIO_PE4_CCP2 0x00041006
  25710. #define GPIO_PE5_CCP5 0x00041401
  25711. #define GPIO_PE6_C1O 0x00041802
  25712. #define GPIO_PF0_U1DSR 0x00050009
  25713. #define GPIO_PF1_CCP3 0x0005040A
  25714. #define GPIO_PF2_LED1 0x00050801
  25715. #define GPIO_PF2_SSI1CLK 0x00050809
  25716. #define GPIO_PF3_LED0 0x00050C01
  25717. #define GPIO_PF3_SSI1FSS 0x00050C09
  25718. #define GPIO_PG0_U2RX 0x00060001
  25719. #define GPIO_PG0_I2C1SCL 0x00060003
  25720. #define GPIO_PG1_U2TX 0x00060401
  25721. #define GPIO_PG1_I2C1SDA 0x00060403
  25722. #endif // PART_LM3S6G11
  25723. //*****************************************************************************
  25724. //
  25725. // LM3S6G65 Port/Pin Mapping Definitions
  25726. //
  25727. //*****************************************************************************
  25728. #ifdef PART_LM3S6G65
  25729. #define GPIO_PA0_U0RX 0x00000001
  25730. #define GPIO_PA0_I2C1SCL 0x00000008
  25731. #define GPIO_PA0_U1RX 0x00000009
  25732. #define GPIO_PA1_U0TX 0x00000401
  25733. #define GPIO_PA1_I2C1SDA 0x00000408
  25734. #define GPIO_PA1_U1TX 0x00000409
  25735. #define GPIO_PA2_SSI0CLK 0x00000801
  25736. #define GPIO_PA2_PWM4 0x00000804
  25737. #define GPIO_PA3_SSI0FSS 0x00000C01
  25738. #define GPIO_PA3_PWM5 0x00000C04
  25739. #define GPIO_PA4_SSI0RX 0x00001001
  25740. #define GPIO_PA5_SSI0TX 0x00001401
  25741. #define GPIO_PA6_I2C1SCL 0x00001801
  25742. #define GPIO_PA6_CCP1 0x00001802
  25743. #define GPIO_PA6_PWM0 0x00001804
  25744. #define GPIO_PA6_PWM4 0x00001805
  25745. #define GPIO_PA7_I2C1SDA 0x00001C01
  25746. #define GPIO_PA7_CCP4 0x00001C02
  25747. #define GPIO_PA7_PWM1 0x00001C04
  25748. #define GPIO_PA7_PWM5 0x00001C05
  25749. #define GPIO_PA7_CCP3 0x00001C07
  25750. #define GPIO_PB0_CCP0 0x00010001
  25751. #define GPIO_PB0_PWM2 0x00010002
  25752. #define GPIO_PB0_U1RX 0x00010005
  25753. #define GPIO_PB1_CCP2 0x00010401
  25754. #define GPIO_PB1_PWM3 0x00010402
  25755. #define GPIO_PB1_CCP1 0x00010404
  25756. #define GPIO_PB1_U1TX 0x00010405
  25757. #define GPIO_PB2_I2C0SCL 0x00010801
  25758. #define GPIO_PB2_IDX0 0x00010802
  25759. #define GPIO_PB2_CCP3 0x00010804
  25760. #define GPIO_PB2_CCP0 0x00010805
  25761. #define GPIO_PB3_I2C0SDA 0x00010C01
  25762. #define GPIO_PB3_FAULT0 0x00010C02
  25763. #define GPIO_PB3_FAULT3 0x00010C04
  25764. #define GPIO_PB4_U2RX 0x00011004
  25765. #define GPIO_PB4_IDX0 0x00011006
  25766. #define GPIO_PB4_U1RX 0x00011007
  25767. #define GPIO_PB5_C0O 0x00011401
  25768. #define GPIO_PB5_CCP5 0x00011402
  25769. #define GPIO_PB5_CCP6 0x00011403
  25770. #define GPIO_PB5_CCP0 0x00011404
  25771. #define GPIO_PB5_CCP2 0x00011406
  25772. #define GPIO_PB5_U1TX 0x00011407
  25773. #define GPIO_PB6_CCP1 0x00011801
  25774. #define GPIO_PB6_CCP7 0x00011802
  25775. #define GPIO_PB6_C0O 0x00011803
  25776. #define GPIO_PB6_FAULT1 0x00011804
  25777. #define GPIO_PB6_IDX0 0x00011805
  25778. #define GPIO_PB6_CCP5 0x00011806
  25779. #define GPIO_PB7_NMI 0x00011C04
  25780. #define GPIO_PC0_TCK 0x00020003
  25781. #define GPIO_PC0_SWCLK 0x00020003
  25782. #define GPIO_PC1_TMS 0x00020403
  25783. #define GPIO_PC1_SWDIO 0x00020403
  25784. #define GPIO_PC2_TDI 0x00020803
  25785. #define GPIO_PC3_SWO 0x00020C03
  25786. #define GPIO_PC3_TDO 0x00020C03
  25787. #define GPIO_PC4_CCP5 0x00021001
  25788. #define GPIO_PC4_PHA0 0x00021002
  25789. #define GPIO_PC4_CCP2 0x00021005
  25790. #define GPIO_PC4_CCP4 0x00021006
  25791. #define GPIO_PC4_CCP1 0x00021009
  25792. #define GPIO_PC5_CCP1 0x00021401
  25793. #define GPIO_PC5_C1O 0x00021402
  25794. #define GPIO_PC5_C0O 0x00021403
  25795. #define GPIO_PC5_FAULT2 0x00021404
  25796. #define GPIO_PC5_CCP3 0x00021405
  25797. #define GPIO_PC6_CCP3 0x00021801
  25798. #define GPIO_PC6_PHB0 0x00021802
  25799. #define GPIO_PC6_U1RX 0x00021805
  25800. #define GPIO_PC6_CCP0 0x00021806
  25801. #define GPIO_PC7_CCP4 0x00021C01
  25802. #define GPIO_PC7_PHB0 0x00021C02
  25803. #define GPIO_PC7_CCP0 0x00021C04
  25804. #define GPIO_PC7_U1TX 0x00021C05
  25805. #define GPIO_PC7_C1O 0x00021C07
  25806. #define GPIO_PD0_PWM0 0x00030001
  25807. #define GPIO_PD0_IDX0 0x00030003
  25808. #define GPIO_PD0_U2RX 0x00030004
  25809. #define GPIO_PD0_U1RX 0x00030005
  25810. #define GPIO_PD0_CCP6 0x00030006
  25811. #define GPIO_PD1_PWM1 0x00030401
  25812. #define GPIO_PD1_PHA0 0x00030403
  25813. #define GPIO_PD1_U2TX 0x00030404
  25814. #define GPIO_PD1_U1TX 0x00030405
  25815. #define GPIO_PD1_CCP7 0x00030406
  25816. #define GPIO_PD1_CCP2 0x0003040A
  25817. #define GPIO_PD1_PHB1 0x0003040B
  25818. #define GPIO_PD2_U1RX 0x00030801
  25819. #define GPIO_PD2_CCP6 0x00030802
  25820. #define GPIO_PD2_PWM2 0x00030803
  25821. #define GPIO_PD2_CCP5 0x00030804
  25822. #define GPIO_PD3_U1TX 0x00030C01
  25823. #define GPIO_PD3_CCP7 0x00030C02
  25824. #define GPIO_PD3_PWM3 0x00030C03
  25825. #define GPIO_PD3_CCP0 0x00030C04
  25826. #define GPIO_PD4_CCP0 0x00031001
  25827. #define GPIO_PD4_CCP3 0x00031002
  25828. #define GPIO_PD5_CCP2 0x00031401
  25829. #define GPIO_PD5_CCP4 0x00031402
  25830. #define GPIO_PD5_U2RX 0x00031409
  25831. #define GPIO_PD6_FAULT0 0x00031801
  25832. #define GPIO_PD6_U2TX 0x00031809
  25833. #define GPIO_PD7_IDX0 0x00031C01
  25834. #define GPIO_PD7_C0O 0x00031C02
  25835. #define GPIO_PD7_CCP1 0x00031C03
  25836. #define GPIO_PE0_PWM4 0x00040001
  25837. #define GPIO_PE0_CCP3 0x00040003
  25838. #define GPIO_PE1_PWM5 0x00040401
  25839. #define GPIO_PE1_FAULT0 0x00040403
  25840. #define GPIO_PE1_CCP2 0x00040404
  25841. #define GPIO_PE1_CCP6 0x00040405
  25842. #define GPIO_PE2_CCP4 0x00040801
  25843. #define GPIO_PE2_PHB1 0x00040803
  25844. #define GPIO_PE2_PHA0 0x00040804
  25845. #define GPIO_PE2_CCP2 0x00040805
  25846. #define GPIO_PE3_CCP1 0x00040C01
  25847. #define GPIO_PE3_PHA1 0x00040C03
  25848. #define GPIO_PE3_PHB0 0x00040C04
  25849. #define GPIO_PE3_CCP7 0x00040C05
  25850. #define GPIO_PE4_CCP3 0x00041001
  25851. #define GPIO_PE4_FAULT0 0x00041004
  25852. #define GPIO_PE4_U2TX 0x00041005
  25853. #define GPIO_PE4_CCP2 0x00041006
  25854. #define GPIO_PE5_CCP5 0x00041401
  25855. #define GPIO_PE6_PWM4 0x00041801
  25856. #define GPIO_PE6_C1O 0x00041802
  25857. #define GPIO_PE7_PWM5 0x00041C01
  25858. #define GPIO_PF0_PHB0 0x00050002
  25859. #define GPIO_PF0_PWM0 0x00050003
  25860. #define GPIO_PF0_U1DSR 0x00050009
  25861. #define GPIO_PF1_IDX1 0x00050402
  25862. #define GPIO_PF1_PWM1 0x00050403
  25863. #define GPIO_PF1_CCP3 0x0005040A
  25864. #define GPIO_PF2_LED1 0x00050801
  25865. #define GPIO_PF2_PWM4 0x00050802
  25866. #define GPIO_PF2_PWM2 0x00050804
  25867. #define GPIO_PF3_LED0 0x00050C01
  25868. #define GPIO_PF3_PWM5 0x00050C02
  25869. #define GPIO_PF3_PWM3 0x00050C04
  25870. #define GPIO_PG0_U2RX 0x00060001
  25871. #define GPIO_PG0_PWM0 0x00060002
  25872. #define GPIO_PG0_I2C1SCL 0x00060003
  25873. #define GPIO_PG0_PWM4 0x00060004
  25874. #define GPIO_PG1_U2TX 0x00060401
  25875. #define GPIO_PG1_PWM1 0x00060402
  25876. #define GPIO_PG1_I2C1SDA 0x00060403
  25877. #define GPIO_PG1_PWM5 0x00060404
  25878. #endif // PART_LM3S6G65
  25879. //*****************************************************************************
  25880. //
  25881. // LM3S8530 Port/Pin Mapping Definitions
  25882. //
  25883. //*****************************************************************************
  25884. #ifdef PART_LM3S8530
  25885. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  25886. #define CAN0RX_PORT GPIO_PORTD_BASE
  25887. #define CAN0RX_PIN GPIO_PIN_0
  25888. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  25889. #define CAN0TX_PORT GPIO_PORTD_BASE
  25890. #define CAN0TX_PIN GPIO_PIN_1
  25891. #define CAN1RX_PERIPH SYSCTL_PERIPH_GPIOF
  25892. #define CAN1RX_PORT GPIO_PORTF_BASE
  25893. #define CAN1RX_PIN GPIO_PIN_0
  25894. #define CAN1TX_PERIPH SYSCTL_PERIPH_GPIOF
  25895. #define CAN1TX_PORT GPIO_PORTF_BASE
  25896. #define CAN1TX_PIN GPIO_PIN_1
  25897. #define CAN2RX_PERIPH SYSCTL_PERIPH_GPIOE
  25898. #define CAN2RX_PORT GPIO_PORTE_BASE
  25899. #define CAN2RX_PIN GPIO_PIN_4
  25900. #define CAN2TX_PERIPH SYSCTL_PERIPH_GPIOE
  25901. #define CAN2TX_PORT GPIO_PORTE_BASE
  25902. #define CAN2TX_PIN GPIO_PIN_5
  25903. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  25904. #define CCP0_PORT GPIO_PORTB_BASE
  25905. #define CCP0_PIN GPIO_PIN_0
  25906. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  25907. #define CCP1_PORT GPIO_PORTA_BASE
  25908. #define CCP1_PIN GPIO_PIN_6
  25909. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  25910. #define I2C0SCL_PORT GPIO_PORTB_BASE
  25911. #define I2C0SCL_PIN GPIO_PIN_2
  25912. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  25913. #define I2C0SDA_PORT GPIO_PORTB_BASE
  25914. #define I2C0SDA_PIN GPIO_PIN_3
  25915. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  25916. #define LED0_PORT GPIO_PORTF_BASE
  25917. #define LED0_PIN GPIO_PIN_3
  25918. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  25919. #define LED1_PORT GPIO_PORTF_BASE
  25920. #define LED1_PIN GPIO_PIN_2
  25921. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  25922. #define SSI0CLK_PORT GPIO_PORTA_BASE
  25923. #define SSI0CLK_PIN GPIO_PIN_2
  25924. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  25925. #define SSI0FSS_PORT GPIO_PORTA_BASE
  25926. #define SSI0FSS_PIN GPIO_PIN_3
  25927. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  25928. #define SSI0RX_PORT GPIO_PORTA_BASE
  25929. #define SSI0RX_PIN GPIO_PIN_4
  25930. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  25931. #define SSI0TX_PORT GPIO_PORTA_BASE
  25932. #define SSI0TX_PIN GPIO_PIN_5
  25933. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  25934. #define SSI1CLK_PORT GPIO_PORTE_BASE
  25935. #define SSI1CLK_PIN GPIO_PIN_0
  25936. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  25937. #define SSI1FSS_PORT GPIO_PORTE_BASE
  25938. #define SSI1FSS_PIN GPIO_PIN_1
  25939. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  25940. #define SSI1RX_PORT GPIO_PORTE_BASE
  25941. #define SSI1RX_PIN GPIO_PIN_2
  25942. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  25943. #define SSI1TX_PORT GPIO_PORTE_BASE
  25944. #define SSI1TX_PIN GPIO_PIN_3
  25945. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  25946. #define SWCLK_PORT GPIO_PORTC_BASE
  25947. #define SWCLK_PIN GPIO_PIN_0
  25948. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  25949. #define SWDIO_PORT GPIO_PORTC_BASE
  25950. #define SWDIO_PIN GPIO_PIN_1
  25951. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  25952. #define SWO_PORT GPIO_PORTC_BASE
  25953. #define SWO_PIN GPIO_PIN_3
  25954. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  25955. #define TCK_PORT GPIO_PORTC_BASE
  25956. #define TCK_PIN GPIO_PIN_0
  25957. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  25958. #define TDI_PORT GPIO_PORTC_BASE
  25959. #define TDI_PIN GPIO_PIN_2
  25960. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  25961. #define TDO_PORT GPIO_PORTC_BASE
  25962. #define TDO_PIN GPIO_PIN_3
  25963. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  25964. #define TMS_PORT GPIO_PORTC_BASE
  25965. #define TMS_PIN GPIO_PIN_1
  25966. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  25967. #define TRST_PORT GPIO_PORTB_BASE
  25968. #define TRST_PIN GPIO_PIN_7
  25969. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  25970. #define U0RX_PORT GPIO_PORTA_BASE
  25971. #define U0RX_PIN GPIO_PIN_0
  25972. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  25973. #define U0TX_PORT GPIO_PORTA_BASE
  25974. #define U0TX_PIN GPIO_PIN_1
  25975. #endif // PART_LM3S8530
  25976. //*****************************************************************************
  25977. //
  25978. // LM3S8538 Port/Pin Mapping Definitions
  25979. //
  25980. //*****************************************************************************
  25981. #ifdef PART_LM3S8538
  25982. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  25983. #define C0O_PORT GPIO_PORTB_BASE
  25984. #define C0O_PIN GPIO_PIN_6
  25985. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  25986. #define C0_MINUS_PORT GPIO_PORTB_BASE
  25987. #define C0_MINUS_PIN GPIO_PIN_4
  25988. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  25989. #define C0_PLUS_PORT GPIO_PORTB_BASE
  25990. #define C0_PLUS_PIN GPIO_PIN_6
  25991. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  25992. #define C1O_PORT GPIO_PORTC_BASE
  25993. #define C1O_PIN GPIO_PIN_5
  25994. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  25995. #define C1_MINUS_PORT GPIO_PORTB_BASE
  25996. #define C1_MINUS_PIN GPIO_PIN_5
  25997. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  25998. #define C1_PLUS_PORT GPIO_PORTC_BASE
  25999. #define C1_PLUS_PIN GPIO_PIN_5
  26000. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  26001. #define C2_MINUS_PORT GPIO_PORTC_BASE
  26002. #define C2_MINUS_PIN GPIO_PIN_7
  26003. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  26004. #define C2_PLUS_PORT GPIO_PORTC_BASE
  26005. #define C2_PLUS_PIN GPIO_PIN_6
  26006. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  26007. #define CAN0RX_PORT GPIO_PORTD_BASE
  26008. #define CAN0RX_PIN GPIO_PIN_0
  26009. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  26010. #define CAN0TX_PORT GPIO_PORTD_BASE
  26011. #define CAN0TX_PIN GPIO_PIN_1
  26012. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  26013. #define CCP0_PORT GPIO_PORTB_BASE
  26014. #define CCP0_PIN GPIO_PIN_0
  26015. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  26016. #define CCP1_PORT GPIO_PORTA_BASE
  26017. #define CCP1_PIN GPIO_PIN_6
  26018. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  26019. #define CCP2_PORT GPIO_PORTB_BASE
  26020. #define CCP2_PIN GPIO_PIN_1
  26021. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  26022. #define CCP3_PORT GPIO_PORTE_BASE
  26023. #define CCP3_PIN GPIO_PIN_0
  26024. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  26025. #define I2C0SCL_PORT GPIO_PORTB_BASE
  26026. #define I2C0SCL_PIN GPIO_PIN_2
  26027. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  26028. #define I2C0SDA_PORT GPIO_PORTB_BASE
  26029. #define I2C0SDA_PIN GPIO_PIN_3
  26030. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  26031. #define LED0_PORT GPIO_PORTF_BASE
  26032. #define LED0_PIN GPIO_PIN_3
  26033. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  26034. #define LED1_PORT GPIO_PORTF_BASE
  26035. #define LED1_PIN GPIO_PIN_2
  26036. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  26037. #define SSI0CLK_PORT GPIO_PORTA_BASE
  26038. #define SSI0CLK_PIN GPIO_PIN_2
  26039. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  26040. #define SSI0FSS_PORT GPIO_PORTA_BASE
  26041. #define SSI0FSS_PIN GPIO_PIN_3
  26042. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26043. #define SSI0RX_PORT GPIO_PORTA_BASE
  26044. #define SSI0RX_PIN GPIO_PIN_4
  26045. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26046. #define SSI0TX_PORT GPIO_PORTA_BASE
  26047. #define SSI0TX_PIN GPIO_PIN_5
  26048. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  26049. #define SWCLK_PORT GPIO_PORTC_BASE
  26050. #define SWCLK_PIN GPIO_PIN_0
  26051. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  26052. #define SWDIO_PORT GPIO_PORTC_BASE
  26053. #define SWDIO_PIN GPIO_PIN_1
  26054. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  26055. #define SWO_PORT GPIO_PORTC_BASE
  26056. #define SWO_PIN GPIO_PIN_3
  26057. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  26058. #define TCK_PORT GPIO_PORTC_BASE
  26059. #define TCK_PIN GPIO_PIN_0
  26060. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  26061. #define TDI_PORT GPIO_PORTC_BASE
  26062. #define TDI_PIN GPIO_PIN_2
  26063. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  26064. #define TDO_PORT GPIO_PORTC_BASE
  26065. #define TDO_PIN GPIO_PIN_3
  26066. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  26067. #define TMS_PORT GPIO_PORTC_BASE
  26068. #define TMS_PIN GPIO_PIN_1
  26069. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  26070. #define TRST_PORT GPIO_PORTB_BASE
  26071. #define TRST_PIN GPIO_PIN_7
  26072. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26073. #define U0RX_PORT GPIO_PORTA_BASE
  26074. #define U0RX_PIN GPIO_PIN_0
  26075. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26076. #define U0TX_PORT GPIO_PORTA_BASE
  26077. #define U0TX_PIN GPIO_PIN_1
  26078. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  26079. #define U1RX_PORT GPIO_PORTD_BASE
  26080. #define U1RX_PIN GPIO_PIN_2
  26081. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  26082. #define U1TX_PORT GPIO_PORTD_BASE
  26083. #define U1TX_PIN GPIO_PIN_3
  26084. #endif // PART_LM3S8538
  26085. //*****************************************************************************
  26086. //
  26087. // LM3S8630 Port/Pin Mapping Definitions
  26088. //
  26089. //*****************************************************************************
  26090. #ifdef PART_LM3S8630
  26091. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  26092. #define CAN0RX_PORT GPIO_PORTD_BASE
  26093. #define CAN0RX_PIN GPIO_PIN_0
  26094. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  26095. #define CAN0TX_PORT GPIO_PORTD_BASE
  26096. #define CAN0TX_PIN GPIO_PIN_1
  26097. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  26098. #define CCP0_PORT GPIO_PORTB_BASE
  26099. #define CCP0_PIN GPIO_PIN_0
  26100. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  26101. #define CCP1_PORT GPIO_PORTA_BASE
  26102. #define CCP1_PIN GPIO_PIN_6
  26103. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  26104. #define I2C0SCL_PORT GPIO_PORTB_BASE
  26105. #define I2C0SCL_PIN GPIO_PIN_2
  26106. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  26107. #define I2C0SDA_PORT GPIO_PORTB_BASE
  26108. #define I2C0SDA_PIN GPIO_PIN_3
  26109. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  26110. #define LED0_PORT GPIO_PORTF_BASE
  26111. #define LED0_PIN GPIO_PIN_3
  26112. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  26113. #define LED1_PORT GPIO_PORTF_BASE
  26114. #define LED1_PIN GPIO_PIN_2
  26115. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  26116. #define SSI0CLK_PORT GPIO_PORTA_BASE
  26117. #define SSI0CLK_PIN GPIO_PIN_2
  26118. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  26119. #define SSI0FSS_PORT GPIO_PORTA_BASE
  26120. #define SSI0FSS_PIN GPIO_PIN_3
  26121. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26122. #define SSI0RX_PORT GPIO_PORTA_BASE
  26123. #define SSI0RX_PIN GPIO_PIN_4
  26124. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26125. #define SSI0TX_PORT GPIO_PORTA_BASE
  26126. #define SSI0TX_PIN GPIO_PIN_5
  26127. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  26128. #define SWCLK_PORT GPIO_PORTC_BASE
  26129. #define SWCLK_PIN GPIO_PIN_0
  26130. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  26131. #define SWDIO_PORT GPIO_PORTC_BASE
  26132. #define SWDIO_PIN GPIO_PIN_1
  26133. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  26134. #define SWO_PORT GPIO_PORTC_BASE
  26135. #define SWO_PIN GPIO_PIN_3
  26136. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  26137. #define TCK_PORT GPIO_PORTC_BASE
  26138. #define TCK_PIN GPIO_PIN_0
  26139. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  26140. #define TDI_PORT GPIO_PORTC_BASE
  26141. #define TDI_PIN GPIO_PIN_2
  26142. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  26143. #define TDO_PORT GPIO_PORTC_BASE
  26144. #define TDO_PIN GPIO_PIN_3
  26145. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  26146. #define TMS_PORT GPIO_PORTC_BASE
  26147. #define TMS_PIN GPIO_PIN_1
  26148. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  26149. #define TRST_PORT GPIO_PORTB_BASE
  26150. #define TRST_PIN GPIO_PIN_7
  26151. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26152. #define U0RX_PORT GPIO_PORTA_BASE
  26153. #define U0RX_PIN GPIO_PIN_0
  26154. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26155. #define U0TX_PORT GPIO_PORTA_BASE
  26156. #define U0TX_PIN GPIO_PIN_1
  26157. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  26158. #define U1RX_PORT GPIO_PORTD_BASE
  26159. #define U1RX_PIN GPIO_PIN_2
  26160. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  26161. #define U1TX_PORT GPIO_PORTD_BASE
  26162. #define U1TX_PIN GPIO_PIN_3
  26163. #endif // PART_LM3S8630
  26164. //*****************************************************************************
  26165. //
  26166. // LM3S8730 Port/Pin Mapping Definitions
  26167. //
  26168. //*****************************************************************************
  26169. #ifdef PART_LM3S8730
  26170. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  26171. #define CAN0RX_PORT GPIO_PORTD_BASE
  26172. #define CAN0RX_PIN GPIO_PIN_0
  26173. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  26174. #define CAN0TX_PORT GPIO_PORTD_BASE
  26175. #define CAN0TX_PIN GPIO_PIN_1
  26176. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  26177. #define CCP0_PORT GPIO_PORTB_BASE
  26178. #define CCP0_PIN GPIO_PIN_0
  26179. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  26180. #define CCP1_PORT GPIO_PORTA_BASE
  26181. #define CCP1_PIN GPIO_PIN_6
  26182. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  26183. #define I2C0SCL_PORT GPIO_PORTB_BASE
  26184. #define I2C0SCL_PIN GPIO_PIN_2
  26185. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  26186. #define I2C0SDA_PORT GPIO_PORTB_BASE
  26187. #define I2C0SDA_PIN GPIO_PIN_3
  26188. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  26189. #define LED0_PORT GPIO_PORTF_BASE
  26190. #define LED0_PIN GPIO_PIN_3
  26191. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  26192. #define LED1_PORT GPIO_PORTF_BASE
  26193. #define LED1_PIN GPIO_PIN_2
  26194. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  26195. #define SSI0CLK_PORT GPIO_PORTA_BASE
  26196. #define SSI0CLK_PIN GPIO_PIN_2
  26197. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  26198. #define SSI0FSS_PORT GPIO_PORTA_BASE
  26199. #define SSI0FSS_PIN GPIO_PIN_3
  26200. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26201. #define SSI0RX_PORT GPIO_PORTA_BASE
  26202. #define SSI0RX_PIN GPIO_PIN_4
  26203. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26204. #define SSI0TX_PORT GPIO_PORTA_BASE
  26205. #define SSI0TX_PIN GPIO_PIN_5
  26206. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  26207. #define SWCLK_PORT GPIO_PORTC_BASE
  26208. #define SWCLK_PIN GPIO_PIN_0
  26209. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  26210. #define SWDIO_PORT GPIO_PORTC_BASE
  26211. #define SWDIO_PIN GPIO_PIN_1
  26212. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  26213. #define SWO_PORT GPIO_PORTC_BASE
  26214. #define SWO_PIN GPIO_PIN_3
  26215. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  26216. #define TCK_PORT GPIO_PORTC_BASE
  26217. #define TCK_PIN GPIO_PIN_0
  26218. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  26219. #define TDI_PORT GPIO_PORTC_BASE
  26220. #define TDI_PIN GPIO_PIN_2
  26221. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  26222. #define TDO_PORT GPIO_PORTC_BASE
  26223. #define TDO_PIN GPIO_PIN_3
  26224. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  26225. #define TMS_PORT GPIO_PORTC_BASE
  26226. #define TMS_PIN GPIO_PIN_1
  26227. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  26228. #define TRST_PORT GPIO_PORTB_BASE
  26229. #define TRST_PIN GPIO_PIN_7
  26230. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26231. #define U0RX_PORT GPIO_PORTA_BASE
  26232. #define U0RX_PIN GPIO_PIN_0
  26233. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26234. #define U0TX_PORT GPIO_PORTA_BASE
  26235. #define U0TX_PIN GPIO_PIN_1
  26236. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  26237. #define U1RX_PORT GPIO_PORTD_BASE
  26238. #define U1RX_PIN GPIO_PIN_2
  26239. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  26240. #define U1TX_PORT GPIO_PORTD_BASE
  26241. #define U1TX_PIN GPIO_PIN_3
  26242. #endif // PART_LM3S8730
  26243. //*****************************************************************************
  26244. //
  26245. // LM3S8733 Port/Pin Mapping Definitions
  26246. //
  26247. //*****************************************************************************
  26248. #ifdef PART_LM3S8733
  26249. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  26250. #define C0O_PORT GPIO_PORTD_BASE
  26251. #define C0O_PIN GPIO_PIN_7
  26252. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  26253. #define C0_MINUS_PORT GPIO_PORTB_BASE
  26254. #define C0_MINUS_PIN GPIO_PIN_4
  26255. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  26256. #define C0_PLUS_PORT GPIO_PORTB_BASE
  26257. #define C0_PLUS_PIN GPIO_PIN_6
  26258. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  26259. #define C1O_PORT GPIO_PORTC_BASE
  26260. #define C1O_PIN GPIO_PIN_5
  26261. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  26262. #define C1_MINUS_PORT GPIO_PORTB_BASE
  26263. #define C1_MINUS_PIN GPIO_PIN_5
  26264. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  26265. #define C1_PLUS_PORT GPIO_PORTC_BASE
  26266. #define C1_PLUS_PIN GPIO_PIN_5
  26267. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  26268. #define C2_MINUS_PORT GPIO_PORTC_BASE
  26269. #define C2_MINUS_PIN GPIO_PIN_7
  26270. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  26271. #define C2_PLUS_PORT GPIO_PORTC_BASE
  26272. #define C2_PLUS_PIN GPIO_PIN_6
  26273. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  26274. #define CAN0RX_PORT GPIO_PORTD_BASE
  26275. #define CAN0RX_PIN GPIO_PIN_0
  26276. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  26277. #define CAN0TX_PORT GPIO_PORTD_BASE
  26278. #define CAN0TX_PIN GPIO_PIN_1
  26279. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  26280. #define CCP0_PORT GPIO_PORTB_BASE
  26281. #define CCP0_PIN GPIO_PIN_0
  26282. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  26283. #define CCP1_PORT GPIO_PORTA_BASE
  26284. #define CCP1_PIN GPIO_PIN_6
  26285. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  26286. #define CCP2_PORT GPIO_PORTB_BASE
  26287. #define CCP2_PIN GPIO_PIN_1
  26288. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  26289. #define CCP3_PORT GPIO_PORTD_BASE
  26290. #define CCP3_PIN GPIO_PIN_4
  26291. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  26292. #define I2C0SCL_PORT GPIO_PORTB_BASE
  26293. #define I2C0SCL_PIN GPIO_PIN_2
  26294. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  26295. #define I2C0SDA_PORT GPIO_PORTB_BASE
  26296. #define I2C0SDA_PIN GPIO_PIN_3
  26297. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  26298. #define LED0_PORT GPIO_PORTF_BASE
  26299. #define LED0_PIN GPIO_PIN_3
  26300. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  26301. #define LED1_PORT GPIO_PORTF_BASE
  26302. #define LED1_PIN GPIO_PIN_2
  26303. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  26304. #define SSI0CLK_PORT GPIO_PORTA_BASE
  26305. #define SSI0CLK_PIN GPIO_PIN_2
  26306. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  26307. #define SSI0FSS_PORT GPIO_PORTA_BASE
  26308. #define SSI0FSS_PIN GPIO_PIN_3
  26309. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26310. #define SSI0RX_PORT GPIO_PORTA_BASE
  26311. #define SSI0RX_PIN GPIO_PIN_4
  26312. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26313. #define SSI0TX_PORT GPIO_PORTA_BASE
  26314. #define SSI0TX_PIN GPIO_PIN_5
  26315. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  26316. #define SWCLK_PORT GPIO_PORTC_BASE
  26317. #define SWCLK_PIN GPIO_PIN_0
  26318. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  26319. #define SWDIO_PORT GPIO_PORTC_BASE
  26320. #define SWDIO_PIN GPIO_PIN_1
  26321. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  26322. #define SWO_PORT GPIO_PORTC_BASE
  26323. #define SWO_PIN GPIO_PIN_3
  26324. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  26325. #define TCK_PORT GPIO_PORTC_BASE
  26326. #define TCK_PIN GPIO_PIN_0
  26327. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  26328. #define TDI_PORT GPIO_PORTC_BASE
  26329. #define TDI_PIN GPIO_PIN_2
  26330. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  26331. #define TDO_PORT GPIO_PORTC_BASE
  26332. #define TDO_PIN GPIO_PIN_3
  26333. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  26334. #define TMS_PORT GPIO_PORTC_BASE
  26335. #define TMS_PIN GPIO_PIN_1
  26336. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  26337. #define TRST_PORT GPIO_PORTB_BASE
  26338. #define TRST_PIN GPIO_PIN_7
  26339. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26340. #define U0RX_PORT GPIO_PORTA_BASE
  26341. #define U0RX_PIN GPIO_PIN_0
  26342. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26343. #define U0TX_PORT GPIO_PORTA_BASE
  26344. #define U0TX_PIN GPIO_PIN_1
  26345. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  26346. #define U1RX_PORT GPIO_PORTD_BASE
  26347. #define U1RX_PIN GPIO_PIN_2
  26348. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  26349. #define U1TX_PORT GPIO_PORTD_BASE
  26350. #define U1TX_PIN GPIO_PIN_3
  26351. #endif // PART_LM3S8733
  26352. //*****************************************************************************
  26353. //
  26354. // LM3S8738 Port/Pin Mapping Definitions
  26355. //
  26356. //*****************************************************************************
  26357. #ifdef PART_LM3S8738
  26358. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  26359. #define C0O_PORT GPIO_PORTC_BASE
  26360. #define C0O_PIN GPIO_PIN_5
  26361. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  26362. #define C0_MINUS_PORT GPIO_PORTB_BASE
  26363. #define C0_MINUS_PIN GPIO_PIN_4
  26364. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  26365. #define C0_PLUS_PORT GPIO_PORTB_BASE
  26366. #define C0_PLUS_PIN GPIO_PIN_6
  26367. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  26368. #define CAN0RX_PORT GPIO_PORTD_BASE
  26369. #define CAN0RX_PIN GPIO_PIN_0
  26370. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  26371. #define CAN0TX_PORT GPIO_PORTD_BASE
  26372. #define CAN0TX_PIN GPIO_PIN_1
  26373. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  26374. #define CCP0_PORT GPIO_PORTB_BASE
  26375. #define CCP0_PIN GPIO_PIN_0
  26376. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  26377. #define CCP1_PORT GPIO_PORTA_BASE
  26378. #define CCP1_PIN GPIO_PIN_6
  26379. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  26380. #define CCP2_PORT GPIO_PORTB_BASE
  26381. #define CCP2_PIN GPIO_PIN_1
  26382. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  26383. #define CCP3_PORT GPIO_PORTC_BASE
  26384. #define CCP3_PIN GPIO_PIN_6
  26385. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  26386. #define CCP4_PORT GPIO_PORTA_BASE
  26387. #define CCP4_PIN GPIO_PIN_7
  26388. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  26389. #define CCP5_PORT GPIO_PORTB_BASE
  26390. #define CCP5_PIN GPIO_PIN_5
  26391. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  26392. #define I2C0SCL_PORT GPIO_PORTB_BASE
  26393. #define I2C0SCL_PIN GPIO_PIN_2
  26394. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  26395. #define I2C0SDA_PORT GPIO_PORTB_BASE
  26396. #define I2C0SDA_PIN GPIO_PIN_3
  26397. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  26398. #define LED0_PORT GPIO_PORTF_BASE
  26399. #define LED0_PIN GPIO_PIN_3
  26400. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  26401. #define LED1_PORT GPIO_PORTF_BASE
  26402. #define LED1_PIN GPIO_PIN_2
  26403. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  26404. #define SSI0CLK_PORT GPIO_PORTA_BASE
  26405. #define SSI0CLK_PIN GPIO_PIN_2
  26406. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  26407. #define SSI0FSS_PORT GPIO_PORTA_BASE
  26408. #define SSI0FSS_PIN GPIO_PIN_3
  26409. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26410. #define SSI0RX_PORT GPIO_PORTA_BASE
  26411. #define SSI0RX_PIN GPIO_PIN_4
  26412. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26413. #define SSI0TX_PORT GPIO_PORTA_BASE
  26414. #define SSI0TX_PIN GPIO_PIN_5
  26415. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  26416. #define SSI1CLK_PORT GPIO_PORTE_BASE
  26417. #define SSI1CLK_PIN GPIO_PIN_0
  26418. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  26419. #define SSI1FSS_PORT GPIO_PORTE_BASE
  26420. #define SSI1FSS_PIN GPIO_PIN_1
  26421. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  26422. #define SSI1RX_PORT GPIO_PORTE_BASE
  26423. #define SSI1RX_PIN GPIO_PIN_2
  26424. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  26425. #define SSI1TX_PORT GPIO_PORTE_BASE
  26426. #define SSI1TX_PIN GPIO_PIN_3
  26427. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  26428. #define SWCLK_PORT GPIO_PORTC_BASE
  26429. #define SWCLK_PIN GPIO_PIN_0
  26430. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  26431. #define SWDIO_PORT GPIO_PORTC_BASE
  26432. #define SWDIO_PIN GPIO_PIN_1
  26433. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  26434. #define SWO_PORT GPIO_PORTC_BASE
  26435. #define SWO_PIN GPIO_PIN_3
  26436. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  26437. #define TCK_PORT GPIO_PORTC_BASE
  26438. #define TCK_PIN GPIO_PIN_0
  26439. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  26440. #define TDI_PORT GPIO_PORTC_BASE
  26441. #define TDI_PIN GPIO_PIN_2
  26442. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  26443. #define TDO_PORT GPIO_PORTC_BASE
  26444. #define TDO_PIN GPIO_PIN_3
  26445. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  26446. #define TMS_PORT GPIO_PORTC_BASE
  26447. #define TMS_PIN GPIO_PIN_1
  26448. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  26449. #define TRST_PORT GPIO_PORTB_BASE
  26450. #define TRST_PIN GPIO_PIN_7
  26451. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26452. #define U0RX_PORT GPIO_PORTA_BASE
  26453. #define U0RX_PIN GPIO_PIN_0
  26454. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26455. #define U0TX_PORT GPIO_PORTA_BASE
  26456. #define U0TX_PIN GPIO_PIN_1
  26457. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  26458. #define U1RX_PORT GPIO_PORTD_BASE
  26459. #define U1RX_PIN GPIO_PIN_2
  26460. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  26461. #define U1TX_PORT GPIO_PORTD_BASE
  26462. #define U1TX_PIN GPIO_PIN_3
  26463. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  26464. #define U2RX_PORT GPIO_PORTG_BASE
  26465. #define U2RX_PIN GPIO_PIN_0
  26466. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  26467. #define U2TX_PORT GPIO_PORTG_BASE
  26468. #define U2TX_PIN GPIO_PIN_1
  26469. #endif // PART_LM3S8738
  26470. //*****************************************************************************
  26471. //
  26472. // LM3S8930 Port/Pin Mapping Definitions
  26473. //
  26474. //*****************************************************************************
  26475. #ifdef PART_LM3S8930
  26476. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  26477. #define CAN0RX_PORT GPIO_PORTD_BASE
  26478. #define CAN0RX_PIN GPIO_PIN_0
  26479. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  26480. #define CAN0TX_PORT GPIO_PORTD_BASE
  26481. #define CAN0TX_PIN GPIO_PIN_1
  26482. #define CAN1RX_PERIPH SYSCTL_PERIPH_GPIOF
  26483. #define CAN1RX_PORT GPIO_PORTF_BASE
  26484. #define CAN1RX_PIN GPIO_PIN_0
  26485. #define CAN1TX_PERIPH SYSCTL_PERIPH_GPIOF
  26486. #define CAN1TX_PORT GPIO_PORTF_BASE
  26487. #define CAN1TX_PIN GPIO_PIN_1
  26488. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  26489. #define CCP0_PORT GPIO_PORTB_BASE
  26490. #define CCP0_PIN GPIO_PIN_0
  26491. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  26492. #define CCP1_PORT GPIO_PORTA_BASE
  26493. #define CCP1_PIN GPIO_PIN_6
  26494. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  26495. #define I2C0SCL_PORT GPIO_PORTB_BASE
  26496. #define I2C0SCL_PIN GPIO_PIN_2
  26497. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  26498. #define I2C0SDA_PORT GPIO_PORTB_BASE
  26499. #define I2C0SDA_PIN GPIO_PIN_3
  26500. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  26501. #define LED0_PORT GPIO_PORTF_BASE
  26502. #define LED0_PIN GPIO_PIN_3
  26503. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  26504. #define LED1_PORT GPIO_PORTF_BASE
  26505. #define LED1_PIN GPIO_PIN_2
  26506. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  26507. #define SSI0CLK_PORT GPIO_PORTA_BASE
  26508. #define SSI0CLK_PIN GPIO_PIN_2
  26509. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  26510. #define SSI0FSS_PORT GPIO_PORTA_BASE
  26511. #define SSI0FSS_PIN GPIO_PIN_3
  26512. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26513. #define SSI0RX_PORT GPIO_PORTA_BASE
  26514. #define SSI0RX_PIN GPIO_PIN_4
  26515. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26516. #define SSI0TX_PORT GPIO_PORTA_BASE
  26517. #define SSI0TX_PIN GPIO_PIN_5
  26518. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  26519. #define SWCLK_PORT GPIO_PORTC_BASE
  26520. #define SWCLK_PIN GPIO_PIN_0
  26521. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  26522. #define SWDIO_PORT GPIO_PORTC_BASE
  26523. #define SWDIO_PIN GPIO_PIN_1
  26524. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  26525. #define SWO_PORT GPIO_PORTC_BASE
  26526. #define SWO_PIN GPIO_PIN_3
  26527. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  26528. #define TCK_PORT GPIO_PORTC_BASE
  26529. #define TCK_PIN GPIO_PIN_0
  26530. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  26531. #define TDI_PORT GPIO_PORTC_BASE
  26532. #define TDI_PIN GPIO_PIN_2
  26533. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  26534. #define TDO_PORT GPIO_PORTC_BASE
  26535. #define TDO_PIN GPIO_PIN_3
  26536. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  26537. #define TMS_PORT GPIO_PORTC_BASE
  26538. #define TMS_PIN GPIO_PIN_1
  26539. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  26540. #define TRST_PORT GPIO_PORTB_BASE
  26541. #define TRST_PIN GPIO_PIN_7
  26542. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26543. #define U0RX_PORT GPIO_PORTA_BASE
  26544. #define U0RX_PIN GPIO_PIN_0
  26545. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26546. #define U0TX_PORT GPIO_PORTA_BASE
  26547. #define U0TX_PIN GPIO_PIN_1
  26548. #endif // PART_LM3S8930
  26549. //*****************************************************************************
  26550. //
  26551. // LM3S8933 Port/Pin Mapping Definitions
  26552. //
  26553. //*****************************************************************************
  26554. #ifdef PART_LM3S8933
  26555. #define C0O_PERIPH SYSCTL_PERIPH_GPIOD
  26556. #define C0O_PORT GPIO_PORTD_BASE
  26557. #define C0O_PIN GPIO_PIN_7
  26558. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  26559. #define C0_MINUS_PORT GPIO_PORTB_BASE
  26560. #define C0_MINUS_PIN GPIO_PIN_4
  26561. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  26562. #define C0_PLUS_PORT GPIO_PORTB_BASE
  26563. #define C0_PLUS_PIN GPIO_PIN_6
  26564. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  26565. #define C1O_PORT GPIO_PORTC_BASE
  26566. #define C1O_PIN GPIO_PIN_5
  26567. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  26568. #define C1_MINUS_PORT GPIO_PORTB_BASE
  26569. #define C1_MINUS_PIN GPIO_PIN_5
  26570. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  26571. #define C1_PLUS_PORT GPIO_PORTC_BASE
  26572. #define C1_PLUS_PIN GPIO_PIN_5
  26573. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  26574. #define C2_MINUS_PORT GPIO_PORTC_BASE
  26575. #define C2_MINUS_PIN GPIO_PIN_7
  26576. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  26577. #define C2_PLUS_PORT GPIO_PORTC_BASE
  26578. #define C2_PLUS_PIN GPIO_PIN_6
  26579. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  26580. #define CAN0RX_PORT GPIO_PORTD_BASE
  26581. #define CAN0RX_PIN GPIO_PIN_0
  26582. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  26583. #define CAN0TX_PORT GPIO_PORTD_BASE
  26584. #define CAN0TX_PIN GPIO_PIN_1
  26585. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  26586. #define CCP0_PORT GPIO_PORTB_BASE
  26587. #define CCP0_PIN GPIO_PIN_0
  26588. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  26589. #define CCP1_PORT GPIO_PORTA_BASE
  26590. #define CCP1_PIN GPIO_PIN_6
  26591. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  26592. #define CCP2_PORT GPIO_PORTB_BASE
  26593. #define CCP2_PIN GPIO_PIN_1
  26594. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOD
  26595. #define CCP3_PORT GPIO_PORTD_BASE
  26596. #define CCP3_PIN GPIO_PIN_4
  26597. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  26598. #define I2C0SCL_PORT GPIO_PORTB_BASE
  26599. #define I2C0SCL_PIN GPIO_PIN_2
  26600. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  26601. #define I2C0SDA_PORT GPIO_PORTB_BASE
  26602. #define I2C0SDA_PIN GPIO_PIN_3
  26603. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  26604. #define LED0_PORT GPIO_PORTF_BASE
  26605. #define LED0_PIN GPIO_PIN_3
  26606. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  26607. #define LED1_PORT GPIO_PORTF_BASE
  26608. #define LED1_PIN GPIO_PIN_2
  26609. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  26610. #define SSI0CLK_PORT GPIO_PORTA_BASE
  26611. #define SSI0CLK_PIN GPIO_PIN_2
  26612. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  26613. #define SSI0FSS_PORT GPIO_PORTA_BASE
  26614. #define SSI0FSS_PIN GPIO_PIN_3
  26615. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26616. #define SSI0RX_PORT GPIO_PORTA_BASE
  26617. #define SSI0RX_PIN GPIO_PIN_4
  26618. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26619. #define SSI0TX_PORT GPIO_PORTA_BASE
  26620. #define SSI0TX_PIN GPIO_PIN_5
  26621. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  26622. #define SWCLK_PORT GPIO_PORTC_BASE
  26623. #define SWCLK_PIN GPIO_PIN_0
  26624. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  26625. #define SWDIO_PORT GPIO_PORTC_BASE
  26626. #define SWDIO_PIN GPIO_PIN_1
  26627. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  26628. #define SWO_PORT GPIO_PORTC_BASE
  26629. #define SWO_PIN GPIO_PIN_3
  26630. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  26631. #define TCK_PORT GPIO_PORTC_BASE
  26632. #define TCK_PIN GPIO_PIN_0
  26633. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  26634. #define TDI_PORT GPIO_PORTC_BASE
  26635. #define TDI_PIN GPIO_PIN_2
  26636. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  26637. #define TDO_PORT GPIO_PORTC_BASE
  26638. #define TDO_PIN GPIO_PIN_3
  26639. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  26640. #define TMS_PORT GPIO_PORTC_BASE
  26641. #define TMS_PIN GPIO_PIN_1
  26642. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  26643. #define TRST_PORT GPIO_PORTB_BASE
  26644. #define TRST_PIN GPIO_PIN_7
  26645. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26646. #define U0RX_PORT GPIO_PORTA_BASE
  26647. #define U0RX_PIN GPIO_PIN_0
  26648. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26649. #define U0TX_PORT GPIO_PORTA_BASE
  26650. #define U0TX_PIN GPIO_PIN_1
  26651. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  26652. #define U1RX_PORT GPIO_PORTD_BASE
  26653. #define U1RX_PIN GPIO_PIN_2
  26654. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  26655. #define U1TX_PORT GPIO_PORTD_BASE
  26656. #define U1TX_PIN GPIO_PIN_3
  26657. #endif // PART_LM3S8933
  26658. //*****************************************************************************
  26659. //
  26660. // LM3S8938 Port/Pin Mapping Definitions
  26661. //
  26662. //*****************************************************************************
  26663. #ifdef PART_LM3S8938
  26664. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  26665. #define C0O_PORT GPIO_PORTB_BASE
  26666. #define C0O_PIN GPIO_PIN_6
  26667. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  26668. #define C0_MINUS_PORT GPIO_PORTB_BASE
  26669. #define C0_MINUS_PIN GPIO_PIN_4
  26670. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  26671. #define C0_PLUS_PORT GPIO_PORTB_BASE
  26672. #define C0_PLUS_PIN GPIO_PIN_6
  26673. #define C1O_PERIPH SYSCTL_PERIPH_GPIOC
  26674. #define C1O_PORT GPIO_PORTC_BASE
  26675. #define C1O_PIN GPIO_PIN_5
  26676. #define C1_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  26677. #define C1_MINUS_PORT GPIO_PORTB_BASE
  26678. #define C1_MINUS_PIN GPIO_PIN_5
  26679. #define C1_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  26680. #define C1_PLUS_PORT GPIO_PORTC_BASE
  26681. #define C1_PLUS_PIN GPIO_PIN_5
  26682. #define C2O_PERIPH SYSCTL_PERIPH_GPIOC
  26683. #define C2O_PORT GPIO_PORTC_BASE
  26684. #define C2O_PIN GPIO_PIN_6
  26685. #define C2_MINUS_PERIPH SYSCTL_PERIPH_GPIOC
  26686. #define C2_MINUS_PORT GPIO_PORTC_BASE
  26687. #define C2_MINUS_PIN GPIO_PIN_7
  26688. #define C2_PLUS_PERIPH SYSCTL_PERIPH_GPIOC
  26689. #define C2_PLUS_PORT GPIO_PORTC_BASE
  26690. #define C2_PLUS_PIN GPIO_PIN_6
  26691. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  26692. #define CAN0RX_PORT GPIO_PORTD_BASE
  26693. #define CAN0RX_PIN GPIO_PIN_0
  26694. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  26695. #define CAN0TX_PORT GPIO_PORTD_BASE
  26696. #define CAN0TX_PIN GPIO_PIN_1
  26697. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  26698. #define CCP0_PORT GPIO_PORTB_BASE
  26699. #define CCP0_PIN GPIO_PIN_0
  26700. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOE
  26701. #define CCP1_PORT GPIO_PORTE_BASE
  26702. #define CCP1_PIN GPIO_PIN_3
  26703. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  26704. #define CCP2_PORT GPIO_PORTB_BASE
  26705. #define CCP2_PIN GPIO_PIN_1
  26706. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOE
  26707. #define CCP3_PORT GPIO_PORTE_BASE
  26708. #define CCP3_PIN GPIO_PIN_0
  26709. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOE
  26710. #define CCP4_PORT GPIO_PORTE_BASE
  26711. #define CCP4_PIN GPIO_PIN_2
  26712. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOC
  26713. #define CCP5_PORT GPIO_PORTC_BASE
  26714. #define CCP5_PIN GPIO_PIN_4
  26715. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  26716. #define I2C0SCL_PORT GPIO_PORTB_BASE
  26717. #define I2C0SCL_PIN GPIO_PIN_2
  26718. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  26719. #define I2C0SDA_PORT GPIO_PORTB_BASE
  26720. #define I2C0SDA_PIN GPIO_PIN_3
  26721. #define I2C1SCL_PERIPH SYSCTL_PERIPH_GPIOA
  26722. #define I2C1SCL_PORT GPIO_PORTA_BASE
  26723. #define I2C1SCL_PIN GPIO_PIN_6
  26724. #define I2C1SDA_PERIPH SYSCTL_PERIPH_GPIOA
  26725. #define I2C1SDA_PORT GPIO_PORTA_BASE
  26726. #define I2C1SDA_PIN GPIO_PIN_7
  26727. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  26728. #define LED0_PORT GPIO_PORTF_BASE
  26729. #define LED0_PIN GPIO_PIN_3
  26730. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  26731. #define LED1_PORT GPIO_PORTF_BASE
  26732. #define LED1_PIN GPIO_PIN_2
  26733. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  26734. #define SSI0CLK_PORT GPIO_PORTA_BASE
  26735. #define SSI0CLK_PIN GPIO_PIN_2
  26736. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  26737. #define SSI0FSS_PORT GPIO_PORTA_BASE
  26738. #define SSI0FSS_PIN GPIO_PIN_3
  26739. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26740. #define SSI0RX_PORT GPIO_PORTA_BASE
  26741. #define SSI0RX_PIN GPIO_PIN_4
  26742. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26743. #define SSI0TX_PORT GPIO_PORTA_BASE
  26744. #define SSI0TX_PIN GPIO_PIN_5
  26745. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  26746. #define SWCLK_PORT GPIO_PORTC_BASE
  26747. #define SWCLK_PIN GPIO_PIN_0
  26748. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  26749. #define SWDIO_PORT GPIO_PORTC_BASE
  26750. #define SWDIO_PIN GPIO_PIN_1
  26751. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  26752. #define SWO_PORT GPIO_PORTC_BASE
  26753. #define SWO_PIN GPIO_PIN_3
  26754. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  26755. #define TCK_PORT GPIO_PORTC_BASE
  26756. #define TCK_PIN GPIO_PIN_0
  26757. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  26758. #define TDI_PORT GPIO_PORTC_BASE
  26759. #define TDI_PIN GPIO_PIN_2
  26760. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  26761. #define TDO_PORT GPIO_PORTC_BASE
  26762. #define TDO_PIN GPIO_PIN_3
  26763. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  26764. #define TMS_PORT GPIO_PORTC_BASE
  26765. #define TMS_PIN GPIO_PIN_1
  26766. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  26767. #define TRST_PORT GPIO_PORTB_BASE
  26768. #define TRST_PIN GPIO_PIN_7
  26769. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26770. #define U0RX_PORT GPIO_PORTA_BASE
  26771. #define U0RX_PIN GPIO_PIN_0
  26772. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26773. #define U0TX_PORT GPIO_PORTA_BASE
  26774. #define U0TX_PIN GPIO_PIN_1
  26775. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  26776. #define U1RX_PORT GPIO_PORTD_BASE
  26777. #define U1RX_PIN GPIO_PIN_2
  26778. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  26779. #define U1TX_PORT GPIO_PORTD_BASE
  26780. #define U1TX_PIN GPIO_PIN_3
  26781. #define U2RX_PERIPH SYSCTL_PERIPH_GPIOG
  26782. #define U2RX_PORT GPIO_PORTG_BASE
  26783. #define U2RX_PIN GPIO_PIN_0
  26784. #define U2TX_PERIPH SYSCTL_PERIPH_GPIOG
  26785. #define U2TX_PORT GPIO_PORTG_BASE
  26786. #define U2TX_PIN GPIO_PIN_1
  26787. #endif // PART_LM3S8938
  26788. //*****************************************************************************
  26789. //
  26790. // LM3S8962 Port/Pin Mapping Definitions
  26791. //
  26792. //*****************************************************************************
  26793. #ifdef PART_LM3S8962
  26794. #define C0O_PERIPH SYSCTL_PERIPH_GPIOB
  26795. #define C0O_PORT GPIO_PORTB_BASE
  26796. #define C0O_PIN GPIO_PIN_5
  26797. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  26798. #define C0_MINUS_PORT GPIO_PORTB_BASE
  26799. #define C0_MINUS_PIN GPIO_PIN_4
  26800. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  26801. #define C0_PLUS_PORT GPIO_PORTB_BASE
  26802. #define C0_PLUS_PIN GPIO_PIN_6
  26803. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  26804. #define CAN0RX_PORT GPIO_PORTD_BASE
  26805. #define CAN0RX_PIN GPIO_PIN_0
  26806. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  26807. #define CAN0TX_PORT GPIO_PORTD_BASE
  26808. #define CAN0TX_PIN GPIO_PIN_1
  26809. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOD
  26810. #define CCP0_PORT GPIO_PORTD_BASE
  26811. #define CCP0_PIN GPIO_PIN_4
  26812. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  26813. #define CCP1_PORT GPIO_PORTA_BASE
  26814. #define CCP1_PIN GPIO_PIN_6
  26815. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOD
  26816. #define FAULT_PORT GPIO_PORTD_BASE
  26817. #define FAULT_PIN GPIO_PIN_6
  26818. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  26819. #define I2C0SCL_PORT GPIO_PORTB_BASE
  26820. #define I2C0SCL_PIN GPIO_PIN_2
  26821. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  26822. #define I2C0SDA_PORT GPIO_PORTB_BASE
  26823. #define I2C0SDA_PIN GPIO_PIN_3
  26824. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOD
  26825. #define IDX0_PORT GPIO_PORTD_BASE
  26826. #define IDX0_PIN GPIO_PIN_7
  26827. #define IDX1_PERIPH SYSCTL_PERIPH_GPIOF
  26828. #define IDX1_PORT GPIO_PORTF_BASE
  26829. #define IDX1_PIN GPIO_PIN_1
  26830. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  26831. #define LED0_PORT GPIO_PORTF_BASE
  26832. #define LED0_PIN GPIO_PIN_3
  26833. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  26834. #define LED1_PORT GPIO_PORTF_BASE
  26835. #define LED1_PIN GPIO_PIN_2
  26836. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  26837. #define PHA0_PORT GPIO_PORTC_BASE
  26838. #define PHA0_PIN GPIO_PIN_4
  26839. #define PHA1_PERIPH SYSCTL_PERIPH_GPIOE
  26840. #define PHA1_PORT GPIO_PORTE_BASE
  26841. #define PHA1_PIN GPIO_PIN_3
  26842. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  26843. #define PHB0_PORT GPIO_PORTC_BASE
  26844. #define PHB0_PIN GPIO_PIN_6
  26845. #define PHB1_PERIPH SYSCTL_PERIPH_GPIOE
  26846. #define PHB1_PORT GPIO_PORTE_BASE
  26847. #define PHB1_PIN GPIO_PIN_2
  26848. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  26849. #define PWM0_PORT GPIO_PORTF_BASE
  26850. #define PWM0_PIN GPIO_PIN_0
  26851. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOG
  26852. #define PWM1_PORT GPIO_PORTG_BASE
  26853. #define PWM1_PIN GPIO_PIN_1
  26854. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOB
  26855. #define PWM2_PORT GPIO_PORTB_BASE
  26856. #define PWM2_PIN GPIO_PIN_0
  26857. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOB
  26858. #define PWM3_PORT GPIO_PORTB_BASE
  26859. #define PWM3_PIN GPIO_PIN_1
  26860. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  26861. #define PWM4_PORT GPIO_PORTE_BASE
  26862. #define PWM4_PIN GPIO_PIN_0
  26863. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  26864. #define PWM5_PORT GPIO_PORTE_BASE
  26865. #define PWM5_PIN GPIO_PIN_1
  26866. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  26867. #define SSI0CLK_PORT GPIO_PORTA_BASE
  26868. #define SSI0CLK_PIN GPIO_PIN_2
  26869. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  26870. #define SSI0FSS_PORT GPIO_PORTA_BASE
  26871. #define SSI0FSS_PIN GPIO_PIN_3
  26872. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26873. #define SSI0RX_PORT GPIO_PORTA_BASE
  26874. #define SSI0RX_PIN GPIO_PIN_4
  26875. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26876. #define SSI0TX_PORT GPIO_PORTA_BASE
  26877. #define SSI0TX_PIN GPIO_PIN_5
  26878. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  26879. #define SWCLK_PORT GPIO_PORTC_BASE
  26880. #define SWCLK_PIN GPIO_PIN_0
  26881. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  26882. #define SWDIO_PORT GPIO_PORTC_BASE
  26883. #define SWDIO_PIN GPIO_PIN_1
  26884. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  26885. #define SWO_PORT GPIO_PORTC_BASE
  26886. #define SWO_PIN GPIO_PIN_3
  26887. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  26888. #define TCK_PORT GPIO_PORTC_BASE
  26889. #define TCK_PIN GPIO_PIN_0
  26890. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  26891. #define TDI_PORT GPIO_PORTC_BASE
  26892. #define TDI_PIN GPIO_PIN_2
  26893. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  26894. #define TDO_PORT GPIO_PORTC_BASE
  26895. #define TDO_PIN GPIO_PIN_3
  26896. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  26897. #define TMS_PORT GPIO_PORTC_BASE
  26898. #define TMS_PIN GPIO_PIN_1
  26899. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  26900. #define TRST_PORT GPIO_PORTB_BASE
  26901. #define TRST_PIN GPIO_PIN_7
  26902. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26903. #define U0RX_PORT GPIO_PORTA_BASE
  26904. #define U0RX_PIN GPIO_PIN_0
  26905. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26906. #define U0TX_PORT GPIO_PORTA_BASE
  26907. #define U0TX_PIN GPIO_PIN_1
  26908. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  26909. #define U1RX_PORT GPIO_PORTD_BASE
  26910. #define U1RX_PIN GPIO_PIN_2
  26911. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  26912. #define U1TX_PORT GPIO_PORTD_BASE
  26913. #define U1TX_PIN GPIO_PIN_3
  26914. #endif // PART_LM3S8962
  26915. //*****************************************************************************
  26916. //
  26917. // LM3S8970 Port/Pin Mapping Definitions
  26918. //
  26919. //*****************************************************************************
  26920. #ifdef PART_LM3S8970
  26921. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  26922. #define CAN0RX_PORT GPIO_PORTD_BASE
  26923. #define CAN0RX_PIN GPIO_PIN_0
  26924. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  26925. #define CAN0TX_PORT GPIO_PORTD_BASE
  26926. #define CAN0TX_PIN GPIO_PIN_1
  26927. #define CAN1RX_PERIPH SYSCTL_PERIPH_GPIOF
  26928. #define CAN1RX_PORT GPIO_PORTF_BASE
  26929. #define CAN1RX_PIN GPIO_PIN_0
  26930. #define CAN1TX_PERIPH SYSCTL_PERIPH_GPIOF
  26931. #define CAN1TX_PORT GPIO_PORTF_BASE
  26932. #define CAN1TX_PIN GPIO_PIN_1
  26933. #define CAN2RX_PERIPH SYSCTL_PERIPH_GPIOE
  26934. #define CAN2RX_PORT GPIO_PORTE_BASE
  26935. #define CAN2RX_PIN GPIO_PIN_4
  26936. #define CAN2TX_PERIPH SYSCTL_PERIPH_GPIOE
  26937. #define CAN2TX_PORT GPIO_PORTE_BASE
  26938. #define CAN2TX_PIN GPIO_PIN_5
  26939. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  26940. #define CCP0_PORT GPIO_PORTB_BASE
  26941. #define CCP0_PIN GPIO_PIN_0
  26942. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  26943. #define CCP1_PORT GPIO_PORTA_BASE
  26944. #define CCP1_PIN GPIO_PIN_6
  26945. #define I2C0SCL_PERIPH SYSCTL_PERIPH_GPIOB
  26946. #define I2C0SCL_PORT GPIO_PORTB_BASE
  26947. #define I2C0SCL_PIN GPIO_PIN_2
  26948. #define I2C0SDA_PERIPH SYSCTL_PERIPH_GPIOB
  26949. #define I2C0SDA_PORT GPIO_PORTB_BASE
  26950. #define I2C0SDA_PIN GPIO_PIN_3
  26951. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  26952. #define LED0_PORT GPIO_PORTF_BASE
  26953. #define LED0_PIN GPIO_PIN_3
  26954. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  26955. #define LED1_PORT GPIO_PORTF_BASE
  26956. #define LED1_PIN GPIO_PIN_2
  26957. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  26958. #define SSI0CLK_PORT GPIO_PORTA_BASE
  26959. #define SSI0CLK_PIN GPIO_PIN_2
  26960. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  26961. #define SSI0FSS_PORT GPIO_PORTA_BASE
  26962. #define SSI0FSS_PIN GPIO_PIN_3
  26963. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  26964. #define SSI0RX_PORT GPIO_PORTA_BASE
  26965. #define SSI0RX_PIN GPIO_PIN_4
  26966. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  26967. #define SSI0TX_PORT GPIO_PORTA_BASE
  26968. #define SSI0TX_PIN GPIO_PIN_5
  26969. #define SSI1CLK_PERIPH SYSCTL_PERIPH_GPIOE
  26970. #define SSI1CLK_PORT GPIO_PORTE_BASE
  26971. #define SSI1CLK_PIN GPIO_PIN_0
  26972. #define SSI1FSS_PERIPH SYSCTL_PERIPH_GPIOE
  26973. #define SSI1FSS_PORT GPIO_PORTE_BASE
  26974. #define SSI1FSS_PIN GPIO_PIN_1
  26975. #define SSI1RX_PERIPH SYSCTL_PERIPH_GPIOE
  26976. #define SSI1RX_PORT GPIO_PORTE_BASE
  26977. #define SSI1RX_PIN GPIO_PIN_2
  26978. #define SSI1TX_PERIPH SYSCTL_PERIPH_GPIOE
  26979. #define SSI1TX_PORT GPIO_PORTE_BASE
  26980. #define SSI1TX_PIN GPIO_PIN_3
  26981. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  26982. #define SWCLK_PORT GPIO_PORTC_BASE
  26983. #define SWCLK_PIN GPIO_PIN_0
  26984. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  26985. #define SWDIO_PORT GPIO_PORTC_BASE
  26986. #define SWDIO_PIN GPIO_PIN_1
  26987. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  26988. #define SWO_PORT GPIO_PORTC_BASE
  26989. #define SWO_PIN GPIO_PIN_3
  26990. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  26991. #define TCK_PORT GPIO_PORTC_BASE
  26992. #define TCK_PIN GPIO_PIN_0
  26993. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  26994. #define TDI_PORT GPIO_PORTC_BASE
  26995. #define TDI_PIN GPIO_PIN_2
  26996. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  26997. #define TDO_PORT GPIO_PORTC_BASE
  26998. #define TDO_PIN GPIO_PIN_3
  26999. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  27000. #define TMS_PORT GPIO_PORTC_BASE
  27001. #define TMS_PIN GPIO_PIN_1
  27002. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  27003. #define TRST_PORT GPIO_PORTB_BASE
  27004. #define TRST_PIN GPIO_PIN_7
  27005. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  27006. #define U0RX_PORT GPIO_PORTA_BASE
  27007. #define U0RX_PIN GPIO_PIN_0
  27008. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  27009. #define U0TX_PORT GPIO_PORTA_BASE
  27010. #define U0TX_PIN GPIO_PIN_1
  27011. #define U1RX_PERIPH SYSCTL_PERIPH_GPIOD
  27012. #define U1RX_PORT GPIO_PORTD_BASE
  27013. #define U1RX_PIN GPIO_PIN_2
  27014. #define U1TX_PERIPH SYSCTL_PERIPH_GPIOD
  27015. #define U1TX_PORT GPIO_PORTD_BASE
  27016. #define U1TX_PIN GPIO_PIN_3
  27017. #endif // PART_LM3S8970
  27018. //*****************************************************************************
  27019. //
  27020. // LM3S8971 Port/Pin Mapping Definitions
  27021. //
  27022. //*****************************************************************************
  27023. #ifdef PART_LM3S8971
  27024. #define C0O_PERIPH SYSCTL_PERIPH_GPIOC
  27025. #define C0O_PORT GPIO_PORTC_BASE
  27026. #define C0O_PIN GPIO_PIN_5
  27027. #define C0_MINUS_PERIPH SYSCTL_PERIPH_GPIOB
  27028. #define C0_MINUS_PORT GPIO_PORTB_BASE
  27029. #define C0_MINUS_PIN GPIO_PIN_4
  27030. #define C0_PLUS_PERIPH SYSCTL_PERIPH_GPIOB
  27031. #define C0_PLUS_PORT GPIO_PORTB_BASE
  27032. #define C0_PLUS_PIN GPIO_PIN_6
  27033. #define CAN0RX_PERIPH SYSCTL_PERIPH_GPIOD
  27034. #define CAN0RX_PORT GPIO_PORTD_BASE
  27035. #define CAN0RX_PIN GPIO_PIN_0
  27036. #define CAN0TX_PERIPH SYSCTL_PERIPH_GPIOD
  27037. #define CAN0TX_PORT GPIO_PORTD_BASE
  27038. #define CAN0TX_PIN GPIO_PIN_1
  27039. #define CCP0_PERIPH SYSCTL_PERIPH_GPIOB
  27040. #define CCP0_PORT GPIO_PORTB_BASE
  27041. #define CCP0_PIN GPIO_PIN_0
  27042. #define CCP1_PERIPH SYSCTL_PERIPH_GPIOA
  27043. #define CCP1_PORT GPIO_PORTA_BASE
  27044. #define CCP1_PIN GPIO_PIN_6
  27045. #define CCP2_PERIPH SYSCTL_PERIPH_GPIOB
  27046. #define CCP2_PORT GPIO_PORTB_BASE
  27047. #define CCP2_PIN GPIO_PIN_1
  27048. #define CCP3_PERIPH SYSCTL_PERIPH_GPIOC
  27049. #define CCP3_PORT GPIO_PORTC_BASE
  27050. #define CCP3_PIN GPIO_PIN_6
  27051. #define CCP4_PERIPH SYSCTL_PERIPH_GPIOA
  27052. #define CCP4_PORT GPIO_PORTA_BASE
  27053. #define CCP4_PIN GPIO_PIN_7
  27054. #define CCP5_PERIPH SYSCTL_PERIPH_GPIOB
  27055. #define CCP5_PORT GPIO_PORTB_BASE
  27056. #define CCP5_PIN GPIO_PIN_5
  27057. #define FAULT_PERIPH SYSCTL_PERIPH_GPIOB
  27058. #define FAULT_PORT GPIO_PORTB_BASE
  27059. #define FAULT_PIN GPIO_PIN_3
  27060. #define IDX0_PERIPH SYSCTL_PERIPH_GPIOB
  27061. #define IDX0_PORT GPIO_PORTB_BASE
  27062. #define IDX0_PIN GPIO_PIN_2
  27063. #define LED0_PERIPH SYSCTL_PERIPH_GPIOF
  27064. #define LED0_PORT GPIO_PORTF_BASE
  27065. #define LED0_PIN GPIO_PIN_3
  27066. #define LED1_PERIPH SYSCTL_PERIPH_GPIOF
  27067. #define LED1_PORT GPIO_PORTF_BASE
  27068. #define LED1_PIN GPIO_PIN_2
  27069. #define PHA0_PERIPH SYSCTL_PERIPH_GPIOC
  27070. #define PHA0_PORT GPIO_PORTC_BASE
  27071. #define PHA0_PIN GPIO_PIN_4
  27072. #define PHB0_PERIPH SYSCTL_PERIPH_GPIOC
  27073. #define PHB0_PORT GPIO_PORTC_BASE
  27074. #define PHB0_PIN GPIO_PIN_7
  27075. #define PWM0_PERIPH SYSCTL_PERIPH_GPIOF
  27076. #define PWM0_PORT GPIO_PORTF_BASE
  27077. #define PWM0_PIN GPIO_PIN_0
  27078. #define PWM1_PERIPH SYSCTL_PERIPH_GPIOF
  27079. #define PWM1_PORT GPIO_PORTF_BASE
  27080. #define PWM1_PIN GPIO_PIN_1
  27081. #define PWM2_PERIPH SYSCTL_PERIPH_GPIOD
  27082. #define PWM2_PORT GPIO_PORTD_BASE
  27083. #define PWM2_PIN GPIO_PIN_2
  27084. #define PWM3_PERIPH SYSCTL_PERIPH_GPIOD
  27085. #define PWM3_PORT GPIO_PORTD_BASE
  27086. #define PWM3_PIN GPIO_PIN_3
  27087. #define PWM4_PERIPH SYSCTL_PERIPH_GPIOE
  27088. #define PWM4_PORT GPIO_PORTE_BASE
  27089. #define PWM4_PIN GPIO_PIN_0
  27090. #define PWM5_PERIPH SYSCTL_PERIPH_GPIOE
  27091. #define PWM5_PORT GPIO_PORTE_BASE
  27092. #define PWM5_PIN GPIO_PIN_1
  27093. #define SSI0CLK_PERIPH SYSCTL_PERIPH_GPIOA
  27094. #define SSI0CLK_PORT GPIO_PORTA_BASE
  27095. #define SSI0CLK_PIN GPIO_PIN_2
  27096. #define SSI0FSS_PERIPH SYSCTL_PERIPH_GPIOA
  27097. #define SSI0FSS_PORT GPIO_PORTA_BASE
  27098. #define SSI0FSS_PIN GPIO_PIN_3
  27099. #define SSI0RX_PERIPH SYSCTL_PERIPH_GPIOA
  27100. #define SSI0RX_PORT GPIO_PORTA_BASE
  27101. #define SSI0RX_PIN GPIO_PIN_4
  27102. #define SSI0TX_PERIPH SYSCTL_PERIPH_GPIOA
  27103. #define SSI0TX_PORT GPIO_PORTA_BASE
  27104. #define SSI0TX_PIN GPIO_PIN_5
  27105. #define SWCLK_PERIPH SYSCTL_PERIPH_GPIOC
  27106. #define SWCLK_PORT GPIO_PORTC_BASE
  27107. #define SWCLK_PIN GPIO_PIN_0
  27108. #define SWDIO_PERIPH SYSCTL_PERIPH_GPIOC
  27109. #define SWDIO_PORT GPIO_PORTC_BASE
  27110. #define SWDIO_PIN GPIO_PIN_1
  27111. #define SWO_PERIPH SYSCTL_PERIPH_GPIOC
  27112. #define SWO_PORT GPIO_PORTC_BASE
  27113. #define SWO_PIN GPIO_PIN_3
  27114. #define TCK_PERIPH SYSCTL_PERIPH_GPIOC
  27115. #define TCK_PORT GPIO_PORTC_BASE
  27116. #define TCK_PIN GPIO_PIN_0
  27117. #define TDI_PERIPH SYSCTL_PERIPH_GPIOC
  27118. #define TDI_PORT GPIO_PORTC_BASE
  27119. #define TDI_PIN GPIO_PIN_2
  27120. #define TDO_PERIPH SYSCTL_PERIPH_GPIOC
  27121. #define TDO_PORT GPIO_PORTC_BASE
  27122. #define TDO_PIN GPIO_PIN_3
  27123. #define TMS_PERIPH SYSCTL_PERIPH_GPIOC
  27124. #define TMS_PORT GPIO_PORTC_BASE
  27125. #define TMS_PIN GPIO_PIN_1
  27126. #define TRST_PERIPH SYSCTL_PERIPH_GPIOB
  27127. #define TRST_PORT GPIO_PORTB_BASE
  27128. #define TRST_PIN GPIO_PIN_7
  27129. #define U0RX_PERIPH SYSCTL_PERIPH_GPIOA
  27130. #define U0RX_PORT GPIO_PORTA_BASE
  27131. #define U0RX_PIN GPIO_PIN_0
  27132. #define U0TX_PERIPH SYSCTL_PERIPH_GPIOA
  27133. #define U0TX_PORT GPIO_PORTA_BASE
  27134. #define U0TX_PIN GPIO_PIN_1
  27135. #endif // PART_LM3S8971
  27136. //*****************************************************************************
  27137. //
  27138. // LM3S8C62 Port/Pin Mapping Definitions
  27139. //
  27140. //*****************************************************************************
  27141. #ifdef PART_LM3S8C62
  27142. #define GPIO_PA0_U0RX 0x00000001
  27143. #define GPIO_PA0_U1RX 0x00000009
  27144. #define GPIO_PA1_U0TX 0x00000401
  27145. #define GPIO_PA1_U1TX 0x00000409
  27146. #define GPIO_PA2_SSI0CLK 0x00000801
  27147. #define GPIO_PA2_PWM4 0x00000804
  27148. #define GPIO_PA3_SSI0FSS 0x00000C01
  27149. #define GPIO_PA3_PWM5 0x00000C04
  27150. #define GPIO_PA4_SSI0RX 0x00001001
  27151. #define GPIO_PA4_CAN0RX 0x00001005
  27152. #define GPIO_PA5_SSI0TX 0x00001401
  27153. #define GPIO_PA5_CAN0TX 0x00001405
  27154. #define GPIO_PA6_CCP1 0x00001802
  27155. #define GPIO_PA6_PWM0 0x00001804
  27156. #define GPIO_PA6_PWM4 0x00001805
  27157. #define GPIO_PA6_CAN0RX 0x00001806
  27158. #define GPIO_PA7_CCP4 0x00001C02
  27159. #define GPIO_PA7_PWM1 0x00001C04
  27160. #define GPIO_PA7_PWM5 0x00001C05
  27161. #define GPIO_PA7_CAN0TX 0x00001C06
  27162. #define GPIO_PA7_CCP3 0x00001C07
  27163. #define GPIO_PB0_CCP0 0x00010001
  27164. #define GPIO_PB0_PWM2 0x00010002
  27165. #define GPIO_PB0_U1RX 0x00010005
  27166. #define GPIO_PB1_CCP2 0x00010401
  27167. #define GPIO_PB1_PWM3 0x00010402
  27168. #define GPIO_PB1_CCP1 0x00010404
  27169. #define GPIO_PB1_U1TX 0x00010405
  27170. #define GPIO_PB2_I2C0SCL 0x00010801
  27171. #define GPIO_PB2_IDX0 0x00010802
  27172. #define GPIO_PB2_CCP3 0x00010804
  27173. #define GPIO_PB2_CCP0 0x00010805
  27174. #define GPIO_PB3_I2C0SDA 0x00010C01
  27175. #define GPIO_PB3_FAULT0 0x00010C02
  27176. #define GPIO_PB3_FAULT3 0x00010C04
  27177. #define GPIO_PB4_CAN0RX 0x00011005
  27178. #define GPIO_PB4_IDX0 0x00011006
  27179. #define GPIO_PB4_U1RX 0x00011007
  27180. #define GPIO_PB5_C0O 0x00011401
  27181. #define GPIO_PB5_CCP5 0x00011402
  27182. #define GPIO_PB5_CCP6 0x00011403
  27183. #define GPIO_PB5_CCP0 0x00011404
  27184. #define GPIO_PB5_CAN0TX 0x00011405
  27185. #define GPIO_PB5_CCP2 0x00011406
  27186. #define GPIO_PB5_U1TX 0x00011407
  27187. #define GPIO_PB6_CCP1 0x00011801
  27188. #define GPIO_PB6_CCP7 0x00011802
  27189. #define GPIO_PB6_C0O 0x00011803
  27190. #define GPIO_PB6_FAULT1 0x00011804
  27191. #define GPIO_PB6_IDX0 0x00011805
  27192. #define GPIO_PB6_CCP5 0x00011806
  27193. #define GPIO_PB7_NMI 0x00011C04
  27194. #define GPIO_PC0_TCK 0x00020003
  27195. #define GPIO_PC0_SWCLK 0x00020003
  27196. #define GPIO_PC1_TMS 0x00020403
  27197. #define GPIO_PC1_SWDIO 0x00020403
  27198. #define GPIO_PC2_TDI 0x00020803
  27199. #define GPIO_PC3_SWO 0x00020C03
  27200. #define GPIO_PC3_TDO 0x00020C03
  27201. #define GPIO_PC4_CCP5 0x00021001
  27202. #define GPIO_PC4_PHA0 0x00021002
  27203. #define GPIO_PC4_CCP2 0x00021005
  27204. #define GPIO_PC4_CCP4 0x00021006
  27205. #define GPIO_PC4_CCP1 0x00021009
  27206. #define GPIO_PC5_CCP1 0x00021401
  27207. #define GPIO_PC5_C1O 0x00021402
  27208. #define GPIO_PC5_C0O 0x00021403
  27209. #define GPIO_PC5_FAULT2 0x00021404
  27210. #define GPIO_PC5_CCP3 0x00021405
  27211. #define GPIO_PC6_CCP3 0x00021801
  27212. #define GPIO_PC6_PHB0 0x00021802
  27213. #define GPIO_PC6_U1RX 0x00021805
  27214. #define GPIO_PC6_CCP0 0x00021806
  27215. #define GPIO_PC7_CCP4 0x00021C01
  27216. #define GPIO_PC7_PHB0 0x00021C02
  27217. #define GPIO_PC7_CCP0 0x00021C04
  27218. #define GPIO_PC7_U1TX 0x00021C05
  27219. #define GPIO_PC7_C1O 0x00021C07
  27220. #define GPIO_PD0_PWM0 0x00030001
  27221. #define GPIO_PD0_CAN0RX 0x00030002
  27222. #define GPIO_PD0_IDX0 0x00030003
  27223. #define GPIO_PD0_U1RX 0x00030005
  27224. #define GPIO_PD0_CCP6 0x00030006
  27225. #define GPIO_PD1_PWM1 0x00030401
  27226. #define GPIO_PD1_CAN0TX 0x00030402
  27227. #define GPIO_PD1_PHA0 0x00030403
  27228. #define GPIO_PD1_U1TX 0x00030405
  27229. #define GPIO_PD1_CCP7 0x00030406
  27230. #define GPIO_PD1_CCP2 0x0003040A
  27231. #define GPIO_PD1_PHB1 0x0003040B
  27232. #define GPIO_PD2_U1RX 0x00030801
  27233. #define GPIO_PD2_CCP6 0x00030802
  27234. #define GPIO_PD2_PWM2 0x00030803
  27235. #define GPIO_PD2_CCP5 0x00030804
  27236. #define GPIO_PD3_U1TX 0x00030C01
  27237. #define GPIO_PD3_CCP7 0x00030C02
  27238. #define GPIO_PD3_PWM3 0x00030C03
  27239. #define GPIO_PD3_CCP0 0x00030C04
  27240. #define GPIO_PD4_CCP0 0x00031001
  27241. #define GPIO_PD4_CCP3 0x00031002
  27242. #define GPIO_PD5_CCP2 0x00031401
  27243. #define GPIO_PD5_CCP4 0x00031402
  27244. #define GPIO_PD6_FAULT0 0x00031801
  27245. #define GPIO_PD7_IDX0 0x00031C01
  27246. #define GPIO_PD7_C0O 0x00031C02
  27247. #define GPIO_PD7_CCP1 0x00031C03
  27248. #define GPIO_PE0_PWM4 0x00040001
  27249. #define GPIO_PE0_CCP3 0x00040003
  27250. #define GPIO_PE1_PWM5 0x00040401
  27251. #define GPIO_PE1_FAULT0 0x00040403
  27252. #define GPIO_PE1_CCP2 0x00040404
  27253. #define GPIO_PE1_CCP6 0x00040405
  27254. #define GPIO_PE2_CCP4 0x00040801
  27255. #define GPIO_PE2_PHB1 0x00040803
  27256. #define GPIO_PE2_PHA0 0x00040804
  27257. #define GPIO_PE2_CCP2 0x00040805
  27258. #define GPIO_PE3_CCP1 0x00040C01
  27259. #define GPIO_PE3_PHA1 0x00040C03
  27260. #define GPIO_PE3_PHB0 0x00040C04
  27261. #define GPIO_PE3_CCP7 0x00040C05
  27262. #define GPIO_PE4_CCP3 0x00041001
  27263. #define GPIO_PE4_FAULT0 0x00041004
  27264. #define GPIO_PE4_CCP2 0x00041006
  27265. #define GPIO_PE5_CCP5 0x00041401
  27266. #define GPIO_PE6_PWM4 0x00041801
  27267. #define GPIO_PE6_C1O 0x00041802
  27268. #define GPIO_PE7_PWM5 0x00041C01
  27269. #define GPIO_PF0_PHB0 0x00050002
  27270. #define GPIO_PF0_PWM0 0x00050003
  27271. #define GPIO_PF0_U1DSR 0x00050009
  27272. #define GPIO_PF1_IDX1 0x00050402
  27273. #define GPIO_PF1_PWM1 0x00050403
  27274. #define GPIO_PF1_CCP3 0x0005040A
  27275. #define GPIO_PF2_LED1 0x00050801
  27276. #define GPIO_PF2_PWM4 0x00050802
  27277. #define GPIO_PF2_PWM2 0x00050804
  27278. #define GPIO_PF3_LED0 0x00050C01
  27279. #define GPIO_PF3_PWM5 0x00050C02
  27280. #define GPIO_PF3_PWM3 0x00050C04
  27281. #define GPIO_PG0_PWM0 0x00060002
  27282. #define GPIO_PG0_PWM4 0x00060004
  27283. #define GPIO_PG1_PWM1 0x00060402
  27284. #define GPIO_PG1_PWM5 0x00060404
  27285. #endif // PART_LM3S8C62
  27286. //*****************************************************************************
  27287. //
  27288. // LM3S8G62 Port/Pin Mapping Definitions
  27289. //
  27290. //*****************************************************************************
  27291. #ifdef PART_LM3S8G62
  27292. #define GPIO_PA0_U0RX 0x00000001
  27293. #define GPIO_PA0_U1RX 0x00000009
  27294. #define GPIO_PA1_U0TX 0x00000401
  27295. #define GPIO_PA1_U1TX 0x00000409
  27296. #define GPIO_PA2_SSI0CLK 0x00000801
  27297. #define GPIO_PA2_PWM4 0x00000804
  27298. #define GPIO_PA3_SSI0FSS 0x00000C01
  27299. #define GPIO_PA3_PWM5 0x00000C04
  27300. #define GPIO_PA4_SSI0RX 0x00001001
  27301. #define GPIO_PA4_CAN0RX 0x00001005
  27302. #define GPIO_PA5_SSI0TX 0x00001401
  27303. #define GPIO_PA5_CAN0TX 0x00001405
  27304. #define GPIO_PA6_CCP1 0x00001802
  27305. #define GPIO_PA6_PWM0 0x00001804
  27306. #define GPIO_PA6_PWM4 0x00001805
  27307. #define GPIO_PA6_CAN0RX 0x00001806
  27308. #define GPIO_PA7_CCP4 0x00001C02
  27309. #define GPIO_PA7_PWM1 0x00001C04
  27310. #define GPIO_PA7_PWM5 0x00001C05
  27311. #define GPIO_PA7_CAN0TX 0x00001C06
  27312. #define GPIO_PA7_CCP3 0x00001C07
  27313. #define GPIO_PB0_CCP0 0x00010001
  27314. #define GPIO_PB0_PWM2 0x00010002
  27315. #define GPIO_PB0_U1RX 0x00010005
  27316. #define GPIO_PB1_CCP2 0x00010401
  27317. #define GPIO_PB1_PWM3 0x00010402
  27318. #define GPIO_PB1_CCP1 0x00010404
  27319. #define GPIO_PB1_U1TX 0x00010405
  27320. #define GPIO_PB2_I2C0SCL 0x00010801
  27321. #define GPIO_PB2_IDX0 0x00010802
  27322. #define GPIO_PB2_CCP3 0x00010804
  27323. #define GPIO_PB2_CCP0 0x00010805
  27324. #define GPIO_PB3_I2C0SDA 0x00010C01
  27325. #define GPIO_PB3_FAULT0 0x00010C02
  27326. #define GPIO_PB3_FAULT3 0x00010C04
  27327. #define GPIO_PB4_CAN0RX 0x00011005
  27328. #define GPIO_PB4_IDX0 0x00011006
  27329. #define GPIO_PB4_U1RX 0x00011007
  27330. #define GPIO_PB5_C0O 0x00011401
  27331. #define GPIO_PB5_CCP5 0x00011402
  27332. #define GPIO_PB5_CCP6 0x00011403
  27333. #define GPIO_PB5_CCP0 0x00011404
  27334. #define GPIO_PB5_CAN0TX 0x00011405
  27335. #define GPIO_PB5_CCP2 0x00011406
  27336. #define GPIO_PB5_U1TX 0x00011407
  27337. #define GPIO_PB6_CCP1 0x00011801
  27338. #define GPIO_PB6_CCP7 0x00011802
  27339. #define GPIO_PB6_C0O 0x00011803
  27340. #define GPIO_PB6_FAULT1 0x00011804
  27341. #define GPIO_PB6_IDX0 0x00011805
  27342. #define GPIO_PB6_CCP5 0x00011806
  27343. #define GPIO_PB7_NMI 0x00011C04
  27344. #define GPIO_PC0_TCK 0x00020003
  27345. #define GPIO_PC0_SWCLK 0x00020003
  27346. #define GPIO_PC1_TMS 0x00020403
  27347. #define GPIO_PC1_SWDIO 0x00020403
  27348. #define GPIO_PC2_TDI 0x00020803
  27349. #define GPIO_PC3_SWO 0x00020C03
  27350. #define GPIO_PC3_TDO 0x00020C03
  27351. #define GPIO_PC4_CCP5 0x00021001
  27352. #define GPIO_PC4_PHA0 0x00021002
  27353. #define GPIO_PC4_CCP2 0x00021005
  27354. #define GPIO_PC4_CCP4 0x00021006
  27355. #define GPIO_PC4_CCP1 0x00021009
  27356. #define GPIO_PC5_CCP1 0x00021401
  27357. #define GPIO_PC5_C1O 0x00021402
  27358. #define GPIO_PC5_C0O 0x00021403
  27359. #define GPIO_PC5_FAULT2 0x00021404
  27360. #define GPIO_PC5_CCP3 0x00021405
  27361. #define GPIO_PC6_CCP3 0x00021801
  27362. #define GPIO_PC6_PHB0 0x00021802
  27363. #define GPIO_PC6_U1RX 0x00021805
  27364. #define GPIO_PC6_CCP0 0x00021806
  27365. #define GPIO_PC7_CCP4 0x00021C01
  27366. #define GPIO_PC7_PHB0 0x00021C02
  27367. #define GPIO_PC7_CCP0 0x00021C04
  27368. #define GPIO_PC7_U1TX 0x00021C05
  27369. #define GPIO_PC7_C1O 0x00021C07
  27370. #define GPIO_PD0_PWM0 0x00030001
  27371. #define GPIO_PD0_CAN0RX 0x00030002
  27372. #define GPIO_PD0_IDX0 0x00030003
  27373. #define GPIO_PD0_U1RX 0x00030005
  27374. #define GPIO_PD0_CCP6 0x00030006
  27375. #define GPIO_PD1_PWM1 0x00030401
  27376. #define GPIO_PD1_CAN0TX 0x00030402
  27377. #define GPIO_PD1_PHA0 0x00030403
  27378. #define GPIO_PD1_U1TX 0x00030405
  27379. #define GPIO_PD1_CCP7 0x00030406
  27380. #define GPIO_PD1_CCP2 0x0003040A
  27381. #define GPIO_PD1_PHB1 0x0003040B
  27382. #define GPIO_PD2_U1RX 0x00030801
  27383. #define GPIO_PD2_CCP6 0x00030802
  27384. #define GPIO_PD2_PWM2 0x00030803
  27385. #define GPIO_PD2_CCP5 0x00030804
  27386. #define GPIO_PD3_U1TX 0x00030C01
  27387. #define GPIO_PD3_CCP7 0x00030C02
  27388. #define GPIO_PD3_PWM3 0x00030C03
  27389. #define GPIO_PD3_CCP0 0x00030C04
  27390. #define GPIO_PD4_CCP0 0x00031001
  27391. #define GPIO_PD4_CCP3 0x00031002
  27392. #define GPIO_PD5_CCP2 0x00031401
  27393. #define GPIO_PD5_CCP4 0x00031402
  27394. #define GPIO_PD6_FAULT0 0x00031801
  27395. #define GPIO_PD7_IDX0 0x00031C01
  27396. #define GPIO_PD7_C0O 0x00031C02
  27397. #define GPIO_PD7_CCP1 0x00031C03
  27398. #define GPIO_PE0_PWM4 0x00040001
  27399. #define GPIO_PE0_CCP3 0x00040003
  27400. #define GPIO_PE1_PWM5 0x00040401
  27401. #define GPIO_PE1_FAULT0 0x00040403
  27402. #define GPIO_PE1_CCP2 0x00040404
  27403. #define GPIO_PE1_CCP6 0x00040405
  27404. #define GPIO_PE2_CCP4 0x00040801
  27405. #define GPIO_PE2_PHB1 0x00040803
  27406. #define GPIO_PE2_PHA0 0x00040804
  27407. #define GPIO_PE2_CCP2 0x00040805
  27408. #define GPIO_PE3_CCP1 0x00040C01
  27409. #define GPIO_PE3_PHA1 0x00040C03
  27410. #define GPIO_PE3_PHB0 0x00040C04
  27411. #define GPIO_PE3_CCP7 0x00040C05
  27412. #define GPIO_PE4_CCP3 0x00041001
  27413. #define GPIO_PE4_FAULT0 0x00041004
  27414. #define GPIO_PE4_CCP2 0x00041006
  27415. #define GPIO_PE5_CCP5 0x00041401
  27416. #define GPIO_PE6_PWM4 0x00041801
  27417. #define GPIO_PE6_C1O 0x00041802
  27418. #define GPIO_PE7_PWM5 0x00041C01
  27419. #define GPIO_PF0_PHB0 0x00050002
  27420. #define GPIO_PF0_PWM0 0x00050003
  27421. #define GPIO_PF0_U1DSR 0x00050009
  27422. #define GPIO_PF1_IDX1 0x00050402
  27423. #define GPIO_PF1_PWM1 0x00050403
  27424. #define GPIO_PF1_CCP3 0x0005040A
  27425. #define GPIO_PF2_LED1 0x00050801
  27426. #define GPIO_PF2_PWM4 0x00050802
  27427. #define GPIO_PF2_PWM2 0x00050804
  27428. #define GPIO_PF3_LED0 0x00050C01
  27429. #define GPIO_PF3_PWM5 0x00050C02
  27430. #define GPIO_PF3_PWM3 0x00050C04
  27431. #define GPIO_PG0_PWM0 0x00060002
  27432. #define GPIO_PG0_PWM4 0x00060004
  27433. #define GPIO_PG1_PWM1 0x00060402
  27434. #define GPIO_PG1_PWM5 0x00060404
  27435. #endif // PART_LM3S8G62
  27436. //*****************************************************************************
  27437. //
  27438. // LM3S9781 Port/Pin Mapping Definitions
  27439. //
  27440. //*****************************************************************************
  27441. #ifdef PART_LM3S9781
  27442. #define GPIO_PA0_U0RX 0x00000001
  27443. #define GPIO_PA0_I2C1SCL 0x00000008
  27444. #define GPIO_PA0_U1RX 0x00000009
  27445. #define GPIO_PA1_U0TX 0x00000401
  27446. #define GPIO_PA1_I2C1SDA 0x00000408
  27447. #define GPIO_PA1_U1TX 0x00000409
  27448. #define GPIO_PA2_SSI0CLK 0x00000801
  27449. #define GPIO_PA2_I2S0RXSD 0x00000809
  27450. #define GPIO_PA3_SSI0FSS 0x00000C01
  27451. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  27452. #define GPIO_PA4_SSI0RX 0x00001001
  27453. #define GPIO_PA4_CAN0RX 0x00001005
  27454. #define GPIO_PA4_I2S0TXSCK 0x00001009
  27455. #define GPIO_PA5_SSI0TX 0x00001401
  27456. #define GPIO_PA5_CAN0TX 0x00001405
  27457. #define GPIO_PA5_I2S0TXWS 0x00001409
  27458. #define GPIO_PA6_I2C1SCL 0x00001801
  27459. #define GPIO_PA6_CCP1 0x00001802
  27460. #define GPIO_PA6_CAN0RX 0x00001806
  27461. #define GPIO_PA6_USB0EPEN 0x00001808
  27462. #define GPIO_PA6_U1CTS 0x00001809
  27463. #define GPIO_PA7_I2C1SDA 0x00001C01
  27464. #define GPIO_PA7_CCP4 0x00001C02
  27465. #define GPIO_PA7_CAN0TX 0x00001C06
  27466. #define GPIO_PA7_CCP3 0x00001C07
  27467. #define GPIO_PA7_USB0PFLT 0x00001C08
  27468. #define GPIO_PA7_U1DCD 0x00001C09
  27469. #define GPIO_PB0_CCP0 0x00010001
  27470. #define GPIO_PB0_U1RX 0x00010005
  27471. #define GPIO_PB1_CCP2 0x00010401
  27472. #define GPIO_PB1_CCP1 0x00010404
  27473. #define GPIO_PB1_U1TX 0x00010405
  27474. #define GPIO_PB2_I2C0SCL 0x00010801
  27475. #define GPIO_PB2_CCP3 0x00010804
  27476. #define GPIO_PB2_CCP0 0x00010805
  27477. #define GPIO_PB2_USB0EPEN 0x00010808
  27478. #define GPIO_PB3_I2C0SDA 0x00010C01
  27479. #define GPIO_PB3_USB0PFLT 0x00010C08
  27480. #define GPIO_PB4_U2RX 0x00011004
  27481. #define GPIO_PB4_CAN0RX 0x00011005
  27482. #define GPIO_PB4_U1RX 0x00011007
  27483. #define GPIO_PB4_EPI0S23 0x00011008
  27484. #define GPIO_PB5_C0O 0x00011401
  27485. #define GPIO_PB5_CCP5 0x00011402
  27486. #define GPIO_PB5_CCP6 0x00011403
  27487. #define GPIO_PB5_CCP0 0x00011404
  27488. #define GPIO_PB5_CAN0TX 0x00011405
  27489. #define GPIO_PB5_CCP2 0x00011406
  27490. #define GPIO_PB5_U1TX 0x00011407
  27491. #define GPIO_PB5_EPI0S22 0x00011408
  27492. #define GPIO_PB6_CCP1 0x00011801
  27493. #define GPIO_PB6_CCP7 0x00011802
  27494. #define GPIO_PB6_C0O 0x00011803
  27495. #define GPIO_PB6_CCP5 0x00011806
  27496. #define GPIO_PB6_I2S0TXSCK 0x00011809
  27497. #define GPIO_PB7_NMI 0x00011C04
  27498. #define GPIO_PC0_TCK 0x00020003
  27499. #define GPIO_PC0_SWCLK 0x00020003
  27500. #define GPIO_PC1_TMS 0x00020403
  27501. #define GPIO_PC1_SWDIO 0x00020403
  27502. #define GPIO_PC2_TDI 0x00020803
  27503. #define GPIO_PC3_SWO 0x00020C03
  27504. #define GPIO_PC3_TDO 0x00020C03
  27505. #define GPIO_PC4_CCP5 0x00021001
  27506. #define GPIO_PC4_CCP2 0x00021005
  27507. #define GPIO_PC4_CCP4 0x00021006
  27508. #define GPIO_PC4_EPI0S2 0x00021008
  27509. #define GPIO_PC4_CCP1 0x00021009
  27510. #define GPIO_PC5_CCP1 0x00021401
  27511. #define GPIO_PC5_C1O 0x00021402
  27512. #define GPIO_PC5_C0O 0x00021403
  27513. #define GPIO_PC5_CCP3 0x00021405
  27514. #define GPIO_PC5_USB0EPEN 0x00021406
  27515. #define GPIO_PC5_EPI0S3 0x00021408
  27516. #define GPIO_PC6_CCP3 0x00021801
  27517. #define GPIO_PC6_C2O 0x00021803
  27518. #define GPIO_PC6_U1RX 0x00021805
  27519. #define GPIO_PC6_CCP0 0x00021806
  27520. #define GPIO_PC6_USB0PFLT 0x00021807
  27521. #define GPIO_PC6_EPI0S4 0x00021808
  27522. #define GPIO_PC7_CCP4 0x00021C01
  27523. #define GPIO_PC7_CCP0 0x00021C04
  27524. #define GPIO_PC7_U1TX 0x00021C05
  27525. #define GPIO_PC7_USB0PFLT 0x00021C06
  27526. #define GPIO_PC7_C1O 0x00021C07
  27527. #define GPIO_PC7_EPI0S5 0x00021C08
  27528. #define GPIO_PD0_CAN0RX 0x00030002
  27529. #define GPIO_PD0_U2RX 0x00030004
  27530. #define GPIO_PD0_U1RX 0x00030005
  27531. #define GPIO_PD0_CCP6 0x00030006
  27532. #define GPIO_PD0_I2S0RXSCK 0x00030008
  27533. #define GPIO_PD0_U1CTS 0x00030009
  27534. #define GPIO_PD1_CAN0TX 0x00030402
  27535. #define GPIO_PD1_U2TX 0x00030404
  27536. #define GPIO_PD1_U1TX 0x00030405
  27537. #define GPIO_PD1_CCP7 0x00030406
  27538. #define GPIO_PD1_I2S0RXWS 0x00030408
  27539. #define GPIO_PD1_U1DCD 0x00030409
  27540. #define GPIO_PD1_CCP2 0x0003040A
  27541. #define GPIO_PD2_U1RX 0x00030801
  27542. #define GPIO_PD2_CCP6 0x00030802
  27543. #define GPIO_PD2_CCP5 0x00030804
  27544. #define GPIO_PD2_EPI0S20 0x00030808
  27545. #define GPIO_PD3_U1TX 0x00030C01
  27546. #define GPIO_PD3_CCP7 0x00030C02
  27547. #define GPIO_PD3_CCP0 0x00030C04
  27548. #define GPIO_PD3_EPI0S21 0x00030C08
  27549. #define GPIO_PD4_CCP0 0x00031001
  27550. #define GPIO_PD4_CCP3 0x00031002
  27551. #define GPIO_PD4_I2S0RXSD 0x00031008
  27552. #define GPIO_PD4_U1RI 0x00031009
  27553. #define GPIO_PD4_EPI0S19 0x0003100A
  27554. #define GPIO_PD5_CCP2 0x00031401
  27555. #define GPIO_PD5_CCP4 0x00031402
  27556. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  27557. #define GPIO_PD5_U2RX 0x00031409
  27558. #define GPIO_PD5_EPI0S28 0x0003140A
  27559. #define GPIO_PD6_I2S0TXSCK 0x00031808
  27560. #define GPIO_PD6_U2TX 0x00031809
  27561. #define GPIO_PD6_EPI0S29 0x0003180A
  27562. #define GPIO_PD7_C0O 0x00031C02
  27563. #define GPIO_PD7_CCP1 0x00031C03
  27564. #define GPIO_PD7_I2S0TXWS 0x00031C08
  27565. #define GPIO_PD7_U1DTR 0x00031C09
  27566. #define GPIO_PD7_EPI0S30 0x00031C0A
  27567. #define GPIO_PE0_SSI1CLK 0x00040002
  27568. #define GPIO_PE0_CCP3 0x00040003
  27569. #define GPIO_PE0_EPI0S8 0x00040008
  27570. #define GPIO_PE0_USB0PFLT 0x00040009
  27571. #define GPIO_PE1_SSI1FSS 0x00040402
  27572. #define GPIO_PE1_CCP2 0x00040404
  27573. #define GPIO_PE1_CCP6 0x00040405
  27574. #define GPIO_PE1_EPI0S9 0x00040408
  27575. #define GPIO_PE2_CCP4 0x00040801
  27576. #define GPIO_PE2_SSI1RX 0x00040802
  27577. #define GPIO_PE2_CCP2 0x00040805
  27578. #define GPIO_PE2_EPI0S24 0x00040808
  27579. #define GPIO_PE3_CCP1 0x00040C01
  27580. #define GPIO_PE3_SSI1TX 0x00040C02
  27581. #define GPIO_PE3_CCP7 0x00040C05
  27582. #define GPIO_PE3_EPI0S25 0x00040C08
  27583. #define GPIO_PE4_CCP3 0x00041001
  27584. #define GPIO_PE4_CAN2RX 0x00041002
  27585. #define GPIO_PE4_U2TX 0x00041005
  27586. #define GPIO_PE4_CCP2 0x00041006
  27587. #define GPIO_PE4_I2S0TXWS 0x00041009
  27588. #define GPIO_PE5_CCP5 0x00041401
  27589. #define GPIO_PE5_CAN2TX 0x00041402
  27590. #define GPIO_PE5_I2S0TXSD 0x00041409
  27591. #define GPIO_PE6_C1O 0x00041802
  27592. #define GPIO_PE6_U1CTS 0x00041809
  27593. #define GPIO_PE7_C2O 0x00041C02
  27594. #define GPIO_PE7_U1DCD 0x00041C09
  27595. #define GPIO_PF0_CAN1RX 0x00050001
  27596. #define GPIO_PF0_I2S0TXSD 0x00050008
  27597. #define GPIO_PF0_U1DSR 0x00050009
  27598. #define GPIO_PF1_CAN1TX 0x00050401
  27599. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  27600. #define GPIO_PF1_U1RTS 0x00050409
  27601. #define GPIO_PF1_CCP3 0x0005040A
  27602. #define GPIO_PF2_LED1 0x00050801
  27603. #define GPIO_PF2_SSI1CLK 0x00050809
  27604. #define GPIO_PF3_LED0 0x00050C01
  27605. #define GPIO_PF3_SSI1FSS 0x00050C09
  27606. #define GPIO_PF4_CCP0 0x00051001
  27607. #define GPIO_PF4_C0O 0x00051002
  27608. #define GPIO_PF4_EPI0S12 0x00051008
  27609. #define GPIO_PF4_SSI1RX 0x00051009
  27610. #define GPIO_PF5_CCP2 0x00051401
  27611. #define GPIO_PF5_C1O 0x00051402
  27612. #define GPIO_PF5_EPI0S15 0x00051408
  27613. #define GPIO_PF5_SSI1TX 0x00051409
  27614. #define GPIO_PG0_U2RX 0x00060001
  27615. #define GPIO_PG0_I2C1SCL 0x00060003
  27616. #define GPIO_PG0_USB0EPEN 0x00060007
  27617. #define GPIO_PG0_EPI0S13 0x00060008
  27618. #define GPIO_PG1_U2TX 0x00060401
  27619. #define GPIO_PG1_I2C1SDA 0x00060403
  27620. #define GPIO_PG1_EPI0S14 0x00060408
  27621. #define GPIO_PG7_CCP5 0x00061C08
  27622. #define GPIO_PG7_EPI0S31 0x00061C09
  27623. #define GPIO_PH0_CCP6 0x00070001
  27624. #define GPIO_PH0_EPI0S6 0x00070008
  27625. #define GPIO_PH1_CCP7 0x00070401
  27626. #define GPIO_PH1_EPI0S7 0x00070408
  27627. #define GPIO_PH2_C1O 0x00070802
  27628. #define GPIO_PH2_EPI0S1 0x00070808
  27629. #define GPIO_PH3_USB0EPEN 0x00070C04
  27630. #define GPIO_PH3_EPI0S0 0x00070C08
  27631. #define GPIO_PH4_USB0PFLT 0x00071004
  27632. #define GPIO_PH4_EPI0S10 0x00071008
  27633. #define GPIO_PH4_SSI1CLK 0x0007100B
  27634. #define GPIO_PH5_EPI0S11 0x00071408
  27635. #define GPIO_PH5_SSI1FSS 0x0007140B
  27636. #define GPIO_PH6_EPI0S26 0x00071808
  27637. #define GPIO_PH6_SSI1RX 0x0007180B
  27638. #define GPIO_PH7_EPI0S27 0x00071C08
  27639. #define GPIO_PH7_SSI1TX 0x00071C0B
  27640. #define GPIO_PJ0_EPI0S16 0x00080008
  27641. #define GPIO_PJ0_I2C1SCL 0x0008000B
  27642. #define GPIO_PJ1_EPI0S17 0x00080408
  27643. #define GPIO_PJ1_USB0PFLT 0x00080409
  27644. #define GPIO_PJ1_I2C1SDA 0x0008040B
  27645. #define GPIO_PJ2_EPI0S18 0x00080808
  27646. #define GPIO_PJ2_CCP0 0x00080809
  27647. #define GPIO_PJ3_EPI0S19 0x00080C08
  27648. #define GPIO_PJ3_U1CTS 0x00080C09
  27649. #define GPIO_PJ3_CCP6 0x00080C0A
  27650. #define GPIO_PJ4_EPI0S28 0x00081008
  27651. #define GPIO_PJ4_U1DCD 0x00081009
  27652. #define GPIO_PJ4_CCP4 0x0008100A
  27653. #define GPIO_PJ5_EPI0S29 0x00081408
  27654. #define GPIO_PJ5_U1DSR 0x00081409
  27655. #define GPIO_PJ5_CCP2 0x0008140A
  27656. #define GPIO_PJ6_EPI0S30 0x00081808
  27657. #define GPIO_PJ6_U1RTS 0x00081809
  27658. #define GPIO_PJ6_CCP1 0x0008180A
  27659. #define GPIO_PJ7_U1DTR 0x00081C09
  27660. #define GPIO_PJ7_CCP0 0x00081C0A
  27661. #endif // PART_LM3S9781
  27662. //*****************************************************************************
  27663. //
  27664. // LM3S9790 Port/Pin Mapping Definitions
  27665. //
  27666. //*****************************************************************************
  27667. #ifdef PART_LM3S9790
  27668. #define GPIO_PA0_U0RX 0x00000001
  27669. #define GPIO_PA0_I2C1SCL 0x00000008
  27670. #define GPIO_PA0_U1RX 0x00000009
  27671. #define GPIO_PA1_U0TX 0x00000401
  27672. #define GPIO_PA1_I2C1SDA 0x00000408
  27673. #define GPIO_PA1_U1TX 0x00000409
  27674. #define GPIO_PA2_SSI0CLK 0x00000801
  27675. #define GPIO_PA2_I2S0RXSD 0x00000809
  27676. #define GPIO_PA3_SSI0FSS 0x00000C01
  27677. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  27678. #define GPIO_PA4_SSI0RX 0x00001001
  27679. #define GPIO_PA4_CAN0RX 0x00001005
  27680. #define GPIO_PA4_I2S0TXSCK 0x00001009
  27681. #define GPIO_PA5_SSI0TX 0x00001401
  27682. #define GPIO_PA5_CAN0TX 0x00001405
  27683. #define GPIO_PA5_I2S0TXWS 0x00001409
  27684. #define GPIO_PA6_I2C1SCL 0x00001801
  27685. #define GPIO_PA6_CCP1 0x00001802
  27686. #define GPIO_PA6_CAN0RX 0x00001806
  27687. #define GPIO_PA6_USB0EPEN 0x00001808
  27688. #define GPIO_PA6_U1CTS 0x00001809
  27689. #define GPIO_PA7_I2C1SDA 0x00001C01
  27690. #define GPIO_PA7_CCP4 0x00001C02
  27691. #define GPIO_PA7_CAN0TX 0x00001C06
  27692. #define GPIO_PA7_CCP3 0x00001C07
  27693. #define GPIO_PA7_USB0PFLT 0x00001C08
  27694. #define GPIO_PA7_U1DCD 0x00001C09
  27695. #define GPIO_PB0_CCP0 0x00010001
  27696. #define GPIO_PB0_U1RX 0x00010005
  27697. #define GPIO_PB1_CCP2 0x00010401
  27698. #define GPIO_PB1_CCP1 0x00010404
  27699. #define GPIO_PB1_U1TX 0x00010405
  27700. #define GPIO_PB2_I2C0SCL 0x00010801
  27701. #define GPIO_PB2_CCP3 0x00010804
  27702. #define GPIO_PB2_CCP0 0x00010805
  27703. #define GPIO_PB2_USB0EPEN 0x00010808
  27704. #define GPIO_PB3_I2C0SDA 0x00010C01
  27705. #define GPIO_PB3_USB0PFLT 0x00010C08
  27706. #define GPIO_PB4_U2RX 0x00011004
  27707. #define GPIO_PB4_CAN0RX 0x00011005
  27708. #define GPIO_PB4_U1RX 0x00011007
  27709. #define GPIO_PB4_EPI0S23 0x00011008
  27710. #define GPIO_PB5_C0O 0x00011401
  27711. #define GPIO_PB5_CCP5 0x00011402
  27712. #define GPIO_PB5_CCP6 0x00011403
  27713. #define GPIO_PB5_CCP0 0x00011404
  27714. #define GPIO_PB5_CAN0TX 0x00011405
  27715. #define GPIO_PB5_CCP2 0x00011406
  27716. #define GPIO_PB5_U1TX 0x00011407
  27717. #define GPIO_PB5_EPI0S22 0x00011408
  27718. #define GPIO_PB6_CCP1 0x00011801
  27719. #define GPIO_PB6_CCP7 0x00011802
  27720. #define GPIO_PB6_C0O 0x00011803
  27721. #define GPIO_PB6_CCP5 0x00011806
  27722. #define GPIO_PB6_I2S0TXSCK 0x00011809
  27723. #define GPIO_PB7_NMI 0x00011C04
  27724. #define GPIO_PC0_TCK 0x00020003
  27725. #define GPIO_PC0_SWCLK 0x00020003
  27726. #define GPIO_PC1_TMS 0x00020403
  27727. #define GPIO_PC1_SWDIO 0x00020403
  27728. #define GPIO_PC2_TDI 0x00020803
  27729. #define GPIO_PC3_SWO 0x00020C03
  27730. #define GPIO_PC3_TDO 0x00020C03
  27731. #define GPIO_PC4_CCP5 0x00021001
  27732. #define GPIO_PC4_CCP2 0x00021005
  27733. #define GPIO_PC4_CCP4 0x00021006
  27734. #define GPIO_PC4_EPI0S2 0x00021008
  27735. #define GPIO_PC4_CCP1 0x00021009
  27736. #define GPIO_PC5_CCP1 0x00021401
  27737. #define GPIO_PC5_C1O 0x00021402
  27738. #define GPIO_PC5_C0O 0x00021403
  27739. #define GPIO_PC5_CCP3 0x00021405
  27740. #define GPIO_PC5_USB0EPEN 0x00021406
  27741. #define GPIO_PC5_EPI0S3 0x00021408
  27742. #define GPIO_PC6_CCP3 0x00021801
  27743. #define GPIO_PC6_C2O 0x00021803
  27744. #define GPIO_PC6_U1RX 0x00021805
  27745. #define GPIO_PC6_CCP0 0x00021806
  27746. #define GPIO_PC6_USB0PFLT 0x00021807
  27747. #define GPIO_PC6_EPI0S4 0x00021808
  27748. #define GPIO_PC7_CCP4 0x00021C01
  27749. #define GPIO_PC7_CCP0 0x00021C04
  27750. #define GPIO_PC7_U1TX 0x00021C05
  27751. #define GPIO_PC7_USB0PFLT 0x00021C06
  27752. #define GPIO_PC7_C1O 0x00021C07
  27753. #define GPIO_PC7_EPI0S5 0x00021C08
  27754. #define GPIO_PD0_CAN0RX 0x00030002
  27755. #define GPIO_PD0_U2RX 0x00030004
  27756. #define GPIO_PD0_U1RX 0x00030005
  27757. #define GPIO_PD0_CCP6 0x00030006
  27758. #define GPIO_PD0_I2S0RXSCK 0x00030008
  27759. #define GPIO_PD0_U1CTS 0x00030009
  27760. #define GPIO_PD1_CAN0TX 0x00030402
  27761. #define GPIO_PD1_U2TX 0x00030404
  27762. #define GPIO_PD1_U1TX 0x00030405
  27763. #define GPIO_PD1_CCP7 0x00030406
  27764. #define GPIO_PD1_I2S0RXWS 0x00030408
  27765. #define GPIO_PD1_U1DCD 0x00030409
  27766. #define GPIO_PD1_CCP2 0x0003040A
  27767. #define GPIO_PD2_U1RX 0x00030801
  27768. #define GPIO_PD2_CCP6 0x00030802
  27769. #define GPIO_PD2_CCP5 0x00030804
  27770. #define GPIO_PD2_EPI0S20 0x00030808
  27771. #define GPIO_PD3_U1TX 0x00030C01
  27772. #define GPIO_PD3_CCP7 0x00030C02
  27773. #define GPIO_PD3_CCP0 0x00030C04
  27774. #define GPIO_PD3_EPI0S21 0x00030C08
  27775. #define GPIO_PD4_CCP0 0x00031001
  27776. #define GPIO_PD4_CCP3 0x00031002
  27777. #define GPIO_PD4_I2S0RXSD 0x00031008
  27778. #define GPIO_PD4_U1RI 0x00031009
  27779. #define GPIO_PD4_EPI0S19 0x0003100A
  27780. #define GPIO_PD5_CCP2 0x00031401
  27781. #define GPIO_PD5_CCP4 0x00031402
  27782. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  27783. #define GPIO_PD5_U2RX 0x00031409
  27784. #define GPIO_PD5_EPI0S28 0x0003140A
  27785. #define GPIO_PD6_I2S0TXSCK 0x00031808
  27786. #define GPIO_PD6_U2TX 0x00031809
  27787. #define GPIO_PD6_EPI0S29 0x0003180A
  27788. #define GPIO_PD7_C0O 0x00031C02
  27789. #define GPIO_PD7_CCP1 0x00031C03
  27790. #define GPIO_PD7_I2S0TXWS 0x00031C08
  27791. #define GPIO_PD7_U1DTR 0x00031C09
  27792. #define GPIO_PD7_EPI0S30 0x00031C0A
  27793. #define GPIO_PE0_SSI1CLK 0x00040002
  27794. #define GPIO_PE0_CCP3 0x00040003
  27795. #define GPIO_PE0_EPI0S8 0x00040008
  27796. #define GPIO_PE0_USB0PFLT 0x00040009
  27797. #define GPIO_PE1_SSI1FSS 0x00040402
  27798. #define GPIO_PE1_CCP2 0x00040404
  27799. #define GPIO_PE1_CCP6 0x00040405
  27800. #define GPIO_PE1_EPI0S9 0x00040408
  27801. #define GPIO_PE2_CCP4 0x00040801
  27802. #define GPIO_PE2_SSI1RX 0x00040802
  27803. #define GPIO_PE2_CCP2 0x00040805
  27804. #define GPIO_PE2_EPI0S24 0x00040808
  27805. #define GPIO_PE3_CCP1 0x00040C01
  27806. #define GPIO_PE3_SSI1TX 0x00040C02
  27807. #define GPIO_PE3_CCP7 0x00040C05
  27808. #define GPIO_PE3_EPI0S25 0x00040C08
  27809. #define GPIO_PE4_CCP3 0x00041001
  27810. #define GPIO_PE4_U2TX 0x00041005
  27811. #define GPIO_PE4_CCP2 0x00041006
  27812. #define GPIO_PE4_I2S0TXWS 0x00041009
  27813. #define GPIO_PE5_CCP5 0x00041401
  27814. #define GPIO_PE5_I2S0TXSD 0x00041409
  27815. #define GPIO_PE6_C1O 0x00041802
  27816. #define GPIO_PE6_U1CTS 0x00041809
  27817. #define GPIO_PE7_C2O 0x00041C02
  27818. #define GPIO_PE7_U1DCD 0x00041C09
  27819. #define GPIO_PF0_CAN1RX 0x00050001
  27820. #define GPIO_PF0_I2S0TXSD 0x00050008
  27821. #define GPIO_PF0_U1DSR 0x00050009
  27822. #define GPIO_PF1_CAN1TX 0x00050401
  27823. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  27824. #define GPIO_PF1_U1RTS 0x00050409
  27825. #define GPIO_PF1_CCP3 0x0005040A
  27826. #define GPIO_PF2_LED1 0x00050801
  27827. #define GPIO_PF2_SSI1CLK 0x00050809
  27828. #define GPIO_PF3_LED0 0x00050C01
  27829. #define GPIO_PF3_SSI1FSS 0x00050C09
  27830. #define GPIO_PF4_CCP0 0x00051001
  27831. #define GPIO_PF4_C0O 0x00051002
  27832. #define GPIO_PF4_EPI0S12 0x00051008
  27833. #define GPIO_PF4_SSI1RX 0x00051009
  27834. #define GPIO_PF5_CCP2 0x00051401
  27835. #define GPIO_PF5_C1O 0x00051402
  27836. #define GPIO_PF5_EPI0S15 0x00051408
  27837. #define GPIO_PF5_SSI1TX 0x00051409
  27838. #define GPIO_PG0_U2RX 0x00060001
  27839. #define GPIO_PG0_I2C1SCL 0x00060003
  27840. #define GPIO_PG0_USB0EPEN 0x00060007
  27841. #define GPIO_PG0_EPI0S13 0x00060008
  27842. #define GPIO_PG1_U2TX 0x00060401
  27843. #define GPIO_PG1_I2C1SDA 0x00060403
  27844. #define GPIO_PG1_EPI0S14 0x00060408
  27845. #define GPIO_PG7_CCP5 0x00061C08
  27846. #define GPIO_PG7_EPI0S31 0x00061C09
  27847. #define GPIO_PH0_CCP6 0x00070001
  27848. #define GPIO_PH0_EPI0S6 0x00070008
  27849. #define GPIO_PH1_CCP7 0x00070401
  27850. #define GPIO_PH1_EPI0S7 0x00070408
  27851. #define GPIO_PH2_C1O 0x00070802
  27852. #define GPIO_PH2_EPI0S1 0x00070808
  27853. #define GPIO_PH3_USB0EPEN 0x00070C04
  27854. #define GPIO_PH3_EPI0S0 0x00070C08
  27855. #define GPIO_PH4_USB0PFLT 0x00071004
  27856. #define GPIO_PH4_EPI0S10 0x00071008
  27857. #define GPIO_PH4_SSI1CLK 0x0007100B
  27858. #define GPIO_PH5_EPI0S11 0x00071408
  27859. #define GPIO_PH5_SSI1FSS 0x0007140B
  27860. #define GPIO_PH6_EPI0S26 0x00071808
  27861. #define GPIO_PH6_SSI1RX 0x0007180B
  27862. #define GPIO_PH7_EPI0S27 0x00071C08
  27863. #define GPIO_PH7_SSI1TX 0x00071C0B
  27864. #define GPIO_PJ0_EPI0S16 0x00080008
  27865. #define GPIO_PJ0_I2C1SCL 0x0008000B
  27866. #define GPIO_PJ1_EPI0S17 0x00080408
  27867. #define GPIO_PJ1_USB0PFLT 0x00080409
  27868. #define GPIO_PJ1_I2C1SDA 0x0008040B
  27869. #define GPIO_PJ2_EPI0S18 0x00080808
  27870. #define GPIO_PJ2_CCP0 0x00080809
  27871. #endif // PART_LM3S9790
  27872. //*****************************************************************************
  27873. //
  27874. // LM3S9792 Port/Pin Mapping Definitions
  27875. //
  27876. //*****************************************************************************
  27877. #ifdef PART_LM3S9792
  27878. #define GPIO_PA0_U0RX 0x00000001
  27879. #define GPIO_PA0_I2C1SCL 0x00000008
  27880. #define GPIO_PA0_U1RX 0x00000009
  27881. #define GPIO_PA1_U0TX 0x00000401
  27882. #define GPIO_PA1_I2C1SDA 0x00000408
  27883. #define GPIO_PA1_U1TX 0x00000409
  27884. #define GPIO_PA2_SSI0CLK 0x00000801
  27885. #define GPIO_PA2_PWM4 0x00000804
  27886. #define GPIO_PA2_I2S0RXSD 0x00000809
  27887. #define GPIO_PA3_SSI0FSS 0x00000C01
  27888. #define GPIO_PA3_PWM5 0x00000C04
  27889. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  27890. #define GPIO_PA4_SSI0RX 0x00001001
  27891. #define GPIO_PA4_PWM6 0x00001004
  27892. #define GPIO_PA4_CAN0RX 0x00001005
  27893. #define GPIO_PA4_I2S0TXSCK 0x00001009
  27894. #define GPIO_PA5_SSI0TX 0x00001401
  27895. #define GPIO_PA5_PWM7 0x00001404
  27896. #define GPIO_PA5_CAN0TX 0x00001405
  27897. #define GPIO_PA5_I2S0TXWS 0x00001409
  27898. #define GPIO_PA6_I2C1SCL 0x00001801
  27899. #define GPIO_PA6_CCP1 0x00001802
  27900. #define GPIO_PA6_PWM0 0x00001804
  27901. #define GPIO_PA6_PWM4 0x00001805
  27902. #define GPIO_PA6_CAN0RX 0x00001806
  27903. #define GPIO_PA6_USB0EPEN 0x00001808
  27904. #define GPIO_PA6_U1CTS 0x00001809
  27905. #define GPIO_PA7_I2C1SDA 0x00001C01
  27906. #define GPIO_PA7_CCP4 0x00001C02
  27907. #define GPIO_PA7_PWM1 0x00001C04
  27908. #define GPIO_PA7_PWM5 0x00001C05
  27909. #define GPIO_PA7_CAN0TX 0x00001C06
  27910. #define GPIO_PA7_CCP3 0x00001C07
  27911. #define GPIO_PA7_USB0PFLT 0x00001C08
  27912. #define GPIO_PA7_U1DCD 0x00001C09
  27913. #define GPIO_PB0_CCP0 0x00010001
  27914. #define GPIO_PB0_PWM2 0x00010002
  27915. #define GPIO_PB0_U1RX 0x00010005
  27916. #define GPIO_PB1_CCP2 0x00010401
  27917. #define GPIO_PB1_PWM3 0x00010402
  27918. #define GPIO_PB1_CCP1 0x00010404
  27919. #define GPIO_PB1_U1TX 0x00010405
  27920. #define GPIO_PB2_I2C0SCL 0x00010801
  27921. #define GPIO_PB2_IDX0 0x00010802
  27922. #define GPIO_PB2_CCP3 0x00010804
  27923. #define GPIO_PB2_CCP0 0x00010805
  27924. #define GPIO_PB2_USB0EPEN 0x00010808
  27925. #define GPIO_PB3_I2C0SDA 0x00010C01
  27926. #define GPIO_PB3_FAULT0 0x00010C02
  27927. #define GPIO_PB3_FAULT3 0x00010C04
  27928. #define GPIO_PB3_USB0PFLT 0x00010C08
  27929. #define GPIO_PB4_U2RX 0x00011004
  27930. #define GPIO_PB4_CAN0RX 0x00011005
  27931. #define GPIO_PB4_IDX0 0x00011006
  27932. #define GPIO_PB4_U1RX 0x00011007
  27933. #define GPIO_PB4_EPI0S23 0x00011008
  27934. #define GPIO_PB5_C0O 0x00011401
  27935. #define GPIO_PB5_CCP5 0x00011402
  27936. #define GPIO_PB5_CCP6 0x00011403
  27937. #define GPIO_PB5_CCP0 0x00011404
  27938. #define GPIO_PB5_CAN0TX 0x00011405
  27939. #define GPIO_PB5_CCP2 0x00011406
  27940. #define GPIO_PB5_U1TX 0x00011407
  27941. #define GPIO_PB5_EPI0S22 0x00011408
  27942. #define GPIO_PB6_CCP1 0x00011801
  27943. #define GPIO_PB6_CCP7 0x00011802
  27944. #define GPIO_PB6_C0O 0x00011803
  27945. #define GPIO_PB6_FAULT1 0x00011804
  27946. #define GPIO_PB6_IDX0 0x00011805
  27947. #define GPIO_PB6_CCP5 0x00011806
  27948. #define GPIO_PB6_I2S0TXSCK 0x00011809
  27949. #define GPIO_PB7_NMI 0x00011C04
  27950. #define GPIO_PC0_TCK 0x00020003
  27951. #define GPIO_PC0_SWCLK 0x00020003
  27952. #define GPIO_PC1_TMS 0x00020403
  27953. #define GPIO_PC1_SWDIO 0x00020403
  27954. #define GPIO_PC2_TDI 0x00020803
  27955. #define GPIO_PC3_SWO 0x00020C03
  27956. #define GPIO_PC3_TDO 0x00020C03
  27957. #define GPIO_PC4_CCP5 0x00021001
  27958. #define GPIO_PC4_PHA0 0x00021002
  27959. #define GPIO_PC4_PWM6 0x00021004
  27960. #define GPIO_PC4_CCP2 0x00021005
  27961. #define GPIO_PC4_CCP4 0x00021006
  27962. #define GPIO_PC4_EPI0S2 0x00021008
  27963. #define GPIO_PC4_CCP1 0x00021009
  27964. #define GPIO_PC5_CCP1 0x00021401
  27965. #define GPIO_PC5_C1O 0x00021402
  27966. #define GPIO_PC5_C0O 0x00021403
  27967. #define GPIO_PC5_FAULT2 0x00021404
  27968. #define GPIO_PC5_CCP3 0x00021405
  27969. #define GPIO_PC5_USB0EPEN 0x00021406
  27970. #define GPIO_PC5_EPI0S3 0x00021408
  27971. #define GPIO_PC6_CCP3 0x00021801
  27972. #define GPIO_PC6_PHB0 0x00021802
  27973. #define GPIO_PC6_C2O 0x00021803
  27974. #define GPIO_PC6_PWM7 0x00021804
  27975. #define GPIO_PC6_U1RX 0x00021805
  27976. #define GPIO_PC6_CCP0 0x00021806
  27977. #define GPIO_PC6_USB0PFLT 0x00021807
  27978. #define GPIO_PC6_EPI0S4 0x00021808
  27979. #define GPIO_PC7_CCP4 0x00021C01
  27980. #define GPIO_PC7_PHB0 0x00021C02
  27981. #define GPIO_PC7_CCP0 0x00021C04
  27982. #define GPIO_PC7_U1TX 0x00021C05
  27983. #define GPIO_PC7_USB0PFLT 0x00021C06
  27984. #define GPIO_PC7_C1O 0x00021C07
  27985. #define GPIO_PC7_EPI0S5 0x00021C08
  27986. #define GPIO_PD0_PWM0 0x00030001
  27987. #define GPIO_PD0_CAN0RX 0x00030002
  27988. #define GPIO_PD0_IDX0 0x00030003
  27989. #define GPIO_PD0_U2RX 0x00030004
  27990. #define GPIO_PD0_U1RX 0x00030005
  27991. #define GPIO_PD0_CCP6 0x00030006
  27992. #define GPIO_PD0_I2S0RXSCK 0x00030008
  27993. #define GPIO_PD0_U1CTS 0x00030009
  27994. #define GPIO_PD1_PWM1 0x00030401
  27995. #define GPIO_PD1_CAN0TX 0x00030402
  27996. #define GPIO_PD1_PHA0 0x00030403
  27997. #define GPIO_PD1_U2TX 0x00030404
  27998. #define GPIO_PD1_U1TX 0x00030405
  27999. #define GPIO_PD1_CCP7 0x00030406
  28000. #define GPIO_PD1_I2S0RXWS 0x00030408
  28001. #define GPIO_PD1_U1DCD 0x00030409
  28002. #define GPIO_PD1_CCP2 0x0003040A
  28003. #define GPIO_PD1_PHB1 0x0003040B
  28004. #define GPIO_PD2_U1RX 0x00030801
  28005. #define GPIO_PD2_CCP6 0x00030802
  28006. #define GPIO_PD2_PWM2 0x00030803
  28007. #define GPIO_PD2_CCP5 0x00030804
  28008. #define GPIO_PD2_EPI0S20 0x00030808
  28009. #define GPIO_PD3_U1TX 0x00030C01
  28010. #define GPIO_PD3_CCP7 0x00030C02
  28011. #define GPIO_PD3_PWM3 0x00030C03
  28012. #define GPIO_PD3_CCP0 0x00030C04
  28013. #define GPIO_PD3_EPI0S21 0x00030C08
  28014. #define GPIO_PD4_CCP0 0x00031001
  28015. #define GPIO_PD4_CCP3 0x00031002
  28016. #define GPIO_PD4_I2S0RXSD 0x00031008
  28017. #define GPIO_PD4_U1RI 0x00031009
  28018. #define GPIO_PD4_EPI0S19 0x0003100A
  28019. #define GPIO_PD5_CCP2 0x00031401
  28020. #define GPIO_PD5_CCP4 0x00031402
  28021. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  28022. #define GPIO_PD5_U2RX 0x00031409
  28023. #define GPIO_PD5_EPI0S28 0x0003140A
  28024. #define GPIO_PD6_FAULT0 0x00031801
  28025. #define GPIO_PD6_I2S0TXSCK 0x00031808
  28026. #define GPIO_PD6_U2TX 0x00031809
  28027. #define GPIO_PD6_EPI0S29 0x0003180A
  28028. #define GPIO_PD7_IDX0 0x00031C01
  28029. #define GPIO_PD7_C0O 0x00031C02
  28030. #define GPIO_PD7_CCP1 0x00031C03
  28031. #define GPIO_PD7_I2S0TXWS 0x00031C08
  28032. #define GPIO_PD7_U1DTR 0x00031C09
  28033. #define GPIO_PD7_EPI0S30 0x00031C0A
  28034. #define GPIO_PE0_PWM4 0x00040001
  28035. #define GPIO_PE0_SSI1CLK 0x00040002
  28036. #define GPIO_PE0_CCP3 0x00040003
  28037. #define GPIO_PE0_EPI0S8 0x00040008
  28038. #define GPIO_PE0_USB0PFLT 0x00040009
  28039. #define GPIO_PE1_PWM5 0x00040401
  28040. #define GPIO_PE1_SSI1FSS 0x00040402
  28041. #define GPIO_PE1_FAULT0 0x00040403
  28042. #define GPIO_PE1_CCP2 0x00040404
  28043. #define GPIO_PE1_CCP6 0x00040405
  28044. #define GPIO_PE1_EPI0S9 0x00040408
  28045. #define GPIO_PE2_CCP4 0x00040801
  28046. #define GPIO_PE2_SSI1RX 0x00040802
  28047. #define GPIO_PE2_PHB1 0x00040803
  28048. #define GPIO_PE2_PHA0 0x00040804
  28049. #define GPIO_PE2_CCP2 0x00040805
  28050. #define GPIO_PE2_EPI0S24 0x00040808
  28051. #define GPIO_PE3_CCP1 0x00040C01
  28052. #define GPIO_PE3_SSI1TX 0x00040C02
  28053. #define GPIO_PE3_PHA1 0x00040C03
  28054. #define GPIO_PE3_PHB0 0x00040C04
  28055. #define GPIO_PE3_CCP7 0x00040C05
  28056. #define GPIO_PE3_EPI0S25 0x00040C08
  28057. #define GPIO_PE4_CCP3 0x00041001
  28058. #define GPIO_PE4_FAULT0 0x00041004
  28059. #define GPIO_PE4_U2TX 0x00041005
  28060. #define GPIO_PE4_CCP2 0x00041006
  28061. #define GPIO_PE4_I2S0TXWS 0x00041009
  28062. #define GPIO_PE5_CCP5 0x00041401
  28063. #define GPIO_PE5_I2S0TXSD 0x00041409
  28064. #define GPIO_PE6_PWM4 0x00041801
  28065. #define GPIO_PE6_C1O 0x00041802
  28066. #define GPIO_PE6_U1CTS 0x00041809
  28067. #define GPIO_PE7_PWM5 0x00041C01
  28068. #define GPIO_PE7_C2O 0x00041C02
  28069. #define GPIO_PE7_U1DCD 0x00041C09
  28070. #define GPIO_PF0_CAN1RX 0x00050001
  28071. #define GPIO_PF0_PHB0 0x00050002
  28072. #define GPIO_PF0_PWM0 0x00050003
  28073. #define GPIO_PF0_I2S0TXSD 0x00050008
  28074. #define GPIO_PF0_U1DSR 0x00050009
  28075. #define GPIO_PF1_CAN1TX 0x00050401
  28076. #define GPIO_PF1_IDX1 0x00050402
  28077. #define GPIO_PF1_PWM1 0x00050403
  28078. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  28079. #define GPIO_PF1_U1RTS 0x00050409
  28080. #define GPIO_PF1_CCP3 0x0005040A
  28081. #define GPIO_PF2_LED1 0x00050801
  28082. #define GPIO_PF2_PWM4 0x00050802
  28083. #define GPIO_PF2_PWM2 0x00050804
  28084. #define GPIO_PF2_SSI1CLK 0x00050809
  28085. #define GPIO_PF3_LED0 0x00050C01
  28086. #define GPIO_PF3_PWM5 0x00050C02
  28087. #define GPIO_PF3_PWM3 0x00050C04
  28088. #define GPIO_PF3_SSI1FSS 0x00050C09
  28089. #define GPIO_PF4_CCP0 0x00051001
  28090. #define GPIO_PF4_C0O 0x00051002
  28091. #define GPIO_PF4_FAULT0 0x00051004
  28092. #define GPIO_PF4_EPI0S12 0x00051008
  28093. #define GPIO_PF4_SSI1RX 0x00051009
  28094. #define GPIO_PF5_CCP2 0x00051401
  28095. #define GPIO_PF5_C1O 0x00051402
  28096. #define GPIO_PF5_EPI0S15 0x00051408
  28097. #define GPIO_PF5_SSI1TX 0x00051409
  28098. #define GPIO_PG0_U2RX 0x00060001
  28099. #define GPIO_PG0_PWM0 0x00060002
  28100. #define GPIO_PG0_I2C1SCL 0x00060003
  28101. #define GPIO_PG0_PWM4 0x00060004
  28102. #define GPIO_PG0_USB0EPEN 0x00060007
  28103. #define GPIO_PG0_EPI0S13 0x00060008
  28104. #define GPIO_PG1_U2TX 0x00060401
  28105. #define GPIO_PG1_PWM1 0x00060402
  28106. #define GPIO_PG1_I2C1SDA 0x00060403
  28107. #define GPIO_PG1_PWM5 0x00060404
  28108. #define GPIO_PG1_EPI0S14 0x00060408
  28109. #define GPIO_PG7_PHB1 0x00061C01
  28110. #define GPIO_PG7_PWM7 0x00061C04
  28111. #define GPIO_PG7_CCP5 0x00061C08
  28112. #define GPIO_PG7_EPI0S31 0x00061C09
  28113. #define GPIO_PH0_CCP6 0x00070001
  28114. #define GPIO_PH0_PWM2 0x00070002
  28115. #define GPIO_PH0_EPI0S6 0x00070008
  28116. #define GPIO_PH0_PWM4 0x00070009
  28117. #define GPIO_PH1_CCP7 0x00070401
  28118. #define GPIO_PH1_PWM3 0x00070402
  28119. #define GPIO_PH1_EPI0S7 0x00070408
  28120. #define GPIO_PH1_PWM5 0x00070409
  28121. #define GPIO_PH2_IDX1 0x00070801
  28122. #define GPIO_PH2_C1O 0x00070802
  28123. #define GPIO_PH2_FAULT3 0x00070804
  28124. #define GPIO_PH2_EPI0S1 0x00070808
  28125. #define GPIO_PH3_PHB0 0x00070C01
  28126. #define GPIO_PH3_FAULT0 0x00070C02
  28127. #define GPIO_PH3_USB0EPEN 0x00070C04
  28128. #define GPIO_PH3_EPI0S0 0x00070C08
  28129. #define GPIO_PH4_USB0PFLT 0x00071004
  28130. #define GPIO_PH4_EPI0S10 0x00071008
  28131. #define GPIO_PH4_SSI1CLK 0x0007100B
  28132. #define GPIO_PH5_EPI0S11 0x00071408
  28133. #define GPIO_PH5_FAULT2 0x0007140A
  28134. #define GPIO_PH5_SSI1FSS 0x0007140B
  28135. #define GPIO_PH6_EPI0S26 0x00071808
  28136. #define GPIO_PH6_PWM4 0x0007180A
  28137. #define GPIO_PH6_SSI1RX 0x0007180B
  28138. #define GPIO_PH7_EPI0S27 0x00071C08
  28139. #define GPIO_PH7_PWM5 0x00071C0A
  28140. #define GPIO_PH7_SSI1TX 0x00071C0B
  28141. #define GPIO_PJ0_EPI0S16 0x00080008
  28142. #define GPIO_PJ0_PWM0 0x0008000A
  28143. #define GPIO_PJ0_I2C1SCL 0x0008000B
  28144. #define GPIO_PJ1_EPI0S17 0x00080408
  28145. #define GPIO_PJ1_USB0PFLT 0x00080409
  28146. #define GPIO_PJ1_PWM1 0x0008040A
  28147. #define GPIO_PJ1_I2C1SDA 0x0008040B
  28148. #define GPIO_PJ2_EPI0S18 0x00080808
  28149. #define GPIO_PJ2_CCP0 0x00080809
  28150. #define GPIO_PJ2_FAULT0 0x0008080A
  28151. #define GPIO_PJ3_EPI0S19 0x00080C08
  28152. #define GPIO_PJ3_U1CTS 0x00080C09
  28153. #define GPIO_PJ3_CCP6 0x00080C0A
  28154. #define GPIO_PJ4_EPI0S28 0x00081008
  28155. #define GPIO_PJ4_U1DCD 0x00081009
  28156. #define GPIO_PJ4_CCP4 0x0008100A
  28157. #define GPIO_PJ5_EPI0S29 0x00081408
  28158. #define GPIO_PJ5_U1DSR 0x00081409
  28159. #define GPIO_PJ5_CCP2 0x0008140A
  28160. #define GPIO_PJ6_EPI0S30 0x00081808
  28161. #define GPIO_PJ6_U1RTS 0x00081809
  28162. #define GPIO_PJ6_CCP1 0x0008180A
  28163. #define GPIO_PJ7_U1DTR 0x00081C09
  28164. #define GPIO_PJ7_CCP0 0x00081C0A
  28165. #endif // PART_LM3S9792
  28166. //*****************************************************************************
  28167. //
  28168. // LM3S9971 Port/Pin Mapping Definitions
  28169. //
  28170. //*****************************************************************************
  28171. #ifdef PART_LM3S9971
  28172. #define GPIO_PA0_U0RX 0x00000001
  28173. #define GPIO_PA0_I2C1SCL 0x00000008
  28174. #define GPIO_PA0_U1RX 0x00000009
  28175. #define GPIO_PA1_U0TX 0x00000401
  28176. #define GPIO_PA1_I2C1SDA 0x00000408
  28177. #define GPIO_PA1_U1TX 0x00000409
  28178. #define GPIO_PA2_SSI0CLK 0x00000801
  28179. #define GPIO_PA2_TXD2 0x00000803
  28180. #define GPIO_PA2_PWM4 0x00000804
  28181. #define GPIO_PA2_I2S0RXSD 0x00000809
  28182. #define GPIO_PA3_SSI0FSS 0x00000C01
  28183. #define GPIO_PA3_TXD1 0x00000C03
  28184. #define GPIO_PA3_PWM5 0x00000C04
  28185. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  28186. #define GPIO_PA4_SSI0RX 0x00001001
  28187. #define GPIO_PA4_TXD0 0x00001003
  28188. #define GPIO_PA4_CAN0RX 0x00001005
  28189. #define GPIO_PA4_I2S0TXSCK 0x00001009
  28190. #define GPIO_PA5_SSI0TX 0x00001401
  28191. #define GPIO_PA5_RXDV 0x00001403
  28192. #define GPIO_PA5_CAN0TX 0x00001405
  28193. #define GPIO_PA5_I2S0TXWS 0x00001409
  28194. #define GPIO_PA6_I2C1SCL 0x00001801
  28195. #define GPIO_PA6_CCP1 0x00001802
  28196. #define GPIO_PA6_RXCK 0x00001803
  28197. #define GPIO_PA6_PWM0 0x00001804
  28198. #define GPIO_PA6_PWM4 0x00001805
  28199. #define GPIO_PA6_CAN0RX 0x00001806
  28200. #define GPIO_PA6_USB0EPEN 0x00001808
  28201. #define GPIO_PA6_U1CTS 0x00001809
  28202. #define GPIO_PA7_I2C1SDA 0x00001C01
  28203. #define GPIO_PA7_CCP4 0x00001C02
  28204. #define GPIO_PA7_RXER 0x00001C03
  28205. #define GPIO_PA7_PWM1 0x00001C04
  28206. #define GPIO_PA7_PWM5 0x00001C05
  28207. #define GPIO_PA7_CAN0TX 0x00001C06
  28208. #define GPIO_PA7_CCP3 0x00001C07
  28209. #define GPIO_PA7_USB0PFLT 0x00001C08
  28210. #define GPIO_PA7_U1DCD 0x00001C09
  28211. #define GPIO_PB0_CCP0 0x00010001
  28212. #define GPIO_PB0_PWM2 0x00010002
  28213. #define GPIO_PB0_U1RX 0x00010005
  28214. #define GPIO_PB1_CCP2 0x00010401
  28215. #define GPIO_PB1_PWM3 0x00010402
  28216. #define GPIO_PB1_CCP1 0x00010404
  28217. #define GPIO_PB1_U1TX 0x00010405
  28218. #define GPIO_PB2_I2C0SCL 0x00010801
  28219. #define GPIO_PB2_IDX0 0x00010802
  28220. #define GPIO_PB2_CCP3 0x00010804
  28221. #define GPIO_PB2_CCP0 0x00010805
  28222. #define GPIO_PB2_USB0EPEN 0x00010808
  28223. #define GPIO_PB3_I2C0SDA 0x00010C01
  28224. #define GPIO_PB3_FAULT0 0x00010C02
  28225. #define GPIO_PB3_FAULT3 0x00010C04
  28226. #define GPIO_PB3_USB0PFLT 0x00010C08
  28227. #define GPIO_PB4_U2RX 0x00011004
  28228. #define GPIO_PB4_CAN0RX 0x00011005
  28229. #define GPIO_PB4_IDX0 0x00011006
  28230. #define GPIO_PB4_U1RX 0x00011007
  28231. #define GPIO_PB5_C0O 0x00011401
  28232. #define GPIO_PB5_CCP5 0x00011402
  28233. #define GPIO_PB5_CCP6 0x00011403
  28234. #define GPIO_PB5_CCP0 0x00011404
  28235. #define GPIO_PB5_CAN0TX 0x00011405
  28236. #define GPIO_PB5_CCP2 0x00011406
  28237. #define GPIO_PB5_U1TX 0x00011407
  28238. #define GPIO_PB6_CCP1 0x00011801
  28239. #define GPIO_PB6_CCP7 0x00011802
  28240. #define GPIO_PB6_C0O 0x00011803
  28241. #define GPIO_PB6_FAULT1 0x00011804
  28242. #define GPIO_PB6_IDX0 0x00011805
  28243. #define GPIO_PB6_CCP5 0x00011806
  28244. #define GPIO_PB6_I2S0TXSCK 0x00011809
  28245. #define GPIO_PB7_NMI 0x00011C04
  28246. #define GPIO_PB7_RXD1 0x00011C07
  28247. #define GPIO_PC0_TCK 0x00020003
  28248. #define GPIO_PC0_SWCLK 0x00020003
  28249. #define GPIO_PC1_TMS 0x00020403
  28250. #define GPIO_PC1_SWDIO 0x00020403
  28251. #define GPIO_PC2_TDI 0x00020803
  28252. #define GPIO_PC3_SWO 0x00020C03
  28253. #define GPIO_PC3_TDO 0x00020C03
  28254. #define GPIO_PC4_CCP5 0x00021001
  28255. #define GPIO_PC4_PHA0 0x00021002
  28256. #define GPIO_PC4_TXD3 0x00021003
  28257. #define GPIO_PC4_CCP2 0x00021005
  28258. #define GPIO_PC4_CCP4 0x00021006
  28259. #define GPIO_PC4_CCP1 0x00021009
  28260. #define GPIO_PC5_CCP1 0x00021401
  28261. #define GPIO_PC5_C1O 0x00021402
  28262. #define GPIO_PC5_C0O 0x00021403
  28263. #define GPIO_PC5_FAULT2 0x00021404
  28264. #define GPIO_PC5_CCP3 0x00021405
  28265. #define GPIO_PC5_USB0EPEN 0x00021406
  28266. #define GPIO_PC6_CCP3 0x00021801
  28267. #define GPIO_PC6_PHB0 0x00021802
  28268. #define GPIO_PC6_U1RX 0x00021805
  28269. #define GPIO_PC6_CCP0 0x00021806
  28270. #define GPIO_PC6_USB0PFLT 0x00021807
  28271. #define GPIO_PC7_CCP4 0x00021C01
  28272. #define GPIO_PC7_PHB0 0x00021C02
  28273. #define GPIO_PC7_CCP0 0x00021C04
  28274. #define GPIO_PC7_U1TX 0x00021C05
  28275. #define GPIO_PC7_USB0PFLT 0x00021C06
  28276. #define GPIO_PC7_C1O 0x00021C07
  28277. #define GPIO_PD0_PWM0 0x00030001
  28278. #define GPIO_PD0_CAN0RX 0x00030002
  28279. #define GPIO_PD0_IDX0 0x00030003
  28280. #define GPIO_PD0_U2RX 0x00030004
  28281. #define GPIO_PD0_U1RX 0x00030005
  28282. #define GPIO_PD0_CCP6 0x00030006
  28283. #define GPIO_PD0_RXDV 0x00030007
  28284. #define GPIO_PD0_I2S0RXSCK 0x00030008
  28285. #define GPIO_PD0_U1CTS 0x00030009
  28286. #define GPIO_PD1_PWM1 0x00030401
  28287. #define GPIO_PD1_CAN0TX 0x00030402
  28288. #define GPIO_PD1_PHA0 0x00030403
  28289. #define GPIO_PD1_U2TX 0x00030404
  28290. #define GPIO_PD1_U1TX 0x00030405
  28291. #define GPIO_PD1_CCP7 0x00030406
  28292. #define GPIO_PD1_TXER 0x00030407
  28293. #define GPIO_PD1_I2S0RXWS 0x00030408
  28294. #define GPIO_PD1_U1DCD 0x00030409
  28295. #define GPIO_PD1_CCP2 0x0003040A
  28296. #define GPIO_PD1_PHB1 0x0003040B
  28297. #define GPIO_PD2_U1RX 0x00030801
  28298. #define GPIO_PD2_CCP6 0x00030802
  28299. #define GPIO_PD2_PWM2 0x00030803
  28300. #define GPIO_PD2_CCP5 0x00030804
  28301. #define GPIO_PD3_U1TX 0x00030C01
  28302. #define GPIO_PD3_CCP7 0x00030C02
  28303. #define GPIO_PD3_PWM3 0x00030C03
  28304. #define GPIO_PD3_CCP0 0x00030C04
  28305. #define GPIO_PD4_CCP0 0x00031001
  28306. #define GPIO_PD4_CCP3 0x00031002
  28307. #define GPIO_PD4_TXD3 0x00031004
  28308. #define GPIO_PD4_I2S0RXSD 0x00031008
  28309. #define GPIO_PD4_U1RI 0x00031009
  28310. #define GPIO_PD5_CCP2 0x00031401
  28311. #define GPIO_PD5_CCP4 0x00031402
  28312. #define GPIO_PD5_TXD2 0x00031404
  28313. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  28314. #define GPIO_PD5_U2RX 0x00031409
  28315. #define GPIO_PD6_FAULT0 0x00031801
  28316. #define GPIO_PD6_TXD1 0x00031804
  28317. #define GPIO_PD6_I2S0TXSCK 0x00031808
  28318. #define GPIO_PD6_U2TX 0x00031809
  28319. #define GPIO_PD7_IDX0 0x00031C01
  28320. #define GPIO_PD7_C0O 0x00031C02
  28321. #define GPIO_PD7_CCP1 0x00031C03
  28322. #define GPIO_PD7_TXD0 0x00031C04
  28323. #define GPIO_PD7_I2S0TXWS 0x00031C08
  28324. #define GPIO_PD7_U1DTR 0x00031C09
  28325. #define GPIO_PE0_PWM4 0x00040001
  28326. #define GPIO_PE0_SSI1CLK 0x00040002
  28327. #define GPIO_PE0_CCP3 0x00040003
  28328. #define GPIO_PE0_USB0PFLT 0x00040009
  28329. #define GPIO_PE1_PWM5 0x00040401
  28330. #define GPIO_PE1_SSI1FSS 0x00040402
  28331. #define GPIO_PE1_FAULT0 0x00040403
  28332. #define GPIO_PE1_CCP2 0x00040404
  28333. #define GPIO_PE1_CCP6 0x00040405
  28334. #define GPIO_PE2_CCP4 0x00040801
  28335. #define GPIO_PE2_SSI1RX 0x00040802
  28336. #define GPIO_PE2_PHB1 0x00040803
  28337. #define GPIO_PE2_PHA0 0x00040804
  28338. #define GPIO_PE2_CCP2 0x00040805
  28339. #define GPIO_PE3_CCP1 0x00040C01
  28340. #define GPIO_PE3_SSI1TX 0x00040C02
  28341. #define GPIO_PE3_PHA1 0x00040C03
  28342. #define GPIO_PE3_PHB0 0x00040C04
  28343. #define GPIO_PE3_CCP7 0x00040C05
  28344. #define GPIO_PE4_CCP3 0x00041001
  28345. #define GPIO_PE4_FAULT0 0x00041004
  28346. #define GPIO_PE4_U2TX 0x00041005
  28347. #define GPIO_PE4_CCP2 0x00041006
  28348. #define GPIO_PE4_RXD0 0x00041007
  28349. #define GPIO_PE4_I2S0TXWS 0x00041009
  28350. #define GPIO_PE5_CCP5 0x00041401
  28351. #define GPIO_PE5_I2S0TXSD 0x00041409
  28352. #define GPIO_PE6_PWM4 0x00041801
  28353. #define GPIO_PE6_C1O 0x00041802
  28354. #define GPIO_PE6_U1CTS 0x00041809
  28355. #define GPIO_PE7_PWM5 0x00041C01
  28356. #define GPIO_PE7_U1DCD 0x00041C09
  28357. #define GPIO_PF0_CAN1RX 0x00050001
  28358. #define GPIO_PF0_PHB0 0x00050002
  28359. #define GPIO_PF0_PWM0 0x00050003
  28360. #define GPIO_PF0_RXCK 0x00050004
  28361. #define GPIO_PF0_I2S0TXSD 0x00050008
  28362. #define GPIO_PF0_U1DSR 0x00050009
  28363. #define GPIO_PF1_CAN1TX 0x00050401
  28364. #define GPIO_PF1_IDX1 0x00050402
  28365. #define GPIO_PF1_PWM1 0x00050403
  28366. #define GPIO_PF1_RXER 0x00050404
  28367. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  28368. #define GPIO_PF1_U1RTS 0x00050409
  28369. #define GPIO_PF1_CCP3 0x0005040A
  28370. #define GPIO_PF2_PWM4 0x00050802
  28371. #define GPIO_PF2_PHYINT 0x00050803
  28372. #define GPIO_PF2_PWM2 0x00050804
  28373. #define GPIO_PF2_SSI1CLK 0x00050809
  28374. #define GPIO_PF3_PWM5 0x00050C02
  28375. #define GPIO_PF3_MDC 0x00050C03
  28376. #define GPIO_PF3_PWM3 0x00050C04
  28377. #define GPIO_PF3_SSI1FSS 0x00050C09
  28378. #define GPIO_PF4_CCP0 0x00051001
  28379. #define GPIO_PF4_C0O 0x00051002
  28380. #define GPIO_PF4_MDIO 0x00051003
  28381. #define GPIO_PF4_FAULT0 0x00051004
  28382. #define GPIO_PF4_SSI1RX 0x00051009
  28383. #define GPIO_PF5_CCP2 0x00051401
  28384. #define GPIO_PF5_C1O 0x00051402
  28385. #define GPIO_PF5_RXD3 0x00051403
  28386. #define GPIO_PF5_SSI1TX 0x00051409
  28387. #define GPIO_PF6_CCP1 0x00051801
  28388. #define GPIO_PF6_RXD2 0x00051803
  28389. #define GPIO_PF6_PHA0 0x00051804
  28390. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  28391. #define GPIO_PF6_U1RTS 0x0005180A
  28392. #define GPIO_PF7_CCP4 0x00051C01
  28393. #define GPIO_PF7_RXD1 0x00051C03
  28394. #define GPIO_PF7_PHB0 0x00051C04
  28395. #define GPIO_PF7_FAULT1 0x00051C09
  28396. #define GPIO_PG0_U2RX 0x00060001
  28397. #define GPIO_PG0_PWM0 0x00060002
  28398. #define GPIO_PG0_I2C1SCL 0x00060003
  28399. #define GPIO_PG0_PWM4 0x00060004
  28400. #define GPIO_PG0_USB0EPEN 0x00060007
  28401. #define GPIO_PG1_U2TX 0x00060401
  28402. #define GPIO_PG1_PWM1 0x00060402
  28403. #define GPIO_PG1_I2C1SDA 0x00060403
  28404. #define GPIO_PG1_PWM5 0x00060404
  28405. #define GPIO_PG2_PWM0 0x00060801
  28406. #define GPIO_PG2_COL 0x00060803
  28407. #define GPIO_PG2_FAULT0 0x00060804
  28408. #define GPIO_PG2_IDX1 0x00060808
  28409. #define GPIO_PG2_I2S0RXSD 0x00060809
  28410. #define GPIO_PG3_PWM1 0x00060C01
  28411. #define GPIO_PG3_CRS 0x00060C03
  28412. #define GPIO_PG3_FAULT2 0x00060C04
  28413. #define GPIO_PG3_FAULT0 0x00060C08
  28414. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  28415. #define GPIO_PG4_CCP3 0x00061001
  28416. #define GPIO_PG4_RXD0 0x00061003
  28417. #define GPIO_PG4_FAULT1 0x00061004
  28418. #define GPIO_PG4_U1RI 0x0006100A
  28419. #define GPIO_PG5_CCP5 0x00061401
  28420. #define GPIO_PG5_TXEN 0x00061403
  28421. #define GPIO_PG5_IDX0 0x00061404
  28422. #define GPIO_PG5_FAULT1 0x00061405
  28423. #define GPIO_PG5_I2S0RXSCK 0x00061409
  28424. #define GPIO_PG5_U1DTR 0x0006140A
  28425. #define GPIO_PG6_PHA1 0x00061801
  28426. #define GPIO_PG6_TXCK 0x00061803
  28427. #define GPIO_PG6_FAULT1 0x00061808
  28428. #define GPIO_PG6_I2S0RXWS 0x00061809
  28429. #define GPIO_PG6_U1RI 0x0006180A
  28430. #define GPIO_PG7_PHB1 0x00061C01
  28431. #define GPIO_PG7_TXER 0x00061C03
  28432. #define GPIO_PG7_CCP5 0x00061C08
  28433. #define GPIO_PH0_CCP6 0x00070001
  28434. #define GPIO_PH0_PWM2 0x00070002
  28435. #define GPIO_PH0_PWM4 0x00070009
  28436. #define GPIO_PH1_CCP7 0x00070401
  28437. #define GPIO_PH1_PWM3 0x00070402
  28438. #define GPIO_PH1_PWM5 0x00070409
  28439. #define GPIO_PH2_IDX1 0x00070801
  28440. #define GPIO_PH2_C1O 0x00070802
  28441. #define GPIO_PH2_FAULT3 0x00070804
  28442. #define GPIO_PH2_TXD3 0x00070809
  28443. #define GPIO_PH3_PHB0 0x00070C01
  28444. #define GPIO_PH3_FAULT0 0x00070C02
  28445. #define GPIO_PH3_USB0EPEN 0x00070C04
  28446. #define GPIO_PH3_TXD2 0x00070C09
  28447. #define GPIO_PH4_USB0PFLT 0x00071004
  28448. #define GPIO_PH4_TXD1 0x00071009
  28449. #define GPIO_PH4_SSI1CLK 0x0007100B
  28450. #define GPIO_PH5_TXD0 0x00071409
  28451. #define GPIO_PH5_FAULT2 0x0007140A
  28452. #define GPIO_PH5_SSI1FSS 0x0007140B
  28453. #define GPIO_PH6_RXDV 0x00071809
  28454. #define GPIO_PH6_PWM4 0x0007180A
  28455. #define GPIO_PH6_SSI1RX 0x0007180B
  28456. #define GPIO_PH7_RXCK 0x00071C03
  28457. #define GPIO_PH7_PWM5 0x00071C0A
  28458. #define GPIO_PH7_SSI1TX 0x00071C0B
  28459. #define GPIO_PJ0_RXER 0x00080003
  28460. #define GPIO_PJ0_PWM0 0x0008000A
  28461. #define GPIO_PJ0_I2C1SCL 0x0008000B
  28462. #define GPIO_PJ1_USB0PFLT 0x00080409
  28463. #define GPIO_PJ1_PWM1 0x0008040A
  28464. #define GPIO_PJ1_I2C1SDA 0x0008040B
  28465. #define GPIO_PJ2_CCP0 0x00080809
  28466. #define GPIO_PJ2_FAULT0 0x0008080A
  28467. #define GPIO_PJ3_U1CTS 0x00080C09
  28468. #define GPIO_PJ3_CCP6 0x00080C0A
  28469. #define GPIO_PJ4_U1DCD 0x00081009
  28470. #define GPIO_PJ4_CCP4 0x0008100A
  28471. #define GPIO_PJ5_U1DSR 0x00081409
  28472. #define GPIO_PJ5_CCP2 0x0008140A
  28473. #define GPIO_PJ6_U1RTS 0x00081809
  28474. #define GPIO_PJ6_CCP1 0x0008180A
  28475. #define GPIO_PJ7_U1DTR 0x00081C09
  28476. #define GPIO_PJ7_CCP0 0x00081C0A
  28477. #endif // PART_LM3S9971
  28478. //*****************************************************************************
  28479. //
  28480. // LM3S9997 Port/Pin Mapping Definitions
  28481. //
  28482. //*****************************************************************************
  28483. #ifdef PART_LM3S9997
  28484. #define GPIO_PA0_U0RX 0x00000001
  28485. #define GPIO_PA0_I2C1SCL 0x00000008
  28486. #define GPIO_PA0_U1RX 0x00000009
  28487. #define GPIO_PA1_U0TX 0x00000401
  28488. #define GPIO_PA1_I2C1SDA 0x00000408
  28489. #define GPIO_PA1_U1TX 0x00000409
  28490. #define GPIO_PA2_SSI0CLK 0x00000801
  28491. #define GPIO_PA2_PWM4 0x00000804
  28492. #define GPIO_PA2_I2S0RXSD 0x00000809
  28493. #define GPIO_PA3_SSI0FSS 0x00000C01
  28494. #define GPIO_PA3_PWM5 0x00000C04
  28495. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  28496. #define GPIO_PA4_SSI0RX 0x00001001
  28497. #define GPIO_PA4_CAN0RX 0x00001005
  28498. #define GPIO_PA4_I2S0TXSCK 0x00001009
  28499. #define GPIO_PA5_SSI0TX 0x00001401
  28500. #define GPIO_PA5_CAN0TX 0x00001405
  28501. #define GPIO_PA5_I2S0TXWS 0x00001409
  28502. #define GPIO_PA6_I2C1SCL 0x00001801
  28503. #define GPIO_PA6_CCP1 0x00001802
  28504. #define GPIO_PA6_PWM0 0x00001804
  28505. #define GPIO_PA6_PWM4 0x00001805
  28506. #define GPIO_PA6_CAN0RX 0x00001806
  28507. #define GPIO_PA6_USB0EPEN 0x00001808
  28508. #define GPIO_PA6_U1CTS 0x00001809
  28509. #define GPIO_PA7_I2C1SDA 0x00001C01
  28510. #define GPIO_PA7_CCP4 0x00001C02
  28511. #define GPIO_PA7_PWM1 0x00001C04
  28512. #define GPIO_PA7_PWM5 0x00001C05
  28513. #define GPIO_PA7_CAN0TX 0x00001C06
  28514. #define GPIO_PA7_CCP3 0x00001C07
  28515. #define GPIO_PA7_USB0PFLT 0x00001C08
  28516. #define GPIO_PA7_U1DCD 0x00001C09
  28517. #define GPIO_PB0_CCP0 0x00010001
  28518. #define GPIO_PB0_PWM2 0x00010002
  28519. #define GPIO_PB0_U1RX 0x00010005
  28520. #define GPIO_PB1_CCP2 0x00010401
  28521. #define GPIO_PB1_PWM3 0x00010402
  28522. #define GPIO_PB1_CCP1 0x00010404
  28523. #define GPIO_PB1_U1TX 0x00010405
  28524. #define GPIO_PB2_I2C0SCL 0x00010801
  28525. #define GPIO_PB2_IDX0 0x00010802
  28526. #define GPIO_PB2_CCP3 0x00010804
  28527. #define GPIO_PB2_CCP0 0x00010805
  28528. #define GPIO_PB2_USB0EPEN 0x00010808
  28529. #define GPIO_PB3_I2C0SDA 0x00010C01
  28530. #define GPIO_PB3_FAULT0 0x00010C02
  28531. #define GPIO_PB3_FAULT3 0x00010C04
  28532. #define GPIO_PB3_USB0PFLT 0x00010C08
  28533. #define GPIO_PB4_U2RX 0x00011004
  28534. #define GPIO_PB4_CAN0RX 0x00011005
  28535. #define GPIO_PB4_IDX0 0x00011006
  28536. #define GPIO_PB4_U1RX 0x00011007
  28537. #define GPIO_PB5_C0O 0x00011401
  28538. #define GPIO_PB5_CCP5 0x00011402
  28539. #define GPIO_PB5_CCP6 0x00011403
  28540. #define GPIO_PB5_CCP0 0x00011404
  28541. #define GPIO_PB5_CAN0TX 0x00011405
  28542. #define GPIO_PB5_CCP2 0x00011406
  28543. #define GPIO_PB5_U1TX 0x00011407
  28544. #define GPIO_PB6_CCP1 0x00011801
  28545. #define GPIO_PB6_CCP7 0x00011802
  28546. #define GPIO_PB6_C0O 0x00011803
  28547. #define GPIO_PB6_FAULT1 0x00011804
  28548. #define GPIO_PB6_IDX0 0x00011805
  28549. #define GPIO_PB6_CCP5 0x00011806
  28550. #define GPIO_PB6_I2S0TXSCK 0x00011809
  28551. #define GPIO_PB7_NMI 0x00011C04
  28552. #define GPIO_PC0_TCK 0x00020003
  28553. #define GPIO_PC0_SWCLK 0x00020003
  28554. #define GPIO_PC1_TMS 0x00020403
  28555. #define GPIO_PC1_SWDIO 0x00020403
  28556. #define GPIO_PC2_TDI 0x00020803
  28557. #define GPIO_PC3_SWO 0x00020C03
  28558. #define GPIO_PC3_TDO 0x00020C03
  28559. #define GPIO_PC4_CCP5 0x00021001
  28560. #define GPIO_PC4_PHA0 0x00021002
  28561. #define GPIO_PC4_CCP2 0x00021005
  28562. #define GPIO_PC4_CCP4 0x00021006
  28563. #define GPIO_PC4_CCP1 0x00021009
  28564. #define GPIO_PC5_CCP1 0x00021401
  28565. #define GPIO_PC5_C1O 0x00021402
  28566. #define GPIO_PC5_C0O 0x00021403
  28567. #define GPIO_PC5_FAULT2 0x00021404
  28568. #define GPIO_PC5_CCP3 0x00021405
  28569. #define GPIO_PC5_USB0EPEN 0x00021406
  28570. #define GPIO_PC6_CCP3 0x00021801
  28571. #define GPIO_PC6_PHB0 0x00021802
  28572. #define GPIO_PC6_U1RX 0x00021805
  28573. #define GPIO_PC6_CCP0 0x00021806
  28574. #define GPIO_PC6_USB0PFLT 0x00021807
  28575. #define GPIO_PC7_CCP4 0x00021C01
  28576. #define GPIO_PC7_PHB0 0x00021C02
  28577. #define GPIO_PC7_CCP0 0x00021C04
  28578. #define GPIO_PC7_U1TX 0x00021C05
  28579. #define GPIO_PC7_USB0PFLT 0x00021C06
  28580. #define GPIO_PC7_C1O 0x00021C07
  28581. #define GPIO_PD0_PWM0 0x00030001
  28582. #define GPIO_PD0_CAN0RX 0x00030002
  28583. #define GPIO_PD0_IDX0 0x00030003
  28584. #define GPIO_PD0_U2RX 0x00030004
  28585. #define GPIO_PD0_U1RX 0x00030005
  28586. #define GPIO_PD0_CCP6 0x00030006
  28587. #define GPIO_PD0_I2S0RXSCK 0x00030008
  28588. #define GPIO_PD0_U1CTS 0x00030009
  28589. #define GPIO_PD1_PWM1 0x00030401
  28590. #define GPIO_PD1_CAN0TX 0x00030402
  28591. #define GPIO_PD1_PHA0 0x00030403
  28592. #define GPIO_PD1_U2TX 0x00030404
  28593. #define GPIO_PD1_U1TX 0x00030405
  28594. #define GPIO_PD1_CCP7 0x00030406
  28595. #define GPIO_PD1_I2S0RXWS 0x00030408
  28596. #define GPIO_PD1_U1DCD 0x00030409
  28597. #define GPIO_PD1_CCP2 0x0003040A
  28598. #define GPIO_PD1_PHB1 0x0003040B
  28599. #define GPIO_PD2_U1RX 0x00030801
  28600. #define GPIO_PD2_CCP6 0x00030802
  28601. #define GPIO_PD2_PWM2 0x00030803
  28602. #define GPIO_PD2_CCP5 0x00030804
  28603. #define GPIO_PD3_U1TX 0x00030C01
  28604. #define GPIO_PD3_CCP7 0x00030C02
  28605. #define GPIO_PD3_PWM3 0x00030C03
  28606. #define GPIO_PD3_CCP0 0x00030C04
  28607. #define GPIO_PD4_CCP0 0x00031001
  28608. #define GPIO_PD4_CCP3 0x00031002
  28609. #define GPIO_PD4_I2S0RXSD 0x00031008
  28610. #define GPIO_PD4_U1RI 0x00031009
  28611. #define GPIO_PD5_CCP2 0x00031401
  28612. #define GPIO_PD5_CCP4 0x00031402
  28613. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  28614. #define GPIO_PD5_U2RX 0x00031409
  28615. #define GPIO_PD6_FAULT0 0x00031801
  28616. #define GPIO_PD6_I2S0TXSCK 0x00031808
  28617. #define GPIO_PD6_U2TX 0x00031809
  28618. #define GPIO_PD7_IDX0 0x00031C01
  28619. #define GPIO_PD7_C0O 0x00031C02
  28620. #define GPIO_PD7_CCP1 0x00031C03
  28621. #define GPIO_PD7_I2S0TXWS 0x00031C08
  28622. #define GPIO_PD7_U1DTR 0x00031C09
  28623. #define GPIO_PE0_PWM4 0x00040001
  28624. #define GPIO_PE0_SSI1CLK 0x00040002
  28625. #define GPIO_PE0_CCP3 0x00040003
  28626. #define GPIO_PE0_USB0PFLT 0x00040009
  28627. #define GPIO_PE1_PWM5 0x00040401
  28628. #define GPIO_PE1_SSI1FSS 0x00040402
  28629. #define GPIO_PE1_FAULT0 0x00040403
  28630. #define GPIO_PE1_CCP2 0x00040404
  28631. #define GPIO_PE1_CCP6 0x00040405
  28632. #define GPIO_PE2_CCP4 0x00040801
  28633. #define GPIO_PE2_SSI1RX 0x00040802
  28634. #define GPIO_PE2_PHB1 0x00040803
  28635. #define GPIO_PE2_PHA0 0x00040804
  28636. #define GPIO_PE2_CCP2 0x00040805
  28637. #define GPIO_PE3_CCP1 0x00040C01
  28638. #define GPIO_PE3_SSI1TX 0x00040C02
  28639. #define GPIO_PE3_PHA1 0x00040C03
  28640. #define GPIO_PE3_PHB0 0x00040C04
  28641. #define GPIO_PE3_CCP7 0x00040C05
  28642. #define GPIO_PE4_CCP3 0x00041001
  28643. #define GPIO_PE4_FAULT0 0x00041004
  28644. #define GPIO_PE4_U2TX 0x00041005
  28645. #define GPIO_PE4_CCP2 0x00041006
  28646. #define GPIO_PE4_I2S0TXWS 0x00041009
  28647. #define GPIO_PE5_CCP5 0x00041401
  28648. #define GPIO_PE5_I2S0TXSD 0x00041409
  28649. #define GPIO_PE6_PWM4 0x00041801
  28650. #define GPIO_PE6_C1O 0x00041802
  28651. #define GPIO_PE6_U1CTS 0x00041809
  28652. #define GPIO_PE7_PWM5 0x00041C01
  28653. #define GPIO_PE7_U1DCD 0x00041C09
  28654. #define GPIO_PF0_CAN1RX 0x00050001
  28655. #define GPIO_PF0_PHB0 0x00050002
  28656. #define GPIO_PF0_PWM0 0x00050003
  28657. #define GPIO_PF0_I2S0TXSD 0x00050008
  28658. #define GPIO_PF0_U1DSR 0x00050009
  28659. #define GPIO_PF1_CAN1TX 0x00050401
  28660. #define GPIO_PF1_IDX1 0x00050402
  28661. #define GPIO_PF1_PWM1 0x00050403
  28662. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  28663. #define GPIO_PF1_U1RTS 0x00050409
  28664. #define GPIO_PF1_CCP3 0x0005040A
  28665. #define GPIO_PF2_LED1 0x00050801
  28666. #define GPIO_PF2_PWM4 0x00050802
  28667. #define GPIO_PF2_PWM2 0x00050804
  28668. #define GPIO_PF2_SSI1CLK 0x00050809
  28669. #define GPIO_PF3_LED0 0x00050C01
  28670. #define GPIO_PF3_PWM5 0x00050C02
  28671. #define GPIO_PF3_PWM3 0x00050C04
  28672. #define GPIO_PF3_SSI1FSS 0x00050C09
  28673. #define GPIO_PF4_CCP0 0x00051001
  28674. #define GPIO_PF4_C0O 0x00051002
  28675. #define GPIO_PF4_FAULT0 0x00051004
  28676. #define GPIO_PF4_SSI1RX 0x00051009
  28677. #define GPIO_PF5_CCP2 0x00051401
  28678. #define GPIO_PF5_C1O 0x00051402
  28679. #define GPIO_PF5_SSI1TX 0x00051409
  28680. #define GPIO_PG0_U2RX 0x00060001
  28681. #define GPIO_PG0_PWM0 0x00060002
  28682. #define GPIO_PG0_I2C1SCL 0x00060003
  28683. #define GPIO_PG0_PWM4 0x00060004
  28684. #define GPIO_PG0_USB0EPEN 0x00060007
  28685. #define GPIO_PG1_U2TX 0x00060401
  28686. #define GPIO_PG1_PWM1 0x00060402
  28687. #define GPIO_PG1_I2C1SDA 0x00060403
  28688. #define GPIO_PG1_PWM5 0x00060404
  28689. #define GPIO_PG7_PHB1 0x00061C01
  28690. #define GPIO_PG7_CCP5 0x00061C08
  28691. #define GPIO_PH0_CCP6 0x00070001
  28692. #define GPIO_PH0_PWM2 0x00070002
  28693. #define GPIO_PH0_PWM4 0x00070009
  28694. #define GPIO_PH1_CCP7 0x00070401
  28695. #define GPIO_PH1_PWM3 0x00070402
  28696. #define GPIO_PH1_PWM5 0x00070409
  28697. #define GPIO_PH2_IDX1 0x00070801
  28698. #define GPIO_PH2_C1O 0x00070802
  28699. #define GPIO_PH2_FAULT3 0x00070804
  28700. #define GPIO_PH3_PHB0 0x00070C01
  28701. #define GPIO_PH3_FAULT0 0x00070C02
  28702. #define GPIO_PH3_USB0EPEN 0x00070C04
  28703. #define GPIO_PH4_USB0PFLT 0x00071004
  28704. #define GPIO_PH4_SSI1CLK 0x0007100B
  28705. #define GPIO_PH5_FAULT2 0x0007140A
  28706. #define GPIO_PH5_SSI1FSS 0x0007140B
  28707. #define GPIO_PH6_PWM4 0x0007180A
  28708. #define GPIO_PH6_SSI1RX 0x0007180B
  28709. #define GPIO_PH7_PWM5 0x00071C0A
  28710. #define GPIO_PH7_SSI1TX 0x00071C0B
  28711. #define GPIO_PJ0_PWM0 0x0008000A
  28712. #define GPIO_PJ0_I2C1SCL 0x0008000B
  28713. #define GPIO_PJ1_USB0PFLT 0x00080409
  28714. #define GPIO_PJ1_PWM1 0x0008040A
  28715. #define GPIO_PJ1_I2C1SDA 0x0008040B
  28716. #define GPIO_PJ2_CCP0 0x00080809
  28717. #define GPIO_PJ2_FAULT0 0x0008080A
  28718. #endif // PART_LM3S9997
  28719. //*****************************************************************************
  28720. //
  28721. // LM3S9B81 Port/Pin Mapping Definitions
  28722. //
  28723. //*****************************************************************************
  28724. #ifdef PART_LM3S9B81
  28725. #define GPIO_PA0_U0RX 0x00000001
  28726. #define GPIO_PA0_I2C1SCL 0x00000008
  28727. #define GPIO_PA0_U1RX 0x00000009
  28728. #define GPIO_PA1_U0TX 0x00000401
  28729. #define GPIO_PA1_I2C1SDA 0x00000408
  28730. #define GPIO_PA1_U1TX 0x00000409
  28731. #define GPIO_PA2_SSI0CLK 0x00000801
  28732. #define GPIO_PA2_I2S0RXSD 0x00000809
  28733. #define GPIO_PA3_SSI0FSS 0x00000C01
  28734. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  28735. #define GPIO_PA4_SSI0RX 0x00001001
  28736. #define GPIO_PA4_CAN0RX 0x00001005
  28737. #define GPIO_PA4_I2S0TXSCK 0x00001009
  28738. #define GPIO_PA5_SSI0TX 0x00001401
  28739. #define GPIO_PA5_CAN0TX 0x00001405
  28740. #define GPIO_PA5_I2S0TXWS 0x00001409
  28741. #define GPIO_PA6_I2C1SCL 0x00001801
  28742. #define GPIO_PA6_CCP1 0x00001802
  28743. #define GPIO_PA6_CAN0RX 0x00001806
  28744. #define GPIO_PA6_USB0EPEN 0x00001808
  28745. #define GPIO_PA6_U1CTS 0x00001809
  28746. #define GPIO_PA7_I2C1SDA 0x00001C01
  28747. #define GPIO_PA7_CCP4 0x00001C02
  28748. #define GPIO_PA7_CAN0TX 0x00001C06
  28749. #define GPIO_PA7_CCP3 0x00001C07
  28750. #define GPIO_PA7_USB0PFLT 0x00001C08
  28751. #define GPIO_PA7_U1DCD 0x00001C09
  28752. #define GPIO_PB0_CCP0 0x00010001
  28753. #define GPIO_PB0_U1RX 0x00010005
  28754. #define GPIO_PB1_CCP2 0x00010401
  28755. #define GPIO_PB1_CCP1 0x00010404
  28756. #define GPIO_PB1_U1TX 0x00010405
  28757. #define GPIO_PB2_I2C0SCL 0x00010801
  28758. #define GPIO_PB2_CCP3 0x00010804
  28759. #define GPIO_PB2_CCP0 0x00010805
  28760. #define GPIO_PB2_USB0EPEN 0x00010808
  28761. #define GPIO_PB3_I2C0SDA 0x00010C01
  28762. #define GPIO_PB3_USB0PFLT 0x00010C08
  28763. #define GPIO_PB4_U2RX 0x00011004
  28764. #define GPIO_PB4_CAN0RX 0x00011005
  28765. #define GPIO_PB4_U1RX 0x00011007
  28766. #define GPIO_PB4_EPI0S23 0x00011008
  28767. #define GPIO_PB5_C0O 0x00011401
  28768. #define GPIO_PB5_CCP5 0x00011402
  28769. #define GPIO_PB5_CCP6 0x00011403
  28770. #define GPIO_PB5_CCP0 0x00011404
  28771. #define GPIO_PB5_CAN0TX 0x00011405
  28772. #define GPIO_PB5_CCP2 0x00011406
  28773. #define GPIO_PB5_U1TX 0x00011407
  28774. #define GPIO_PB5_EPI0S22 0x00011408
  28775. #define GPIO_PB6_CCP1 0x00011801
  28776. #define GPIO_PB6_CCP7 0x00011802
  28777. #define GPIO_PB6_C0O 0x00011803
  28778. #define GPIO_PB6_CCP5 0x00011806
  28779. #define GPIO_PB6_I2S0TXSCK 0x00011809
  28780. #define GPIO_PB7_NMI 0x00011C04
  28781. #define GPIO_PC0_TCK 0x00020003
  28782. #define GPIO_PC0_SWCLK 0x00020003
  28783. #define GPIO_PC1_TMS 0x00020403
  28784. #define GPIO_PC1_SWDIO 0x00020403
  28785. #define GPIO_PC2_TDI 0x00020803
  28786. #define GPIO_PC3_SWO 0x00020C03
  28787. #define GPIO_PC3_TDO 0x00020C03
  28788. #define GPIO_PC4_CCP5 0x00021001
  28789. #define GPIO_PC4_CCP2 0x00021005
  28790. #define GPIO_PC4_CCP4 0x00021006
  28791. #define GPIO_PC4_EPI0S2 0x00021008
  28792. #define GPIO_PC4_CCP1 0x00021009
  28793. #define GPIO_PC5_CCP1 0x00021401
  28794. #define GPIO_PC5_C1O 0x00021402
  28795. #define GPIO_PC5_C0O 0x00021403
  28796. #define GPIO_PC5_CCP3 0x00021405
  28797. #define GPIO_PC5_USB0EPEN 0x00021406
  28798. #define GPIO_PC5_EPI0S3 0x00021408
  28799. #define GPIO_PC6_CCP3 0x00021801
  28800. #define GPIO_PC6_C2O 0x00021803
  28801. #define GPIO_PC6_U1RX 0x00021805
  28802. #define GPIO_PC6_CCP0 0x00021806
  28803. #define GPIO_PC6_USB0PFLT 0x00021807
  28804. #define GPIO_PC6_EPI0S4 0x00021808
  28805. #define GPIO_PC7_CCP4 0x00021C01
  28806. #define GPIO_PC7_CCP0 0x00021C04
  28807. #define GPIO_PC7_U1TX 0x00021C05
  28808. #define GPIO_PC7_USB0PFLT 0x00021C06
  28809. #define GPIO_PC7_C1O 0x00021C07
  28810. #define GPIO_PC7_EPI0S5 0x00021C08
  28811. #define GPIO_PD0_CAN0RX 0x00030002
  28812. #define GPIO_PD0_U2RX 0x00030004
  28813. #define GPIO_PD0_U1RX 0x00030005
  28814. #define GPIO_PD0_CCP6 0x00030006
  28815. #define GPIO_PD0_I2S0RXSCK 0x00030008
  28816. #define GPIO_PD0_U1CTS 0x00030009
  28817. #define GPIO_PD1_CAN0TX 0x00030402
  28818. #define GPIO_PD1_U2TX 0x00030404
  28819. #define GPIO_PD1_U1TX 0x00030405
  28820. #define GPIO_PD1_CCP7 0x00030406
  28821. #define GPIO_PD1_I2S0RXWS 0x00030408
  28822. #define GPIO_PD1_U1DCD 0x00030409
  28823. #define GPIO_PD1_CCP2 0x0003040A
  28824. #define GPIO_PD2_U1RX 0x00030801
  28825. #define GPIO_PD2_CCP6 0x00030802
  28826. #define GPIO_PD2_CCP5 0x00030804
  28827. #define GPIO_PD2_EPI0S20 0x00030808
  28828. #define GPIO_PD3_U1TX 0x00030C01
  28829. #define GPIO_PD3_CCP7 0x00030C02
  28830. #define GPIO_PD3_CCP0 0x00030C04
  28831. #define GPIO_PD3_EPI0S21 0x00030C08
  28832. #define GPIO_PD4_CCP0 0x00031001
  28833. #define GPIO_PD4_CCP3 0x00031002
  28834. #define GPIO_PD4_I2S0RXSD 0x00031008
  28835. #define GPIO_PD4_U1RI 0x00031009
  28836. #define GPIO_PD4_EPI0S19 0x0003100A
  28837. #define GPIO_PD5_CCP2 0x00031401
  28838. #define GPIO_PD5_CCP4 0x00031402
  28839. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  28840. #define GPIO_PD5_U2RX 0x00031409
  28841. #define GPIO_PD5_EPI0S28 0x0003140A
  28842. #define GPIO_PD6_I2S0TXSCK 0x00031808
  28843. #define GPIO_PD6_U2TX 0x00031809
  28844. #define GPIO_PD6_EPI0S29 0x0003180A
  28845. #define GPIO_PD7_C0O 0x00031C02
  28846. #define GPIO_PD7_CCP1 0x00031C03
  28847. #define GPIO_PD7_I2S0TXWS 0x00031C08
  28848. #define GPIO_PD7_U1DTR 0x00031C09
  28849. #define GPIO_PD7_EPI0S30 0x00031C0A
  28850. #define GPIO_PE0_SSI1CLK 0x00040002
  28851. #define GPIO_PE0_CCP3 0x00040003
  28852. #define GPIO_PE0_EPI0S8 0x00040008
  28853. #define GPIO_PE0_USB0PFLT 0x00040009
  28854. #define GPIO_PE1_SSI1FSS 0x00040402
  28855. #define GPIO_PE1_CCP2 0x00040404
  28856. #define GPIO_PE1_CCP6 0x00040405
  28857. #define GPIO_PE1_EPI0S9 0x00040408
  28858. #define GPIO_PE2_CCP4 0x00040801
  28859. #define GPIO_PE2_SSI1RX 0x00040802
  28860. #define GPIO_PE2_CCP2 0x00040805
  28861. #define GPIO_PE2_EPI0S24 0x00040808
  28862. #define GPIO_PE3_CCP1 0x00040C01
  28863. #define GPIO_PE3_SSI1TX 0x00040C02
  28864. #define GPIO_PE3_CCP7 0x00040C05
  28865. #define GPIO_PE3_EPI0S25 0x00040C08
  28866. #define GPIO_PE4_CCP3 0x00041001
  28867. #define GPIO_PE4_CAN2RX 0x00041002
  28868. #define GPIO_PE4_U2TX 0x00041005
  28869. #define GPIO_PE4_CCP2 0x00041006
  28870. #define GPIO_PE4_I2S0TXWS 0x00041009
  28871. #define GPIO_PE5_CCP5 0x00041401
  28872. #define GPIO_PE5_CAN2TX 0x00041402
  28873. #define GPIO_PE5_I2S0TXSD 0x00041409
  28874. #define GPIO_PE6_C1O 0x00041802
  28875. #define GPIO_PE6_U1CTS 0x00041809
  28876. #define GPIO_PE7_C2O 0x00041C02
  28877. #define GPIO_PE7_U1DCD 0x00041C09
  28878. #define GPIO_PF0_CAN1RX 0x00050001
  28879. #define GPIO_PF0_I2S0TXSD 0x00050008
  28880. #define GPIO_PF0_U1DSR 0x00050009
  28881. #define GPIO_PF1_CAN1TX 0x00050401
  28882. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  28883. #define GPIO_PF1_U1RTS 0x00050409
  28884. #define GPIO_PF1_CCP3 0x0005040A
  28885. #define GPIO_PF2_LED1 0x00050801
  28886. #define GPIO_PF2_SSI1CLK 0x00050809
  28887. #define GPIO_PF3_LED0 0x00050C01
  28888. #define GPIO_PF3_SSI1FSS 0x00050C09
  28889. #define GPIO_PF4_CCP0 0x00051001
  28890. #define GPIO_PF4_C0O 0x00051002
  28891. #define GPIO_PF4_EPI0S12 0x00051008
  28892. #define GPIO_PF4_SSI1RX 0x00051009
  28893. #define GPIO_PF5_CCP2 0x00051401
  28894. #define GPIO_PF5_C1O 0x00051402
  28895. #define GPIO_PF5_EPI0S15 0x00051408
  28896. #define GPIO_PF5_SSI1TX 0x00051409
  28897. #define GPIO_PG0_U2RX 0x00060001
  28898. #define GPIO_PG0_I2C1SCL 0x00060003
  28899. #define GPIO_PG0_USB0EPEN 0x00060007
  28900. #define GPIO_PG0_EPI0S13 0x00060008
  28901. #define GPIO_PG1_U2TX 0x00060401
  28902. #define GPIO_PG1_I2C1SDA 0x00060403
  28903. #define GPIO_PG1_EPI0S14 0x00060408
  28904. #define GPIO_PG7_CCP5 0x00061C08
  28905. #define GPIO_PG7_EPI0S31 0x00061C09
  28906. #define GPIO_PH0_CCP6 0x00070001
  28907. #define GPIO_PH0_EPI0S6 0x00070008
  28908. #define GPIO_PH1_CCP7 0x00070401
  28909. #define GPIO_PH1_EPI0S7 0x00070408
  28910. #define GPIO_PH2_C1O 0x00070802
  28911. #define GPIO_PH2_EPI0S1 0x00070808
  28912. #define GPIO_PH3_USB0EPEN 0x00070C04
  28913. #define GPIO_PH3_EPI0S0 0x00070C08
  28914. #define GPIO_PH4_USB0PFLT 0x00071004
  28915. #define GPIO_PH4_EPI0S10 0x00071008
  28916. #define GPIO_PH4_SSI1CLK 0x0007100B
  28917. #define GPIO_PH5_EPI0S11 0x00071408
  28918. #define GPIO_PH5_SSI1FSS 0x0007140B
  28919. #define GPIO_PH6_EPI0S26 0x00071808
  28920. #define GPIO_PH6_SSI1RX 0x0007180B
  28921. #define GPIO_PH7_EPI0S27 0x00071C08
  28922. #define GPIO_PH7_SSI1TX 0x00071C0B
  28923. #define GPIO_PJ0_EPI0S16 0x00080008
  28924. #define GPIO_PJ0_I2C1SCL 0x0008000B
  28925. #define GPIO_PJ1_EPI0S17 0x00080408
  28926. #define GPIO_PJ1_USB0PFLT 0x00080409
  28927. #define GPIO_PJ1_I2C1SDA 0x0008040B
  28928. #define GPIO_PJ2_EPI0S18 0x00080808
  28929. #define GPIO_PJ2_CCP0 0x00080809
  28930. #define GPIO_PJ3_EPI0S19 0x00080C08
  28931. #define GPIO_PJ3_U1CTS 0x00080C09
  28932. #define GPIO_PJ3_CCP6 0x00080C0A
  28933. #define GPIO_PJ4_EPI0S28 0x00081008
  28934. #define GPIO_PJ4_U1DCD 0x00081009
  28935. #define GPIO_PJ4_CCP4 0x0008100A
  28936. #define GPIO_PJ5_EPI0S29 0x00081408
  28937. #define GPIO_PJ5_U1DSR 0x00081409
  28938. #define GPIO_PJ5_CCP2 0x0008140A
  28939. #define GPIO_PJ6_EPI0S30 0x00081808
  28940. #define GPIO_PJ6_U1RTS 0x00081809
  28941. #define GPIO_PJ6_CCP1 0x0008180A
  28942. #define GPIO_PJ7_U1DTR 0x00081C09
  28943. #define GPIO_PJ7_CCP0 0x00081C0A
  28944. #endif // PART_LM3S9B81
  28945. //*****************************************************************************
  28946. //
  28947. // LM3S9B90 Port/Pin Mapping Definitions
  28948. //
  28949. //*****************************************************************************
  28950. #ifdef PART_LM3S9B90
  28951. #define GPIO_PA0_U0RX 0x00000001
  28952. #define GPIO_PA0_I2C1SCL 0x00000008
  28953. #define GPIO_PA0_U1RX 0x00000009
  28954. #define GPIO_PA1_U0TX 0x00000401
  28955. #define GPIO_PA1_I2C1SDA 0x00000408
  28956. #define GPIO_PA1_U1TX 0x00000409
  28957. #define GPIO_PA2_SSI0CLK 0x00000801
  28958. #define GPIO_PA2_I2S0RXSD 0x00000809
  28959. #define GPIO_PA3_SSI0FSS 0x00000C01
  28960. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  28961. #define GPIO_PA4_SSI0RX 0x00001001
  28962. #define GPIO_PA4_CAN0RX 0x00001005
  28963. #define GPIO_PA4_I2S0TXSCK 0x00001009
  28964. #define GPIO_PA5_SSI0TX 0x00001401
  28965. #define GPIO_PA5_CAN0TX 0x00001405
  28966. #define GPIO_PA5_I2S0TXWS 0x00001409
  28967. #define GPIO_PA6_I2C1SCL 0x00001801
  28968. #define GPIO_PA6_CCP1 0x00001802
  28969. #define GPIO_PA6_CAN0RX 0x00001806
  28970. #define GPIO_PA6_USB0EPEN 0x00001808
  28971. #define GPIO_PA6_U1CTS 0x00001809
  28972. #define GPIO_PA7_I2C1SDA 0x00001C01
  28973. #define GPIO_PA7_CCP4 0x00001C02
  28974. #define GPIO_PA7_CAN0TX 0x00001C06
  28975. #define GPIO_PA7_CCP3 0x00001C07
  28976. #define GPIO_PA7_USB0PFLT 0x00001C08
  28977. #define GPIO_PA7_U1DCD 0x00001C09
  28978. #define GPIO_PB0_CCP0 0x00010001
  28979. #define GPIO_PB0_U1RX 0x00010005
  28980. #define GPIO_PB1_CCP2 0x00010401
  28981. #define GPIO_PB1_CCP1 0x00010404
  28982. #define GPIO_PB1_U1TX 0x00010405
  28983. #define GPIO_PB2_I2C0SCL 0x00010801
  28984. #define GPIO_PB2_CCP3 0x00010804
  28985. #define GPIO_PB2_CCP0 0x00010805
  28986. #define GPIO_PB2_USB0EPEN 0x00010808
  28987. #define GPIO_PB3_I2C0SDA 0x00010C01
  28988. #define GPIO_PB3_USB0PFLT 0x00010C08
  28989. #define GPIO_PB4_U2RX 0x00011004
  28990. #define GPIO_PB4_CAN0RX 0x00011005
  28991. #define GPIO_PB4_U1RX 0x00011007
  28992. #define GPIO_PB4_EPI0S23 0x00011008
  28993. #define GPIO_PB5_C0O 0x00011401
  28994. #define GPIO_PB5_CCP5 0x00011402
  28995. #define GPIO_PB5_CCP6 0x00011403
  28996. #define GPIO_PB5_CCP0 0x00011404
  28997. #define GPIO_PB5_CAN0TX 0x00011405
  28998. #define GPIO_PB5_CCP2 0x00011406
  28999. #define GPIO_PB5_U1TX 0x00011407
  29000. #define GPIO_PB5_EPI0S22 0x00011408
  29001. #define GPIO_PB6_CCP1 0x00011801
  29002. #define GPIO_PB6_CCP7 0x00011802
  29003. #define GPIO_PB6_C0O 0x00011803
  29004. #define GPIO_PB6_CCP5 0x00011806
  29005. #define GPIO_PB6_I2S0TXSCK 0x00011809
  29006. #define GPIO_PB7_NMI 0x00011C04
  29007. #define GPIO_PC0_TCK 0x00020003
  29008. #define GPIO_PC0_SWCLK 0x00020003
  29009. #define GPIO_PC1_TMS 0x00020403
  29010. #define GPIO_PC1_SWDIO 0x00020403
  29011. #define GPIO_PC2_TDI 0x00020803
  29012. #define GPIO_PC3_SWO 0x00020C03
  29013. #define GPIO_PC3_TDO 0x00020C03
  29014. #define GPIO_PC4_CCP5 0x00021001
  29015. #define GPIO_PC4_CCP2 0x00021005
  29016. #define GPIO_PC4_CCP4 0x00021006
  29017. #define GPIO_PC4_EPI0S2 0x00021008
  29018. #define GPIO_PC4_CCP1 0x00021009
  29019. #define GPIO_PC5_CCP1 0x00021401
  29020. #define GPIO_PC5_C1O 0x00021402
  29021. #define GPIO_PC5_C0O 0x00021403
  29022. #define GPIO_PC5_CCP3 0x00021405
  29023. #define GPIO_PC5_USB0EPEN 0x00021406
  29024. #define GPIO_PC5_EPI0S3 0x00021408
  29025. #define GPIO_PC6_CCP3 0x00021801
  29026. #define GPIO_PC6_C2O 0x00021803
  29027. #define GPIO_PC6_U1RX 0x00021805
  29028. #define GPIO_PC6_CCP0 0x00021806
  29029. #define GPIO_PC6_USB0PFLT 0x00021807
  29030. #define GPIO_PC6_EPI0S4 0x00021808
  29031. #define GPIO_PC7_CCP4 0x00021C01
  29032. #define GPIO_PC7_CCP0 0x00021C04
  29033. #define GPIO_PC7_U1TX 0x00021C05
  29034. #define GPIO_PC7_USB0PFLT 0x00021C06
  29035. #define GPIO_PC7_C1O 0x00021C07
  29036. #define GPIO_PC7_EPI0S5 0x00021C08
  29037. #define GPIO_PD0_CAN0RX 0x00030002
  29038. #define GPIO_PD0_U2RX 0x00030004
  29039. #define GPIO_PD0_U1RX 0x00030005
  29040. #define GPIO_PD0_CCP6 0x00030006
  29041. #define GPIO_PD0_I2S0RXSCK 0x00030008
  29042. #define GPIO_PD0_U1CTS 0x00030009
  29043. #define GPIO_PD1_CAN0TX 0x00030402
  29044. #define GPIO_PD1_U2TX 0x00030404
  29045. #define GPIO_PD1_U1TX 0x00030405
  29046. #define GPIO_PD1_CCP7 0x00030406
  29047. #define GPIO_PD1_I2S0RXWS 0x00030408
  29048. #define GPIO_PD1_U1DCD 0x00030409
  29049. #define GPIO_PD1_CCP2 0x0003040A
  29050. #define GPIO_PD2_U1RX 0x00030801
  29051. #define GPIO_PD2_CCP6 0x00030802
  29052. #define GPIO_PD2_CCP5 0x00030804
  29053. #define GPIO_PD2_EPI0S20 0x00030808
  29054. #define GPIO_PD3_U1TX 0x00030C01
  29055. #define GPIO_PD3_CCP7 0x00030C02
  29056. #define GPIO_PD3_CCP0 0x00030C04
  29057. #define GPIO_PD3_EPI0S21 0x00030C08
  29058. #define GPIO_PD4_CCP0 0x00031001
  29059. #define GPIO_PD4_CCP3 0x00031002
  29060. #define GPIO_PD4_I2S0RXSD 0x00031008
  29061. #define GPIO_PD4_U1RI 0x00031009
  29062. #define GPIO_PD4_EPI0S19 0x0003100A
  29063. #define GPIO_PD5_CCP2 0x00031401
  29064. #define GPIO_PD5_CCP4 0x00031402
  29065. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  29066. #define GPIO_PD5_U2RX 0x00031409
  29067. #define GPIO_PD5_EPI0S28 0x0003140A
  29068. #define GPIO_PD6_I2S0TXSCK 0x00031808
  29069. #define GPIO_PD6_U2TX 0x00031809
  29070. #define GPIO_PD6_EPI0S29 0x0003180A
  29071. #define GPIO_PD7_C0O 0x00031C02
  29072. #define GPIO_PD7_CCP1 0x00031C03
  29073. #define GPIO_PD7_I2S0TXWS 0x00031C08
  29074. #define GPIO_PD7_U1DTR 0x00031C09
  29075. #define GPIO_PD7_EPI0S30 0x00031C0A
  29076. #define GPIO_PE0_SSI1CLK 0x00040002
  29077. #define GPIO_PE0_CCP3 0x00040003
  29078. #define GPIO_PE0_EPI0S8 0x00040008
  29079. #define GPIO_PE0_USB0PFLT 0x00040009
  29080. #define GPIO_PE1_SSI1FSS 0x00040402
  29081. #define GPIO_PE1_CCP2 0x00040404
  29082. #define GPIO_PE1_CCP6 0x00040405
  29083. #define GPIO_PE1_EPI0S9 0x00040408
  29084. #define GPIO_PE2_CCP4 0x00040801
  29085. #define GPIO_PE2_SSI1RX 0x00040802
  29086. #define GPIO_PE2_CCP2 0x00040805
  29087. #define GPIO_PE2_EPI0S24 0x00040808
  29088. #define GPIO_PE3_CCP1 0x00040C01
  29089. #define GPIO_PE3_SSI1TX 0x00040C02
  29090. #define GPIO_PE3_CCP7 0x00040C05
  29091. #define GPIO_PE3_EPI0S25 0x00040C08
  29092. #define GPIO_PE4_CCP3 0x00041001
  29093. #define GPIO_PE4_U2TX 0x00041005
  29094. #define GPIO_PE4_CCP2 0x00041006
  29095. #define GPIO_PE4_I2S0TXWS 0x00041009
  29096. #define GPIO_PE5_CCP5 0x00041401
  29097. #define GPIO_PE5_I2S0TXSD 0x00041409
  29098. #define GPIO_PE6_C1O 0x00041802
  29099. #define GPIO_PE6_U1CTS 0x00041809
  29100. #define GPIO_PE7_C2O 0x00041C02
  29101. #define GPIO_PE7_U1DCD 0x00041C09
  29102. #define GPIO_PF0_CAN1RX 0x00050001
  29103. #define GPIO_PF0_I2S0TXSD 0x00050008
  29104. #define GPIO_PF0_U1DSR 0x00050009
  29105. #define GPIO_PF1_CAN1TX 0x00050401
  29106. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  29107. #define GPIO_PF1_U1RTS 0x00050409
  29108. #define GPIO_PF1_CCP3 0x0005040A
  29109. #define GPIO_PF2_LED1 0x00050801
  29110. #define GPIO_PF2_SSI1CLK 0x00050809
  29111. #define GPIO_PF3_LED0 0x00050C01
  29112. #define GPIO_PF3_SSI1FSS 0x00050C09
  29113. #define GPIO_PF4_CCP0 0x00051001
  29114. #define GPIO_PF4_C0O 0x00051002
  29115. #define GPIO_PF4_EPI0S12 0x00051008
  29116. #define GPIO_PF4_SSI1RX 0x00051009
  29117. #define GPIO_PF5_CCP2 0x00051401
  29118. #define GPIO_PF5_C1O 0x00051402
  29119. #define GPIO_PF5_EPI0S15 0x00051408
  29120. #define GPIO_PF5_SSI1TX 0x00051409
  29121. #define GPIO_PG0_U2RX 0x00060001
  29122. #define GPIO_PG0_I2C1SCL 0x00060003
  29123. #define GPIO_PG0_USB0EPEN 0x00060007
  29124. #define GPIO_PG0_EPI0S13 0x00060008
  29125. #define GPIO_PG1_U2TX 0x00060401
  29126. #define GPIO_PG1_I2C1SDA 0x00060403
  29127. #define GPIO_PG1_EPI0S14 0x00060408
  29128. #define GPIO_PG7_CCP5 0x00061C08
  29129. #define GPIO_PG7_EPI0S31 0x00061C09
  29130. #define GPIO_PH0_CCP6 0x00070001
  29131. #define GPIO_PH0_EPI0S6 0x00070008
  29132. #define GPIO_PH1_CCP7 0x00070401
  29133. #define GPIO_PH1_EPI0S7 0x00070408
  29134. #define GPIO_PH2_C1O 0x00070802
  29135. #define GPIO_PH2_EPI0S1 0x00070808
  29136. #define GPIO_PH3_USB0EPEN 0x00070C04
  29137. #define GPIO_PH3_EPI0S0 0x00070C08
  29138. #define GPIO_PH4_USB0PFLT 0x00071004
  29139. #define GPIO_PH4_EPI0S10 0x00071008
  29140. #define GPIO_PH4_SSI1CLK 0x0007100B
  29141. #define GPIO_PH5_EPI0S11 0x00071408
  29142. #define GPIO_PH5_SSI1FSS 0x0007140B
  29143. #define GPIO_PH6_EPI0S26 0x00071808
  29144. #define GPIO_PH6_SSI1RX 0x0007180B
  29145. #define GPIO_PH7_EPI0S27 0x00071C08
  29146. #define GPIO_PH7_SSI1TX 0x00071C0B
  29147. #define GPIO_PJ0_EPI0S16 0x00080008
  29148. #define GPIO_PJ0_I2C1SCL 0x0008000B
  29149. #define GPIO_PJ1_EPI0S17 0x00080408
  29150. #define GPIO_PJ1_USB0PFLT 0x00080409
  29151. #define GPIO_PJ1_I2C1SDA 0x0008040B
  29152. #define GPIO_PJ2_EPI0S18 0x00080808
  29153. #define GPIO_PJ2_CCP0 0x00080809
  29154. #endif // PART_LM3S9B90
  29155. //*****************************************************************************
  29156. //
  29157. // LM3S9B92 Port/Pin Mapping Definitions
  29158. //
  29159. //*****************************************************************************
  29160. #ifdef PART_LM3S9B92
  29161. #define GPIO_PA0_U0RX 0x00000001
  29162. #define GPIO_PA0_I2C1SCL 0x00000008
  29163. #define GPIO_PA0_U1RX 0x00000009
  29164. #define GPIO_PA1_U0TX 0x00000401
  29165. #define GPIO_PA1_I2C1SDA 0x00000408
  29166. #define GPIO_PA1_U1TX 0x00000409
  29167. #define GPIO_PA2_SSI0CLK 0x00000801
  29168. #define GPIO_PA2_PWM4 0x00000804
  29169. #define GPIO_PA2_I2S0RXSD 0x00000809
  29170. #define GPIO_PA3_SSI0FSS 0x00000C01
  29171. #define GPIO_PA3_PWM5 0x00000C04
  29172. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  29173. #define GPIO_PA4_SSI0RX 0x00001001
  29174. #define GPIO_PA4_PWM6 0x00001004
  29175. #define GPIO_PA4_CAN0RX 0x00001005
  29176. #define GPIO_PA4_I2S0TXSCK 0x00001009
  29177. #define GPIO_PA5_SSI0TX 0x00001401
  29178. #define GPIO_PA5_PWM7 0x00001404
  29179. #define GPIO_PA5_CAN0TX 0x00001405
  29180. #define GPIO_PA5_I2S0TXWS 0x00001409
  29181. #define GPIO_PA6_I2C1SCL 0x00001801
  29182. #define GPIO_PA6_CCP1 0x00001802
  29183. #define GPIO_PA6_PWM0 0x00001804
  29184. #define GPIO_PA6_PWM4 0x00001805
  29185. #define GPIO_PA6_CAN0RX 0x00001806
  29186. #define GPIO_PA6_USB0EPEN 0x00001808
  29187. #define GPIO_PA6_U1CTS 0x00001809
  29188. #define GPIO_PA7_I2C1SDA 0x00001C01
  29189. #define GPIO_PA7_CCP4 0x00001C02
  29190. #define GPIO_PA7_PWM1 0x00001C04
  29191. #define GPIO_PA7_PWM5 0x00001C05
  29192. #define GPIO_PA7_CAN0TX 0x00001C06
  29193. #define GPIO_PA7_CCP3 0x00001C07
  29194. #define GPIO_PA7_USB0PFLT 0x00001C08
  29195. #define GPIO_PA7_U1DCD 0x00001C09
  29196. #define GPIO_PB0_CCP0 0x00010001
  29197. #define GPIO_PB0_PWM2 0x00010002
  29198. #define GPIO_PB0_U1RX 0x00010005
  29199. #define GPIO_PB1_CCP2 0x00010401
  29200. #define GPIO_PB1_PWM3 0x00010402
  29201. #define GPIO_PB1_CCP1 0x00010404
  29202. #define GPIO_PB1_U1TX 0x00010405
  29203. #define GPIO_PB2_I2C0SCL 0x00010801
  29204. #define GPIO_PB2_IDX0 0x00010802
  29205. #define GPIO_PB2_CCP3 0x00010804
  29206. #define GPIO_PB2_CCP0 0x00010805
  29207. #define GPIO_PB2_USB0EPEN 0x00010808
  29208. #define GPIO_PB3_I2C0SDA 0x00010C01
  29209. #define GPIO_PB3_FAULT0 0x00010C02
  29210. #define GPIO_PB3_FAULT3 0x00010C04
  29211. #define GPIO_PB3_USB0PFLT 0x00010C08
  29212. #define GPIO_PB4_U2RX 0x00011004
  29213. #define GPIO_PB4_CAN0RX 0x00011005
  29214. #define GPIO_PB4_IDX0 0x00011006
  29215. #define GPIO_PB4_U1RX 0x00011007
  29216. #define GPIO_PB4_EPI0S23 0x00011008
  29217. #define GPIO_PB5_C0O 0x00011401
  29218. #define GPIO_PB5_CCP5 0x00011402
  29219. #define GPIO_PB5_CCP6 0x00011403
  29220. #define GPIO_PB5_CCP0 0x00011404
  29221. #define GPIO_PB5_CAN0TX 0x00011405
  29222. #define GPIO_PB5_CCP2 0x00011406
  29223. #define GPIO_PB5_U1TX 0x00011407
  29224. #define GPIO_PB5_EPI0S22 0x00011408
  29225. #define GPIO_PB6_CCP1 0x00011801
  29226. #define GPIO_PB6_CCP7 0x00011802
  29227. #define GPIO_PB6_C0O 0x00011803
  29228. #define GPIO_PB6_FAULT1 0x00011804
  29229. #define GPIO_PB6_IDX0 0x00011805
  29230. #define GPIO_PB6_CCP5 0x00011806
  29231. #define GPIO_PB6_I2S0TXSCK 0x00011809
  29232. #define GPIO_PB7_NMI 0x00011C04
  29233. #define GPIO_PC0_TCK 0x00020003
  29234. #define GPIO_PC0_SWCLK 0x00020003
  29235. #define GPIO_PC1_TMS 0x00020403
  29236. #define GPIO_PC1_SWDIO 0x00020403
  29237. #define GPIO_PC2_TDI 0x00020803
  29238. #define GPIO_PC3_SWO 0x00020C03
  29239. #define GPIO_PC3_TDO 0x00020C03
  29240. #define GPIO_PC4_CCP5 0x00021001
  29241. #define GPIO_PC4_PHA0 0x00021002
  29242. #define GPIO_PC4_PWM6 0x00021004
  29243. #define GPIO_PC4_CCP2 0x00021005
  29244. #define GPIO_PC4_CCP4 0x00021006
  29245. #define GPIO_PC4_EPI0S2 0x00021008
  29246. #define GPIO_PC4_CCP1 0x00021009
  29247. #define GPIO_PC5_CCP1 0x00021401
  29248. #define GPIO_PC5_C1O 0x00021402
  29249. #define GPIO_PC5_C0O 0x00021403
  29250. #define GPIO_PC5_FAULT2 0x00021404
  29251. #define GPIO_PC5_CCP3 0x00021405
  29252. #define GPIO_PC5_USB0EPEN 0x00021406
  29253. #define GPIO_PC5_EPI0S3 0x00021408
  29254. #define GPIO_PC6_CCP3 0x00021801
  29255. #define GPIO_PC6_PHB0 0x00021802
  29256. #define GPIO_PC6_C2O 0x00021803
  29257. #define GPIO_PC6_PWM7 0x00021804
  29258. #define GPIO_PC6_U1RX 0x00021805
  29259. #define GPIO_PC6_CCP0 0x00021806
  29260. #define GPIO_PC6_USB0PFLT 0x00021807
  29261. #define GPIO_PC6_EPI0S4 0x00021808
  29262. #define GPIO_PC7_CCP4 0x00021C01
  29263. #define GPIO_PC7_PHB0 0x00021C02
  29264. #define GPIO_PC7_CCP0 0x00021C04
  29265. #define GPIO_PC7_U1TX 0x00021C05
  29266. #define GPIO_PC7_USB0PFLT 0x00021C06
  29267. #define GPIO_PC7_C1O 0x00021C07
  29268. #define GPIO_PC7_EPI0S5 0x00021C08
  29269. #define GPIO_PD0_PWM0 0x00030001
  29270. #define GPIO_PD0_CAN0RX 0x00030002
  29271. #define GPIO_PD0_IDX0 0x00030003
  29272. #define GPIO_PD0_U2RX 0x00030004
  29273. #define GPIO_PD0_U1RX 0x00030005
  29274. #define GPIO_PD0_CCP6 0x00030006
  29275. #define GPIO_PD0_I2S0RXSCK 0x00030008
  29276. #define GPIO_PD0_U1CTS 0x00030009
  29277. #define GPIO_PD1_PWM1 0x00030401
  29278. #define GPIO_PD1_CAN0TX 0x00030402
  29279. #define GPIO_PD1_PHA0 0x00030403
  29280. #define GPIO_PD1_U2TX 0x00030404
  29281. #define GPIO_PD1_U1TX 0x00030405
  29282. #define GPIO_PD1_CCP7 0x00030406
  29283. #define GPIO_PD1_I2S0RXWS 0x00030408
  29284. #define GPIO_PD1_U1DCD 0x00030409
  29285. #define GPIO_PD1_CCP2 0x0003040A
  29286. #define GPIO_PD1_PHB1 0x0003040B
  29287. #define GPIO_PD2_U1RX 0x00030801
  29288. #define GPIO_PD2_CCP6 0x00030802
  29289. #define GPIO_PD2_PWM2 0x00030803
  29290. #define GPIO_PD2_CCP5 0x00030804
  29291. #define GPIO_PD2_EPI0S20 0x00030808
  29292. #define GPIO_PD3_U1TX 0x00030C01
  29293. #define GPIO_PD3_CCP7 0x00030C02
  29294. #define GPIO_PD3_PWM3 0x00030C03
  29295. #define GPIO_PD3_CCP0 0x00030C04
  29296. #define GPIO_PD3_EPI0S21 0x00030C08
  29297. #define GPIO_PD4_CCP0 0x00031001
  29298. #define GPIO_PD4_CCP3 0x00031002
  29299. #define GPIO_PD4_I2S0RXSD 0x00031008
  29300. #define GPIO_PD4_U1RI 0x00031009
  29301. #define GPIO_PD4_EPI0S19 0x0003100A
  29302. #define GPIO_PD5_CCP2 0x00031401
  29303. #define GPIO_PD5_CCP4 0x00031402
  29304. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  29305. #define GPIO_PD5_U2RX 0x00031409
  29306. #define GPIO_PD5_EPI0S28 0x0003140A
  29307. #define GPIO_PD6_FAULT0 0x00031801
  29308. #define GPIO_PD6_I2S0TXSCK 0x00031808
  29309. #define GPIO_PD6_U2TX 0x00031809
  29310. #define GPIO_PD6_EPI0S29 0x0003180A
  29311. #define GPIO_PD7_IDX0 0x00031C01
  29312. #define GPIO_PD7_C0O 0x00031C02
  29313. #define GPIO_PD7_CCP1 0x00031C03
  29314. #define GPIO_PD7_I2S0TXWS 0x00031C08
  29315. #define GPIO_PD7_U1DTR 0x00031C09
  29316. #define GPIO_PD7_EPI0S30 0x00031C0A
  29317. #define GPIO_PE0_PWM4 0x00040001
  29318. #define GPIO_PE0_SSI1CLK 0x00040002
  29319. #define GPIO_PE0_CCP3 0x00040003
  29320. #define GPIO_PE0_EPI0S8 0x00040008
  29321. #define GPIO_PE0_USB0PFLT 0x00040009
  29322. #define GPIO_PE1_PWM5 0x00040401
  29323. #define GPIO_PE1_SSI1FSS 0x00040402
  29324. #define GPIO_PE1_FAULT0 0x00040403
  29325. #define GPIO_PE1_CCP2 0x00040404
  29326. #define GPIO_PE1_CCP6 0x00040405
  29327. #define GPIO_PE1_EPI0S9 0x00040408
  29328. #define GPIO_PE2_CCP4 0x00040801
  29329. #define GPIO_PE2_SSI1RX 0x00040802
  29330. #define GPIO_PE2_PHB1 0x00040803
  29331. #define GPIO_PE2_PHA0 0x00040804
  29332. #define GPIO_PE2_CCP2 0x00040805
  29333. #define GPIO_PE2_EPI0S24 0x00040808
  29334. #define GPIO_PE3_CCP1 0x00040C01
  29335. #define GPIO_PE3_SSI1TX 0x00040C02
  29336. #define GPIO_PE3_PHA1 0x00040C03
  29337. #define GPIO_PE3_PHB0 0x00040C04
  29338. #define GPIO_PE3_CCP7 0x00040C05
  29339. #define GPIO_PE3_EPI0S25 0x00040C08
  29340. #define GPIO_PE4_CCP3 0x00041001
  29341. #define GPIO_PE4_FAULT0 0x00041004
  29342. #define GPIO_PE4_U2TX 0x00041005
  29343. #define GPIO_PE4_CCP2 0x00041006
  29344. #define GPIO_PE4_I2S0TXWS 0x00041009
  29345. #define GPIO_PE5_CCP5 0x00041401
  29346. #define GPIO_PE5_I2S0TXSD 0x00041409
  29347. #define GPIO_PE6_PWM4 0x00041801
  29348. #define GPIO_PE6_C1O 0x00041802
  29349. #define GPIO_PE6_U1CTS 0x00041809
  29350. #define GPIO_PE7_PWM5 0x00041C01
  29351. #define GPIO_PE7_C2O 0x00041C02
  29352. #define GPIO_PE7_U1DCD 0x00041C09
  29353. #define GPIO_PF0_CAN1RX 0x00050001
  29354. #define GPIO_PF0_PHB0 0x00050002
  29355. #define GPIO_PF0_PWM0 0x00050003
  29356. #define GPIO_PF0_I2S0TXSD 0x00050008
  29357. #define GPIO_PF0_U1DSR 0x00050009
  29358. #define GPIO_PF1_CAN1TX 0x00050401
  29359. #define GPIO_PF1_IDX1 0x00050402
  29360. #define GPIO_PF1_PWM1 0x00050403
  29361. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  29362. #define GPIO_PF1_U1RTS 0x00050409
  29363. #define GPIO_PF1_CCP3 0x0005040A
  29364. #define GPIO_PF2_LED1 0x00050801
  29365. #define GPIO_PF2_PWM4 0x00050802
  29366. #define GPIO_PF2_PWM2 0x00050804
  29367. #define GPIO_PF2_SSI1CLK 0x00050809
  29368. #define GPIO_PF3_LED0 0x00050C01
  29369. #define GPIO_PF3_PWM5 0x00050C02
  29370. #define GPIO_PF3_PWM3 0x00050C04
  29371. #define GPIO_PF3_SSI1FSS 0x00050C09
  29372. #define GPIO_PF4_CCP0 0x00051001
  29373. #define GPIO_PF4_C0O 0x00051002
  29374. #define GPIO_PF4_FAULT0 0x00051004
  29375. #define GPIO_PF4_EPI0S12 0x00051008
  29376. #define GPIO_PF4_SSI1RX 0x00051009
  29377. #define GPIO_PF5_CCP2 0x00051401
  29378. #define GPIO_PF5_C1O 0x00051402
  29379. #define GPIO_PF5_EPI0S15 0x00051408
  29380. #define GPIO_PF5_SSI1TX 0x00051409
  29381. #define GPIO_PG0_U2RX 0x00060001
  29382. #define GPIO_PG0_PWM0 0x00060002
  29383. #define GPIO_PG0_I2C1SCL 0x00060003
  29384. #define GPIO_PG0_PWM4 0x00060004
  29385. #define GPIO_PG0_USB0EPEN 0x00060007
  29386. #define GPIO_PG0_EPI0S13 0x00060008
  29387. #define GPIO_PG1_U2TX 0x00060401
  29388. #define GPIO_PG1_PWM1 0x00060402
  29389. #define GPIO_PG1_I2C1SDA 0x00060403
  29390. #define GPIO_PG1_PWM5 0x00060404
  29391. #define GPIO_PG1_EPI0S14 0x00060408
  29392. #define GPIO_PG7_PHB1 0x00061C01
  29393. #define GPIO_PG7_PWM7 0x00061C04
  29394. #define GPIO_PG7_CCP5 0x00061C08
  29395. #define GPIO_PG7_EPI0S31 0x00061C09
  29396. #define GPIO_PH0_CCP6 0x00070001
  29397. #define GPIO_PH0_PWM2 0x00070002
  29398. #define GPIO_PH0_EPI0S6 0x00070008
  29399. #define GPIO_PH0_PWM4 0x00070009
  29400. #define GPIO_PH1_CCP7 0x00070401
  29401. #define GPIO_PH1_PWM3 0x00070402
  29402. #define GPIO_PH1_EPI0S7 0x00070408
  29403. #define GPIO_PH1_PWM5 0x00070409
  29404. #define GPIO_PH2_IDX1 0x00070801
  29405. #define GPIO_PH2_C1O 0x00070802
  29406. #define GPIO_PH2_FAULT3 0x00070804
  29407. #define GPIO_PH2_EPI0S1 0x00070808
  29408. #define GPIO_PH3_PHB0 0x00070C01
  29409. #define GPIO_PH3_FAULT0 0x00070C02
  29410. #define GPIO_PH3_USB0EPEN 0x00070C04
  29411. #define GPIO_PH3_EPI0S0 0x00070C08
  29412. #define GPIO_PH4_USB0PFLT 0x00071004
  29413. #define GPIO_PH4_EPI0S10 0x00071008
  29414. #define GPIO_PH4_SSI1CLK 0x0007100B
  29415. #define GPIO_PH5_EPI0S11 0x00071408
  29416. #define GPIO_PH5_FAULT2 0x0007140A
  29417. #define GPIO_PH5_SSI1FSS 0x0007140B
  29418. #define GPIO_PH6_EPI0S26 0x00071808
  29419. #define GPIO_PH6_PWM4 0x0007180A
  29420. #define GPIO_PH6_SSI1RX 0x0007180B
  29421. #define GPIO_PH7_EPI0S27 0x00071C08
  29422. #define GPIO_PH7_PWM5 0x00071C0A
  29423. #define GPIO_PH7_SSI1TX 0x00071C0B
  29424. #define GPIO_PJ0_EPI0S16 0x00080008
  29425. #define GPIO_PJ0_PWM0 0x0008000A
  29426. #define GPIO_PJ0_I2C1SCL 0x0008000B
  29427. #define GPIO_PJ1_EPI0S17 0x00080408
  29428. #define GPIO_PJ1_USB0PFLT 0x00080409
  29429. #define GPIO_PJ1_PWM1 0x0008040A
  29430. #define GPIO_PJ1_I2C1SDA 0x0008040B
  29431. #define GPIO_PJ2_EPI0S18 0x00080808
  29432. #define GPIO_PJ2_CCP0 0x00080809
  29433. #define GPIO_PJ2_FAULT0 0x0008080A
  29434. #define GPIO_PJ3_EPI0S19 0x00080C08
  29435. #define GPIO_PJ3_U1CTS 0x00080C09
  29436. #define GPIO_PJ3_CCP6 0x00080C0A
  29437. #define GPIO_PJ4_EPI0S28 0x00081008
  29438. #define GPIO_PJ4_U1DCD 0x00081009
  29439. #define GPIO_PJ4_CCP4 0x0008100A
  29440. #define GPIO_PJ5_EPI0S29 0x00081408
  29441. #define GPIO_PJ5_U1DSR 0x00081409
  29442. #define GPIO_PJ5_CCP2 0x0008140A
  29443. #define GPIO_PJ6_EPI0S30 0x00081808
  29444. #define GPIO_PJ6_U1RTS 0x00081809
  29445. #define GPIO_PJ6_CCP1 0x0008180A
  29446. #define GPIO_PJ7_U1DTR 0x00081C09
  29447. #define GPIO_PJ7_CCP0 0x00081C0A
  29448. #endif // PART_LM3S9B92
  29449. //*****************************************************************************
  29450. //
  29451. // LM3S9B95 Port/Pin Mapping Definitions
  29452. //
  29453. //*****************************************************************************
  29454. #ifdef PART_LM3S9B95
  29455. #define GPIO_PA0_U0RX 0x00000001
  29456. #define GPIO_PA0_I2C1SCL 0x00000008
  29457. #define GPIO_PA0_U1RX 0x00000009
  29458. #define GPIO_PA1_U0TX 0x00000401
  29459. #define GPIO_PA1_I2C1SDA 0x00000408
  29460. #define GPIO_PA1_U1TX 0x00000409
  29461. #define GPIO_PA2_SSI0CLK 0x00000801
  29462. #define GPIO_PA2_PWM4 0x00000804
  29463. #define GPIO_PA2_I2S0RXSD 0x00000809
  29464. #define GPIO_PA3_SSI0FSS 0x00000C01
  29465. #define GPIO_PA3_PWM5 0x00000C04
  29466. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  29467. #define GPIO_PA4_SSI0RX 0x00001001
  29468. #define GPIO_PA4_PWM6 0x00001004
  29469. #define GPIO_PA4_CAN0RX 0x00001005
  29470. #define GPIO_PA4_I2S0TXSCK 0x00001009
  29471. #define GPIO_PA5_SSI0TX 0x00001401
  29472. #define GPIO_PA5_PWM7 0x00001404
  29473. #define GPIO_PA5_CAN0TX 0x00001405
  29474. #define GPIO_PA5_I2S0TXWS 0x00001409
  29475. #define GPIO_PA6_I2C1SCL 0x00001801
  29476. #define GPIO_PA6_CCP1 0x00001802
  29477. #define GPIO_PA6_PWM0 0x00001804
  29478. #define GPIO_PA6_PWM4 0x00001805
  29479. #define GPIO_PA6_CAN0RX 0x00001806
  29480. #define GPIO_PA6_USB0EPEN 0x00001808
  29481. #define GPIO_PA6_U1CTS 0x00001809
  29482. #define GPIO_PA7_I2C1SDA 0x00001C01
  29483. #define GPIO_PA7_CCP4 0x00001C02
  29484. #define GPIO_PA7_PWM1 0x00001C04
  29485. #define GPIO_PA7_PWM5 0x00001C05
  29486. #define GPIO_PA7_CAN0TX 0x00001C06
  29487. #define GPIO_PA7_CCP3 0x00001C07
  29488. #define GPIO_PA7_USB0PFLT 0x00001C08
  29489. #define GPIO_PA7_U1DCD 0x00001C09
  29490. #define GPIO_PB0_CCP0 0x00010001
  29491. #define GPIO_PB0_PWM2 0x00010002
  29492. #define GPIO_PB0_U1RX 0x00010005
  29493. #define GPIO_PB1_CCP2 0x00010401
  29494. #define GPIO_PB1_PWM3 0x00010402
  29495. #define GPIO_PB1_CCP1 0x00010404
  29496. #define GPIO_PB1_U1TX 0x00010405
  29497. #define GPIO_PB2_I2C0SCL 0x00010801
  29498. #define GPIO_PB2_IDX0 0x00010802
  29499. #define GPIO_PB2_CCP3 0x00010804
  29500. #define GPIO_PB2_CCP0 0x00010805
  29501. #define GPIO_PB2_USB0EPEN 0x00010808
  29502. #define GPIO_PB3_I2C0SDA 0x00010C01
  29503. #define GPIO_PB3_FAULT0 0x00010C02
  29504. #define GPIO_PB3_FAULT3 0x00010C04
  29505. #define GPIO_PB3_USB0PFLT 0x00010C08
  29506. #define GPIO_PB4_U2RX 0x00011004
  29507. #define GPIO_PB4_CAN0RX 0x00011005
  29508. #define GPIO_PB4_IDX0 0x00011006
  29509. #define GPIO_PB4_U1RX 0x00011007
  29510. #define GPIO_PB4_EPI0S23 0x00011008
  29511. #define GPIO_PB5_C0O 0x00011401
  29512. #define GPIO_PB5_CCP5 0x00011402
  29513. #define GPIO_PB5_CCP6 0x00011403
  29514. #define GPIO_PB5_CCP0 0x00011404
  29515. #define GPIO_PB5_CAN0TX 0x00011405
  29516. #define GPIO_PB5_CCP2 0x00011406
  29517. #define GPIO_PB5_U1TX 0x00011407
  29518. #define GPIO_PB5_EPI0S22 0x00011408
  29519. #define GPIO_PB6_CCP1 0x00011801
  29520. #define GPIO_PB6_CCP7 0x00011802
  29521. #define GPIO_PB6_C0O 0x00011803
  29522. #define GPIO_PB6_FAULT1 0x00011804
  29523. #define GPIO_PB6_IDX0 0x00011805
  29524. #define GPIO_PB6_CCP5 0x00011806
  29525. #define GPIO_PB6_I2S0TXSCK 0x00011809
  29526. #define GPIO_PB7_NMI 0x00011C04
  29527. #define GPIO_PC0_TCK 0x00020003
  29528. #define GPIO_PC0_SWCLK 0x00020003
  29529. #define GPIO_PC1_TMS 0x00020403
  29530. #define GPIO_PC1_SWDIO 0x00020403
  29531. #define GPIO_PC2_TDI 0x00020803
  29532. #define GPIO_PC3_SWO 0x00020C03
  29533. #define GPIO_PC3_TDO 0x00020C03
  29534. #define GPIO_PC4_CCP5 0x00021001
  29535. #define GPIO_PC4_PHA0 0x00021002
  29536. #define GPIO_PC4_PWM6 0x00021004
  29537. #define GPIO_PC4_CCP2 0x00021005
  29538. #define GPIO_PC4_CCP4 0x00021006
  29539. #define GPIO_PC4_EPI0S2 0x00021008
  29540. #define GPIO_PC4_CCP1 0x00021009
  29541. #define GPIO_PC5_CCP1 0x00021401
  29542. #define GPIO_PC5_C1O 0x00021402
  29543. #define GPIO_PC5_C0O 0x00021403
  29544. #define GPIO_PC5_FAULT2 0x00021404
  29545. #define GPIO_PC5_CCP3 0x00021405
  29546. #define GPIO_PC5_USB0EPEN 0x00021406
  29547. #define GPIO_PC5_EPI0S3 0x00021408
  29548. #define GPIO_PC6_CCP3 0x00021801
  29549. #define GPIO_PC6_PHB0 0x00021802
  29550. #define GPIO_PC6_C2O 0x00021803
  29551. #define GPIO_PC6_PWM7 0x00021804
  29552. #define GPIO_PC6_U1RX 0x00021805
  29553. #define GPIO_PC6_CCP0 0x00021806
  29554. #define GPIO_PC6_USB0PFLT 0x00021807
  29555. #define GPIO_PC6_EPI0S4 0x00021808
  29556. #define GPIO_PC7_CCP4 0x00021C01
  29557. #define GPIO_PC7_PHB0 0x00021C02
  29558. #define GPIO_PC7_CCP0 0x00021C04
  29559. #define GPIO_PC7_U1TX 0x00021C05
  29560. #define GPIO_PC7_USB0PFLT 0x00021C06
  29561. #define GPIO_PC7_C1O 0x00021C07
  29562. #define GPIO_PC7_EPI0S5 0x00021C08
  29563. #define GPIO_PD0_PWM0 0x00030001
  29564. #define GPIO_PD0_CAN0RX 0x00030002
  29565. #define GPIO_PD0_IDX0 0x00030003
  29566. #define GPIO_PD0_U2RX 0x00030004
  29567. #define GPIO_PD0_U1RX 0x00030005
  29568. #define GPIO_PD0_CCP6 0x00030006
  29569. #define GPIO_PD0_I2S0RXSCK 0x00030008
  29570. #define GPIO_PD0_U1CTS 0x00030009
  29571. #define GPIO_PD1_PWM1 0x00030401
  29572. #define GPIO_PD1_CAN0TX 0x00030402
  29573. #define GPIO_PD1_PHA0 0x00030403
  29574. #define GPIO_PD1_U2TX 0x00030404
  29575. #define GPIO_PD1_U1TX 0x00030405
  29576. #define GPIO_PD1_CCP7 0x00030406
  29577. #define GPIO_PD1_I2S0RXWS 0x00030408
  29578. #define GPIO_PD1_U1DCD 0x00030409
  29579. #define GPIO_PD1_CCP2 0x0003040A
  29580. #define GPIO_PD1_PHB1 0x0003040B
  29581. #define GPIO_PD2_U1RX 0x00030801
  29582. #define GPIO_PD2_CCP6 0x00030802
  29583. #define GPIO_PD2_PWM2 0x00030803
  29584. #define GPIO_PD2_CCP5 0x00030804
  29585. #define GPIO_PD2_EPI0S20 0x00030808
  29586. #define GPIO_PD3_U1TX 0x00030C01
  29587. #define GPIO_PD3_CCP7 0x00030C02
  29588. #define GPIO_PD3_PWM3 0x00030C03
  29589. #define GPIO_PD3_CCP0 0x00030C04
  29590. #define GPIO_PD3_EPI0S21 0x00030C08
  29591. #define GPIO_PD4_CCP0 0x00031001
  29592. #define GPIO_PD4_CCP3 0x00031002
  29593. #define GPIO_PD4_I2S0RXSD 0x00031008
  29594. #define GPIO_PD4_U1RI 0x00031009
  29595. #define GPIO_PD4_EPI0S19 0x0003100A
  29596. #define GPIO_PD5_CCP2 0x00031401
  29597. #define GPIO_PD5_CCP4 0x00031402
  29598. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  29599. #define GPIO_PD5_U2RX 0x00031409
  29600. #define GPIO_PD5_EPI0S28 0x0003140A
  29601. #define GPIO_PD6_FAULT0 0x00031801
  29602. #define GPIO_PD6_I2S0TXSCK 0x00031808
  29603. #define GPIO_PD6_U2TX 0x00031809
  29604. #define GPIO_PD6_EPI0S29 0x0003180A
  29605. #define GPIO_PD7_IDX0 0x00031C01
  29606. #define GPIO_PD7_C0O 0x00031C02
  29607. #define GPIO_PD7_CCP1 0x00031C03
  29608. #define GPIO_PD7_I2S0TXWS 0x00031C08
  29609. #define GPIO_PD7_U1DTR 0x00031C09
  29610. #define GPIO_PD7_EPI0S30 0x00031C0A
  29611. #define GPIO_PE0_PWM4 0x00040001
  29612. #define GPIO_PE0_SSI1CLK 0x00040002
  29613. #define GPIO_PE0_CCP3 0x00040003
  29614. #define GPIO_PE0_EPI0S8 0x00040008
  29615. #define GPIO_PE0_USB0PFLT 0x00040009
  29616. #define GPIO_PE1_PWM5 0x00040401
  29617. #define GPIO_PE1_SSI1FSS 0x00040402
  29618. #define GPIO_PE1_FAULT0 0x00040403
  29619. #define GPIO_PE1_CCP2 0x00040404
  29620. #define GPIO_PE1_CCP6 0x00040405
  29621. #define GPIO_PE1_EPI0S9 0x00040408
  29622. #define GPIO_PE2_CCP4 0x00040801
  29623. #define GPIO_PE2_SSI1RX 0x00040802
  29624. #define GPIO_PE2_PHB1 0x00040803
  29625. #define GPIO_PE2_PHA0 0x00040804
  29626. #define GPIO_PE2_CCP2 0x00040805
  29627. #define GPIO_PE2_EPI0S24 0x00040808
  29628. #define GPIO_PE3_CCP1 0x00040C01
  29629. #define GPIO_PE3_SSI1TX 0x00040C02
  29630. #define GPIO_PE3_PHA1 0x00040C03
  29631. #define GPIO_PE3_PHB0 0x00040C04
  29632. #define GPIO_PE3_CCP7 0x00040C05
  29633. #define GPIO_PE3_EPI0S25 0x00040C08
  29634. #define GPIO_PE4_CCP3 0x00041001
  29635. #define GPIO_PE4_FAULT0 0x00041004
  29636. #define GPIO_PE4_U2TX 0x00041005
  29637. #define GPIO_PE4_CCP2 0x00041006
  29638. #define GPIO_PE4_I2S0TXWS 0x00041009
  29639. #define GPIO_PE5_CCP5 0x00041401
  29640. #define GPIO_PE5_I2S0TXSD 0x00041409
  29641. #define GPIO_PE6_PWM4 0x00041801
  29642. #define GPIO_PE6_C1O 0x00041802
  29643. #define GPIO_PE6_U1CTS 0x00041809
  29644. #define GPIO_PE7_PWM5 0x00041C01
  29645. #define GPIO_PE7_C2O 0x00041C02
  29646. #define GPIO_PE7_U1DCD 0x00041C09
  29647. #define GPIO_PF0_CAN1RX 0x00050001
  29648. #define GPIO_PF0_PHB0 0x00050002
  29649. #define GPIO_PF0_PWM0 0x00050003
  29650. #define GPIO_PF0_I2S0TXSD 0x00050008
  29651. #define GPIO_PF0_U1DSR 0x00050009
  29652. #define GPIO_PF1_CAN1TX 0x00050401
  29653. #define GPIO_PF1_IDX1 0x00050402
  29654. #define GPIO_PF1_PWM1 0x00050403
  29655. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  29656. #define GPIO_PF1_U1RTS 0x00050409
  29657. #define GPIO_PF1_CCP3 0x0005040A
  29658. #define GPIO_PF2_LED1 0x00050801
  29659. #define GPIO_PF2_PWM4 0x00050802
  29660. #define GPIO_PF2_PWM2 0x00050804
  29661. #define GPIO_PF2_SSI1CLK 0x00050809
  29662. #define GPIO_PF3_LED0 0x00050C01
  29663. #define GPIO_PF3_PWM5 0x00050C02
  29664. #define GPIO_PF3_PWM3 0x00050C04
  29665. #define GPIO_PF3_SSI1FSS 0x00050C09
  29666. #define GPIO_PF4_CCP0 0x00051001
  29667. #define GPIO_PF4_C0O 0x00051002
  29668. #define GPIO_PF4_FAULT0 0x00051004
  29669. #define GPIO_PF4_EPI0S12 0x00051008
  29670. #define GPIO_PF4_SSI1RX 0x00051009
  29671. #define GPIO_PF5_CCP2 0x00051401
  29672. #define GPIO_PF5_C1O 0x00051402
  29673. #define GPIO_PF5_EPI0S15 0x00051408
  29674. #define GPIO_PF5_SSI1TX 0x00051409
  29675. #define GPIO_PG0_U2RX 0x00060001
  29676. #define GPIO_PG0_PWM0 0x00060002
  29677. #define GPIO_PG0_I2C1SCL 0x00060003
  29678. #define GPIO_PG0_PWM4 0x00060004
  29679. #define GPIO_PG0_USB0EPEN 0x00060007
  29680. #define GPIO_PG0_EPI0S13 0x00060008
  29681. #define GPIO_PG1_U2TX 0x00060401
  29682. #define GPIO_PG1_PWM1 0x00060402
  29683. #define GPIO_PG1_I2C1SDA 0x00060403
  29684. #define GPIO_PG1_PWM5 0x00060404
  29685. #define GPIO_PG1_EPI0S14 0x00060408
  29686. #define GPIO_PG7_PHB1 0x00061C01
  29687. #define GPIO_PG7_PWM7 0x00061C04
  29688. #define GPIO_PG7_CCP5 0x00061C08
  29689. #define GPIO_PG7_EPI0S31 0x00061C09
  29690. #define GPIO_PH0_CCP6 0x00070001
  29691. #define GPIO_PH0_PWM2 0x00070002
  29692. #define GPIO_PH0_EPI0S6 0x00070008
  29693. #define GPIO_PH0_PWM4 0x00070009
  29694. #define GPIO_PH1_CCP7 0x00070401
  29695. #define GPIO_PH1_PWM3 0x00070402
  29696. #define GPIO_PH1_EPI0S7 0x00070408
  29697. #define GPIO_PH1_PWM5 0x00070409
  29698. #define GPIO_PH2_IDX1 0x00070801
  29699. #define GPIO_PH2_C1O 0x00070802
  29700. #define GPIO_PH2_FAULT3 0x00070804
  29701. #define GPIO_PH2_EPI0S1 0x00070808
  29702. #define GPIO_PH3_PHB0 0x00070C01
  29703. #define GPIO_PH3_FAULT0 0x00070C02
  29704. #define GPIO_PH3_USB0EPEN 0x00070C04
  29705. #define GPIO_PH3_EPI0S0 0x00070C08
  29706. #define GPIO_PH4_USB0PFLT 0x00071004
  29707. #define GPIO_PH4_EPI0S10 0x00071008
  29708. #define GPIO_PH4_SSI1CLK 0x0007100B
  29709. #define GPIO_PH5_EPI0S11 0x00071408
  29710. #define GPIO_PH5_FAULT2 0x0007140A
  29711. #define GPIO_PH5_SSI1FSS 0x0007140B
  29712. #define GPIO_PH6_EPI0S26 0x00071808
  29713. #define GPIO_PH6_PWM4 0x0007180A
  29714. #define GPIO_PH6_SSI1RX 0x0007180B
  29715. #define GPIO_PH7_EPI0S27 0x00071C08
  29716. #define GPIO_PH7_PWM5 0x00071C0A
  29717. #define GPIO_PH7_SSI1TX 0x00071C0B
  29718. #define GPIO_PJ0_EPI0S16 0x00080008
  29719. #define GPIO_PJ0_PWM0 0x0008000A
  29720. #define GPIO_PJ0_I2C1SCL 0x0008000B
  29721. #define GPIO_PJ1_EPI0S17 0x00080408
  29722. #define GPIO_PJ1_USB0PFLT 0x00080409
  29723. #define GPIO_PJ1_PWM1 0x0008040A
  29724. #define GPIO_PJ1_I2C1SDA 0x0008040B
  29725. #define GPIO_PJ2_EPI0S18 0x00080808
  29726. #define GPIO_PJ2_CCP0 0x00080809
  29727. #define GPIO_PJ2_FAULT0 0x0008080A
  29728. #define GPIO_PJ3_EPI0S19 0x00080C08
  29729. #define GPIO_PJ3_U1CTS 0x00080C09
  29730. #define GPIO_PJ3_CCP6 0x00080C0A
  29731. #define GPIO_PJ4_EPI0S28 0x00081008
  29732. #define GPIO_PJ4_U1DCD 0x00081009
  29733. #define GPIO_PJ4_CCP4 0x0008100A
  29734. #define GPIO_PJ5_EPI0S29 0x00081408
  29735. #define GPIO_PJ5_U1DSR 0x00081409
  29736. #define GPIO_PJ5_CCP2 0x0008140A
  29737. #define GPIO_PJ6_EPI0S30 0x00081808
  29738. #define GPIO_PJ6_U1RTS 0x00081809
  29739. #define GPIO_PJ6_CCP1 0x0008180A
  29740. #define GPIO_PJ7_U1DTR 0x00081C09
  29741. #define GPIO_PJ7_CCP0 0x00081C0A
  29742. #endif // PART_LM3S9B95
  29743. //*****************************************************************************
  29744. //
  29745. // LM3S9B96 Port/Pin Mapping Definitions
  29746. //
  29747. //*****************************************************************************
  29748. #ifdef PART_LM3S9B96
  29749. #define GPIO_PA0_U0RX 0x00000001
  29750. #define GPIO_PA0_I2C1SCL 0x00000008
  29751. #define GPIO_PA0_U1RX 0x00000009
  29752. #define GPIO_PA1_U0TX 0x00000401
  29753. #define GPIO_PA1_I2C1SDA 0x00000408
  29754. #define GPIO_PA1_U1TX 0x00000409
  29755. #define GPIO_PA2_SSI0CLK 0x00000801
  29756. #define GPIO_PA2_PWM4 0x00000804
  29757. #define GPIO_PA2_I2S0RXSD 0x00000809
  29758. #define GPIO_PA3_SSI0FSS 0x00000C01
  29759. #define GPIO_PA3_PWM5 0x00000C04
  29760. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  29761. #define GPIO_PA4_SSI0RX 0x00001001
  29762. #define GPIO_PA4_PWM6 0x00001004
  29763. #define GPIO_PA4_CAN0RX 0x00001005
  29764. #define GPIO_PA4_I2S0TXSCK 0x00001009
  29765. #define GPIO_PA5_SSI0TX 0x00001401
  29766. #define GPIO_PA5_PWM7 0x00001404
  29767. #define GPIO_PA5_CAN0TX 0x00001405
  29768. #define GPIO_PA5_I2S0TXWS 0x00001409
  29769. #define GPIO_PA6_I2C1SCL 0x00001801
  29770. #define GPIO_PA6_CCP1 0x00001802
  29771. #define GPIO_PA6_PWM0 0x00001804
  29772. #define GPIO_PA6_PWM4 0x00001805
  29773. #define GPIO_PA6_CAN0RX 0x00001806
  29774. #define GPIO_PA6_USB0EPEN 0x00001808
  29775. #define GPIO_PA6_U1CTS 0x00001809
  29776. #define GPIO_PA7_I2C1SDA 0x00001C01
  29777. #define GPIO_PA7_CCP4 0x00001C02
  29778. #define GPIO_PA7_PWM1 0x00001C04
  29779. #define GPIO_PA7_PWM5 0x00001C05
  29780. #define GPIO_PA7_CAN0TX 0x00001C06
  29781. #define GPIO_PA7_CCP3 0x00001C07
  29782. #define GPIO_PA7_USB0PFLT 0x00001C08
  29783. #define GPIO_PA7_U1DCD 0x00001C09
  29784. #define GPIO_PB0_CCP0 0x00010001
  29785. #define GPIO_PB0_PWM2 0x00010002
  29786. #define GPIO_PB0_U1RX 0x00010005
  29787. #define GPIO_PB1_CCP2 0x00010401
  29788. #define GPIO_PB1_PWM3 0x00010402
  29789. #define GPIO_PB1_CCP1 0x00010404
  29790. #define GPIO_PB1_U1TX 0x00010405
  29791. #define GPIO_PB2_I2C0SCL 0x00010801
  29792. #define GPIO_PB2_IDX0 0x00010802
  29793. #define GPIO_PB2_CCP3 0x00010804
  29794. #define GPIO_PB2_CCP0 0x00010805
  29795. #define GPIO_PB2_USB0EPEN 0x00010808
  29796. #define GPIO_PB3_I2C0SDA 0x00010C01
  29797. #define GPIO_PB3_FAULT0 0x00010C02
  29798. #define GPIO_PB3_FAULT3 0x00010C04
  29799. #define GPIO_PB3_USB0PFLT 0x00010C08
  29800. #define GPIO_PB4_U2RX 0x00011004
  29801. #define GPIO_PB4_CAN0RX 0x00011005
  29802. #define GPIO_PB4_IDX0 0x00011006
  29803. #define GPIO_PB4_U1RX 0x00011007
  29804. #define GPIO_PB4_EPI0S23 0x00011008
  29805. #define GPIO_PB5_C0O 0x00011401
  29806. #define GPIO_PB5_CCP5 0x00011402
  29807. #define GPIO_PB5_CCP6 0x00011403
  29808. #define GPIO_PB5_CCP0 0x00011404
  29809. #define GPIO_PB5_CAN0TX 0x00011405
  29810. #define GPIO_PB5_CCP2 0x00011406
  29811. #define GPIO_PB5_U1TX 0x00011407
  29812. #define GPIO_PB5_EPI0S22 0x00011408
  29813. #define GPIO_PB6_CCP1 0x00011801
  29814. #define GPIO_PB6_CCP7 0x00011802
  29815. #define GPIO_PB6_C0O 0x00011803
  29816. #define GPIO_PB6_FAULT1 0x00011804
  29817. #define GPIO_PB6_IDX0 0x00011805
  29818. #define GPIO_PB6_CCP5 0x00011806
  29819. #define GPIO_PB6_I2S0TXSCK 0x00011809
  29820. #define GPIO_PB7_NMI 0x00011C04
  29821. #define GPIO_PC0_TCK 0x00020003
  29822. #define GPIO_PC0_SWCLK 0x00020003
  29823. #define GPIO_PC1_TMS 0x00020403
  29824. #define GPIO_PC1_SWDIO 0x00020403
  29825. #define GPIO_PC2_TDI 0x00020803
  29826. #define GPIO_PC3_SWO 0x00020C03
  29827. #define GPIO_PC3_TDO 0x00020C03
  29828. #define GPIO_PC4_CCP5 0x00021001
  29829. #define GPIO_PC4_PHA0 0x00021002
  29830. #define GPIO_PC4_PWM6 0x00021004
  29831. #define GPIO_PC4_CCP2 0x00021005
  29832. #define GPIO_PC4_CCP4 0x00021006
  29833. #define GPIO_PC4_EPI0S2 0x00021008
  29834. #define GPIO_PC4_CCP1 0x00021009
  29835. #define GPIO_PC5_CCP1 0x00021401
  29836. #define GPIO_PC5_C1O 0x00021402
  29837. #define GPIO_PC5_C0O 0x00021403
  29838. #define GPIO_PC5_FAULT2 0x00021404
  29839. #define GPIO_PC5_CCP3 0x00021405
  29840. #define GPIO_PC5_USB0EPEN 0x00021406
  29841. #define GPIO_PC5_EPI0S3 0x00021408
  29842. #define GPIO_PC6_CCP3 0x00021801
  29843. #define GPIO_PC6_PHB0 0x00021802
  29844. #define GPIO_PC6_C2O 0x00021803
  29845. #define GPIO_PC6_PWM7 0x00021804
  29846. #define GPIO_PC6_U1RX 0x00021805
  29847. #define GPIO_PC6_CCP0 0x00021806
  29848. #define GPIO_PC6_USB0PFLT 0x00021807
  29849. #define GPIO_PC6_EPI0S4 0x00021808
  29850. #define GPIO_PC7_CCP4 0x00021C01
  29851. #define GPIO_PC7_PHB0 0x00021C02
  29852. #define GPIO_PC7_CCP0 0x00021C04
  29853. #define GPIO_PC7_U1TX 0x00021C05
  29854. #define GPIO_PC7_USB0PFLT 0x00021C06
  29855. #define GPIO_PC7_C1O 0x00021C07
  29856. #define GPIO_PC7_EPI0S5 0x00021C08
  29857. #define GPIO_PD0_PWM0 0x00030001
  29858. #define GPIO_PD0_CAN0RX 0x00030002
  29859. #define GPIO_PD0_IDX0 0x00030003
  29860. #define GPIO_PD0_U2RX 0x00030004
  29861. #define GPIO_PD0_U1RX 0x00030005
  29862. #define GPIO_PD0_CCP6 0x00030006
  29863. #define GPIO_PD0_I2S0RXSCK 0x00030008
  29864. #define GPIO_PD0_U1CTS 0x00030009
  29865. #define GPIO_PD1_PWM1 0x00030401
  29866. #define GPIO_PD1_CAN0TX 0x00030402
  29867. #define GPIO_PD1_PHA0 0x00030403
  29868. #define GPIO_PD1_U2TX 0x00030404
  29869. #define GPIO_PD1_U1TX 0x00030405
  29870. #define GPIO_PD1_CCP7 0x00030406
  29871. #define GPIO_PD1_I2S0RXWS 0x00030408
  29872. #define GPIO_PD1_U1DCD 0x00030409
  29873. #define GPIO_PD1_CCP2 0x0003040A
  29874. #define GPIO_PD1_PHB1 0x0003040B
  29875. #define GPIO_PD2_U1RX 0x00030801
  29876. #define GPIO_PD2_CCP6 0x00030802
  29877. #define GPIO_PD2_PWM2 0x00030803
  29878. #define GPIO_PD2_CCP5 0x00030804
  29879. #define GPIO_PD2_EPI0S20 0x00030808
  29880. #define GPIO_PD3_U1TX 0x00030C01
  29881. #define GPIO_PD3_CCP7 0x00030C02
  29882. #define GPIO_PD3_PWM3 0x00030C03
  29883. #define GPIO_PD3_CCP0 0x00030C04
  29884. #define GPIO_PD3_EPI0S21 0x00030C08
  29885. #define GPIO_PD4_CCP0 0x00031001
  29886. #define GPIO_PD4_CCP3 0x00031002
  29887. #define GPIO_PD4_I2S0RXSD 0x00031008
  29888. #define GPIO_PD4_U1RI 0x00031009
  29889. #define GPIO_PD4_EPI0S19 0x0003100A
  29890. #define GPIO_PD5_CCP2 0x00031401
  29891. #define GPIO_PD5_CCP4 0x00031402
  29892. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  29893. #define GPIO_PD5_U2RX 0x00031409
  29894. #define GPIO_PD5_EPI0S28 0x0003140A
  29895. #define GPIO_PD6_FAULT0 0x00031801
  29896. #define GPIO_PD6_I2S0TXSCK 0x00031808
  29897. #define GPIO_PD6_U2TX 0x00031809
  29898. #define GPIO_PD6_EPI0S29 0x0003180A
  29899. #define GPIO_PD7_IDX0 0x00031C01
  29900. #define GPIO_PD7_C0O 0x00031C02
  29901. #define GPIO_PD7_CCP1 0x00031C03
  29902. #define GPIO_PD7_I2S0TXWS 0x00031C08
  29903. #define GPIO_PD7_U1DTR 0x00031C09
  29904. #define GPIO_PD7_EPI0S30 0x00031C0A
  29905. #define GPIO_PE0_PWM4 0x00040001
  29906. #define GPIO_PE0_SSI1CLK 0x00040002
  29907. #define GPIO_PE0_CCP3 0x00040003
  29908. #define GPIO_PE0_EPI0S8 0x00040008
  29909. #define GPIO_PE0_USB0PFLT 0x00040009
  29910. #define GPIO_PE1_PWM5 0x00040401
  29911. #define GPIO_PE1_SSI1FSS 0x00040402
  29912. #define GPIO_PE1_FAULT0 0x00040403
  29913. #define GPIO_PE1_CCP2 0x00040404
  29914. #define GPIO_PE1_CCP6 0x00040405
  29915. #define GPIO_PE1_EPI0S9 0x00040408
  29916. #define GPIO_PE2_CCP4 0x00040801
  29917. #define GPIO_PE2_SSI1RX 0x00040802
  29918. #define GPIO_PE2_PHB1 0x00040803
  29919. #define GPIO_PE2_PHA0 0x00040804
  29920. #define GPIO_PE2_CCP2 0x00040805
  29921. #define GPIO_PE2_EPI0S24 0x00040808
  29922. #define GPIO_PE3_CCP1 0x00040C01
  29923. #define GPIO_PE3_SSI1TX 0x00040C02
  29924. #define GPIO_PE3_PHA1 0x00040C03
  29925. #define GPIO_PE3_PHB0 0x00040C04
  29926. #define GPIO_PE3_CCP7 0x00040C05
  29927. #define GPIO_PE3_EPI0S25 0x00040C08
  29928. #define GPIO_PE4_CCP3 0x00041001
  29929. #define GPIO_PE4_FAULT0 0x00041004
  29930. #define GPIO_PE4_U2TX 0x00041005
  29931. #define GPIO_PE4_CCP2 0x00041006
  29932. #define GPIO_PE4_I2S0TXWS 0x00041009
  29933. #define GPIO_PE5_CCP5 0x00041401
  29934. #define GPIO_PE5_I2S0TXSD 0x00041409
  29935. #define GPIO_PE6_PWM4 0x00041801
  29936. #define GPIO_PE6_C1O 0x00041802
  29937. #define GPIO_PE6_U1CTS 0x00041809
  29938. #define GPIO_PE7_PWM5 0x00041C01
  29939. #define GPIO_PE7_C2O 0x00041C02
  29940. #define GPIO_PE7_U1DCD 0x00041C09
  29941. #define GPIO_PF0_CAN1RX 0x00050001
  29942. #define GPIO_PF0_PHB0 0x00050002
  29943. #define GPIO_PF0_PWM0 0x00050003
  29944. #define GPIO_PF0_I2S0TXSD 0x00050008
  29945. #define GPIO_PF0_U1DSR 0x00050009
  29946. #define GPIO_PF1_CAN1TX 0x00050401
  29947. #define GPIO_PF1_IDX1 0x00050402
  29948. #define GPIO_PF1_PWM1 0x00050403
  29949. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  29950. #define GPIO_PF1_U1RTS 0x00050409
  29951. #define GPIO_PF1_CCP3 0x0005040A
  29952. #define GPIO_PF2_LED1 0x00050801
  29953. #define GPIO_PF2_PWM4 0x00050802
  29954. #define GPIO_PF2_PWM2 0x00050804
  29955. #define GPIO_PF2_SSI1CLK 0x00050809
  29956. #define GPIO_PF3_LED0 0x00050C01
  29957. #define GPIO_PF3_PWM5 0x00050C02
  29958. #define GPIO_PF3_PWM3 0x00050C04
  29959. #define GPIO_PF3_SSI1FSS 0x00050C09
  29960. #define GPIO_PF4_CCP0 0x00051001
  29961. #define GPIO_PF4_C0O 0x00051002
  29962. #define GPIO_PF4_FAULT0 0x00051004
  29963. #define GPIO_PF4_EPI0S12 0x00051008
  29964. #define GPIO_PF4_SSI1RX 0x00051009
  29965. #define GPIO_PF5_CCP2 0x00051401
  29966. #define GPIO_PF5_C1O 0x00051402
  29967. #define GPIO_PF5_EPI0S15 0x00051408
  29968. #define GPIO_PF5_SSI1TX 0x00051409
  29969. #define GPIO_PG0_U2RX 0x00060001
  29970. #define GPIO_PG0_PWM0 0x00060002
  29971. #define GPIO_PG0_I2C1SCL 0x00060003
  29972. #define GPIO_PG0_PWM4 0x00060004
  29973. #define GPIO_PG0_USB0EPEN 0x00060007
  29974. #define GPIO_PG0_EPI0S13 0x00060008
  29975. #define GPIO_PG1_U2TX 0x00060401
  29976. #define GPIO_PG1_PWM1 0x00060402
  29977. #define GPIO_PG1_I2C1SDA 0x00060403
  29978. #define GPIO_PG1_PWM5 0x00060404
  29979. #define GPIO_PG1_EPI0S14 0x00060408
  29980. #define GPIO_PG7_PHB1 0x00061C01
  29981. #define GPIO_PG7_PWM7 0x00061C04
  29982. #define GPIO_PG7_CCP5 0x00061C08
  29983. #define GPIO_PG7_EPI0S31 0x00061C09
  29984. #define GPIO_PH0_CCP6 0x00070001
  29985. #define GPIO_PH0_PWM2 0x00070002
  29986. #define GPIO_PH0_EPI0S6 0x00070008
  29987. #define GPIO_PH0_PWM4 0x00070009
  29988. #define GPIO_PH1_CCP7 0x00070401
  29989. #define GPIO_PH1_PWM3 0x00070402
  29990. #define GPIO_PH1_EPI0S7 0x00070408
  29991. #define GPIO_PH1_PWM5 0x00070409
  29992. #define GPIO_PH2_IDX1 0x00070801
  29993. #define GPIO_PH2_C1O 0x00070802
  29994. #define GPIO_PH2_FAULT3 0x00070804
  29995. #define GPIO_PH2_EPI0S1 0x00070808
  29996. #define GPIO_PH3_PHB0 0x00070C01
  29997. #define GPIO_PH3_FAULT0 0x00070C02
  29998. #define GPIO_PH3_USB0EPEN 0x00070C04
  29999. #define GPIO_PH3_EPI0S0 0x00070C08
  30000. #define GPIO_PH4_USB0PFLT 0x00071004
  30001. #define GPIO_PH4_EPI0S10 0x00071008
  30002. #define GPIO_PH4_SSI1CLK 0x0007100B
  30003. #define GPIO_PH5_EPI0S11 0x00071408
  30004. #define GPIO_PH5_FAULT2 0x0007140A
  30005. #define GPIO_PH5_SSI1FSS 0x0007140B
  30006. #define GPIO_PH6_EPI0S26 0x00071808
  30007. #define GPIO_PH6_PWM4 0x0007180A
  30008. #define GPIO_PH6_SSI1RX 0x0007180B
  30009. #define GPIO_PH7_EPI0S27 0x00071C08
  30010. #define GPIO_PH7_PWM5 0x00071C0A
  30011. #define GPIO_PH7_SSI1TX 0x00071C0B
  30012. #define GPIO_PJ0_EPI0S16 0x00080008
  30013. #define GPIO_PJ0_PWM0 0x0008000A
  30014. #define GPIO_PJ0_I2C1SCL 0x0008000B
  30015. #define GPIO_PJ1_EPI0S17 0x00080408
  30016. #define GPIO_PJ1_USB0PFLT 0x00080409
  30017. #define GPIO_PJ1_PWM1 0x0008040A
  30018. #define GPIO_PJ1_I2C1SDA 0x0008040B
  30019. #define GPIO_PJ2_EPI0S18 0x00080808
  30020. #define GPIO_PJ2_CCP0 0x00080809
  30021. #define GPIO_PJ2_FAULT0 0x0008080A
  30022. #define GPIO_PJ3_EPI0S19 0x00080C08
  30023. #define GPIO_PJ3_U1CTS 0x00080C09
  30024. #define GPIO_PJ3_CCP6 0x00080C0A
  30025. #define GPIO_PJ4_EPI0S28 0x00081008
  30026. #define GPIO_PJ4_U1DCD 0x00081009
  30027. #define GPIO_PJ4_CCP4 0x0008100A
  30028. #define GPIO_PJ5_EPI0S29 0x00081408
  30029. #define GPIO_PJ5_U1DSR 0x00081409
  30030. #define GPIO_PJ5_CCP2 0x0008140A
  30031. #define GPIO_PJ6_EPI0S30 0x00081808
  30032. #define GPIO_PJ6_U1RTS 0x00081809
  30033. #define GPIO_PJ6_CCP1 0x0008180A
  30034. #define GPIO_PJ7_U1DTR 0x00081C09
  30035. #define GPIO_PJ7_CCP0 0x00081C0A
  30036. #endif // PART_LM3S9B96
  30037. //*****************************************************************************
  30038. //
  30039. // LM3S9BN2 Port/Pin Mapping Definitions
  30040. //
  30041. //*****************************************************************************
  30042. #ifdef PART_LM3S9BN2
  30043. #define GPIO_PA0_U0RX 0x00000001
  30044. #define GPIO_PA0_I2C1SCL 0x00000008
  30045. #define GPIO_PA0_U1RX 0x00000009
  30046. #define GPIO_PA1_U0TX 0x00000401
  30047. #define GPIO_PA1_I2C1SDA 0x00000408
  30048. #define GPIO_PA1_U1TX 0x00000409
  30049. #define GPIO_PA2_SSI0CLK 0x00000801
  30050. #define GPIO_PA2_TXD2 0x00000803
  30051. #define GPIO_PA2_PWM4 0x00000804
  30052. #define GPIO_PA2_I2S0RXSD 0x00000809
  30053. #define GPIO_PA3_SSI0FSS 0x00000C01
  30054. #define GPIO_PA3_TXD1 0x00000C03
  30055. #define GPIO_PA3_PWM5 0x00000C04
  30056. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  30057. #define GPIO_PA4_SSI0RX 0x00001001
  30058. #define GPIO_PA4_TXD0 0x00001003
  30059. #define GPIO_PA4_PWM6 0x00001004
  30060. #define GPIO_PA4_CAN0RX 0x00001005
  30061. #define GPIO_PA4_I2S0TXSCK 0x00001009
  30062. #define GPIO_PA5_SSI0TX 0x00001401
  30063. #define GPIO_PA5_RXDV 0x00001403
  30064. #define GPIO_PA5_PWM7 0x00001404
  30065. #define GPIO_PA5_CAN0TX 0x00001405
  30066. #define GPIO_PA5_I2S0TXWS 0x00001409
  30067. #define GPIO_PA6_I2C1SCL 0x00001801
  30068. #define GPIO_PA6_CCP1 0x00001802
  30069. #define GPIO_PA6_RXCK 0x00001803
  30070. #define GPIO_PA6_PWM0 0x00001804
  30071. #define GPIO_PA6_PWM4 0x00001805
  30072. #define GPIO_PA6_CAN0RX 0x00001806
  30073. #define GPIO_PA6_USB0EPEN 0x00001808
  30074. #define GPIO_PA6_U1CTS 0x00001809
  30075. #define GPIO_PA7_I2C1SDA 0x00001C01
  30076. #define GPIO_PA7_CCP4 0x00001C02
  30077. #define GPIO_PA7_RXER 0x00001C03
  30078. #define GPIO_PA7_PWM1 0x00001C04
  30079. #define GPIO_PA7_PWM5 0x00001C05
  30080. #define GPIO_PA7_CAN0TX 0x00001C06
  30081. #define GPIO_PA7_CCP3 0x00001C07
  30082. #define GPIO_PA7_USB0PFLT 0x00001C08
  30083. #define GPIO_PA7_U1DCD 0x00001C09
  30084. #define GPIO_PB0_CCP0 0x00010001
  30085. #define GPIO_PB0_PWM2 0x00010002
  30086. #define GPIO_PB0_U1RX 0x00010005
  30087. #define GPIO_PB1_CCP2 0x00010401
  30088. #define GPIO_PB1_PWM3 0x00010402
  30089. #define GPIO_PB1_CCP1 0x00010404
  30090. #define GPIO_PB1_U1TX 0x00010405
  30091. #define GPIO_PB2_I2C0SCL 0x00010801
  30092. #define GPIO_PB2_IDX0 0x00010802
  30093. #define GPIO_PB2_CCP3 0x00010804
  30094. #define GPIO_PB2_CCP0 0x00010805
  30095. #define GPIO_PB2_USB0EPEN 0x00010808
  30096. #define GPIO_PB3_I2C0SDA 0x00010C01
  30097. #define GPIO_PB3_FAULT0 0x00010C02
  30098. #define GPIO_PB3_FAULT3 0x00010C04
  30099. #define GPIO_PB3_USB0PFLT 0x00010C08
  30100. #define GPIO_PB4_U2RX 0x00011004
  30101. #define GPIO_PB4_CAN0RX 0x00011005
  30102. #define GPIO_PB4_IDX0 0x00011006
  30103. #define GPIO_PB4_U1RX 0x00011007
  30104. #define GPIO_PB4_EPI0S23 0x00011008
  30105. #define GPIO_PB5_C0O 0x00011401
  30106. #define GPIO_PB5_CCP5 0x00011402
  30107. #define GPIO_PB5_CCP6 0x00011403
  30108. #define GPIO_PB5_CCP0 0x00011404
  30109. #define GPIO_PB5_CAN0TX 0x00011405
  30110. #define GPIO_PB5_CCP2 0x00011406
  30111. #define GPIO_PB5_U1TX 0x00011407
  30112. #define GPIO_PB5_EPI0S22 0x00011408
  30113. #define GPIO_PB6_CCP1 0x00011801
  30114. #define GPIO_PB6_CCP7 0x00011802
  30115. #define GPIO_PB6_C0O 0x00011803
  30116. #define GPIO_PB6_FAULT1 0x00011804
  30117. #define GPIO_PB6_IDX0 0x00011805
  30118. #define GPIO_PB6_CCP5 0x00011806
  30119. #define GPIO_PB6_I2S0TXSCK 0x00011809
  30120. #define GPIO_PB7_NMI 0x00011C04
  30121. #define GPIO_PB7_RXD1 0x00011C07
  30122. #define GPIO_PC0_TCK 0x00020003
  30123. #define GPIO_PC0_SWCLK 0x00020003
  30124. #define GPIO_PC1_TMS 0x00020403
  30125. #define GPIO_PC1_SWDIO 0x00020403
  30126. #define GPIO_PC2_TDI 0x00020803
  30127. #define GPIO_PC3_SWO 0x00020C03
  30128. #define GPIO_PC3_TDO 0x00020C03
  30129. #define GPIO_PC4_CCP5 0x00021001
  30130. #define GPIO_PC4_PHA0 0x00021002
  30131. #define GPIO_PC4_TXD3 0x00021003
  30132. #define GPIO_PC4_PWM6 0x00021004
  30133. #define GPIO_PC4_CCP2 0x00021005
  30134. #define GPIO_PC4_CCP4 0x00021006
  30135. #define GPIO_PC4_EPI0S2 0x00021008
  30136. #define GPIO_PC4_CCP1 0x00021009
  30137. #define GPIO_PC5_CCP1 0x00021401
  30138. #define GPIO_PC5_C1O 0x00021402
  30139. #define GPIO_PC5_C0O 0x00021403
  30140. #define GPIO_PC5_FAULT2 0x00021404
  30141. #define GPIO_PC5_CCP3 0x00021405
  30142. #define GPIO_PC5_USB0EPEN 0x00021406
  30143. #define GPIO_PC5_EPI0S3 0x00021408
  30144. #define GPIO_PC6_CCP3 0x00021801
  30145. #define GPIO_PC6_PHB0 0x00021802
  30146. #define GPIO_PC6_C2O 0x00021803
  30147. #define GPIO_PC6_PWM7 0x00021804
  30148. #define GPIO_PC6_U1RX 0x00021805
  30149. #define GPIO_PC6_CCP0 0x00021806
  30150. #define GPIO_PC6_USB0PFLT 0x00021807
  30151. #define GPIO_PC6_EPI0S4 0x00021808
  30152. #define GPIO_PC7_CCP4 0x00021C01
  30153. #define GPIO_PC7_PHB0 0x00021C02
  30154. #define GPIO_PC7_CCP0 0x00021C04
  30155. #define GPIO_PC7_U1TX 0x00021C05
  30156. #define GPIO_PC7_USB0PFLT 0x00021C06
  30157. #define GPIO_PC7_C1O 0x00021C07
  30158. #define GPIO_PC7_EPI0S5 0x00021C08
  30159. #define GPIO_PD0_PWM0 0x00030001
  30160. #define GPIO_PD0_CAN0RX 0x00030002
  30161. #define GPIO_PD0_IDX0 0x00030003
  30162. #define GPIO_PD0_U2RX 0x00030004
  30163. #define GPIO_PD0_U1RX 0x00030005
  30164. #define GPIO_PD0_CCP6 0x00030006
  30165. #define GPIO_PD0_RXDV 0x00030007
  30166. #define GPIO_PD0_I2S0RXSCK 0x00030008
  30167. #define GPIO_PD0_U1CTS 0x00030009
  30168. #define GPIO_PD1_PWM1 0x00030401
  30169. #define GPIO_PD1_CAN0TX 0x00030402
  30170. #define GPIO_PD1_PHA0 0x00030403
  30171. #define GPIO_PD1_U2TX 0x00030404
  30172. #define GPIO_PD1_U1TX 0x00030405
  30173. #define GPIO_PD1_CCP7 0x00030406
  30174. #define GPIO_PD1_TXER 0x00030407
  30175. #define GPIO_PD1_I2S0RXWS 0x00030408
  30176. #define GPIO_PD1_U1DCD 0x00030409
  30177. #define GPIO_PD1_CCP2 0x0003040A
  30178. #define GPIO_PD1_PHB1 0x0003040B
  30179. #define GPIO_PD2_U1RX 0x00030801
  30180. #define GPIO_PD2_CCP6 0x00030802
  30181. #define GPIO_PD2_PWM2 0x00030803
  30182. #define GPIO_PD2_CCP5 0x00030804
  30183. #define GPIO_PD2_EPI0S20 0x00030808
  30184. #define GPIO_PD3_U1TX 0x00030C01
  30185. #define GPIO_PD3_CCP7 0x00030C02
  30186. #define GPIO_PD3_PWM3 0x00030C03
  30187. #define GPIO_PD3_CCP0 0x00030C04
  30188. #define GPIO_PD3_EPI0S21 0x00030C08
  30189. #define GPIO_PD4_CCP0 0x00031001
  30190. #define GPIO_PD4_CCP3 0x00031002
  30191. #define GPIO_PD4_TXD3 0x00031004
  30192. #define GPIO_PD4_I2S0RXSD 0x00031008
  30193. #define GPIO_PD4_U1RI 0x00031009
  30194. #define GPIO_PD4_EPI0S19 0x0003100A
  30195. #define GPIO_PD5_CCP2 0x00031401
  30196. #define GPIO_PD5_CCP4 0x00031402
  30197. #define GPIO_PD5_TXD2 0x00031404
  30198. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  30199. #define GPIO_PD5_U2RX 0x00031409
  30200. #define GPIO_PD5_EPI0S28 0x0003140A
  30201. #define GPIO_PD6_FAULT0 0x00031801
  30202. #define GPIO_PD6_TXD1 0x00031804
  30203. #define GPIO_PD6_I2S0TXSCK 0x00031808
  30204. #define GPIO_PD6_U2TX 0x00031809
  30205. #define GPIO_PD6_EPI0S29 0x0003180A
  30206. #define GPIO_PD7_IDX0 0x00031C01
  30207. #define GPIO_PD7_C0O 0x00031C02
  30208. #define GPIO_PD7_CCP1 0x00031C03
  30209. #define GPIO_PD7_TXD0 0x00031C04
  30210. #define GPIO_PD7_I2S0TXWS 0x00031C08
  30211. #define GPIO_PD7_U1DTR 0x00031C09
  30212. #define GPIO_PD7_EPI0S30 0x00031C0A
  30213. #define GPIO_PE0_PWM4 0x00040001
  30214. #define GPIO_PE0_SSI1CLK 0x00040002
  30215. #define GPIO_PE0_CCP3 0x00040003
  30216. #define GPIO_PE0_EPI0S8 0x00040008
  30217. #define GPIO_PE0_USB0PFLT 0x00040009
  30218. #define GPIO_PE1_PWM5 0x00040401
  30219. #define GPIO_PE1_SSI1FSS 0x00040402
  30220. #define GPIO_PE1_FAULT0 0x00040403
  30221. #define GPIO_PE1_CCP2 0x00040404
  30222. #define GPIO_PE1_CCP6 0x00040405
  30223. #define GPIO_PE1_EPI0S9 0x00040408
  30224. #define GPIO_PE2_CCP4 0x00040801
  30225. #define GPIO_PE2_SSI1RX 0x00040802
  30226. #define GPIO_PE2_PHB1 0x00040803
  30227. #define GPIO_PE2_PHA0 0x00040804
  30228. #define GPIO_PE2_CCP2 0x00040805
  30229. #define GPIO_PE2_EPI0S24 0x00040808
  30230. #define GPIO_PE3_CCP1 0x00040C01
  30231. #define GPIO_PE3_SSI1TX 0x00040C02
  30232. #define GPIO_PE3_PHA1 0x00040C03
  30233. #define GPIO_PE3_PHB0 0x00040C04
  30234. #define GPIO_PE3_CCP7 0x00040C05
  30235. #define GPIO_PE3_EPI0S25 0x00040C08
  30236. #define GPIO_PE4_CCP3 0x00041001
  30237. #define GPIO_PE4_FAULT0 0x00041004
  30238. #define GPIO_PE4_U2TX 0x00041005
  30239. #define GPIO_PE4_CCP2 0x00041006
  30240. #define GPIO_PE4_RXD0 0x00041007
  30241. #define GPIO_PE4_I2S0TXWS 0x00041009
  30242. #define GPIO_PE5_CCP5 0x00041401
  30243. #define GPIO_PE5_I2S0TXSD 0x00041409
  30244. #define GPIO_PE6_PWM4 0x00041801
  30245. #define GPIO_PE6_C1O 0x00041802
  30246. #define GPIO_PE6_U1CTS 0x00041809
  30247. #define GPIO_PE7_PWM5 0x00041C01
  30248. #define GPIO_PE7_C2O 0x00041C02
  30249. #define GPIO_PE7_U1DCD 0x00041C09
  30250. #define GPIO_PF0_CAN1RX 0x00050001
  30251. #define GPIO_PF0_PHB0 0x00050002
  30252. #define GPIO_PF0_PWM0 0x00050003
  30253. #define GPIO_PF0_RXCK 0x00050004
  30254. #define GPIO_PF0_I2S0TXSD 0x00050008
  30255. #define GPIO_PF0_U1DSR 0x00050009
  30256. #define GPIO_PF1_CAN1TX 0x00050401
  30257. #define GPIO_PF1_IDX1 0x00050402
  30258. #define GPIO_PF1_PWM1 0x00050403
  30259. #define GPIO_PF1_RXER 0x00050404
  30260. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  30261. #define GPIO_PF1_U1RTS 0x00050409
  30262. #define GPIO_PF1_CCP3 0x0005040A
  30263. #define GPIO_PF2_PWM4 0x00050802
  30264. #define GPIO_PF2_PHYINT 0x00050803
  30265. #define GPIO_PF2_PWM2 0x00050804
  30266. #define GPIO_PF2_SSI1CLK 0x00050809
  30267. #define GPIO_PF3_PWM5 0x00050C02
  30268. #define GPIO_PF3_MDC 0x00050C03
  30269. #define GPIO_PF3_PWM3 0x00050C04
  30270. #define GPIO_PF3_SSI1FSS 0x00050C09
  30271. #define GPIO_PF4_CCP0 0x00051001
  30272. #define GPIO_PF4_C0O 0x00051002
  30273. #define GPIO_PF4_MDIO 0x00051003
  30274. #define GPIO_PF4_FAULT0 0x00051004
  30275. #define GPIO_PF4_EPI0S12 0x00051008
  30276. #define GPIO_PF4_SSI1RX 0x00051009
  30277. #define GPIO_PF5_CCP2 0x00051401
  30278. #define GPIO_PF5_C1O 0x00051402
  30279. #define GPIO_PF5_RXD3 0x00051403
  30280. #define GPIO_PF5_EPI0S15 0x00051408
  30281. #define GPIO_PF5_SSI1TX 0x00051409
  30282. #define GPIO_PF6_CCP1 0x00051801
  30283. #define GPIO_PF6_C2O 0x00051802
  30284. #define GPIO_PF6_RXD2 0x00051803
  30285. #define GPIO_PF6_PHA0 0x00051804
  30286. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  30287. #define GPIO_PF6_U1RTS 0x0005180A
  30288. #define GPIO_PF7_CCP4 0x00051C01
  30289. #define GPIO_PF7_RXD1 0x00051C03
  30290. #define GPIO_PF7_PHB0 0x00051C04
  30291. #define GPIO_PF7_EPI0S12 0x00051C08
  30292. #define GPIO_PF7_FAULT1 0x00051C09
  30293. #define GPIO_PG0_U2RX 0x00060001
  30294. #define GPIO_PG0_PWM0 0x00060002
  30295. #define GPIO_PG0_I2C1SCL 0x00060003
  30296. #define GPIO_PG0_PWM4 0x00060004
  30297. #define GPIO_PG0_USB0EPEN 0x00060007
  30298. #define GPIO_PG0_EPI0S13 0x00060008
  30299. #define GPIO_PG1_U2TX 0x00060401
  30300. #define GPIO_PG1_PWM1 0x00060402
  30301. #define GPIO_PG1_I2C1SDA 0x00060403
  30302. #define GPIO_PG1_PWM5 0x00060404
  30303. #define GPIO_PG1_EPI0S14 0x00060408
  30304. #define GPIO_PG2_PWM0 0x00060801
  30305. #define GPIO_PG2_COL 0x00060803
  30306. #define GPIO_PG2_FAULT0 0x00060804
  30307. #define GPIO_PG2_IDX1 0x00060808
  30308. #define GPIO_PG2_I2S0RXSD 0x00060809
  30309. #define GPIO_PG3_PWM1 0x00060C01
  30310. #define GPIO_PG3_CRS 0x00060C03
  30311. #define GPIO_PG3_FAULT2 0x00060C04
  30312. #define GPIO_PG3_FAULT0 0x00060C08
  30313. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  30314. #define GPIO_PG4_CCP3 0x00061001
  30315. #define GPIO_PG4_RXD0 0x00061003
  30316. #define GPIO_PG4_FAULT1 0x00061004
  30317. #define GPIO_PG4_EPI0S15 0x00061008
  30318. #define GPIO_PG4_PWM6 0x00061009
  30319. #define GPIO_PG4_U1RI 0x0006100A
  30320. #define GPIO_PG5_CCP5 0x00061401
  30321. #define GPIO_PG5_TXEN 0x00061403
  30322. #define GPIO_PG5_IDX0 0x00061404
  30323. #define GPIO_PG5_FAULT1 0x00061405
  30324. #define GPIO_PG5_PWM7 0x00061408
  30325. #define GPIO_PG5_I2S0RXSCK 0x00061409
  30326. #define GPIO_PG5_U1DTR 0x0006140A
  30327. #define GPIO_PG6_PHA1 0x00061801
  30328. #define GPIO_PG6_TXCK 0x00061803
  30329. #define GPIO_PG6_PWM6 0x00061804
  30330. #define GPIO_PG6_FAULT1 0x00061808
  30331. #define GPIO_PG6_I2S0RXWS 0x00061809
  30332. #define GPIO_PG6_U1RI 0x0006180A
  30333. #define GPIO_PG7_PHB1 0x00061C01
  30334. #define GPIO_PG7_TXER 0x00061C03
  30335. #define GPIO_PG7_PWM7 0x00061C04
  30336. #define GPIO_PG7_CCP5 0x00061C08
  30337. #define GPIO_PG7_EPI0S31 0x00061C09
  30338. #define GPIO_PH0_CCP6 0x00070001
  30339. #define GPIO_PH0_PWM2 0x00070002
  30340. #define GPIO_PH0_EPI0S6 0x00070008
  30341. #define GPIO_PH0_PWM4 0x00070009
  30342. #define GPIO_PH1_CCP7 0x00070401
  30343. #define GPIO_PH1_PWM3 0x00070402
  30344. #define GPIO_PH1_EPI0S7 0x00070408
  30345. #define GPIO_PH1_PWM5 0x00070409
  30346. #define GPIO_PH2_IDX1 0x00070801
  30347. #define GPIO_PH2_C1O 0x00070802
  30348. #define GPIO_PH2_FAULT3 0x00070804
  30349. #define GPIO_PH2_EPI0S1 0x00070808
  30350. #define GPIO_PH2_TXD3 0x00070809
  30351. #define GPIO_PH3_PHB0 0x00070C01
  30352. #define GPIO_PH3_FAULT0 0x00070C02
  30353. #define GPIO_PH3_USB0EPEN 0x00070C04
  30354. #define GPIO_PH3_EPI0S0 0x00070C08
  30355. #define GPIO_PH3_TXD2 0x00070C09
  30356. #define GPIO_PH4_USB0PFLT 0x00071004
  30357. #define GPIO_PH4_EPI0S10 0x00071008
  30358. #define GPIO_PH4_TXD1 0x00071009
  30359. #define GPIO_PH4_SSI1CLK 0x0007100B
  30360. #define GPIO_PH5_EPI0S11 0x00071408
  30361. #define GPIO_PH5_TXD0 0x00071409
  30362. #define GPIO_PH5_FAULT2 0x0007140A
  30363. #define GPIO_PH5_SSI1FSS 0x0007140B
  30364. #define GPIO_PH6_EPI0S26 0x00071808
  30365. #define GPIO_PH6_RXDV 0x00071809
  30366. #define GPIO_PH6_PWM4 0x0007180A
  30367. #define GPIO_PH6_SSI1RX 0x0007180B
  30368. #define GPIO_PH7_RXCK 0x00071C03
  30369. #define GPIO_PH7_EPI0S27 0x00071C08
  30370. #define GPIO_PH7_PWM5 0x00071C0A
  30371. #define GPIO_PH7_SSI1TX 0x00071C0B
  30372. #define GPIO_PJ0_RXER 0x00080003
  30373. #define GPIO_PJ0_EPI0S16 0x00080008
  30374. #define GPIO_PJ0_PWM0 0x0008000A
  30375. #define GPIO_PJ0_I2C1SCL 0x0008000B
  30376. #define GPIO_PJ1_EPI0S17 0x00080408
  30377. #define GPIO_PJ1_USB0PFLT 0x00080409
  30378. #define GPIO_PJ1_PWM1 0x0008040A
  30379. #define GPIO_PJ1_I2C1SDA 0x0008040B
  30380. #define GPIO_PJ2_EPI0S18 0x00080808
  30381. #define GPIO_PJ2_CCP0 0x00080809
  30382. #define GPIO_PJ2_FAULT0 0x0008080A
  30383. #define GPIO_PJ3_EPI0S19 0x00080C08
  30384. #define GPIO_PJ3_U1CTS 0x00080C09
  30385. #define GPIO_PJ3_CCP6 0x00080C0A
  30386. #define GPIO_PJ4_EPI0S28 0x00081008
  30387. #define GPIO_PJ4_U1DCD 0x00081009
  30388. #define GPIO_PJ4_CCP4 0x0008100A
  30389. #define GPIO_PJ5_EPI0S29 0x00081408
  30390. #define GPIO_PJ5_U1DSR 0x00081409
  30391. #define GPIO_PJ5_CCP2 0x0008140A
  30392. #define GPIO_PJ6_EPI0S30 0x00081808
  30393. #define GPIO_PJ6_U1RTS 0x00081809
  30394. #define GPIO_PJ6_CCP1 0x0008180A
  30395. #define GPIO_PJ7_U1DTR 0x00081C09
  30396. #define GPIO_PJ7_CCP0 0x00081C0A
  30397. #endif // PART_LM3S9BN2
  30398. //*****************************************************************************
  30399. //
  30400. // LM3S9BN5 Port/Pin Mapping Definitions
  30401. //
  30402. //*****************************************************************************
  30403. #ifdef PART_LM3S9BN5
  30404. #define GPIO_PA0_U0RX 0x00000001
  30405. #define GPIO_PA0_I2C1SCL 0x00000008
  30406. #define GPIO_PA0_U1RX 0x00000009
  30407. #define GPIO_PA1_U0TX 0x00000401
  30408. #define GPIO_PA1_I2C1SDA 0x00000408
  30409. #define GPIO_PA1_U1TX 0x00000409
  30410. #define GPIO_PA2_SSI0CLK 0x00000801
  30411. #define GPIO_PA2_TXD2 0x00000803
  30412. #define GPIO_PA2_PWM4 0x00000804
  30413. #define GPIO_PA2_I2S0RXSD 0x00000809
  30414. #define GPIO_PA3_SSI0FSS 0x00000C01
  30415. #define GPIO_PA3_TXD1 0x00000C03
  30416. #define GPIO_PA3_PWM5 0x00000C04
  30417. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  30418. #define GPIO_PA4_SSI0RX 0x00001001
  30419. #define GPIO_PA4_TXD0 0x00001003
  30420. #define GPIO_PA4_PWM6 0x00001004
  30421. #define GPIO_PA4_CAN0RX 0x00001005
  30422. #define GPIO_PA4_I2S0TXSCK 0x00001009
  30423. #define GPIO_PA5_SSI0TX 0x00001401
  30424. #define GPIO_PA5_RXDV 0x00001403
  30425. #define GPIO_PA5_PWM7 0x00001404
  30426. #define GPIO_PA5_CAN0TX 0x00001405
  30427. #define GPIO_PA5_I2S0TXWS 0x00001409
  30428. #define GPIO_PA6_I2C1SCL 0x00001801
  30429. #define GPIO_PA6_CCP1 0x00001802
  30430. #define GPIO_PA6_RXCK 0x00001803
  30431. #define GPIO_PA6_PWM0 0x00001804
  30432. #define GPIO_PA6_PWM4 0x00001805
  30433. #define GPIO_PA6_CAN0RX 0x00001806
  30434. #define GPIO_PA6_USB0EPEN 0x00001808
  30435. #define GPIO_PA6_U1CTS 0x00001809
  30436. #define GPIO_PA7_I2C1SDA 0x00001C01
  30437. #define GPIO_PA7_CCP4 0x00001C02
  30438. #define GPIO_PA7_RXER 0x00001C03
  30439. #define GPIO_PA7_PWM1 0x00001C04
  30440. #define GPIO_PA7_PWM5 0x00001C05
  30441. #define GPIO_PA7_CAN0TX 0x00001C06
  30442. #define GPIO_PA7_CCP3 0x00001C07
  30443. #define GPIO_PA7_USB0PFLT 0x00001C08
  30444. #define GPIO_PA7_U1DCD 0x00001C09
  30445. #define GPIO_PB0_CCP0 0x00010001
  30446. #define GPIO_PB0_PWM2 0x00010002
  30447. #define GPIO_PB0_U1RX 0x00010005
  30448. #define GPIO_PB1_CCP2 0x00010401
  30449. #define GPIO_PB1_PWM3 0x00010402
  30450. #define GPIO_PB1_CCP1 0x00010404
  30451. #define GPIO_PB1_U1TX 0x00010405
  30452. #define GPIO_PB2_I2C0SCL 0x00010801
  30453. #define GPIO_PB2_IDX0 0x00010802
  30454. #define GPIO_PB2_CCP3 0x00010804
  30455. #define GPIO_PB2_CCP0 0x00010805
  30456. #define GPIO_PB2_USB0EPEN 0x00010808
  30457. #define GPIO_PB3_I2C0SDA 0x00010C01
  30458. #define GPIO_PB3_FAULT0 0x00010C02
  30459. #define GPIO_PB3_FAULT3 0x00010C04
  30460. #define GPIO_PB3_USB0PFLT 0x00010C08
  30461. #define GPIO_PB4_U2RX 0x00011004
  30462. #define GPIO_PB4_CAN0RX 0x00011005
  30463. #define GPIO_PB4_IDX0 0x00011006
  30464. #define GPIO_PB4_U1RX 0x00011007
  30465. #define GPIO_PB4_EPI0S23 0x00011008
  30466. #define GPIO_PB5_C0O 0x00011401
  30467. #define GPIO_PB5_CCP5 0x00011402
  30468. #define GPIO_PB5_CCP6 0x00011403
  30469. #define GPIO_PB5_CCP0 0x00011404
  30470. #define GPIO_PB5_CAN0TX 0x00011405
  30471. #define GPIO_PB5_CCP2 0x00011406
  30472. #define GPIO_PB5_U1TX 0x00011407
  30473. #define GPIO_PB5_EPI0S22 0x00011408
  30474. #define GPIO_PB6_CCP1 0x00011801
  30475. #define GPIO_PB6_CCP7 0x00011802
  30476. #define GPIO_PB6_C0O 0x00011803
  30477. #define GPIO_PB6_FAULT1 0x00011804
  30478. #define GPIO_PB6_IDX0 0x00011805
  30479. #define GPIO_PB6_CCP5 0x00011806
  30480. #define GPIO_PB6_I2S0TXSCK 0x00011809
  30481. #define GPIO_PB7_NMI 0x00011C04
  30482. #define GPIO_PB7_RXD1 0x00011C07
  30483. #define GPIO_PC0_TCK 0x00020003
  30484. #define GPIO_PC0_SWCLK 0x00020003
  30485. #define GPIO_PC1_TMS 0x00020403
  30486. #define GPIO_PC1_SWDIO 0x00020403
  30487. #define GPIO_PC2_TDI 0x00020803
  30488. #define GPIO_PC3_SWO 0x00020C03
  30489. #define GPIO_PC3_TDO 0x00020C03
  30490. #define GPIO_PC4_CCP5 0x00021001
  30491. #define GPIO_PC4_PHA0 0x00021002
  30492. #define GPIO_PC4_TXD3 0x00021003
  30493. #define GPIO_PC4_PWM6 0x00021004
  30494. #define GPIO_PC4_CCP2 0x00021005
  30495. #define GPIO_PC4_CCP4 0x00021006
  30496. #define GPIO_PC4_EPI0S2 0x00021008
  30497. #define GPIO_PC4_CCP1 0x00021009
  30498. #define GPIO_PC5_CCP1 0x00021401
  30499. #define GPIO_PC5_C1O 0x00021402
  30500. #define GPIO_PC5_C0O 0x00021403
  30501. #define GPIO_PC5_FAULT2 0x00021404
  30502. #define GPIO_PC5_CCP3 0x00021405
  30503. #define GPIO_PC5_USB0EPEN 0x00021406
  30504. #define GPIO_PC5_EPI0S3 0x00021408
  30505. #define GPIO_PC6_CCP3 0x00021801
  30506. #define GPIO_PC6_PHB0 0x00021802
  30507. #define GPIO_PC6_C2O 0x00021803
  30508. #define GPIO_PC6_PWM7 0x00021804
  30509. #define GPIO_PC6_U1RX 0x00021805
  30510. #define GPIO_PC6_CCP0 0x00021806
  30511. #define GPIO_PC6_USB0PFLT 0x00021807
  30512. #define GPIO_PC6_EPI0S4 0x00021808
  30513. #define GPIO_PC7_CCP4 0x00021C01
  30514. #define GPIO_PC7_PHB0 0x00021C02
  30515. #define GPIO_PC7_CCP0 0x00021C04
  30516. #define GPIO_PC7_U1TX 0x00021C05
  30517. #define GPIO_PC7_USB0PFLT 0x00021C06
  30518. #define GPIO_PC7_C1O 0x00021C07
  30519. #define GPIO_PC7_EPI0S5 0x00021C08
  30520. #define GPIO_PD0_PWM0 0x00030001
  30521. #define GPIO_PD0_CAN0RX 0x00030002
  30522. #define GPIO_PD0_IDX0 0x00030003
  30523. #define GPIO_PD0_U2RX 0x00030004
  30524. #define GPIO_PD0_U1RX 0x00030005
  30525. #define GPIO_PD0_CCP6 0x00030006
  30526. #define GPIO_PD0_RXDV 0x00030007
  30527. #define GPIO_PD0_I2S0RXSCK 0x00030008
  30528. #define GPIO_PD0_U1CTS 0x00030009
  30529. #define GPIO_PD1_PWM1 0x00030401
  30530. #define GPIO_PD1_CAN0TX 0x00030402
  30531. #define GPIO_PD1_PHA0 0x00030403
  30532. #define GPIO_PD1_U2TX 0x00030404
  30533. #define GPIO_PD1_U1TX 0x00030405
  30534. #define GPIO_PD1_CCP7 0x00030406
  30535. #define GPIO_PD1_TXER 0x00030407
  30536. #define GPIO_PD1_I2S0RXWS 0x00030408
  30537. #define GPIO_PD1_U1DCD 0x00030409
  30538. #define GPIO_PD1_CCP2 0x0003040A
  30539. #define GPIO_PD1_PHB1 0x0003040B
  30540. #define GPIO_PD2_U1RX 0x00030801
  30541. #define GPIO_PD2_CCP6 0x00030802
  30542. #define GPIO_PD2_PWM2 0x00030803
  30543. #define GPIO_PD2_CCP5 0x00030804
  30544. #define GPIO_PD2_EPI0S20 0x00030808
  30545. #define GPIO_PD3_U1TX 0x00030C01
  30546. #define GPIO_PD3_CCP7 0x00030C02
  30547. #define GPIO_PD3_PWM3 0x00030C03
  30548. #define GPIO_PD3_CCP0 0x00030C04
  30549. #define GPIO_PD3_EPI0S21 0x00030C08
  30550. #define GPIO_PD4_CCP0 0x00031001
  30551. #define GPIO_PD4_CCP3 0x00031002
  30552. #define GPIO_PD4_TXD3 0x00031004
  30553. #define GPIO_PD4_I2S0RXSD 0x00031008
  30554. #define GPIO_PD4_U1RI 0x00031009
  30555. #define GPIO_PD4_EPI0S19 0x0003100A
  30556. #define GPIO_PD5_CCP2 0x00031401
  30557. #define GPIO_PD5_CCP4 0x00031402
  30558. #define GPIO_PD5_TXD2 0x00031404
  30559. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  30560. #define GPIO_PD5_U2RX 0x00031409
  30561. #define GPIO_PD5_EPI0S28 0x0003140A
  30562. #define GPIO_PD6_FAULT0 0x00031801
  30563. #define GPIO_PD6_TXD1 0x00031804
  30564. #define GPIO_PD6_I2S0TXSCK 0x00031808
  30565. #define GPIO_PD6_U2TX 0x00031809
  30566. #define GPIO_PD6_EPI0S29 0x0003180A
  30567. #define GPIO_PD7_IDX0 0x00031C01
  30568. #define GPIO_PD7_C0O 0x00031C02
  30569. #define GPIO_PD7_CCP1 0x00031C03
  30570. #define GPIO_PD7_TXD0 0x00031C04
  30571. #define GPIO_PD7_I2S0TXWS 0x00031C08
  30572. #define GPIO_PD7_U1DTR 0x00031C09
  30573. #define GPIO_PD7_EPI0S30 0x00031C0A
  30574. #define GPIO_PE0_PWM4 0x00040001
  30575. #define GPIO_PE0_SSI1CLK 0x00040002
  30576. #define GPIO_PE0_CCP3 0x00040003
  30577. #define GPIO_PE0_EPI0S8 0x00040008
  30578. #define GPIO_PE0_USB0PFLT 0x00040009
  30579. #define GPIO_PE1_PWM5 0x00040401
  30580. #define GPIO_PE1_SSI1FSS 0x00040402
  30581. #define GPIO_PE1_FAULT0 0x00040403
  30582. #define GPIO_PE1_CCP2 0x00040404
  30583. #define GPIO_PE1_CCP6 0x00040405
  30584. #define GPIO_PE1_EPI0S9 0x00040408
  30585. #define GPIO_PE2_CCP4 0x00040801
  30586. #define GPIO_PE2_SSI1RX 0x00040802
  30587. #define GPIO_PE2_PHB1 0x00040803
  30588. #define GPIO_PE2_PHA0 0x00040804
  30589. #define GPIO_PE2_CCP2 0x00040805
  30590. #define GPIO_PE2_EPI0S24 0x00040808
  30591. #define GPIO_PE3_CCP1 0x00040C01
  30592. #define GPIO_PE3_SSI1TX 0x00040C02
  30593. #define GPIO_PE3_PHA1 0x00040C03
  30594. #define GPIO_PE3_PHB0 0x00040C04
  30595. #define GPIO_PE3_CCP7 0x00040C05
  30596. #define GPIO_PE3_EPI0S25 0x00040C08
  30597. #define GPIO_PE4_CCP3 0x00041001
  30598. #define GPIO_PE4_FAULT0 0x00041004
  30599. #define GPIO_PE4_U2TX 0x00041005
  30600. #define GPIO_PE4_CCP2 0x00041006
  30601. #define GPIO_PE4_RXD0 0x00041007
  30602. #define GPIO_PE4_I2S0TXWS 0x00041009
  30603. #define GPIO_PE5_CCP5 0x00041401
  30604. #define GPIO_PE5_I2S0TXSD 0x00041409
  30605. #define GPIO_PE6_PWM4 0x00041801
  30606. #define GPIO_PE6_C1O 0x00041802
  30607. #define GPIO_PE6_U1CTS 0x00041809
  30608. #define GPIO_PE7_PWM5 0x00041C01
  30609. #define GPIO_PE7_C2O 0x00041C02
  30610. #define GPIO_PE7_U1DCD 0x00041C09
  30611. #define GPIO_PF0_CAN1RX 0x00050001
  30612. #define GPIO_PF0_PHB0 0x00050002
  30613. #define GPIO_PF0_PWM0 0x00050003
  30614. #define GPIO_PF0_RXCK 0x00050004
  30615. #define GPIO_PF0_I2S0TXSD 0x00050008
  30616. #define GPIO_PF0_U1DSR 0x00050009
  30617. #define GPIO_PF1_CAN1TX 0x00050401
  30618. #define GPIO_PF1_IDX1 0x00050402
  30619. #define GPIO_PF1_PWM1 0x00050403
  30620. #define GPIO_PF1_RXER 0x00050404
  30621. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  30622. #define GPIO_PF1_U1RTS 0x00050409
  30623. #define GPIO_PF1_CCP3 0x0005040A
  30624. #define GPIO_PF2_PWM4 0x00050802
  30625. #define GPIO_PF2_PHYINT 0x00050803
  30626. #define GPIO_PF2_PWM2 0x00050804
  30627. #define GPIO_PF2_SSI1CLK 0x00050809
  30628. #define GPIO_PF3_PWM5 0x00050C02
  30629. #define GPIO_PF3_MDC 0x00050C03
  30630. #define GPIO_PF3_PWM3 0x00050C04
  30631. #define GPIO_PF3_SSI1FSS 0x00050C09
  30632. #define GPIO_PF4_CCP0 0x00051001
  30633. #define GPIO_PF4_C0O 0x00051002
  30634. #define GPIO_PF4_MDIO 0x00051003
  30635. #define GPIO_PF4_FAULT0 0x00051004
  30636. #define GPIO_PF4_EPI0S12 0x00051008
  30637. #define GPIO_PF4_SSI1RX 0x00051009
  30638. #define GPIO_PF5_CCP2 0x00051401
  30639. #define GPIO_PF5_C1O 0x00051402
  30640. #define GPIO_PF5_RXD3 0x00051403
  30641. #define GPIO_PF5_EPI0S15 0x00051408
  30642. #define GPIO_PF5_SSI1TX 0x00051409
  30643. #define GPIO_PF6_CCP1 0x00051801
  30644. #define GPIO_PF6_C2O 0x00051802
  30645. #define GPIO_PF6_RXD2 0x00051803
  30646. #define GPIO_PF6_PHA0 0x00051804
  30647. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  30648. #define GPIO_PF6_U1RTS 0x0005180A
  30649. #define GPIO_PF7_CCP4 0x00051C01
  30650. #define GPIO_PF7_RXD1 0x00051C03
  30651. #define GPIO_PF7_PHB0 0x00051C04
  30652. #define GPIO_PF7_EPI0S12 0x00051C08
  30653. #define GPIO_PF7_FAULT1 0x00051C09
  30654. #define GPIO_PG0_U2RX 0x00060001
  30655. #define GPIO_PG0_PWM0 0x00060002
  30656. #define GPIO_PG0_I2C1SCL 0x00060003
  30657. #define GPIO_PG0_PWM4 0x00060004
  30658. #define GPIO_PG0_USB0EPEN 0x00060007
  30659. #define GPIO_PG0_EPI0S13 0x00060008
  30660. #define GPIO_PG1_U2TX 0x00060401
  30661. #define GPIO_PG1_PWM1 0x00060402
  30662. #define GPIO_PG1_I2C1SDA 0x00060403
  30663. #define GPIO_PG1_PWM5 0x00060404
  30664. #define GPIO_PG1_EPI0S14 0x00060408
  30665. #define GPIO_PG2_PWM0 0x00060801
  30666. #define GPIO_PG2_COL 0x00060803
  30667. #define GPIO_PG2_FAULT0 0x00060804
  30668. #define GPIO_PG2_IDX1 0x00060808
  30669. #define GPIO_PG2_I2S0RXSD 0x00060809
  30670. #define GPIO_PG3_PWM1 0x00060C01
  30671. #define GPIO_PG3_CRS 0x00060C03
  30672. #define GPIO_PG3_FAULT2 0x00060C04
  30673. #define GPIO_PG3_FAULT0 0x00060C08
  30674. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  30675. #define GPIO_PG4_CCP3 0x00061001
  30676. #define GPIO_PG4_RXD0 0x00061003
  30677. #define GPIO_PG4_FAULT1 0x00061004
  30678. #define GPIO_PG4_EPI0S15 0x00061008
  30679. #define GPIO_PG4_PWM6 0x00061009
  30680. #define GPIO_PG4_U1RI 0x0006100A
  30681. #define GPIO_PG5_CCP5 0x00061401
  30682. #define GPIO_PG5_TXEN 0x00061403
  30683. #define GPIO_PG5_IDX0 0x00061404
  30684. #define GPIO_PG5_FAULT1 0x00061405
  30685. #define GPIO_PG5_PWM7 0x00061408
  30686. #define GPIO_PG5_I2S0RXSCK 0x00061409
  30687. #define GPIO_PG5_U1DTR 0x0006140A
  30688. #define GPIO_PG6_PHA1 0x00061801
  30689. #define GPIO_PG6_TXCK 0x00061803
  30690. #define GPIO_PG6_PWM6 0x00061804
  30691. #define GPIO_PG6_FAULT1 0x00061808
  30692. #define GPIO_PG6_I2S0RXWS 0x00061809
  30693. #define GPIO_PG6_U1RI 0x0006180A
  30694. #define GPIO_PG7_PHB1 0x00061C01
  30695. #define GPIO_PG7_TXER 0x00061C03
  30696. #define GPIO_PG7_PWM7 0x00061C04
  30697. #define GPIO_PG7_CCP5 0x00061C08
  30698. #define GPIO_PG7_EPI0S31 0x00061C09
  30699. #define GPIO_PH0_CCP6 0x00070001
  30700. #define GPIO_PH0_PWM2 0x00070002
  30701. #define GPIO_PH0_EPI0S6 0x00070008
  30702. #define GPIO_PH0_PWM4 0x00070009
  30703. #define GPIO_PH1_CCP7 0x00070401
  30704. #define GPIO_PH1_PWM3 0x00070402
  30705. #define GPIO_PH1_EPI0S7 0x00070408
  30706. #define GPIO_PH1_PWM5 0x00070409
  30707. #define GPIO_PH2_IDX1 0x00070801
  30708. #define GPIO_PH2_C1O 0x00070802
  30709. #define GPIO_PH2_FAULT3 0x00070804
  30710. #define GPIO_PH2_EPI0S1 0x00070808
  30711. #define GPIO_PH2_TXD3 0x00070809
  30712. #define GPIO_PH3_PHB0 0x00070C01
  30713. #define GPIO_PH3_FAULT0 0x00070C02
  30714. #define GPIO_PH3_USB0EPEN 0x00070C04
  30715. #define GPIO_PH3_EPI0S0 0x00070C08
  30716. #define GPIO_PH3_TXD2 0x00070C09
  30717. #define GPIO_PH4_USB0PFLT 0x00071004
  30718. #define GPIO_PH4_EPI0S10 0x00071008
  30719. #define GPIO_PH4_TXD1 0x00071009
  30720. #define GPIO_PH4_SSI1CLK 0x0007100B
  30721. #define GPIO_PH5_EPI0S11 0x00071408
  30722. #define GPIO_PH5_TXD0 0x00071409
  30723. #define GPIO_PH5_FAULT2 0x0007140A
  30724. #define GPIO_PH5_SSI1FSS 0x0007140B
  30725. #define GPIO_PH6_EPI0S26 0x00071808
  30726. #define GPIO_PH6_RXDV 0x00071809
  30727. #define GPIO_PH6_PWM4 0x0007180A
  30728. #define GPIO_PH6_SSI1RX 0x0007180B
  30729. #define GPIO_PH7_RXCK 0x00071C03
  30730. #define GPIO_PH7_EPI0S27 0x00071C08
  30731. #define GPIO_PH7_PWM5 0x00071C0A
  30732. #define GPIO_PH7_SSI1TX 0x00071C0B
  30733. #define GPIO_PJ0_RXER 0x00080003
  30734. #define GPIO_PJ0_EPI0S16 0x00080008
  30735. #define GPIO_PJ0_PWM0 0x0008000A
  30736. #define GPIO_PJ0_I2C1SCL 0x0008000B
  30737. #define GPIO_PJ1_EPI0S17 0x00080408
  30738. #define GPIO_PJ1_USB0PFLT 0x00080409
  30739. #define GPIO_PJ1_PWM1 0x0008040A
  30740. #define GPIO_PJ1_I2C1SDA 0x0008040B
  30741. #define GPIO_PJ2_EPI0S18 0x00080808
  30742. #define GPIO_PJ2_CCP0 0x00080809
  30743. #define GPIO_PJ2_FAULT0 0x0008080A
  30744. #define GPIO_PJ3_EPI0S19 0x00080C08
  30745. #define GPIO_PJ3_U1CTS 0x00080C09
  30746. #define GPIO_PJ3_CCP6 0x00080C0A
  30747. #define GPIO_PJ4_EPI0S28 0x00081008
  30748. #define GPIO_PJ4_U1DCD 0x00081009
  30749. #define GPIO_PJ4_CCP4 0x0008100A
  30750. #define GPIO_PJ5_EPI0S29 0x00081408
  30751. #define GPIO_PJ5_U1DSR 0x00081409
  30752. #define GPIO_PJ5_CCP2 0x0008140A
  30753. #define GPIO_PJ6_EPI0S30 0x00081808
  30754. #define GPIO_PJ6_U1RTS 0x00081809
  30755. #define GPIO_PJ6_CCP1 0x0008180A
  30756. #define GPIO_PJ7_U1DTR 0x00081C09
  30757. #define GPIO_PJ7_CCP0 0x00081C0A
  30758. #endif // PART_LM3S9BN5
  30759. //*****************************************************************************
  30760. //
  30761. // LM3S9BN6 Port/Pin Mapping Definitions
  30762. //
  30763. //*****************************************************************************
  30764. #ifdef PART_LM3S9BN6
  30765. #define GPIO_PA0_U0RX 0x00000001
  30766. #define GPIO_PA0_I2C1SCL 0x00000008
  30767. #define GPIO_PA0_U1RX 0x00000009
  30768. #define GPIO_PA1_U0TX 0x00000401
  30769. #define GPIO_PA1_I2C1SDA 0x00000408
  30770. #define GPIO_PA1_U1TX 0x00000409
  30771. #define GPIO_PA2_SSI0CLK 0x00000801
  30772. #define GPIO_PA2_TXD2 0x00000803
  30773. #define GPIO_PA2_PWM4 0x00000804
  30774. #define GPIO_PA2_I2S0RXSD 0x00000809
  30775. #define GPIO_PA3_SSI0FSS 0x00000C01
  30776. #define GPIO_PA3_TXD1 0x00000C03
  30777. #define GPIO_PA3_PWM5 0x00000C04
  30778. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  30779. #define GPIO_PA4_SSI0RX 0x00001001
  30780. #define GPIO_PA4_TXD0 0x00001003
  30781. #define GPIO_PA4_PWM6 0x00001004
  30782. #define GPIO_PA4_CAN0RX 0x00001005
  30783. #define GPIO_PA4_I2S0TXSCK 0x00001009
  30784. #define GPIO_PA5_SSI0TX 0x00001401
  30785. #define GPIO_PA5_RXDV 0x00001403
  30786. #define GPIO_PA5_PWM7 0x00001404
  30787. #define GPIO_PA5_CAN0TX 0x00001405
  30788. #define GPIO_PA5_I2S0TXWS 0x00001409
  30789. #define GPIO_PA6_I2C1SCL 0x00001801
  30790. #define GPIO_PA6_CCP1 0x00001802
  30791. #define GPIO_PA6_RXCK 0x00001803
  30792. #define GPIO_PA6_PWM0 0x00001804
  30793. #define GPIO_PA6_PWM4 0x00001805
  30794. #define GPIO_PA6_CAN0RX 0x00001806
  30795. #define GPIO_PA6_USB0EPEN 0x00001808
  30796. #define GPIO_PA6_U1CTS 0x00001809
  30797. #define GPIO_PA7_I2C1SDA 0x00001C01
  30798. #define GPIO_PA7_CCP4 0x00001C02
  30799. #define GPIO_PA7_RXER 0x00001C03
  30800. #define GPIO_PA7_PWM1 0x00001C04
  30801. #define GPIO_PA7_PWM5 0x00001C05
  30802. #define GPIO_PA7_CAN0TX 0x00001C06
  30803. #define GPIO_PA7_CCP3 0x00001C07
  30804. #define GPIO_PA7_USB0PFLT 0x00001C08
  30805. #define GPIO_PA7_U1DCD 0x00001C09
  30806. #define GPIO_PB0_CCP0 0x00010001
  30807. #define GPIO_PB0_PWM2 0x00010002
  30808. #define GPIO_PB0_U1RX 0x00010005
  30809. #define GPIO_PB1_CCP2 0x00010401
  30810. #define GPIO_PB1_PWM3 0x00010402
  30811. #define GPIO_PB1_CCP1 0x00010404
  30812. #define GPIO_PB1_U1TX 0x00010405
  30813. #define GPIO_PB2_I2C0SCL 0x00010801
  30814. #define GPIO_PB2_IDX0 0x00010802
  30815. #define GPIO_PB2_CCP3 0x00010804
  30816. #define GPIO_PB2_CCP0 0x00010805
  30817. #define GPIO_PB2_USB0EPEN 0x00010808
  30818. #define GPIO_PB3_I2C0SDA 0x00010C01
  30819. #define GPIO_PB3_FAULT0 0x00010C02
  30820. #define GPIO_PB3_FAULT3 0x00010C04
  30821. #define GPIO_PB3_USB0PFLT 0x00010C08
  30822. #define GPIO_PB4_U2RX 0x00011004
  30823. #define GPIO_PB4_CAN0RX 0x00011005
  30824. #define GPIO_PB4_IDX0 0x00011006
  30825. #define GPIO_PB4_U1RX 0x00011007
  30826. #define GPIO_PB4_EPI0S23 0x00011008
  30827. #define GPIO_PB5_C0O 0x00011401
  30828. #define GPIO_PB5_CCP5 0x00011402
  30829. #define GPIO_PB5_CCP6 0x00011403
  30830. #define GPIO_PB5_CCP0 0x00011404
  30831. #define GPIO_PB5_CAN0TX 0x00011405
  30832. #define GPIO_PB5_CCP2 0x00011406
  30833. #define GPIO_PB5_U1TX 0x00011407
  30834. #define GPIO_PB5_EPI0S22 0x00011408
  30835. #define GPIO_PB6_CCP1 0x00011801
  30836. #define GPIO_PB6_CCP7 0x00011802
  30837. #define GPIO_PB6_C0O 0x00011803
  30838. #define GPIO_PB6_FAULT1 0x00011804
  30839. #define GPIO_PB6_IDX0 0x00011805
  30840. #define GPIO_PB6_CCP5 0x00011806
  30841. #define GPIO_PB6_I2S0TXSCK 0x00011809
  30842. #define GPIO_PB7_NMI 0x00011C04
  30843. #define GPIO_PB7_RXD1 0x00011C07
  30844. #define GPIO_PC0_TCK 0x00020003
  30845. #define GPIO_PC0_SWCLK 0x00020003
  30846. #define GPIO_PC1_TMS 0x00020403
  30847. #define GPIO_PC1_SWDIO 0x00020403
  30848. #define GPIO_PC2_TDI 0x00020803
  30849. #define GPIO_PC3_SWO 0x00020C03
  30850. #define GPIO_PC3_TDO 0x00020C03
  30851. #define GPIO_PC4_CCP5 0x00021001
  30852. #define GPIO_PC4_PHA0 0x00021002
  30853. #define GPIO_PC4_TXD3 0x00021003
  30854. #define GPIO_PC4_PWM6 0x00021004
  30855. #define GPIO_PC4_CCP2 0x00021005
  30856. #define GPIO_PC4_CCP4 0x00021006
  30857. #define GPIO_PC4_EPI0S2 0x00021008
  30858. #define GPIO_PC4_CCP1 0x00021009
  30859. #define GPIO_PC5_CCP1 0x00021401
  30860. #define GPIO_PC5_C1O 0x00021402
  30861. #define GPIO_PC5_C0O 0x00021403
  30862. #define GPIO_PC5_FAULT2 0x00021404
  30863. #define GPIO_PC5_CCP3 0x00021405
  30864. #define GPIO_PC5_USB0EPEN 0x00021406
  30865. #define GPIO_PC5_EPI0S3 0x00021408
  30866. #define GPIO_PC6_CCP3 0x00021801
  30867. #define GPIO_PC6_PHB0 0x00021802
  30868. #define GPIO_PC6_C2O 0x00021803
  30869. #define GPIO_PC6_PWM7 0x00021804
  30870. #define GPIO_PC6_U1RX 0x00021805
  30871. #define GPIO_PC6_CCP0 0x00021806
  30872. #define GPIO_PC6_USB0PFLT 0x00021807
  30873. #define GPIO_PC6_EPI0S4 0x00021808
  30874. #define GPIO_PC7_CCP4 0x00021C01
  30875. #define GPIO_PC7_PHB0 0x00021C02
  30876. #define GPIO_PC7_CCP0 0x00021C04
  30877. #define GPIO_PC7_U1TX 0x00021C05
  30878. #define GPIO_PC7_USB0PFLT 0x00021C06
  30879. #define GPIO_PC7_C1O 0x00021C07
  30880. #define GPIO_PC7_EPI0S5 0x00021C08
  30881. #define GPIO_PD0_PWM0 0x00030001
  30882. #define GPIO_PD0_CAN0RX 0x00030002
  30883. #define GPIO_PD0_IDX0 0x00030003
  30884. #define GPIO_PD0_U2RX 0x00030004
  30885. #define GPIO_PD0_U1RX 0x00030005
  30886. #define GPIO_PD0_CCP6 0x00030006
  30887. #define GPIO_PD0_RXDV 0x00030007
  30888. #define GPIO_PD0_I2S0RXSCK 0x00030008
  30889. #define GPIO_PD0_U1CTS 0x00030009
  30890. #define GPIO_PD1_PWM1 0x00030401
  30891. #define GPIO_PD1_CAN0TX 0x00030402
  30892. #define GPIO_PD1_PHA0 0x00030403
  30893. #define GPIO_PD1_U2TX 0x00030404
  30894. #define GPIO_PD1_U1TX 0x00030405
  30895. #define GPIO_PD1_CCP7 0x00030406
  30896. #define GPIO_PD1_TXER 0x00030407
  30897. #define GPIO_PD1_I2S0RXWS 0x00030408
  30898. #define GPIO_PD1_U1DCD 0x00030409
  30899. #define GPIO_PD1_CCP2 0x0003040A
  30900. #define GPIO_PD1_PHB1 0x0003040B
  30901. #define GPIO_PD2_U1RX 0x00030801
  30902. #define GPIO_PD2_CCP6 0x00030802
  30903. #define GPIO_PD2_PWM2 0x00030803
  30904. #define GPIO_PD2_CCP5 0x00030804
  30905. #define GPIO_PD2_EPI0S20 0x00030808
  30906. #define GPIO_PD3_U1TX 0x00030C01
  30907. #define GPIO_PD3_CCP7 0x00030C02
  30908. #define GPIO_PD3_PWM3 0x00030C03
  30909. #define GPIO_PD3_CCP0 0x00030C04
  30910. #define GPIO_PD3_EPI0S21 0x00030C08
  30911. #define GPIO_PD4_CCP0 0x00031001
  30912. #define GPIO_PD4_CCP3 0x00031002
  30913. #define GPIO_PD4_TXD3 0x00031004
  30914. #define GPIO_PD4_I2S0RXSD 0x00031008
  30915. #define GPIO_PD4_U1RI 0x00031009
  30916. #define GPIO_PD4_EPI0S19 0x0003100A
  30917. #define GPIO_PD5_CCP2 0x00031401
  30918. #define GPIO_PD5_CCP4 0x00031402
  30919. #define GPIO_PD5_TXD2 0x00031404
  30920. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  30921. #define GPIO_PD5_U2RX 0x00031409
  30922. #define GPIO_PD5_EPI0S28 0x0003140A
  30923. #define GPIO_PD6_FAULT0 0x00031801
  30924. #define GPIO_PD6_TXD1 0x00031804
  30925. #define GPIO_PD6_I2S0TXSCK 0x00031808
  30926. #define GPIO_PD6_U2TX 0x00031809
  30927. #define GPIO_PD6_EPI0S29 0x0003180A
  30928. #define GPIO_PD7_IDX0 0x00031C01
  30929. #define GPIO_PD7_C0O 0x00031C02
  30930. #define GPIO_PD7_CCP1 0x00031C03
  30931. #define GPIO_PD7_TXD0 0x00031C04
  30932. #define GPIO_PD7_I2S0TXWS 0x00031C08
  30933. #define GPIO_PD7_U1DTR 0x00031C09
  30934. #define GPIO_PD7_EPI0S30 0x00031C0A
  30935. #define GPIO_PE0_PWM4 0x00040001
  30936. #define GPIO_PE0_SSI1CLK 0x00040002
  30937. #define GPIO_PE0_CCP3 0x00040003
  30938. #define GPIO_PE0_EPI0S8 0x00040008
  30939. #define GPIO_PE0_USB0PFLT 0x00040009
  30940. #define GPIO_PE1_PWM5 0x00040401
  30941. #define GPIO_PE1_SSI1FSS 0x00040402
  30942. #define GPIO_PE1_FAULT0 0x00040403
  30943. #define GPIO_PE1_CCP2 0x00040404
  30944. #define GPIO_PE1_CCP6 0x00040405
  30945. #define GPIO_PE1_EPI0S9 0x00040408
  30946. #define GPIO_PE2_CCP4 0x00040801
  30947. #define GPIO_PE2_SSI1RX 0x00040802
  30948. #define GPIO_PE2_PHB1 0x00040803
  30949. #define GPIO_PE2_PHA0 0x00040804
  30950. #define GPIO_PE2_CCP2 0x00040805
  30951. #define GPIO_PE2_EPI0S24 0x00040808
  30952. #define GPIO_PE3_CCP1 0x00040C01
  30953. #define GPIO_PE3_SSI1TX 0x00040C02
  30954. #define GPIO_PE3_PHA1 0x00040C03
  30955. #define GPIO_PE3_PHB0 0x00040C04
  30956. #define GPIO_PE3_CCP7 0x00040C05
  30957. #define GPIO_PE3_EPI0S25 0x00040C08
  30958. #define GPIO_PE4_CCP3 0x00041001
  30959. #define GPIO_PE4_FAULT0 0x00041004
  30960. #define GPIO_PE4_U2TX 0x00041005
  30961. #define GPIO_PE4_CCP2 0x00041006
  30962. #define GPIO_PE4_RXD0 0x00041007
  30963. #define GPIO_PE4_I2S0TXWS 0x00041009
  30964. #define GPIO_PE5_CCP5 0x00041401
  30965. #define GPIO_PE5_I2S0TXSD 0x00041409
  30966. #define GPIO_PE6_PWM4 0x00041801
  30967. #define GPIO_PE6_C1O 0x00041802
  30968. #define GPIO_PE6_U1CTS 0x00041809
  30969. #define GPIO_PE7_PWM5 0x00041C01
  30970. #define GPIO_PE7_C2O 0x00041C02
  30971. #define GPIO_PE7_U1DCD 0x00041C09
  30972. #define GPIO_PF0_CAN1RX 0x00050001
  30973. #define GPIO_PF0_PHB0 0x00050002
  30974. #define GPIO_PF0_PWM0 0x00050003
  30975. #define GPIO_PF0_RXCK 0x00050004
  30976. #define GPIO_PF0_I2S0TXSD 0x00050008
  30977. #define GPIO_PF0_U1DSR 0x00050009
  30978. #define GPIO_PF1_CAN1TX 0x00050401
  30979. #define GPIO_PF1_IDX1 0x00050402
  30980. #define GPIO_PF1_PWM1 0x00050403
  30981. #define GPIO_PF1_RXER 0x00050404
  30982. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  30983. #define GPIO_PF1_U1RTS 0x00050409
  30984. #define GPIO_PF1_CCP3 0x0005040A
  30985. #define GPIO_PF2_PWM4 0x00050802
  30986. #define GPIO_PF2_PHYINT 0x00050803
  30987. #define GPIO_PF2_PWM2 0x00050804
  30988. #define GPIO_PF2_SSI1CLK 0x00050809
  30989. #define GPIO_PF3_PWM5 0x00050C02
  30990. #define GPIO_PF3_MDC 0x00050C03
  30991. #define GPIO_PF3_PWM3 0x00050C04
  30992. #define GPIO_PF3_SSI1FSS 0x00050C09
  30993. #define GPIO_PF4_CCP0 0x00051001
  30994. #define GPIO_PF4_C0O 0x00051002
  30995. #define GPIO_PF4_MDIO 0x00051003
  30996. #define GPIO_PF4_FAULT0 0x00051004
  30997. #define GPIO_PF4_EPI0S12 0x00051008
  30998. #define GPIO_PF4_SSI1RX 0x00051009
  30999. #define GPIO_PF5_CCP2 0x00051401
  31000. #define GPIO_PF5_C1O 0x00051402
  31001. #define GPIO_PF5_RXD3 0x00051403
  31002. #define GPIO_PF5_EPI0S15 0x00051408
  31003. #define GPIO_PF5_SSI1TX 0x00051409
  31004. #define GPIO_PF6_CCP1 0x00051801
  31005. #define GPIO_PF6_C2O 0x00051802
  31006. #define GPIO_PF6_RXD2 0x00051803
  31007. #define GPIO_PF6_PHA0 0x00051804
  31008. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  31009. #define GPIO_PF6_U1RTS 0x0005180A
  31010. #define GPIO_PF7_CCP4 0x00051C01
  31011. #define GPIO_PF7_RXD1 0x00051C03
  31012. #define GPIO_PF7_PHB0 0x00051C04
  31013. #define GPIO_PF7_EPI0S12 0x00051C08
  31014. #define GPIO_PF7_FAULT1 0x00051C09
  31015. #define GPIO_PG0_U2RX 0x00060001
  31016. #define GPIO_PG0_PWM0 0x00060002
  31017. #define GPIO_PG0_I2C1SCL 0x00060003
  31018. #define GPIO_PG0_PWM4 0x00060004
  31019. #define GPIO_PG0_USB0EPEN 0x00060007
  31020. #define GPIO_PG0_EPI0S13 0x00060008
  31021. #define GPIO_PG1_U2TX 0x00060401
  31022. #define GPIO_PG1_PWM1 0x00060402
  31023. #define GPIO_PG1_I2C1SDA 0x00060403
  31024. #define GPIO_PG1_PWM5 0x00060404
  31025. #define GPIO_PG1_EPI0S14 0x00060408
  31026. #define GPIO_PG2_PWM0 0x00060801
  31027. #define GPIO_PG2_COL 0x00060803
  31028. #define GPIO_PG2_FAULT0 0x00060804
  31029. #define GPIO_PG2_IDX1 0x00060808
  31030. #define GPIO_PG2_I2S0RXSD 0x00060809
  31031. #define GPIO_PG3_PWM1 0x00060C01
  31032. #define GPIO_PG3_CRS 0x00060C03
  31033. #define GPIO_PG3_FAULT2 0x00060C04
  31034. #define GPIO_PG3_FAULT0 0x00060C08
  31035. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  31036. #define GPIO_PG4_CCP3 0x00061001
  31037. #define GPIO_PG4_RXD0 0x00061003
  31038. #define GPIO_PG4_FAULT1 0x00061004
  31039. #define GPIO_PG4_EPI0S15 0x00061008
  31040. #define GPIO_PG4_PWM6 0x00061009
  31041. #define GPIO_PG4_U1RI 0x0006100A
  31042. #define GPIO_PG5_CCP5 0x00061401
  31043. #define GPIO_PG5_TXEN 0x00061403
  31044. #define GPIO_PG5_IDX0 0x00061404
  31045. #define GPIO_PG5_FAULT1 0x00061405
  31046. #define GPIO_PG5_PWM7 0x00061408
  31047. #define GPIO_PG5_I2S0RXSCK 0x00061409
  31048. #define GPIO_PG5_U1DTR 0x0006140A
  31049. #define GPIO_PG6_PHA1 0x00061801
  31050. #define GPIO_PG6_TXCK 0x00061803
  31051. #define GPIO_PG6_PWM6 0x00061804
  31052. #define GPIO_PG6_FAULT1 0x00061808
  31053. #define GPIO_PG6_I2S0RXWS 0x00061809
  31054. #define GPIO_PG6_U1RI 0x0006180A
  31055. #define GPIO_PG7_PHB1 0x00061C01
  31056. #define GPIO_PG7_TXER 0x00061C03
  31057. #define GPIO_PG7_PWM7 0x00061C04
  31058. #define GPIO_PG7_CCP5 0x00061C08
  31059. #define GPIO_PG7_EPI0S31 0x00061C09
  31060. #define GPIO_PH0_CCP6 0x00070001
  31061. #define GPIO_PH0_PWM2 0x00070002
  31062. #define GPIO_PH0_EPI0S6 0x00070008
  31063. #define GPIO_PH0_PWM4 0x00070009
  31064. #define GPIO_PH1_CCP7 0x00070401
  31065. #define GPIO_PH1_PWM3 0x00070402
  31066. #define GPIO_PH1_EPI0S7 0x00070408
  31067. #define GPIO_PH1_PWM5 0x00070409
  31068. #define GPIO_PH2_IDX1 0x00070801
  31069. #define GPIO_PH2_C1O 0x00070802
  31070. #define GPIO_PH2_FAULT3 0x00070804
  31071. #define GPIO_PH2_EPI0S1 0x00070808
  31072. #define GPIO_PH2_TXD3 0x00070809
  31073. #define GPIO_PH3_PHB0 0x00070C01
  31074. #define GPIO_PH3_FAULT0 0x00070C02
  31075. #define GPIO_PH3_USB0EPEN 0x00070C04
  31076. #define GPIO_PH3_EPI0S0 0x00070C08
  31077. #define GPIO_PH3_TXD2 0x00070C09
  31078. #define GPIO_PH4_USB0PFLT 0x00071004
  31079. #define GPIO_PH4_EPI0S10 0x00071008
  31080. #define GPIO_PH4_TXD1 0x00071009
  31081. #define GPIO_PH4_SSI1CLK 0x0007100B
  31082. #define GPIO_PH5_EPI0S11 0x00071408
  31083. #define GPIO_PH5_TXD0 0x00071409
  31084. #define GPIO_PH5_FAULT2 0x0007140A
  31085. #define GPIO_PH5_SSI1FSS 0x0007140B
  31086. #define GPIO_PH6_EPI0S26 0x00071808
  31087. #define GPIO_PH6_RXDV 0x00071809
  31088. #define GPIO_PH6_PWM4 0x0007180A
  31089. #define GPIO_PH6_SSI1RX 0x0007180B
  31090. #define GPIO_PH7_RXCK 0x00071C03
  31091. #define GPIO_PH7_EPI0S27 0x00071C08
  31092. #define GPIO_PH7_PWM5 0x00071C0A
  31093. #define GPIO_PH7_SSI1TX 0x00071C0B
  31094. #define GPIO_PJ0_RXER 0x00080003
  31095. #define GPIO_PJ0_EPI0S16 0x00080008
  31096. #define GPIO_PJ0_PWM0 0x0008000A
  31097. #define GPIO_PJ0_I2C1SCL 0x0008000B
  31098. #define GPIO_PJ1_EPI0S17 0x00080408
  31099. #define GPIO_PJ1_USB0PFLT 0x00080409
  31100. #define GPIO_PJ1_PWM1 0x0008040A
  31101. #define GPIO_PJ1_I2C1SDA 0x0008040B
  31102. #define GPIO_PJ2_EPI0S18 0x00080808
  31103. #define GPIO_PJ2_CCP0 0x00080809
  31104. #define GPIO_PJ2_FAULT0 0x0008080A
  31105. #define GPIO_PJ3_EPI0S19 0x00080C08
  31106. #define GPIO_PJ3_U1CTS 0x00080C09
  31107. #define GPIO_PJ3_CCP6 0x00080C0A
  31108. #define GPIO_PJ4_EPI0S28 0x00081008
  31109. #define GPIO_PJ4_U1DCD 0x00081009
  31110. #define GPIO_PJ4_CCP4 0x0008100A
  31111. #define GPIO_PJ5_EPI0S29 0x00081408
  31112. #define GPIO_PJ5_U1DSR 0x00081409
  31113. #define GPIO_PJ5_CCP2 0x0008140A
  31114. #define GPIO_PJ6_EPI0S30 0x00081808
  31115. #define GPIO_PJ6_U1RTS 0x00081809
  31116. #define GPIO_PJ6_CCP1 0x0008180A
  31117. #define GPIO_PJ7_U1DTR 0x00081C09
  31118. #define GPIO_PJ7_CCP0 0x00081C0A
  31119. #endif // PART_LM3S9BN6
  31120. //*****************************************************************************
  31121. //
  31122. // LM3S9C97 Port/Pin Mapping Definitions
  31123. //
  31124. //*****************************************************************************
  31125. #ifdef PART_LM3S9C97
  31126. #define GPIO_PA0_U0RX 0x00000001
  31127. #define GPIO_PA0_I2C1SCL 0x00000008
  31128. #define GPIO_PA0_U1RX 0x00000009
  31129. #define GPIO_PA1_U0TX 0x00000401
  31130. #define GPIO_PA1_I2C1SDA 0x00000408
  31131. #define GPIO_PA1_U1TX 0x00000409
  31132. #define GPIO_PA2_SSI0CLK 0x00000801
  31133. #define GPIO_PA2_PWM4 0x00000804
  31134. #define GPIO_PA2_I2S0RXSD 0x00000809
  31135. #define GPIO_PA3_SSI0FSS 0x00000C01
  31136. #define GPIO_PA3_PWM5 0x00000C04
  31137. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  31138. #define GPIO_PA4_SSI0RX 0x00001001
  31139. #define GPIO_PA4_CAN0RX 0x00001005
  31140. #define GPIO_PA4_I2S0TXSCK 0x00001009
  31141. #define GPIO_PA5_SSI0TX 0x00001401
  31142. #define GPIO_PA5_CAN0TX 0x00001405
  31143. #define GPIO_PA5_I2S0TXWS 0x00001409
  31144. #define GPIO_PA6_I2C1SCL 0x00001801
  31145. #define GPIO_PA6_CCP1 0x00001802
  31146. #define GPIO_PA6_PWM0 0x00001804
  31147. #define GPIO_PA6_PWM4 0x00001805
  31148. #define GPIO_PA6_CAN0RX 0x00001806
  31149. #define GPIO_PA6_USB0EPEN 0x00001808
  31150. #define GPIO_PA6_U1CTS 0x00001809
  31151. #define GPIO_PA7_I2C1SDA 0x00001C01
  31152. #define GPIO_PA7_CCP4 0x00001C02
  31153. #define GPIO_PA7_PWM1 0x00001C04
  31154. #define GPIO_PA7_PWM5 0x00001C05
  31155. #define GPIO_PA7_CAN0TX 0x00001C06
  31156. #define GPIO_PA7_CCP3 0x00001C07
  31157. #define GPIO_PA7_USB0PFLT 0x00001C08
  31158. #define GPIO_PA7_U1DCD 0x00001C09
  31159. #define GPIO_PB0_CCP0 0x00010001
  31160. #define GPIO_PB0_PWM2 0x00010002
  31161. #define GPIO_PB0_U1RX 0x00010005
  31162. #define GPIO_PB1_CCP2 0x00010401
  31163. #define GPIO_PB1_PWM3 0x00010402
  31164. #define GPIO_PB1_CCP1 0x00010404
  31165. #define GPIO_PB1_U1TX 0x00010405
  31166. #define GPIO_PB2_I2C0SCL 0x00010801
  31167. #define GPIO_PB2_IDX0 0x00010802
  31168. #define GPIO_PB2_CCP3 0x00010804
  31169. #define GPIO_PB2_CCP0 0x00010805
  31170. #define GPIO_PB2_USB0EPEN 0x00010808
  31171. #define GPIO_PB3_I2C0SDA 0x00010C01
  31172. #define GPIO_PB3_FAULT0 0x00010C02
  31173. #define GPIO_PB3_FAULT3 0x00010C04
  31174. #define GPIO_PB3_USB0PFLT 0x00010C08
  31175. #define GPIO_PB4_U2RX 0x00011004
  31176. #define GPIO_PB4_CAN0RX 0x00011005
  31177. #define GPIO_PB4_IDX0 0x00011006
  31178. #define GPIO_PB4_U1RX 0x00011007
  31179. #define GPIO_PB5_C0O 0x00011401
  31180. #define GPIO_PB5_CCP5 0x00011402
  31181. #define GPIO_PB5_CCP6 0x00011403
  31182. #define GPIO_PB5_CCP0 0x00011404
  31183. #define GPIO_PB5_CAN0TX 0x00011405
  31184. #define GPIO_PB5_CCP2 0x00011406
  31185. #define GPIO_PB5_U1TX 0x00011407
  31186. #define GPIO_PB6_CCP1 0x00011801
  31187. #define GPIO_PB6_CCP7 0x00011802
  31188. #define GPIO_PB6_C0O 0x00011803
  31189. #define GPIO_PB6_FAULT1 0x00011804
  31190. #define GPIO_PB6_IDX0 0x00011805
  31191. #define GPIO_PB6_CCP5 0x00011806
  31192. #define GPIO_PB6_I2S0TXSCK 0x00011809
  31193. #define GPIO_PB7_NMI 0x00011C04
  31194. #define GPIO_PC0_TCK 0x00020003
  31195. #define GPIO_PC0_SWCLK 0x00020003
  31196. #define GPIO_PC1_TMS 0x00020403
  31197. #define GPIO_PC1_SWDIO 0x00020403
  31198. #define GPIO_PC2_TDI 0x00020803
  31199. #define GPIO_PC3_SWO 0x00020C03
  31200. #define GPIO_PC3_TDO 0x00020C03
  31201. #define GPIO_PC4_CCP5 0x00021001
  31202. #define GPIO_PC4_PHA0 0x00021002
  31203. #define GPIO_PC4_CCP2 0x00021005
  31204. #define GPIO_PC4_CCP4 0x00021006
  31205. #define GPIO_PC4_CCP1 0x00021009
  31206. #define GPIO_PC5_CCP1 0x00021401
  31207. #define GPIO_PC5_C1O 0x00021402
  31208. #define GPIO_PC5_C0O 0x00021403
  31209. #define GPIO_PC5_FAULT2 0x00021404
  31210. #define GPIO_PC5_CCP3 0x00021405
  31211. #define GPIO_PC5_USB0EPEN 0x00021406
  31212. #define GPIO_PC6_CCP3 0x00021801
  31213. #define GPIO_PC6_PHB0 0x00021802
  31214. #define GPIO_PC6_U1RX 0x00021805
  31215. #define GPIO_PC6_CCP0 0x00021806
  31216. #define GPIO_PC6_USB0PFLT 0x00021807
  31217. #define GPIO_PC7_CCP4 0x00021C01
  31218. #define GPIO_PC7_PHB0 0x00021C02
  31219. #define GPIO_PC7_CCP0 0x00021C04
  31220. #define GPIO_PC7_U1TX 0x00021C05
  31221. #define GPIO_PC7_USB0PFLT 0x00021C06
  31222. #define GPIO_PC7_C1O 0x00021C07
  31223. #define GPIO_PD0_PWM0 0x00030001
  31224. #define GPIO_PD0_CAN0RX 0x00030002
  31225. #define GPIO_PD0_IDX0 0x00030003
  31226. #define GPIO_PD0_U2RX 0x00030004
  31227. #define GPIO_PD0_U1RX 0x00030005
  31228. #define GPIO_PD0_CCP6 0x00030006
  31229. #define GPIO_PD0_I2S0RXSCK 0x00030008
  31230. #define GPIO_PD0_U1CTS 0x00030009
  31231. #define GPIO_PD1_PWM1 0x00030401
  31232. #define GPIO_PD1_CAN0TX 0x00030402
  31233. #define GPIO_PD1_PHA0 0x00030403
  31234. #define GPIO_PD1_U2TX 0x00030404
  31235. #define GPIO_PD1_U1TX 0x00030405
  31236. #define GPIO_PD1_CCP7 0x00030406
  31237. #define GPIO_PD1_I2S0RXWS 0x00030408
  31238. #define GPIO_PD1_U1DCD 0x00030409
  31239. #define GPIO_PD1_CCP2 0x0003040A
  31240. #define GPIO_PD1_PHB1 0x0003040B
  31241. #define GPIO_PD2_U1RX 0x00030801
  31242. #define GPIO_PD2_CCP6 0x00030802
  31243. #define GPIO_PD2_PWM2 0x00030803
  31244. #define GPIO_PD2_CCP5 0x00030804
  31245. #define GPIO_PD3_U1TX 0x00030C01
  31246. #define GPIO_PD3_CCP7 0x00030C02
  31247. #define GPIO_PD3_PWM3 0x00030C03
  31248. #define GPIO_PD3_CCP0 0x00030C04
  31249. #define GPIO_PD4_CCP0 0x00031001
  31250. #define GPIO_PD4_CCP3 0x00031002
  31251. #define GPIO_PD4_I2S0RXSD 0x00031008
  31252. #define GPIO_PD4_U1RI 0x00031009
  31253. #define GPIO_PD5_CCP2 0x00031401
  31254. #define GPIO_PD5_CCP4 0x00031402
  31255. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  31256. #define GPIO_PD5_U2RX 0x00031409
  31257. #define GPIO_PD6_FAULT0 0x00031801
  31258. #define GPIO_PD6_I2S0TXSCK 0x00031808
  31259. #define GPIO_PD6_U2TX 0x00031809
  31260. #define GPIO_PD7_IDX0 0x00031C01
  31261. #define GPIO_PD7_C0O 0x00031C02
  31262. #define GPIO_PD7_CCP1 0x00031C03
  31263. #define GPIO_PD7_I2S0TXWS 0x00031C08
  31264. #define GPIO_PD7_U1DTR 0x00031C09
  31265. #define GPIO_PE0_PWM4 0x00040001
  31266. #define GPIO_PE0_SSI1CLK 0x00040002
  31267. #define GPIO_PE0_CCP3 0x00040003
  31268. #define GPIO_PE0_USB0PFLT 0x00040009
  31269. #define GPIO_PE1_PWM5 0x00040401
  31270. #define GPIO_PE1_SSI1FSS 0x00040402
  31271. #define GPIO_PE1_FAULT0 0x00040403
  31272. #define GPIO_PE1_CCP2 0x00040404
  31273. #define GPIO_PE1_CCP6 0x00040405
  31274. #define GPIO_PE2_CCP4 0x00040801
  31275. #define GPIO_PE2_SSI1RX 0x00040802
  31276. #define GPIO_PE2_PHB1 0x00040803
  31277. #define GPIO_PE2_PHA0 0x00040804
  31278. #define GPIO_PE2_CCP2 0x00040805
  31279. #define GPIO_PE3_CCP1 0x00040C01
  31280. #define GPIO_PE3_SSI1TX 0x00040C02
  31281. #define GPIO_PE3_PHA1 0x00040C03
  31282. #define GPIO_PE3_PHB0 0x00040C04
  31283. #define GPIO_PE3_CCP7 0x00040C05
  31284. #define GPIO_PE4_CCP3 0x00041001
  31285. #define GPIO_PE4_FAULT0 0x00041004
  31286. #define GPIO_PE4_U2TX 0x00041005
  31287. #define GPIO_PE4_CCP2 0x00041006
  31288. #define GPIO_PE4_I2S0TXWS 0x00041009
  31289. #define GPIO_PE5_CCP5 0x00041401
  31290. #define GPIO_PE5_I2S0TXSD 0x00041409
  31291. #define GPIO_PE6_PWM4 0x00041801
  31292. #define GPIO_PE6_C1O 0x00041802
  31293. #define GPIO_PE6_U1CTS 0x00041809
  31294. #define GPIO_PE7_PWM5 0x00041C01
  31295. #define GPIO_PE7_U1DCD 0x00041C09
  31296. #define GPIO_PF0_CAN1RX 0x00050001
  31297. #define GPIO_PF0_PHB0 0x00050002
  31298. #define GPIO_PF0_PWM0 0x00050003
  31299. #define GPIO_PF0_I2S0TXSD 0x00050008
  31300. #define GPIO_PF0_U1DSR 0x00050009
  31301. #define GPIO_PF1_CAN1TX 0x00050401
  31302. #define GPIO_PF1_IDX1 0x00050402
  31303. #define GPIO_PF1_PWM1 0x00050403
  31304. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  31305. #define GPIO_PF1_U1RTS 0x00050409
  31306. #define GPIO_PF1_CCP3 0x0005040A
  31307. #define GPIO_PF2_LED1 0x00050801
  31308. #define GPIO_PF2_PWM4 0x00050802
  31309. #define GPIO_PF2_PWM2 0x00050804
  31310. #define GPIO_PF2_SSI1CLK 0x00050809
  31311. #define GPIO_PF3_LED0 0x00050C01
  31312. #define GPIO_PF3_PWM5 0x00050C02
  31313. #define GPIO_PF3_PWM3 0x00050C04
  31314. #define GPIO_PF3_SSI1FSS 0x00050C09
  31315. #define GPIO_PF4_CCP0 0x00051001
  31316. #define GPIO_PF4_C0O 0x00051002
  31317. #define GPIO_PF4_FAULT0 0x00051004
  31318. #define GPIO_PF4_SSI1RX 0x00051009
  31319. #define GPIO_PF5_CCP2 0x00051401
  31320. #define GPIO_PF5_C1O 0x00051402
  31321. #define GPIO_PF5_SSI1TX 0x00051409
  31322. #define GPIO_PG0_U2RX 0x00060001
  31323. #define GPIO_PG0_PWM0 0x00060002
  31324. #define GPIO_PG0_I2C1SCL 0x00060003
  31325. #define GPIO_PG0_PWM4 0x00060004
  31326. #define GPIO_PG0_USB0EPEN 0x00060007
  31327. #define GPIO_PG1_U2TX 0x00060401
  31328. #define GPIO_PG1_PWM1 0x00060402
  31329. #define GPIO_PG1_I2C1SDA 0x00060403
  31330. #define GPIO_PG1_PWM5 0x00060404
  31331. #define GPIO_PG7_PHB1 0x00061C01
  31332. #define GPIO_PG7_CCP5 0x00061C08
  31333. #define GPIO_PH0_CCP6 0x00070001
  31334. #define GPIO_PH0_PWM2 0x00070002
  31335. #define GPIO_PH0_PWM4 0x00070009
  31336. #define GPIO_PH1_CCP7 0x00070401
  31337. #define GPIO_PH1_PWM3 0x00070402
  31338. #define GPIO_PH1_PWM5 0x00070409
  31339. #define GPIO_PH2_IDX1 0x00070801
  31340. #define GPIO_PH2_C1O 0x00070802
  31341. #define GPIO_PH2_FAULT3 0x00070804
  31342. #define GPIO_PH3_PHB0 0x00070C01
  31343. #define GPIO_PH3_FAULT0 0x00070C02
  31344. #define GPIO_PH3_USB0EPEN 0x00070C04
  31345. #define GPIO_PH4_USB0PFLT 0x00071004
  31346. #define GPIO_PH4_SSI1CLK 0x0007100B
  31347. #define GPIO_PH5_FAULT2 0x0007140A
  31348. #define GPIO_PH5_SSI1FSS 0x0007140B
  31349. #define GPIO_PH6_PWM4 0x0007180A
  31350. #define GPIO_PH6_SSI1RX 0x0007180B
  31351. #define GPIO_PH7_PWM5 0x00071C0A
  31352. #define GPIO_PH7_SSI1TX 0x00071C0B
  31353. #define GPIO_PJ0_PWM0 0x0008000A
  31354. #define GPIO_PJ0_I2C1SCL 0x0008000B
  31355. #define GPIO_PJ1_USB0PFLT 0x00080409
  31356. #define GPIO_PJ1_PWM1 0x0008040A
  31357. #define GPIO_PJ1_I2C1SDA 0x0008040B
  31358. #define GPIO_PJ2_CCP0 0x00080809
  31359. #define GPIO_PJ2_FAULT0 0x0008080A
  31360. #endif // PART_LM3S9C97
  31361. //*****************************************************************************
  31362. //
  31363. // LM3S9CN5 Port/Pin Mapping Definitions
  31364. //
  31365. //*****************************************************************************
  31366. #ifdef PART_LM3S9CN5
  31367. #define GPIO_PA0_U0RX 0x00000001
  31368. #define GPIO_PA0_I2C1SCL 0x00000008
  31369. #define GPIO_PA0_U1RX 0x00000009
  31370. #define GPIO_PA1_U0TX 0x00000401
  31371. #define GPIO_PA1_I2C1SDA 0x00000408
  31372. #define GPIO_PA1_U1TX 0x00000409
  31373. #define GPIO_PA2_SSI0CLK 0x00000801
  31374. #define GPIO_PA2_TXD2 0x00000803
  31375. #define GPIO_PA2_PWM4 0x00000804
  31376. #define GPIO_PA2_I2S0RXSD 0x00000809
  31377. #define GPIO_PA3_SSI0FSS 0x00000C01
  31378. #define GPIO_PA3_TXD1 0x00000C03
  31379. #define GPIO_PA3_PWM5 0x00000C04
  31380. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  31381. #define GPIO_PA4_SSI0RX 0x00001001
  31382. #define GPIO_PA4_TXD0 0x00001003
  31383. #define GPIO_PA4_PWM6 0x00001004
  31384. #define GPIO_PA4_CAN0RX 0x00001005
  31385. #define GPIO_PA4_I2S0TXSCK 0x00001009
  31386. #define GPIO_PA5_SSI0TX 0x00001401
  31387. #define GPIO_PA5_RXDV 0x00001403
  31388. #define GPIO_PA5_PWM7 0x00001404
  31389. #define GPIO_PA5_CAN0TX 0x00001405
  31390. #define GPIO_PA5_I2S0TXWS 0x00001409
  31391. #define GPIO_PA6_I2C1SCL 0x00001801
  31392. #define GPIO_PA6_CCP1 0x00001802
  31393. #define GPIO_PA6_RXCK 0x00001803
  31394. #define GPIO_PA6_PWM0 0x00001804
  31395. #define GPIO_PA6_PWM4 0x00001805
  31396. #define GPIO_PA6_CAN0RX 0x00001806
  31397. #define GPIO_PA6_USB0EPEN 0x00001808
  31398. #define GPIO_PA6_U1CTS 0x00001809
  31399. #define GPIO_PA7_I2C1SDA 0x00001C01
  31400. #define GPIO_PA7_CCP4 0x00001C02
  31401. #define GPIO_PA7_RXER 0x00001C03
  31402. #define GPIO_PA7_PWM1 0x00001C04
  31403. #define GPIO_PA7_PWM5 0x00001C05
  31404. #define GPIO_PA7_CAN0TX 0x00001C06
  31405. #define GPIO_PA7_CCP3 0x00001C07
  31406. #define GPIO_PA7_USB0PFLT 0x00001C08
  31407. #define GPIO_PA7_U1DCD 0x00001C09
  31408. #define GPIO_PB0_CCP0 0x00010001
  31409. #define GPIO_PB0_PWM2 0x00010002
  31410. #define GPIO_PB0_U1RX 0x00010005
  31411. #define GPIO_PB1_CCP2 0x00010401
  31412. #define GPIO_PB1_PWM3 0x00010402
  31413. #define GPIO_PB1_CCP1 0x00010404
  31414. #define GPIO_PB1_U1TX 0x00010405
  31415. #define GPIO_PB2_I2C0SCL 0x00010801
  31416. #define GPIO_PB2_IDX0 0x00010802
  31417. #define GPIO_PB2_CCP3 0x00010804
  31418. #define GPIO_PB2_CCP0 0x00010805
  31419. #define GPIO_PB2_USB0EPEN 0x00010808
  31420. #define GPIO_PB3_I2C0SDA 0x00010C01
  31421. #define GPIO_PB3_FAULT0 0x00010C02
  31422. #define GPIO_PB3_FAULT3 0x00010C04
  31423. #define GPIO_PB3_USB0PFLT 0x00010C08
  31424. #define GPIO_PB4_U2RX 0x00011004
  31425. #define GPIO_PB4_CAN0RX 0x00011005
  31426. #define GPIO_PB4_IDX0 0x00011006
  31427. #define GPIO_PB4_U1RX 0x00011007
  31428. #define GPIO_PB4_EPI0S23 0x00011008
  31429. #define GPIO_PB5_C0O 0x00011401
  31430. #define GPIO_PB5_CCP5 0x00011402
  31431. #define GPIO_PB5_CCP6 0x00011403
  31432. #define GPIO_PB5_CCP0 0x00011404
  31433. #define GPIO_PB5_CAN0TX 0x00011405
  31434. #define GPIO_PB5_CCP2 0x00011406
  31435. #define GPIO_PB5_U1TX 0x00011407
  31436. #define GPIO_PB5_EPI0S22 0x00011408
  31437. #define GPIO_PB6_CCP1 0x00011801
  31438. #define GPIO_PB6_CCP7 0x00011802
  31439. #define GPIO_PB6_C0O 0x00011803
  31440. #define GPIO_PB6_FAULT1 0x00011804
  31441. #define GPIO_PB6_IDX0 0x00011805
  31442. #define GPIO_PB6_CCP5 0x00011806
  31443. #define GPIO_PB6_I2S0TXSCK 0x00011809
  31444. #define GPIO_PB7_NMI 0x00011C04
  31445. #define GPIO_PB7_RXD1 0x00011C07
  31446. #define GPIO_PC0_TCK 0x00020003
  31447. #define GPIO_PC0_SWCLK 0x00020003
  31448. #define GPIO_PC1_TMS 0x00020403
  31449. #define GPIO_PC1_SWDIO 0x00020403
  31450. #define GPIO_PC2_TDI 0x00020803
  31451. #define GPIO_PC3_SWO 0x00020C03
  31452. #define GPIO_PC3_TDO 0x00020C03
  31453. #define GPIO_PC4_CCP5 0x00021001
  31454. #define GPIO_PC4_PHA0 0x00021002
  31455. #define GPIO_PC4_TXD3 0x00021003
  31456. #define GPIO_PC4_PWM6 0x00021004
  31457. #define GPIO_PC4_CCP2 0x00021005
  31458. #define GPIO_PC4_CCP4 0x00021006
  31459. #define GPIO_PC4_EPI0S2 0x00021008
  31460. #define GPIO_PC4_CCP1 0x00021009
  31461. #define GPIO_PC5_CCP1 0x00021401
  31462. #define GPIO_PC5_C1O 0x00021402
  31463. #define GPIO_PC5_C0O 0x00021403
  31464. #define GPIO_PC5_FAULT2 0x00021404
  31465. #define GPIO_PC5_CCP3 0x00021405
  31466. #define GPIO_PC5_USB0EPEN 0x00021406
  31467. #define GPIO_PC5_EPI0S3 0x00021408
  31468. #define GPIO_PC6_CCP3 0x00021801
  31469. #define GPIO_PC6_PHB0 0x00021802
  31470. #define GPIO_PC6_C2O 0x00021803
  31471. #define GPIO_PC6_PWM7 0x00021804
  31472. #define GPIO_PC6_U1RX 0x00021805
  31473. #define GPIO_PC6_CCP0 0x00021806
  31474. #define GPIO_PC6_USB0PFLT 0x00021807
  31475. #define GPIO_PC6_EPI0S4 0x00021808
  31476. #define GPIO_PC7_CCP4 0x00021C01
  31477. #define GPIO_PC7_PHB0 0x00021C02
  31478. #define GPIO_PC7_CCP0 0x00021C04
  31479. #define GPIO_PC7_U1TX 0x00021C05
  31480. #define GPIO_PC7_USB0PFLT 0x00021C06
  31481. #define GPIO_PC7_C1O 0x00021C07
  31482. #define GPIO_PC7_EPI0S5 0x00021C08
  31483. #define GPIO_PD0_PWM0 0x00030001
  31484. #define GPIO_PD0_CAN0RX 0x00030002
  31485. #define GPIO_PD0_IDX0 0x00030003
  31486. #define GPIO_PD0_U2RX 0x00030004
  31487. #define GPIO_PD0_U1RX 0x00030005
  31488. #define GPIO_PD0_CCP6 0x00030006
  31489. #define GPIO_PD0_RXDV 0x00030007
  31490. #define GPIO_PD0_I2S0RXSCK 0x00030008
  31491. #define GPIO_PD0_U1CTS 0x00030009
  31492. #define GPIO_PD1_PWM1 0x00030401
  31493. #define GPIO_PD1_CAN0TX 0x00030402
  31494. #define GPIO_PD1_PHA0 0x00030403
  31495. #define GPIO_PD1_U2TX 0x00030404
  31496. #define GPIO_PD1_U1TX 0x00030405
  31497. #define GPIO_PD1_CCP7 0x00030406
  31498. #define GPIO_PD1_TXER 0x00030407
  31499. #define GPIO_PD1_I2S0RXWS 0x00030408
  31500. #define GPIO_PD1_U1DCD 0x00030409
  31501. #define GPIO_PD1_CCP2 0x0003040A
  31502. #define GPIO_PD1_PHB1 0x0003040B
  31503. #define GPIO_PD2_U1RX 0x00030801
  31504. #define GPIO_PD2_CCP6 0x00030802
  31505. #define GPIO_PD2_PWM2 0x00030803
  31506. #define GPIO_PD2_CCP5 0x00030804
  31507. #define GPIO_PD2_EPI0S20 0x00030808
  31508. #define GPIO_PD3_U1TX 0x00030C01
  31509. #define GPIO_PD3_CCP7 0x00030C02
  31510. #define GPIO_PD3_PWM3 0x00030C03
  31511. #define GPIO_PD3_CCP0 0x00030C04
  31512. #define GPIO_PD3_EPI0S21 0x00030C08
  31513. #define GPIO_PD4_CCP0 0x00031001
  31514. #define GPIO_PD4_CCP3 0x00031002
  31515. #define GPIO_PD4_TXD3 0x00031004
  31516. #define GPIO_PD4_I2S0RXSD 0x00031008
  31517. #define GPIO_PD4_U1RI 0x00031009
  31518. #define GPIO_PD4_EPI0S19 0x0003100A
  31519. #define GPIO_PD5_CCP2 0x00031401
  31520. #define GPIO_PD5_CCP4 0x00031402
  31521. #define GPIO_PD5_TXD2 0x00031404
  31522. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  31523. #define GPIO_PD5_U2RX 0x00031409
  31524. #define GPIO_PD5_EPI0S28 0x0003140A
  31525. #define GPIO_PD6_FAULT0 0x00031801
  31526. #define GPIO_PD6_TXD1 0x00031804
  31527. #define GPIO_PD6_I2S0TXSCK 0x00031808
  31528. #define GPIO_PD6_U2TX 0x00031809
  31529. #define GPIO_PD6_EPI0S29 0x0003180A
  31530. #define GPIO_PD7_IDX0 0x00031C01
  31531. #define GPIO_PD7_C0O 0x00031C02
  31532. #define GPIO_PD7_CCP1 0x00031C03
  31533. #define GPIO_PD7_TXD0 0x00031C04
  31534. #define GPIO_PD7_I2S0TXWS 0x00031C08
  31535. #define GPIO_PD7_U1DTR 0x00031C09
  31536. #define GPIO_PD7_EPI0S30 0x00031C0A
  31537. #define GPIO_PE0_PWM4 0x00040001
  31538. #define GPIO_PE0_SSI1CLK 0x00040002
  31539. #define GPIO_PE0_CCP3 0x00040003
  31540. #define GPIO_PE0_EPI0S8 0x00040008
  31541. #define GPIO_PE0_USB0PFLT 0x00040009
  31542. #define GPIO_PE1_PWM5 0x00040401
  31543. #define GPIO_PE1_SSI1FSS 0x00040402
  31544. #define GPIO_PE1_FAULT0 0x00040403
  31545. #define GPIO_PE1_CCP2 0x00040404
  31546. #define GPIO_PE1_CCP6 0x00040405
  31547. #define GPIO_PE1_EPI0S9 0x00040408
  31548. #define GPIO_PE2_CCP4 0x00040801
  31549. #define GPIO_PE2_SSI1RX 0x00040802
  31550. #define GPIO_PE2_PHB1 0x00040803
  31551. #define GPIO_PE2_PHA0 0x00040804
  31552. #define GPIO_PE2_CCP2 0x00040805
  31553. #define GPIO_PE2_EPI0S24 0x00040808
  31554. #define GPIO_PE3_CCP1 0x00040C01
  31555. #define GPIO_PE3_SSI1TX 0x00040C02
  31556. #define GPIO_PE3_PHA1 0x00040C03
  31557. #define GPIO_PE3_PHB0 0x00040C04
  31558. #define GPIO_PE3_CCP7 0x00040C05
  31559. #define GPIO_PE3_EPI0S25 0x00040C08
  31560. #define GPIO_PE4_CCP3 0x00041001
  31561. #define GPIO_PE4_FAULT0 0x00041004
  31562. #define GPIO_PE4_U2TX 0x00041005
  31563. #define GPIO_PE4_CCP2 0x00041006
  31564. #define GPIO_PE4_RXD0 0x00041007
  31565. #define GPIO_PE4_I2S0TXWS 0x00041009
  31566. #define GPIO_PE5_CCP5 0x00041401
  31567. #define GPIO_PE5_I2S0TXSD 0x00041409
  31568. #define GPIO_PE6_PWM4 0x00041801
  31569. #define GPIO_PE6_C1O 0x00041802
  31570. #define GPIO_PE6_U1CTS 0x00041809
  31571. #define GPIO_PE7_PWM5 0x00041C01
  31572. #define GPIO_PE7_C2O 0x00041C02
  31573. #define GPIO_PE7_U1DCD 0x00041C09
  31574. #define GPIO_PF0_CAN1RX 0x00050001
  31575. #define GPIO_PF0_PHB0 0x00050002
  31576. #define GPIO_PF0_PWM0 0x00050003
  31577. #define GPIO_PF0_RXCK 0x00050004
  31578. #define GPIO_PF0_I2S0TXSD 0x00050008
  31579. #define GPIO_PF0_U1DSR 0x00050009
  31580. #define GPIO_PF1_CAN1TX 0x00050401
  31581. #define GPIO_PF1_IDX1 0x00050402
  31582. #define GPIO_PF1_PWM1 0x00050403
  31583. #define GPIO_PF1_RXER 0x00050404
  31584. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  31585. #define GPIO_PF1_U1RTS 0x00050409
  31586. #define GPIO_PF1_CCP3 0x0005040A
  31587. #define GPIO_PF2_PWM4 0x00050802
  31588. #define GPIO_PF2_PHYINT 0x00050803
  31589. #define GPIO_PF2_PWM2 0x00050804
  31590. #define GPIO_PF2_SSI1CLK 0x00050809
  31591. #define GPIO_PF3_PWM5 0x00050C02
  31592. #define GPIO_PF3_MDC 0x00050C03
  31593. #define GPIO_PF3_PWM3 0x00050C04
  31594. #define GPIO_PF3_SSI1FSS 0x00050C09
  31595. #define GPIO_PF4_CCP0 0x00051001
  31596. #define GPIO_PF4_C0O 0x00051002
  31597. #define GPIO_PF4_MDIO 0x00051003
  31598. #define GPIO_PF4_FAULT0 0x00051004
  31599. #define GPIO_PF4_EPI0S12 0x00051008
  31600. #define GPIO_PF4_SSI1RX 0x00051009
  31601. #define GPIO_PF5_CCP2 0x00051401
  31602. #define GPIO_PF5_C1O 0x00051402
  31603. #define GPIO_PF5_RXD3 0x00051403
  31604. #define GPIO_PF5_EPI0S15 0x00051408
  31605. #define GPIO_PF5_SSI1TX 0x00051409
  31606. #define GPIO_PF6_CCP1 0x00051801
  31607. #define GPIO_PF6_C2O 0x00051802
  31608. #define GPIO_PF6_RXD2 0x00051803
  31609. #define GPIO_PF6_PHA0 0x00051804
  31610. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  31611. #define GPIO_PF6_U1RTS 0x0005180A
  31612. #define GPIO_PF7_CCP4 0x00051C01
  31613. #define GPIO_PF7_RXD1 0x00051C03
  31614. #define GPIO_PF7_PHB0 0x00051C04
  31615. #define GPIO_PF7_EPI0S12 0x00051C08
  31616. #define GPIO_PF7_FAULT1 0x00051C09
  31617. #define GPIO_PG0_U2RX 0x00060001
  31618. #define GPIO_PG0_PWM0 0x00060002
  31619. #define GPIO_PG0_I2C1SCL 0x00060003
  31620. #define GPIO_PG0_PWM4 0x00060004
  31621. #define GPIO_PG0_USB0EPEN 0x00060007
  31622. #define GPIO_PG0_EPI0S13 0x00060008
  31623. #define GPIO_PG1_U2TX 0x00060401
  31624. #define GPIO_PG1_PWM1 0x00060402
  31625. #define GPIO_PG1_I2C1SDA 0x00060403
  31626. #define GPIO_PG1_PWM5 0x00060404
  31627. #define GPIO_PG1_EPI0S14 0x00060408
  31628. #define GPIO_PG2_PWM0 0x00060801
  31629. #define GPIO_PG2_COL 0x00060803
  31630. #define GPIO_PG2_FAULT0 0x00060804
  31631. #define GPIO_PG2_IDX1 0x00060808
  31632. #define GPIO_PG2_I2S0RXSD 0x00060809
  31633. #define GPIO_PG3_PWM1 0x00060C01
  31634. #define GPIO_PG3_CRS 0x00060C03
  31635. #define GPIO_PG3_FAULT2 0x00060C04
  31636. #define GPIO_PG3_FAULT0 0x00060C08
  31637. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  31638. #define GPIO_PG4_CCP3 0x00061001
  31639. #define GPIO_PG4_RXD0 0x00061003
  31640. #define GPIO_PG4_FAULT1 0x00061004
  31641. #define GPIO_PG4_EPI0S15 0x00061008
  31642. #define GPIO_PG4_PWM6 0x00061009
  31643. #define GPIO_PG4_U1RI 0x0006100A
  31644. #define GPIO_PG5_CCP5 0x00061401
  31645. #define GPIO_PG5_TXEN 0x00061403
  31646. #define GPIO_PG5_IDX0 0x00061404
  31647. #define GPIO_PG5_FAULT1 0x00061405
  31648. #define GPIO_PG5_PWM7 0x00061408
  31649. #define GPIO_PG5_I2S0RXSCK 0x00061409
  31650. #define GPIO_PG5_U1DTR 0x0006140A
  31651. #define GPIO_PG6_PHA1 0x00061801
  31652. #define GPIO_PG6_TXCK 0x00061803
  31653. #define GPIO_PG6_PWM6 0x00061804
  31654. #define GPIO_PG6_FAULT1 0x00061808
  31655. #define GPIO_PG6_I2S0RXWS 0x00061809
  31656. #define GPIO_PG6_U1RI 0x0006180A
  31657. #define GPIO_PG7_PHB1 0x00061C01
  31658. #define GPIO_PG7_TXER 0x00061C03
  31659. #define GPIO_PG7_PWM7 0x00061C04
  31660. #define GPIO_PG7_CCP5 0x00061C08
  31661. #define GPIO_PG7_EPI0S31 0x00061C09
  31662. #define GPIO_PH0_CCP6 0x00070001
  31663. #define GPIO_PH0_PWM2 0x00070002
  31664. #define GPIO_PH0_EPI0S6 0x00070008
  31665. #define GPIO_PH0_PWM4 0x00070009
  31666. #define GPIO_PH1_CCP7 0x00070401
  31667. #define GPIO_PH1_PWM3 0x00070402
  31668. #define GPIO_PH1_EPI0S7 0x00070408
  31669. #define GPIO_PH1_PWM5 0x00070409
  31670. #define GPIO_PH2_IDX1 0x00070801
  31671. #define GPIO_PH2_C1O 0x00070802
  31672. #define GPIO_PH2_FAULT3 0x00070804
  31673. #define GPIO_PH2_EPI0S1 0x00070808
  31674. #define GPIO_PH2_TXD3 0x00070809
  31675. #define GPIO_PH3_PHB0 0x00070C01
  31676. #define GPIO_PH3_FAULT0 0x00070C02
  31677. #define GPIO_PH3_USB0EPEN 0x00070C04
  31678. #define GPIO_PH3_EPI0S0 0x00070C08
  31679. #define GPIO_PH3_TXD2 0x00070C09
  31680. #define GPIO_PH4_USB0PFLT 0x00071004
  31681. #define GPIO_PH4_EPI0S10 0x00071008
  31682. #define GPIO_PH4_TXD1 0x00071009
  31683. #define GPIO_PH4_SSI1CLK 0x0007100B
  31684. #define GPIO_PH5_EPI0S11 0x00071408
  31685. #define GPIO_PH5_TXD0 0x00071409
  31686. #define GPIO_PH5_FAULT2 0x0007140A
  31687. #define GPIO_PH5_SSI1FSS 0x0007140B
  31688. #define GPIO_PH6_EPI0S26 0x00071808
  31689. #define GPIO_PH6_RXDV 0x00071809
  31690. #define GPIO_PH6_PWM4 0x0007180A
  31691. #define GPIO_PH6_SSI1RX 0x0007180B
  31692. #define GPIO_PH7_RXCK 0x00071C03
  31693. #define GPIO_PH7_EPI0S27 0x00071C08
  31694. #define GPIO_PH7_PWM5 0x00071C0A
  31695. #define GPIO_PH7_SSI1TX 0x00071C0B
  31696. #define GPIO_PJ0_RXER 0x00080003
  31697. #define GPIO_PJ0_EPI0S16 0x00080008
  31698. #define GPIO_PJ0_PWM0 0x0008000A
  31699. #define GPIO_PJ0_I2C1SCL 0x0008000B
  31700. #define GPIO_PJ1_EPI0S17 0x00080408
  31701. #define GPIO_PJ1_USB0PFLT 0x00080409
  31702. #define GPIO_PJ1_PWM1 0x0008040A
  31703. #define GPIO_PJ1_I2C1SDA 0x0008040B
  31704. #define GPIO_PJ2_EPI0S18 0x00080808
  31705. #define GPIO_PJ2_CCP0 0x00080809
  31706. #define GPIO_PJ2_FAULT0 0x0008080A
  31707. #define GPIO_PJ3_EPI0S19 0x00080C08
  31708. #define GPIO_PJ3_U1CTS 0x00080C09
  31709. #define GPIO_PJ3_CCP6 0x00080C0A
  31710. #define GPIO_PJ4_EPI0S28 0x00081008
  31711. #define GPIO_PJ4_U1DCD 0x00081009
  31712. #define GPIO_PJ4_CCP4 0x0008100A
  31713. #define GPIO_PJ5_EPI0S29 0x00081408
  31714. #define GPIO_PJ5_U1DSR 0x00081409
  31715. #define GPIO_PJ5_CCP2 0x0008140A
  31716. #define GPIO_PJ6_EPI0S30 0x00081808
  31717. #define GPIO_PJ6_U1RTS 0x00081809
  31718. #define GPIO_PJ6_CCP1 0x0008180A
  31719. #define GPIO_PJ7_U1DTR 0x00081C09
  31720. #define GPIO_PJ7_CCP0 0x00081C0A
  31721. #endif // PART_LM3S9CN5
  31722. //*****************************************************************************
  31723. //
  31724. // LM3S9D81 Port/Pin Mapping Definitions
  31725. //
  31726. //*****************************************************************************
  31727. #ifdef PART_LM3S9D81
  31728. #define GPIO_PA0_U0RX 0x00000001
  31729. #define GPIO_PA0_I2C1SCL 0x00000008
  31730. #define GPIO_PA0_U1RX 0x00000009
  31731. #define GPIO_PA1_U0TX 0x00000401
  31732. #define GPIO_PA1_I2C1SDA 0x00000408
  31733. #define GPIO_PA1_U1TX 0x00000409
  31734. #define GPIO_PA2_SSI0CLK 0x00000801
  31735. #define GPIO_PA2_I2S0RXSD 0x00000809
  31736. #define GPIO_PA3_SSI0FSS 0x00000C01
  31737. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  31738. #define GPIO_PA4_SSI0RX 0x00001001
  31739. #define GPIO_PA4_CAN0RX 0x00001005
  31740. #define GPIO_PA4_I2S0TXSCK 0x00001009
  31741. #define GPIO_PA5_SSI0TX 0x00001401
  31742. #define GPIO_PA5_CAN0TX 0x00001405
  31743. #define GPIO_PA5_I2S0TXWS 0x00001409
  31744. #define GPIO_PA6_I2C1SCL 0x00001801
  31745. #define GPIO_PA6_CCP1 0x00001802
  31746. #define GPIO_PA6_CAN0RX 0x00001806
  31747. #define GPIO_PA6_USB0EPEN 0x00001808
  31748. #define GPIO_PA6_U1CTS 0x00001809
  31749. #define GPIO_PA7_I2C1SDA 0x00001C01
  31750. #define GPIO_PA7_CCP4 0x00001C02
  31751. #define GPIO_PA7_CAN0TX 0x00001C06
  31752. #define GPIO_PA7_CCP3 0x00001C07
  31753. #define GPIO_PA7_USB0PFLT 0x00001C08
  31754. #define GPIO_PA7_U1DCD 0x00001C09
  31755. #define GPIO_PB0_CCP0 0x00010001
  31756. #define GPIO_PB0_U1RX 0x00010005
  31757. #define GPIO_PB1_CCP2 0x00010401
  31758. #define GPIO_PB1_CCP1 0x00010404
  31759. #define GPIO_PB1_U1TX 0x00010405
  31760. #define GPIO_PB2_I2C0SCL 0x00010801
  31761. #define GPIO_PB2_CCP3 0x00010804
  31762. #define GPIO_PB2_CCP0 0x00010805
  31763. #define GPIO_PB2_USB0EPEN 0x00010808
  31764. #define GPIO_PB3_I2C0SDA 0x00010C01
  31765. #define GPIO_PB3_USB0PFLT 0x00010C08
  31766. #define GPIO_PB4_U2RX 0x00011004
  31767. #define GPIO_PB4_CAN0RX 0x00011005
  31768. #define GPIO_PB4_U1RX 0x00011007
  31769. #define GPIO_PB4_EPI0S23 0x00011008
  31770. #define GPIO_PB5_C0O 0x00011401
  31771. #define GPIO_PB5_CCP5 0x00011402
  31772. #define GPIO_PB5_CCP6 0x00011403
  31773. #define GPIO_PB5_CCP0 0x00011404
  31774. #define GPIO_PB5_CAN0TX 0x00011405
  31775. #define GPIO_PB5_CCP2 0x00011406
  31776. #define GPIO_PB5_U1TX 0x00011407
  31777. #define GPIO_PB5_EPI0S22 0x00011408
  31778. #define GPIO_PB6_CCP1 0x00011801
  31779. #define GPIO_PB6_CCP7 0x00011802
  31780. #define GPIO_PB6_C0O 0x00011803
  31781. #define GPIO_PB6_CCP5 0x00011806
  31782. #define GPIO_PB6_I2S0TXSCK 0x00011809
  31783. #define GPIO_PB7_NMI 0x00011C04
  31784. #define GPIO_PC0_TCK 0x00020003
  31785. #define GPIO_PC0_SWCLK 0x00020003
  31786. #define GPIO_PC1_TMS 0x00020403
  31787. #define GPIO_PC1_SWDIO 0x00020403
  31788. #define GPIO_PC2_TDI 0x00020803
  31789. #define GPIO_PC3_SWO 0x00020C03
  31790. #define GPIO_PC3_TDO 0x00020C03
  31791. #define GPIO_PC4_CCP5 0x00021001
  31792. #define GPIO_PC4_CCP2 0x00021005
  31793. #define GPIO_PC4_CCP4 0x00021006
  31794. #define GPIO_PC4_EPI0S2 0x00021008
  31795. #define GPIO_PC4_CCP1 0x00021009
  31796. #define GPIO_PC5_CCP1 0x00021401
  31797. #define GPIO_PC5_C1O 0x00021402
  31798. #define GPIO_PC5_C0O 0x00021403
  31799. #define GPIO_PC5_CCP3 0x00021405
  31800. #define GPIO_PC5_USB0EPEN 0x00021406
  31801. #define GPIO_PC5_EPI0S3 0x00021408
  31802. #define GPIO_PC6_CCP3 0x00021801
  31803. #define GPIO_PC6_C2O 0x00021803
  31804. #define GPIO_PC6_U1RX 0x00021805
  31805. #define GPIO_PC6_CCP0 0x00021806
  31806. #define GPIO_PC6_USB0PFLT 0x00021807
  31807. #define GPIO_PC6_EPI0S4 0x00021808
  31808. #define GPIO_PC7_CCP4 0x00021C01
  31809. #define GPIO_PC7_CCP0 0x00021C04
  31810. #define GPIO_PC7_U1TX 0x00021C05
  31811. #define GPIO_PC7_USB0PFLT 0x00021C06
  31812. #define GPIO_PC7_C1O 0x00021C07
  31813. #define GPIO_PC7_EPI0S5 0x00021C08
  31814. #define GPIO_PD0_CAN0RX 0x00030002
  31815. #define GPIO_PD0_U2RX 0x00030004
  31816. #define GPIO_PD0_U1RX 0x00030005
  31817. #define GPIO_PD0_CCP6 0x00030006
  31818. #define GPIO_PD0_I2S0RXSCK 0x00030008
  31819. #define GPIO_PD0_U1CTS 0x00030009
  31820. #define GPIO_PD1_CAN0TX 0x00030402
  31821. #define GPIO_PD1_U2TX 0x00030404
  31822. #define GPIO_PD1_U1TX 0x00030405
  31823. #define GPIO_PD1_CCP7 0x00030406
  31824. #define GPIO_PD1_I2S0RXWS 0x00030408
  31825. #define GPIO_PD1_U1DCD 0x00030409
  31826. #define GPIO_PD1_CCP2 0x0003040A
  31827. #define GPIO_PD2_U1RX 0x00030801
  31828. #define GPIO_PD2_CCP6 0x00030802
  31829. #define GPIO_PD2_CCP5 0x00030804
  31830. #define GPIO_PD2_EPI0S20 0x00030808
  31831. #define GPIO_PD3_U1TX 0x00030C01
  31832. #define GPIO_PD3_CCP7 0x00030C02
  31833. #define GPIO_PD3_CCP0 0x00030C04
  31834. #define GPIO_PD3_EPI0S21 0x00030C08
  31835. #define GPIO_PD4_CCP0 0x00031001
  31836. #define GPIO_PD4_CCP3 0x00031002
  31837. #define GPIO_PD4_I2S0RXSD 0x00031008
  31838. #define GPIO_PD4_U1RI 0x00031009
  31839. #define GPIO_PD4_EPI0S19 0x0003100A
  31840. #define GPIO_PD5_CCP2 0x00031401
  31841. #define GPIO_PD5_CCP4 0x00031402
  31842. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  31843. #define GPIO_PD5_U2RX 0x00031409
  31844. #define GPIO_PD5_EPI0S28 0x0003140A
  31845. #define GPIO_PD6_I2S0TXSCK 0x00031808
  31846. #define GPIO_PD6_U2TX 0x00031809
  31847. #define GPIO_PD6_EPI0S29 0x0003180A
  31848. #define GPIO_PD7_C0O 0x00031C02
  31849. #define GPIO_PD7_CCP1 0x00031C03
  31850. #define GPIO_PD7_I2S0TXWS 0x00031C08
  31851. #define GPIO_PD7_U1DTR 0x00031C09
  31852. #define GPIO_PD7_EPI0S30 0x00031C0A
  31853. #define GPIO_PE0_SSI1CLK 0x00040002
  31854. #define GPIO_PE0_CCP3 0x00040003
  31855. #define GPIO_PE0_EPI0S8 0x00040008
  31856. #define GPIO_PE0_USB0PFLT 0x00040009
  31857. #define GPIO_PE1_SSI1FSS 0x00040402
  31858. #define GPIO_PE1_CCP2 0x00040404
  31859. #define GPIO_PE1_CCP6 0x00040405
  31860. #define GPIO_PE1_EPI0S9 0x00040408
  31861. #define GPIO_PE2_CCP4 0x00040801
  31862. #define GPIO_PE2_SSI1RX 0x00040802
  31863. #define GPIO_PE2_CCP2 0x00040805
  31864. #define GPIO_PE2_EPI0S24 0x00040808
  31865. #define GPIO_PE3_CCP1 0x00040C01
  31866. #define GPIO_PE3_SSI1TX 0x00040C02
  31867. #define GPIO_PE3_CCP7 0x00040C05
  31868. #define GPIO_PE3_EPI0S25 0x00040C08
  31869. #define GPIO_PE4_CCP3 0x00041001
  31870. #define GPIO_PE4_CAN2RX 0x00041002
  31871. #define GPIO_PE4_U2TX 0x00041005
  31872. #define GPIO_PE4_CCP2 0x00041006
  31873. #define GPIO_PE4_I2S0TXWS 0x00041009
  31874. #define GPIO_PE5_CCP5 0x00041401
  31875. #define GPIO_PE5_CAN2TX 0x00041402
  31876. #define GPIO_PE5_I2S0TXSD 0x00041409
  31877. #define GPIO_PE6_C1O 0x00041802
  31878. #define GPIO_PE6_U1CTS 0x00041809
  31879. #define GPIO_PE7_C2O 0x00041C02
  31880. #define GPIO_PE7_U1DCD 0x00041C09
  31881. #define GPIO_PF0_CAN1RX 0x00050001
  31882. #define GPIO_PF0_I2S0TXSD 0x00050008
  31883. #define GPIO_PF0_U1DSR 0x00050009
  31884. #define GPIO_PF1_CAN1TX 0x00050401
  31885. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  31886. #define GPIO_PF1_U1RTS 0x00050409
  31887. #define GPIO_PF1_CCP3 0x0005040A
  31888. #define GPIO_PF2_LED1 0x00050801
  31889. #define GPIO_PF2_SSI1CLK 0x00050809
  31890. #define GPIO_PF3_LED0 0x00050C01
  31891. #define GPIO_PF3_SSI1FSS 0x00050C09
  31892. #define GPIO_PF4_CCP0 0x00051001
  31893. #define GPIO_PF4_C0O 0x00051002
  31894. #define GPIO_PF4_EPI0S12 0x00051008
  31895. #define GPIO_PF4_SSI1RX 0x00051009
  31896. #define GPIO_PF5_CCP2 0x00051401
  31897. #define GPIO_PF5_C1O 0x00051402
  31898. #define GPIO_PF5_EPI0S15 0x00051408
  31899. #define GPIO_PF5_SSI1TX 0x00051409
  31900. #define GPIO_PG0_U2RX 0x00060001
  31901. #define GPIO_PG0_I2C1SCL 0x00060003
  31902. #define GPIO_PG0_USB0EPEN 0x00060007
  31903. #define GPIO_PG0_EPI0S13 0x00060008
  31904. #define GPIO_PG1_U2TX 0x00060401
  31905. #define GPIO_PG1_I2C1SDA 0x00060403
  31906. #define GPIO_PG1_EPI0S14 0x00060408
  31907. #define GPIO_PG7_CCP5 0x00061C08
  31908. #define GPIO_PG7_EPI0S31 0x00061C09
  31909. #define GPIO_PH0_CCP6 0x00070001
  31910. #define GPIO_PH0_EPI0S6 0x00070008
  31911. #define GPIO_PH1_CCP7 0x00070401
  31912. #define GPIO_PH1_EPI0S7 0x00070408
  31913. #define GPIO_PH2_C1O 0x00070802
  31914. #define GPIO_PH2_EPI0S1 0x00070808
  31915. #define GPIO_PH3_USB0EPEN 0x00070C04
  31916. #define GPIO_PH3_EPI0S0 0x00070C08
  31917. #define GPIO_PH4_USB0PFLT 0x00071004
  31918. #define GPIO_PH4_EPI0S10 0x00071008
  31919. #define GPIO_PH4_SSI1CLK 0x0007100B
  31920. #define GPIO_PH5_EPI0S11 0x00071408
  31921. #define GPIO_PH5_SSI1FSS 0x0007140B
  31922. #define GPIO_PH6_EPI0S26 0x00071808
  31923. #define GPIO_PH6_SSI1RX 0x0007180B
  31924. #define GPIO_PH7_EPI0S27 0x00071C08
  31925. #define GPIO_PH7_SSI1TX 0x00071C0B
  31926. #define GPIO_PJ0_EPI0S16 0x00080008
  31927. #define GPIO_PJ0_I2C1SCL 0x0008000B
  31928. #define GPIO_PJ1_EPI0S17 0x00080408
  31929. #define GPIO_PJ1_USB0PFLT 0x00080409
  31930. #define GPIO_PJ1_I2C1SDA 0x0008040B
  31931. #define GPIO_PJ2_EPI0S18 0x00080808
  31932. #define GPIO_PJ2_CCP0 0x00080809
  31933. #define GPIO_PJ3_EPI0S19 0x00080C08
  31934. #define GPIO_PJ3_U1CTS 0x00080C09
  31935. #define GPIO_PJ3_CCP6 0x00080C0A
  31936. #define GPIO_PJ4_EPI0S28 0x00081008
  31937. #define GPIO_PJ4_U1DCD 0x00081009
  31938. #define GPIO_PJ4_CCP4 0x0008100A
  31939. #define GPIO_PJ5_EPI0S29 0x00081408
  31940. #define GPIO_PJ5_U1DSR 0x00081409
  31941. #define GPIO_PJ5_CCP2 0x0008140A
  31942. #define GPIO_PJ6_EPI0S30 0x00081808
  31943. #define GPIO_PJ6_U1RTS 0x00081809
  31944. #define GPIO_PJ6_CCP1 0x0008180A
  31945. #define GPIO_PJ7_U1DTR 0x00081C09
  31946. #define GPIO_PJ7_CCP0 0x00081C0A
  31947. #endif // PART_LM3S9D81
  31948. //*****************************************************************************
  31949. //
  31950. // LM3S9D90 Port/Pin Mapping Definitions
  31951. //
  31952. //*****************************************************************************
  31953. #ifdef PART_LM3S9D90
  31954. #define GPIO_PA0_U0RX 0x00000001
  31955. #define GPIO_PA0_I2C1SCL 0x00000008
  31956. #define GPIO_PA0_U1RX 0x00000009
  31957. #define GPIO_PA1_U0TX 0x00000401
  31958. #define GPIO_PA1_I2C1SDA 0x00000408
  31959. #define GPIO_PA1_U1TX 0x00000409
  31960. #define GPIO_PA2_SSI0CLK 0x00000801
  31961. #define GPIO_PA2_I2S0RXSD 0x00000809
  31962. #define GPIO_PA3_SSI0FSS 0x00000C01
  31963. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  31964. #define GPIO_PA4_SSI0RX 0x00001001
  31965. #define GPIO_PA4_CAN0RX 0x00001005
  31966. #define GPIO_PA4_I2S0TXSCK 0x00001009
  31967. #define GPIO_PA5_SSI0TX 0x00001401
  31968. #define GPIO_PA5_CAN0TX 0x00001405
  31969. #define GPIO_PA5_I2S0TXWS 0x00001409
  31970. #define GPIO_PA6_I2C1SCL 0x00001801
  31971. #define GPIO_PA6_CCP1 0x00001802
  31972. #define GPIO_PA6_CAN0RX 0x00001806
  31973. #define GPIO_PA6_USB0EPEN 0x00001808
  31974. #define GPIO_PA6_U1CTS 0x00001809
  31975. #define GPIO_PA7_I2C1SDA 0x00001C01
  31976. #define GPIO_PA7_CCP4 0x00001C02
  31977. #define GPIO_PA7_CAN0TX 0x00001C06
  31978. #define GPIO_PA7_CCP3 0x00001C07
  31979. #define GPIO_PA7_USB0PFLT 0x00001C08
  31980. #define GPIO_PA7_U1DCD 0x00001C09
  31981. #define GPIO_PB0_CCP0 0x00010001
  31982. #define GPIO_PB0_U1RX 0x00010005
  31983. #define GPIO_PB1_CCP2 0x00010401
  31984. #define GPIO_PB1_CCP1 0x00010404
  31985. #define GPIO_PB1_U1TX 0x00010405
  31986. #define GPIO_PB2_I2C0SCL 0x00010801
  31987. #define GPIO_PB2_CCP3 0x00010804
  31988. #define GPIO_PB2_CCP0 0x00010805
  31989. #define GPIO_PB2_USB0EPEN 0x00010808
  31990. #define GPIO_PB3_I2C0SDA 0x00010C01
  31991. #define GPIO_PB3_USB0PFLT 0x00010C08
  31992. #define GPIO_PB4_U2RX 0x00011004
  31993. #define GPIO_PB4_CAN0RX 0x00011005
  31994. #define GPIO_PB4_U1RX 0x00011007
  31995. #define GPIO_PB4_EPI0S23 0x00011008
  31996. #define GPIO_PB5_C0O 0x00011401
  31997. #define GPIO_PB5_CCP5 0x00011402
  31998. #define GPIO_PB5_CCP6 0x00011403
  31999. #define GPIO_PB5_CCP0 0x00011404
  32000. #define GPIO_PB5_CAN0TX 0x00011405
  32001. #define GPIO_PB5_CCP2 0x00011406
  32002. #define GPIO_PB5_U1TX 0x00011407
  32003. #define GPIO_PB5_EPI0S22 0x00011408
  32004. #define GPIO_PB6_CCP1 0x00011801
  32005. #define GPIO_PB6_CCP7 0x00011802
  32006. #define GPIO_PB6_C0O 0x00011803
  32007. #define GPIO_PB6_CCP5 0x00011806
  32008. #define GPIO_PB6_I2S0TXSCK 0x00011809
  32009. #define GPIO_PB7_NMI 0x00011C04
  32010. #define GPIO_PC0_TCK 0x00020003
  32011. #define GPIO_PC0_SWCLK 0x00020003
  32012. #define GPIO_PC1_TMS 0x00020403
  32013. #define GPIO_PC1_SWDIO 0x00020403
  32014. #define GPIO_PC2_TDI 0x00020803
  32015. #define GPIO_PC3_SWO 0x00020C03
  32016. #define GPIO_PC3_TDO 0x00020C03
  32017. #define GPIO_PC4_CCP5 0x00021001
  32018. #define GPIO_PC4_CCP2 0x00021005
  32019. #define GPIO_PC4_CCP4 0x00021006
  32020. #define GPIO_PC4_EPI0S2 0x00021008
  32021. #define GPIO_PC4_CCP1 0x00021009
  32022. #define GPIO_PC5_CCP1 0x00021401
  32023. #define GPIO_PC5_C1O 0x00021402
  32024. #define GPIO_PC5_C0O 0x00021403
  32025. #define GPIO_PC5_CCP3 0x00021405
  32026. #define GPIO_PC5_USB0EPEN 0x00021406
  32027. #define GPIO_PC5_EPI0S3 0x00021408
  32028. #define GPIO_PC6_CCP3 0x00021801
  32029. #define GPIO_PC6_C2O 0x00021803
  32030. #define GPIO_PC6_U1RX 0x00021805
  32031. #define GPIO_PC6_CCP0 0x00021806
  32032. #define GPIO_PC6_USB0PFLT 0x00021807
  32033. #define GPIO_PC6_EPI0S4 0x00021808
  32034. #define GPIO_PC7_CCP4 0x00021C01
  32035. #define GPIO_PC7_CCP0 0x00021C04
  32036. #define GPIO_PC7_U1TX 0x00021C05
  32037. #define GPIO_PC7_USB0PFLT 0x00021C06
  32038. #define GPIO_PC7_C1O 0x00021C07
  32039. #define GPIO_PC7_EPI0S5 0x00021C08
  32040. #define GPIO_PD0_CAN0RX 0x00030002
  32041. #define GPIO_PD0_U2RX 0x00030004
  32042. #define GPIO_PD0_U1RX 0x00030005
  32043. #define GPIO_PD0_CCP6 0x00030006
  32044. #define GPIO_PD0_I2S0RXSCK 0x00030008
  32045. #define GPIO_PD0_U1CTS 0x00030009
  32046. #define GPIO_PD1_CAN0TX 0x00030402
  32047. #define GPIO_PD1_U2TX 0x00030404
  32048. #define GPIO_PD1_U1TX 0x00030405
  32049. #define GPIO_PD1_CCP7 0x00030406
  32050. #define GPIO_PD1_I2S0RXWS 0x00030408
  32051. #define GPIO_PD1_U1DCD 0x00030409
  32052. #define GPIO_PD1_CCP2 0x0003040A
  32053. #define GPIO_PD2_U1RX 0x00030801
  32054. #define GPIO_PD2_CCP6 0x00030802
  32055. #define GPIO_PD2_CCP5 0x00030804
  32056. #define GPIO_PD2_EPI0S20 0x00030808
  32057. #define GPIO_PD3_U1TX 0x00030C01
  32058. #define GPIO_PD3_CCP7 0x00030C02
  32059. #define GPIO_PD3_CCP0 0x00030C04
  32060. #define GPIO_PD3_EPI0S21 0x00030C08
  32061. #define GPIO_PD4_CCP0 0x00031001
  32062. #define GPIO_PD4_CCP3 0x00031002
  32063. #define GPIO_PD4_I2S0RXSD 0x00031008
  32064. #define GPIO_PD4_U1RI 0x00031009
  32065. #define GPIO_PD4_EPI0S19 0x0003100A
  32066. #define GPIO_PD5_CCP2 0x00031401
  32067. #define GPIO_PD5_CCP4 0x00031402
  32068. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  32069. #define GPIO_PD5_U2RX 0x00031409
  32070. #define GPIO_PD5_EPI0S28 0x0003140A
  32071. #define GPIO_PD6_I2S0TXSCK 0x00031808
  32072. #define GPIO_PD6_U2TX 0x00031809
  32073. #define GPIO_PD6_EPI0S29 0x0003180A
  32074. #define GPIO_PD7_C0O 0x00031C02
  32075. #define GPIO_PD7_CCP1 0x00031C03
  32076. #define GPIO_PD7_I2S0TXWS 0x00031C08
  32077. #define GPIO_PD7_U1DTR 0x00031C09
  32078. #define GPIO_PD7_EPI0S30 0x00031C0A
  32079. #define GPIO_PE0_SSI1CLK 0x00040002
  32080. #define GPIO_PE0_CCP3 0x00040003
  32081. #define GPIO_PE0_EPI0S8 0x00040008
  32082. #define GPIO_PE0_USB0PFLT 0x00040009
  32083. #define GPIO_PE1_SSI1FSS 0x00040402
  32084. #define GPIO_PE1_CCP2 0x00040404
  32085. #define GPIO_PE1_CCP6 0x00040405
  32086. #define GPIO_PE1_EPI0S9 0x00040408
  32087. #define GPIO_PE2_CCP4 0x00040801
  32088. #define GPIO_PE2_SSI1RX 0x00040802
  32089. #define GPIO_PE2_CCP2 0x00040805
  32090. #define GPIO_PE2_EPI0S24 0x00040808
  32091. #define GPIO_PE3_CCP1 0x00040C01
  32092. #define GPIO_PE3_SSI1TX 0x00040C02
  32093. #define GPIO_PE3_CCP7 0x00040C05
  32094. #define GPIO_PE3_EPI0S25 0x00040C08
  32095. #define GPIO_PE4_CCP3 0x00041001
  32096. #define GPIO_PE4_U2TX 0x00041005
  32097. #define GPIO_PE4_CCP2 0x00041006
  32098. #define GPIO_PE4_I2S0TXWS 0x00041009
  32099. #define GPIO_PE5_CCP5 0x00041401
  32100. #define GPIO_PE5_I2S0TXSD 0x00041409
  32101. #define GPIO_PE6_C1O 0x00041802
  32102. #define GPIO_PE6_U1CTS 0x00041809
  32103. #define GPIO_PE7_C2O 0x00041C02
  32104. #define GPIO_PE7_U1DCD 0x00041C09
  32105. #define GPIO_PF0_CAN1RX 0x00050001
  32106. #define GPIO_PF0_I2S0TXSD 0x00050008
  32107. #define GPIO_PF0_U1DSR 0x00050009
  32108. #define GPIO_PF1_CAN1TX 0x00050401
  32109. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  32110. #define GPIO_PF1_U1RTS 0x00050409
  32111. #define GPIO_PF1_CCP3 0x0005040A
  32112. #define GPIO_PF2_LED1 0x00050801
  32113. #define GPIO_PF2_SSI1CLK 0x00050809
  32114. #define GPIO_PF3_LED0 0x00050C01
  32115. #define GPIO_PF3_SSI1FSS 0x00050C09
  32116. #define GPIO_PF4_CCP0 0x00051001
  32117. #define GPIO_PF4_C0O 0x00051002
  32118. #define GPIO_PF4_EPI0S12 0x00051008
  32119. #define GPIO_PF4_SSI1RX 0x00051009
  32120. #define GPIO_PF5_CCP2 0x00051401
  32121. #define GPIO_PF5_C1O 0x00051402
  32122. #define GPIO_PF5_EPI0S15 0x00051408
  32123. #define GPIO_PF5_SSI1TX 0x00051409
  32124. #define GPIO_PG0_U2RX 0x00060001
  32125. #define GPIO_PG0_I2C1SCL 0x00060003
  32126. #define GPIO_PG0_USB0EPEN 0x00060007
  32127. #define GPIO_PG0_EPI0S13 0x00060008
  32128. #define GPIO_PG1_U2TX 0x00060401
  32129. #define GPIO_PG1_I2C1SDA 0x00060403
  32130. #define GPIO_PG1_EPI0S14 0x00060408
  32131. #define GPIO_PG7_CCP5 0x00061C08
  32132. #define GPIO_PG7_EPI0S31 0x00061C09
  32133. #define GPIO_PH0_CCP6 0x00070001
  32134. #define GPIO_PH0_EPI0S6 0x00070008
  32135. #define GPIO_PH1_CCP7 0x00070401
  32136. #define GPIO_PH1_EPI0S7 0x00070408
  32137. #define GPIO_PH2_C1O 0x00070802
  32138. #define GPIO_PH2_EPI0S1 0x00070808
  32139. #define GPIO_PH3_USB0EPEN 0x00070C04
  32140. #define GPIO_PH3_EPI0S0 0x00070C08
  32141. #define GPIO_PH4_USB0PFLT 0x00071004
  32142. #define GPIO_PH4_EPI0S10 0x00071008
  32143. #define GPIO_PH4_SSI1CLK 0x0007100B
  32144. #define GPIO_PH5_EPI0S11 0x00071408
  32145. #define GPIO_PH5_SSI1FSS 0x0007140B
  32146. #define GPIO_PH6_EPI0S26 0x00071808
  32147. #define GPIO_PH6_SSI1RX 0x0007180B
  32148. #define GPIO_PH7_EPI0S27 0x00071C08
  32149. #define GPIO_PH7_SSI1TX 0x00071C0B
  32150. #define GPIO_PJ0_EPI0S16 0x00080008
  32151. #define GPIO_PJ0_I2C1SCL 0x0008000B
  32152. #define GPIO_PJ1_EPI0S17 0x00080408
  32153. #define GPIO_PJ1_USB0PFLT 0x00080409
  32154. #define GPIO_PJ1_I2C1SDA 0x0008040B
  32155. #define GPIO_PJ2_EPI0S18 0x00080808
  32156. #define GPIO_PJ2_CCP0 0x00080809
  32157. #endif // PART_LM3S9D90
  32158. //*****************************************************************************
  32159. //
  32160. // LM3S9D92 Port/Pin Mapping Definitions
  32161. //
  32162. //*****************************************************************************
  32163. #ifdef PART_LM3S9D92
  32164. #define GPIO_PA0_U0RX 0x00000001
  32165. #define GPIO_PA0_I2C1SCL 0x00000008
  32166. #define GPIO_PA0_U1RX 0x00000009
  32167. #define GPIO_PA1_U0TX 0x00000401
  32168. #define GPIO_PA1_I2C1SDA 0x00000408
  32169. #define GPIO_PA1_U1TX 0x00000409
  32170. #define GPIO_PA2_SSI0CLK 0x00000801
  32171. #define GPIO_PA2_PWM4 0x00000804
  32172. #define GPIO_PA2_I2S0RXSD 0x00000809
  32173. #define GPIO_PA3_SSI0FSS 0x00000C01
  32174. #define GPIO_PA3_PWM5 0x00000C04
  32175. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  32176. #define GPIO_PA4_SSI0RX 0x00001001
  32177. #define GPIO_PA4_PWM6 0x00001004
  32178. #define GPIO_PA4_CAN0RX 0x00001005
  32179. #define GPIO_PA4_I2S0TXSCK 0x00001009
  32180. #define GPIO_PA5_SSI0TX 0x00001401
  32181. #define GPIO_PA5_PWM7 0x00001404
  32182. #define GPIO_PA5_CAN0TX 0x00001405
  32183. #define GPIO_PA5_I2S0TXWS 0x00001409
  32184. #define GPIO_PA6_I2C1SCL 0x00001801
  32185. #define GPIO_PA6_CCP1 0x00001802
  32186. #define GPIO_PA6_PWM0 0x00001804
  32187. #define GPIO_PA6_PWM4 0x00001805
  32188. #define GPIO_PA6_CAN0RX 0x00001806
  32189. #define GPIO_PA6_USB0EPEN 0x00001808
  32190. #define GPIO_PA6_U1CTS 0x00001809
  32191. #define GPIO_PA7_I2C1SDA 0x00001C01
  32192. #define GPIO_PA7_CCP4 0x00001C02
  32193. #define GPIO_PA7_PWM1 0x00001C04
  32194. #define GPIO_PA7_PWM5 0x00001C05
  32195. #define GPIO_PA7_CAN0TX 0x00001C06
  32196. #define GPIO_PA7_CCP3 0x00001C07
  32197. #define GPIO_PA7_USB0PFLT 0x00001C08
  32198. #define GPIO_PA7_U1DCD 0x00001C09
  32199. #define GPIO_PB0_CCP0 0x00010001
  32200. #define GPIO_PB0_PWM2 0x00010002
  32201. #define GPIO_PB0_U1RX 0x00010005
  32202. #define GPIO_PB1_CCP2 0x00010401
  32203. #define GPIO_PB1_PWM3 0x00010402
  32204. #define GPIO_PB1_CCP1 0x00010404
  32205. #define GPIO_PB1_U1TX 0x00010405
  32206. #define GPIO_PB2_I2C0SCL 0x00010801
  32207. #define GPIO_PB2_IDX0 0x00010802
  32208. #define GPIO_PB2_CCP3 0x00010804
  32209. #define GPIO_PB2_CCP0 0x00010805
  32210. #define GPIO_PB2_USB0EPEN 0x00010808
  32211. #define GPIO_PB3_I2C0SDA 0x00010C01
  32212. #define GPIO_PB3_FAULT0 0x00010C02
  32213. #define GPIO_PB3_FAULT3 0x00010C04
  32214. #define GPIO_PB3_USB0PFLT 0x00010C08
  32215. #define GPIO_PB4_U2RX 0x00011004
  32216. #define GPIO_PB4_CAN0RX 0x00011005
  32217. #define GPIO_PB4_IDX0 0x00011006
  32218. #define GPIO_PB4_U1RX 0x00011007
  32219. #define GPIO_PB4_EPI0S23 0x00011008
  32220. #define GPIO_PB5_C0O 0x00011401
  32221. #define GPIO_PB5_CCP5 0x00011402
  32222. #define GPIO_PB5_CCP6 0x00011403
  32223. #define GPIO_PB5_CCP0 0x00011404
  32224. #define GPIO_PB5_CAN0TX 0x00011405
  32225. #define GPIO_PB5_CCP2 0x00011406
  32226. #define GPIO_PB5_U1TX 0x00011407
  32227. #define GPIO_PB5_EPI0S22 0x00011408
  32228. #define GPIO_PB6_CCP1 0x00011801
  32229. #define GPIO_PB6_CCP7 0x00011802
  32230. #define GPIO_PB6_C0O 0x00011803
  32231. #define GPIO_PB6_FAULT1 0x00011804
  32232. #define GPIO_PB6_IDX0 0x00011805
  32233. #define GPIO_PB6_CCP5 0x00011806
  32234. #define GPIO_PB6_I2S0TXSCK 0x00011809
  32235. #define GPIO_PB7_NMI 0x00011C04
  32236. #define GPIO_PC0_TCK 0x00020003
  32237. #define GPIO_PC0_SWCLK 0x00020003
  32238. #define GPIO_PC1_TMS 0x00020403
  32239. #define GPIO_PC1_SWDIO 0x00020403
  32240. #define GPIO_PC2_TDI 0x00020803
  32241. #define GPIO_PC3_SWO 0x00020C03
  32242. #define GPIO_PC3_TDO 0x00020C03
  32243. #define GPIO_PC4_CCP5 0x00021001
  32244. #define GPIO_PC4_PHA0 0x00021002
  32245. #define GPIO_PC4_PWM6 0x00021004
  32246. #define GPIO_PC4_CCP2 0x00021005
  32247. #define GPIO_PC4_CCP4 0x00021006
  32248. #define GPIO_PC4_EPI0S2 0x00021008
  32249. #define GPIO_PC4_CCP1 0x00021009
  32250. #define GPIO_PC5_CCP1 0x00021401
  32251. #define GPIO_PC5_C1O 0x00021402
  32252. #define GPIO_PC5_C0O 0x00021403
  32253. #define GPIO_PC5_FAULT2 0x00021404
  32254. #define GPIO_PC5_CCP3 0x00021405
  32255. #define GPIO_PC5_USB0EPEN 0x00021406
  32256. #define GPIO_PC5_EPI0S3 0x00021408
  32257. #define GPIO_PC6_CCP3 0x00021801
  32258. #define GPIO_PC6_PHB0 0x00021802
  32259. #define GPIO_PC6_C2O 0x00021803
  32260. #define GPIO_PC6_PWM7 0x00021804
  32261. #define GPIO_PC6_U1RX 0x00021805
  32262. #define GPIO_PC6_CCP0 0x00021806
  32263. #define GPIO_PC6_USB0PFLT 0x00021807
  32264. #define GPIO_PC6_EPI0S4 0x00021808
  32265. #define GPIO_PC7_CCP4 0x00021C01
  32266. #define GPIO_PC7_PHB0 0x00021C02
  32267. #define GPIO_PC7_CCP0 0x00021C04
  32268. #define GPIO_PC7_U1TX 0x00021C05
  32269. #define GPIO_PC7_USB0PFLT 0x00021C06
  32270. #define GPIO_PC7_C1O 0x00021C07
  32271. #define GPIO_PC7_EPI0S5 0x00021C08
  32272. #define GPIO_PD0_PWM0 0x00030001
  32273. #define GPIO_PD0_CAN0RX 0x00030002
  32274. #define GPIO_PD0_IDX0 0x00030003
  32275. #define GPIO_PD0_U2RX 0x00030004
  32276. #define GPIO_PD0_U1RX 0x00030005
  32277. #define GPIO_PD0_CCP6 0x00030006
  32278. #define GPIO_PD0_I2S0RXSCK 0x00030008
  32279. #define GPIO_PD0_U1CTS 0x00030009
  32280. #define GPIO_PD1_PWM1 0x00030401
  32281. #define GPIO_PD1_CAN0TX 0x00030402
  32282. #define GPIO_PD1_PHA0 0x00030403
  32283. #define GPIO_PD1_U2TX 0x00030404
  32284. #define GPIO_PD1_U1TX 0x00030405
  32285. #define GPIO_PD1_CCP7 0x00030406
  32286. #define GPIO_PD1_I2S0RXWS 0x00030408
  32287. #define GPIO_PD1_U1DCD 0x00030409
  32288. #define GPIO_PD1_CCP2 0x0003040A
  32289. #define GPIO_PD1_PHB1 0x0003040B
  32290. #define GPIO_PD2_U1RX 0x00030801
  32291. #define GPIO_PD2_CCP6 0x00030802
  32292. #define GPIO_PD2_PWM2 0x00030803
  32293. #define GPIO_PD2_CCP5 0x00030804
  32294. #define GPIO_PD2_EPI0S20 0x00030808
  32295. #define GPIO_PD3_U1TX 0x00030C01
  32296. #define GPIO_PD3_CCP7 0x00030C02
  32297. #define GPIO_PD3_PWM3 0x00030C03
  32298. #define GPIO_PD3_CCP0 0x00030C04
  32299. #define GPIO_PD3_EPI0S21 0x00030C08
  32300. #define GPIO_PD4_CCP0 0x00031001
  32301. #define GPIO_PD4_CCP3 0x00031002
  32302. #define GPIO_PD4_I2S0RXSD 0x00031008
  32303. #define GPIO_PD4_U1RI 0x00031009
  32304. #define GPIO_PD4_EPI0S19 0x0003100A
  32305. #define GPIO_PD5_CCP2 0x00031401
  32306. #define GPIO_PD5_CCP4 0x00031402
  32307. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  32308. #define GPIO_PD5_U2RX 0x00031409
  32309. #define GPIO_PD5_EPI0S28 0x0003140A
  32310. #define GPIO_PD6_FAULT0 0x00031801
  32311. #define GPIO_PD6_I2S0TXSCK 0x00031808
  32312. #define GPIO_PD6_U2TX 0x00031809
  32313. #define GPIO_PD6_EPI0S29 0x0003180A
  32314. #define GPIO_PD7_IDX0 0x00031C01
  32315. #define GPIO_PD7_C0O 0x00031C02
  32316. #define GPIO_PD7_CCP1 0x00031C03
  32317. #define GPIO_PD7_I2S0TXWS 0x00031C08
  32318. #define GPIO_PD7_U1DTR 0x00031C09
  32319. #define GPIO_PD7_EPI0S30 0x00031C0A
  32320. #define GPIO_PE0_PWM4 0x00040001
  32321. #define GPIO_PE0_SSI1CLK 0x00040002
  32322. #define GPIO_PE0_CCP3 0x00040003
  32323. #define GPIO_PE0_EPI0S8 0x00040008
  32324. #define GPIO_PE0_USB0PFLT 0x00040009
  32325. #define GPIO_PE1_PWM5 0x00040401
  32326. #define GPIO_PE1_SSI1FSS 0x00040402
  32327. #define GPIO_PE1_FAULT0 0x00040403
  32328. #define GPIO_PE1_CCP2 0x00040404
  32329. #define GPIO_PE1_CCP6 0x00040405
  32330. #define GPIO_PE1_EPI0S9 0x00040408
  32331. #define GPIO_PE2_CCP4 0x00040801
  32332. #define GPIO_PE2_SSI1RX 0x00040802
  32333. #define GPIO_PE2_PHB1 0x00040803
  32334. #define GPIO_PE2_PHA0 0x00040804
  32335. #define GPIO_PE2_CCP2 0x00040805
  32336. #define GPIO_PE2_EPI0S24 0x00040808
  32337. #define GPIO_PE3_CCP1 0x00040C01
  32338. #define GPIO_PE3_SSI1TX 0x00040C02
  32339. #define GPIO_PE3_PHA1 0x00040C03
  32340. #define GPIO_PE3_PHB0 0x00040C04
  32341. #define GPIO_PE3_CCP7 0x00040C05
  32342. #define GPIO_PE3_EPI0S25 0x00040C08
  32343. #define GPIO_PE4_CCP3 0x00041001
  32344. #define GPIO_PE4_FAULT0 0x00041004
  32345. #define GPIO_PE4_U2TX 0x00041005
  32346. #define GPIO_PE4_CCP2 0x00041006
  32347. #define GPIO_PE4_I2S0TXWS 0x00041009
  32348. #define GPIO_PE5_CCP5 0x00041401
  32349. #define GPIO_PE5_I2S0TXSD 0x00041409
  32350. #define GPIO_PE6_PWM4 0x00041801
  32351. #define GPIO_PE6_C1O 0x00041802
  32352. #define GPIO_PE6_U1CTS 0x00041809
  32353. #define GPIO_PE7_PWM5 0x00041C01
  32354. #define GPIO_PE7_C2O 0x00041C02
  32355. #define GPIO_PE7_U1DCD 0x00041C09
  32356. #define GPIO_PF0_CAN1RX 0x00050001
  32357. #define GPIO_PF0_PHB0 0x00050002
  32358. #define GPIO_PF0_PWM0 0x00050003
  32359. #define GPIO_PF0_I2S0TXSD 0x00050008
  32360. #define GPIO_PF0_U1DSR 0x00050009
  32361. #define GPIO_PF1_CAN1TX 0x00050401
  32362. #define GPIO_PF1_IDX1 0x00050402
  32363. #define GPIO_PF1_PWM1 0x00050403
  32364. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  32365. #define GPIO_PF1_U1RTS 0x00050409
  32366. #define GPIO_PF1_CCP3 0x0005040A
  32367. #define GPIO_PF2_LED1 0x00050801
  32368. #define GPIO_PF2_PWM4 0x00050802
  32369. #define GPIO_PF2_PWM2 0x00050804
  32370. #define GPIO_PF2_SSI1CLK 0x00050809
  32371. #define GPIO_PF3_LED0 0x00050C01
  32372. #define GPIO_PF3_PWM5 0x00050C02
  32373. #define GPIO_PF3_PWM3 0x00050C04
  32374. #define GPIO_PF3_SSI1FSS 0x00050C09
  32375. #define GPIO_PF4_CCP0 0x00051001
  32376. #define GPIO_PF4_C0O 0x00051002
  32377. #define GPIO_PF4_FAULT0 0x00051004
  32378. #define GPIO_PF4_EPI0S12 0x00051008
  32379. #define GPIO_PF4_SSI1RX 0x00051009
  32380. #define GPIO_PF5_CCP2 0x00051401
  32381. #define GPIO_PF5_C1O 0x00051402
  32382. #define GPIO_PF5_EPI0S15 0x00051408
  32383. #define GPIO_PF5_SSI1TX 0x00051409
  32384. #define GPIO_PG0_U2RX 0x00060001
  32385. #define GPIO_PG0_PWM0 0x00060002
  32386. #define GPIO_PG0_I2C1SCL 0x00060003
  32387. #define GPIO_PG0_PWM4 0x00060004
  32388. #define GPIO_PG0_USB0EPEN 0x00060007
  32389. #define GPIO_PG0_EPI0S13 0x00060008
  32390. #define GPIO_PG1_U2TX 0x00060401
  32391. #define GPIO_PG1_PWM1 0x00060402
  32392. #define GPIO_PG1_I2C1SDA 0x00060403
  32393. #define GPIO_PG1_PWM5 0x00060404
  32394. #define GPIO_PG1_EPI0S14 0x00060408
  32395. #define GPIO_PG7_PHB1 0x00061C01
  32396. #define GPIO_PG7_PWM7 0x00061C04
  32397. #define GPIO_PG7_CCP5 0x00061C08
  32398. #define GPIO_PG7_EPI0S31 0x00061C09
  32399. #define GPIO_PH0_CCP6 0x00070001
  32400. #define GPIO_PH0_PWM2 0x00070002
  32401. #define GPIO_PH0_EPI0S6 0x00070008
  32402. #define GPIO_PH0_PWM4 0x00070009
  32403. #define GPIO_PH1_CCP7 0x00070401
  32404. #define GPIO_PH1_PWM3 0x00070402
  32405. #define GPIO_PH1_EPI0S7 0x00070408
  32406. #define GPIO_PH1_PWM5 0x00070409
  32407. #define GPIO_PH2_IDX1 0x00070801
  32408. #define GPIO_PH2_C1O 0x00070802
  32409. #define GPIO_PH2_FAULT3 0x00070804
  32410. #define GPIO_PH2_EPI0S1 0x00070808
  32411. #define GPIO_PH3_PHB0 0x00070C01
  32412. #define GPIO_PH3_FAULT0 0x00070C02
  32413. #define GPIO_PH3_USB0EPEN 0x00070C04
  32414. #define GPIO_PH3_EPI0S0 0x00070C08
  32415. #define GPIO_PH4_USB0PFLT 0x00071004
  32416. #define GPIO_PH4_EPI0S10 0x00071008
  32417. #define GPIO_PH4_SSI1CLK 0x0007100B
  32418. #define GPIO_PH5_EPI0S11 0x00071408
  32419. #define GPIO_PH5_FAULT2 0x0007140A
  32420. #define GPIO_PH5_SSI1FSS 0x0007140B
  32421. #define GPIO_PH6_EPI0S26 0x00071808
  32422. #define GPIO_PH6_PWM4 0x0007180A
  32423. #define GPIO_PH6_SSI1RX 0x0007180B
  32424. #define GPIO_PH7_EPI0S27 0x00071C08
  32425. #define GPIO_PH7_PWM5 0x00071C0A
  32426. #define GPIO_PH7_SSI1TX 0x00071C0B
  32427. #define GPIO_PJ0_EPI0S16 0x00080008
  32428. #define GPIO_PJ0_PWM0 0x0008000A
  32429. #define GPIO_PJ0_I2C1SCL 0x0008000B
  32430. #define GPIO_PJ1_EPI0S17 0x00080408
  32431. #define GPIO_PJ1_USB0PFLT 0x00080409
  32432. #define GPIO_PJ1_PWM1 0x0008040A
  32433. #define GPIO_PJ1_I2C1SDA 0x0008040B
  32434. #define GPIO_PJ2_EPI0S18 0x00080808
  32435. #define GPIO_PJ2_CCP0 0x00080809
  32436. #define GPIO_PJ2_FAULT0 0x0008080A
  32437. #define GPIO_PJ3_EPI0S19 0x00080C08
  32438. #define GPIO_PJ3_U1CTS 0x00080C09
  32439. #define GPIO_PJ3_CCP6 0x00080C0A
  32440. #define GPIO_PJ4_EPI0S28 0x00081008
  32441. #define GPIO_PJ4_U1DCD 0x00081009
  32442. #define GPIO_PJ4_CCP4 0x0008100A
  32443. #define GPIO_PJ5_EPI0S29 0x00081408
  32444. #define GPIO_PJ5_U1DSR 0x00081409
  32445. #define GPIO_PJ5_CCP2 0x0008140A
  32446. #define GPIO_PJ6_EPI0S30 0x00081808
  32447. #define GPIO_PJ6_U1RTS 0x00081809
  32448. #define GPIO_PJ6_CCP1 0x0008180A
  32449. #define GPIO_PJ7_U1DTR 0x00081C09
  32450. #define GPIO_PJ7_CCP0 0x00081C0A
  32451. #endif // PART_LM3S9D92
  32452. //*****************************************************************************
  32453. //
  32454. // LM3S9D95 Port/Pin Mapping Definitions
  32455. //
  32456. //*****************************************************************************
  32457. #ifdef PART_LM3S9D95
  32458. #define GPIO_PA0_U0RX 0x00000001
  32459. #define GPIO_PA0_I2C1SCL 0x00000008
  32460. #define GPIO_PA0_U1RX 0x00000009
  32461. #define GPIO_PA1_U0TX 0x00000401
  32462. #define GPIO_PA1_I2C1SDA 0x00000408
  32463. #define GPIO_PA1_U1TX 0x00000409
  32464. #define GPIO_PA2_SSI0CLK 0x00000801
  32465. #define GPIO_PA2_PWM4 0x00000804
  32466. #define GPIO_PA2_I2S0RXSD 0x00000809
  32467. #define GPIO_PA3_SSI0FSS 0x00000C01
  32468. #define GPIO_PA3_PWM5 0x00000C04
  32469. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  32470. #define GPIO_PA4_SSI0RX 0x00001001
  32471. #define GPIO_PA4_PWM6 0x00001004
  32472. #define GPIO_PA4_CAN0RX 0x00001005
  32473. #define GPIO_PA4_I2S0TXSCK 0x00001009
  32474. #define GPIO_PA5_SSI0TX 0x00001401
  32475. #define GPIO_PA5_PWM7 0x00001404
  32476. #define GPIO_PA5_CAN0TX 0x00001405
  32477. #define GPIO_PA5_I2S0TXWS 0x00001409
  32478. #define GPIO_PA6_I2C1SCL 0x00001801
  32479. #define GPIO_PA6_CCP1 0x00001802
  32480. #define GPIO_PA6_PWM0 0x00001804
  32481. #define GPIO_PA6_PWM4 0x00001805
  32482. #define GPIO_PA6_CAN0RX 0x00001806
  32483. #define GPIO_PA6_USB0EPEN 0x00001808
  32484. #define GPIO_PA6_U1CTS 0x00001809
  32485. #define GPIO_PA7_I2C1SDA 0x00001C01
  32486. #define GPIO_PA7_CCP4 0x00001C02
  32487. #define GPIO_PA7_PWM1 0x00001C04
  32488. #define GPIO_PA7_PWM5 0x00001C05
  32489. #define GPIO_PA7_CAN0TX 0x00001C06
  32490. #define GPIO_PA7_CCP3 0x00001C07
  32491. #define GPIO_PA7_USB0PFLT 0x00001C08
  32492. #define GPIO_PA7_U1DCD 0x00001C09
  32493. #define GPIO_PB0_CCP0 0x00010001
  32494. #define GPIO_PB0_PWM2 0x00010002
  32495. #define GPIO_PB0_U1RX 0x00010005
  32496. #define GPIO_PB1_CCP2 0x00010401
  32497. #define GPIO_PB1_PWM3 0x00010402
  32498. #define GPIO_PB1_CCP1 0x00010404
  32499. #define GPIO_PB1_U1TX 0x00010405
  32500. #define GPIO_PB2_I2C0SCL 0x00010801
  32501. #define GPIO_PB2_IDX0 0x00010802
  32502. #define GPIO_PB2_CCP3 0x00010804
  32503. #define GPIO_PB2_CCP0 0x00010805
  32504. #define GPIO_PB2_USB0EPEN 0x00010808
  32505. #define GPIO_PB3_I2C0SDA 0x00010C01
  32506. #define GPIO_PB3_FAULT0 0x00010C02
  32507. #define GPIO_PB3_FAULT3 0x00010C04
  32508. #define GPIO_PB3_USB0PFLT 0x00010C08
  32509. #define GPIO_PB4_U2RX 0x00011004
  32510. #define GPIO_PB4_CAN0RX 0x00011005
  32511. #define GPIO_PB4_IDX0 0x00011006
  32512. #define GPIO_PB4_U1RX 0x00011007
  32513. #define GPIO_PB4_EPI0S23 0x00011008
  32514. #define GPIO_PB5_C0O 0x00011401
  32515. #define GPIO_PB5_CCP5 0x00011402
  32516. #define GPIO_PB5_CCP6 0x00011403
  32517. #define GPIO_PB5_CCP0 0x00011404
  32518. #define GPIO_PB5_CAN0TX 0x00011405
  32519. #define GPIO_PB5_CCP2 0x00011406
  32520. #define GPIO_PB5_U1TX 0x00011407
  32521. #define GPIO_PB5_EPI0S22 0x00011408
  32522. #define GPIO_PB6_CCP1 0x00011801
  32523. #define GPIO_PB6_CCP7 0x00011802
  32524. #define GPIO_PB6_C0O 0x00011803
  32525. #define GPIO_PB6_FAULT1 0x00011804
  32526. #define GPIO_PB6_IDX0 0x00011805
  32527. #define GPIO_PB6_CCP5 0x00011806
  32528. #define GPIO_PB6_I2S0TXSCK 0x00011809
  32529. #define GPIO_PB7_NMI 0x00011C04
  32530. #define GPIO_PC0_TCK 0x00020003
  32531. #define GPIO_PC0_SWCLK 0x00020003
  32532. #define GPIO_PC1_TMS 0x00020403
  32533. #define GPIO_PC1_SWDIO 0x00020403
  32534. #define GPIO_PC2_TDI 0x00020803
  32535. #define GPIO_PC3_SWO 0x00020C03
  32536. #define GPIO_PC3_TDO 0x00020C03
  32537. #define GPIO_PC4_CCP5 0x00021001
  32538. #define GPIO_PC4_PHA0 0x00021002
  32539. #define GPIO_PC4_PWM6 0x00021004
  32540. #define GPIO_PC4_CCP2 0x00021005
  32541. #define GPIO_PC4_CCP4 0x00021006
  32542. #define GPIO_PC4_EPI0S2 0x00021008
  32543. #define GPIO_PC4_CCP1 0x00021009
  32544. #define GPIO_PC5_CCP1 0x00021401
  32545. #define GPIO_PC5_C1O 0x00021402
  32546. #define GPIO_PC5_C0O 0x00021403
  32547. #define GPIO_PC5_FAULT2 0x00021404
  32548. #define GPIO_PC5_CCP3 0x00021405
  32549. #define GPIO_PC5_USB0EPEN 0x00021406
  32550. #define GPIO_PC5_EPI0S3 0x00021408
  32551. #define GPIO_PC6_CCP3 0x00021801
  32552. #define GPIO_PC6_PHB0 0x00021802
  32553. #define GPIO_PC6_C2O 0x00021803
  32554. #define GPIO_PC6_PWM7 0x00021804
  32555. #define GPIO_PC6_U1RX 0x00021805
  32556. #define GPIO_PC6_CCP0 0x00021806
  32557. #define GPIO_PC6_USB0PFLT 0x00021807
  32558. #define GPIO_PC6_EPI0S4 0x00021808
  32559. #define GPIO_PC7_CCP4 0x00021C01
  32560. #define GPIO_PC7_PHB0 0x00021C02
  32561. #define GPIO_PC7_CCP0 0x00021C04
  32562. #define GPIO_PC7_U1TX 0x00021C05
  32563. #define GPIO_PC7_USB0PFLT 0x00021C06
  32564. #define GPIO_PC7_C1O 0x00021C07
  32565. #define GPIO_PC7_EPI0S5 0x00021C08
  32566. #define GPIO_PD0_PWM0 0x00030001
  32567. #define GPIO_PD0_CAN0RX 0x00030002
  32568. #define GPIO_PD0_IDX0 0x00030003
  32569. #define GPIO_PD0_U2RX 0x00030004
  32570. #define GPIO_PD0_U1RX 0x00030005
  32571. #define GPIO_PD0_CCP6 0x00030006
  32572. #define GPIO_PD0_I2S0RXSCK 0x00030008
  32573. #define GPIO_PD0_U1CTS 0x00030009
  32574. #define GPIO_PD1_PWM1 0x00030401
  32575. #define GPIO_PD1_CAN0TX 0x00030402
  32576. #define GPIO_PD1_PHA0 0x00030403
  32577. #define GPIO_PD1_U2TX 0x00030404
  32578. #define GPIO_PD1_U1TX 0x00030405
  32579. #define GPIO_PD1_CCP7 0x00030406
  32580. #define GPIO_PD1_I2S0RXWS 0x00030408
  32581. #define GPIO_PD1_U1DCD 0x00030409
  32582. #define GPIO_PD1_CCP2 0x0003040A
  32583. #define GPIO_PD1_PHB1 0x0003040B
  32584. #define GPIO_PD2_U1RX 0x00030801
  32585. #define GPIO_PD2_CCP6 0x00030802
  32586. #define GPIO_PD2_PWM2 0x00030803
  32587. #define GPIO_PD2_CCP5 0x00030804
  32588. #define GPIO_PD2_EPI0S20 0x00030808
  32589. #define GPIO_PD3_U1TX 0x00030C01
  32590. #define GPIO_PD3_CCP7 0x00030C02
  32591. #define GPIO_PD3_PWM3 0x00030C03
  32592. #define GPIO_PD3_CCP0 0x00030C04
  32593. #define GPIO_PD3_EPI0S21 0x00030C08
  32594. #define GPIO_PD4_CCP0 0x00031001
  32595. #define GPIO_PD4_CCP3 0x00031002
  32596. #define GPIO_PD4_I2S0RXSD 0x00031008
  32597. #define GPIO_PD4_U1RI 0x00031009
  32598. #define GPIO_PD4_EPI0S19 0x0003100A
  32599. #define GPIO_PD5_CCP2 0x00031401
  32600. #define GPIO_PD5_CCP4 0x00031402
  32601. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  32602. #define GPIO_PD5_U2RX 0x00031409
  32603. #define GPIO_PD5_EPI0S28 0x0003140A
  32604. #define GPIO_PD6_FAULT0 0x00031801
  32605. #define GPIO_PD6_I2S0TXSCK 0x00031808
  32606. #define GPIO_PD6_U2TX 0x00031809
  32607. #define GPIO_PD6_EPI0S29 0x0003180A
  32608. #define GPIO_PD7_IDX0 0x00031C01
  32609. #define GPIO_PD7_C0O 0x00031C02
  32610. #define GPIO_PD7_CCP1 0x00031C03
  32611. #define GPIO_PD7_I2S0TXWS 0x00031C08
  32612. #define GPIO_PD7_U1DTR 0x00031C09
  32613. #define GPIO_PD7_EPI0S30 0x00031C0A
  32614. #define GPIO_PE0_PWM4 0x00040001
  32615. #define GPIO_PE0_SSI1CLK 0x00040002
  32616. #define GPIO_PE0_CCP3 0x00040003
  32617. #define GPIO_PE0_EPI0S8 0x00040008
  32618. #define GPIO_PE0_USB0PFLT 0x00040009
  32619. #define GPIO_PE1_PWM5 0x00040401
  32620. #define GPIO_PE1_SSI1FSS 0x00040402
  32621. #define GPIO_PE1_FAULT0 0x00040403
  32622. #define GPIO_PE1_CCP2 0x00040404
  32623. #define GPIO_PE1_CCP6 0x00040405
  32624. #define GPIO_PE1_EPI0S9 0x00040408
  32625. #define GPIO_PE2_CCP4 0x00040801
  32626. #define GPIO_PE2_SSI1RX 0x00040802
  32627. #define GPIO_PE2_PHB1 0x00040803
  32628. #define GPIO_PE2_PHA0 0x00040804
  32629. #define GPIO_PE2_CCP2 0x00040805
  32630. #define GPIO_PE2_EPI0S24 0x00040808
  32631. #define GPIO_PE3_CCP1 0x00040C01
  32632. #define GPIO_PE3_SSI1TX 0x00040C02
  32633. #define GPIO_PE3_PHA1 0x00040C03
  32634. #define GPIO_PE3_PHB0 0x00040C04
  32635. #define GPIO_PE3_CCP7 0x00040C05
  32636. #define GPIO_PE3_EPI0S25 0x00040C08
  32637. #define GPIO_PE4_CCP3 0x00041001
  32638. #define GPIO_PE4_FAULT0 0x00041004
  32639. #define GPIO_PE4_U2TX 0x00041005
  32640. #define GPIO_PE4_CCP2 0x00041006
  32641. #define GPIO_PE4_I2S0TXWS 0x00041009
  32642. #define GPIO_PE5_CCP5 0x00041401
  32643. #define GPIO_PE5_I2S0TXSD 0x00041409
  32644. #define GPIO_PE6_PWM4 0x00041801
  32645. #define GPIO_PE6_C1O 0x00041802
  32646. #define GPIO_PE6_U1CTS 0x00041809
  32647. #define GPIO_PE7_PWM5 0x00041C01
  32648. #define GPIO_PE7_C2O 0x00041C02
  32649. #define GPIO_PE7_U1DCD 0x00041C09
  32650. #define GPIO_PF0_CAN1RX 0x00050001
  32651. #define GPIO_PF0_PHB0 0x00050002
  32652. #define GPIO_PF0_PWM0 0x00050003
  32653. #define GPIO_PF0_I2S0TXSD 0x00050008
  32654. #define GPIO_PF0_U1DSR 0x00050009
  32655. #define GPIO_PF1_CAN1TX 0x00050401
  32656. #define GPIO_PF1_IDX1 0x00050402
  32657. #define GPIO_PF1_PWM1 0x00050403
  32658. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  32659. #define GPIO_PF1_U1RTS 0x00050409
  32660. #define GPIO_PF1_CCP3 0x0005040A
  32661. #define GPIO_PF2_LED1 0x00050801
  32662. #define GPIO_PF2_PWM4 0x00050802
  32663. #define GPIO_PF2_PWM2 0x00050804
  32664. #define GPIO_PF2_SSI1CLK 0x00050809
  32665. #define GPIO_PF3_LED0 0x00050C01
  32666. #define GPIO_PF3_PWM5 0x00050C02
  32667. #define GPIO_PF3_PWM3 0x00050C04
  32668. #define GPIO_PF3_SSI1FSS 0x00050C09
  32669. #define GPIO_PF4_CCP0 0x00051001
  32670. #define GPIO_PF4_C0O 0x00051002
  32671. #define GPIO_PF4_FAULT0 0x00051004
  32672. #define GPIO_PF4_EPI0S12 0x00051008
  32673. #define GPIO_PF4_SSI1RX 0x00051009
  32674. #define GPIO_PF5_CCP2 0x00051401
  32675. #define GPIO_PF5_C1O 0x00051402
  32676. #define GPIO_PF5_EPI0S15 0x00051408
  32677. #define GPIO_PF5_SSI1TX 0x00051409
  32678. #define GPIO_PG0_U2RX 0x00060001
  32679. #define GPIO_PG0_PWM0 0x00060002
  32680. #define GPIO_PG0_I2C1SCL 0x00060003
  32681. #define GPIO_PG0_PWM4 0x00060004
  32682. #define GPIO_PG0_USB0EPEN 0x00060007
  32683. #define GPIO_PG0_EPI0S13 0x00060008
  32684. #define GPIO_PG1_U2TX 0x00060401
  32685. #define GPIO_PG1_PWM1 0x00060402
  32686. #define GPIO_PG1_I2C1SDA 0x00060403
  32687. #define GPIO_PG1_PWM5 0x00060404
  32688. #define GPIO_PG1_EPI0S14 0x00060408
  32689. #define GPIO_PG7_PHB1 0x00061C01
  32690. #define GPIO_PG7_PWM7 0x00061C04
  32691. #define GPIO_PG7_CCP5 0x00061C08
  32692. #define GPIO_PG7_EPI0S31 0x00061C09
  32693. #define GPIO_PH0_CCP6 0x00070001
  32694. #define GPIO_PH0_PWM2 0x00070002
  32695. #define GPIO_PH0_EPI0S6 0x00070008
  32696. #define GPIO_PH0_PWM4 0x00070009
  32697. #define GPIO_PH1_CCP7 0x00070401
  32698. #define GPIO_PH1_PWM3 0x00070402
  32699. #define GPIO_PH1_EPI0S7 0x00070408
  32700. #define GPIO_PH1_PWM5 0x00070409
  32701. #define GPIO_PH2_IDX1 0x00070801
  32702. #define GPIO_PH2_C1O 0x00070802
  32703. #define GPIO_PH2_FAULT3 0x00070804
  32704. #define GPIO_PH2_EPI0S1 0x00070808
  32705. #define GPIO_PH3_PHB0 0x00070C01
  32706. #define GPIO_PH3_FAULT0 0x00070C02
  32707. #define GPIO_PH3_USB0EPEN 0x00070C04
  32708. #define GPIO_PH3_EPI0S0 0x00070C08
  32709. #define GPIO_PH4_USB0PFLT 0x00071004
  32710. #define GPIO_PH4_EPI0S10 0x00071008
  32711. #define GPIO_PH4_SSI1CLK 0x0007100B
  32712. #define GPIO_PH5_EPI0S11 0x00071408
  32713. #define GPIO_PH5_FAULT2 0x0007140A
  32714. #define GPIO_PH5_SSI1FSS 0x0007140B
  32715. #define GPIO_PH6_EPI0S26 0x00071808
  32716. #define GPIO_PH6_PWM4 0x0007180A
  32717. #define GPIO_PH6_SSI1RX 0x0007180B
  32718. #define GPIO_PH7_EPI0S27 0x00071C08
  32719. #define GPIO_PH7_PWM5 0x00071C0A
  32720. #define GPIO_PH7_SSI1TX 0x00071C0B
  32721. #define GPIO_PJ0_EPI0S16 0x00080008
  32722. #define GPIO_PJ0_PWM0 0x0008000A
  32723. #define GPIO_PJ0_I2C1SCL 0x0008000B
  32724. #define GPIO_PJ1_EPI0S17 0x00080408
  32725. #define GPIO_PJ1_USB0PFLT 0x00080409
  32726. #define GPIO_PJ1_PWM1 0x0008040A
  32727. #define GPIO_PJ1_I2C1SDA 0x0008040B
  32728. #define GPIO_PJ2_EPI0S18 0x00080808
  32729. #define GPIO_PJ2_CCP0 0x00080809
  32730. #define GPIO_PJ2_FAULT0 0x0008080A
  32731. #define GPIO_PJ3_EPI0S19 0x00080C08
  32732. #define GPIO_PJ3_U1CTS 0x00080C09
  32733. #define GPIO_PJ3_CCP6 0x00080C0A
  32734. #define GPIO_PJ4_EPI0S28 0x00081008
  32735. #define GPIO_PJ4_U1DCD 0x00081009
  32736. #define GPIO_PJ4_CCP4 0x0008100A
  32737. #define GPIO_PJ5_EPI0S29 0x00081408
  32738. #define GPIO_PJ5_U1DSR 0x00081409
  32739. #define GPIO_PJ5_CCP2 0x0008140A
  32740. #define GPIO_PJ6_EPI0S30 0x00081808
  32741. #define GPIO_PJ6_U1RTS 0x00081809
  32742. #define GPIO_PJ6_CCP1 0x0008180A
  32743. #define GPIO_PJ7_U1DTR 0x00081C09
  32744. #define GPIO_PJ7_CCP0 0x00081C0A
  32745. #endif // PART_LM3S9D95
  32746. //*****************************************************************************
  32747. //
  32748. // LM3S9D96 Port/Pin Mapping Definitions
  32749. //
  32750. //*****************************************************************************
  32751. #ifdef PART_LM3S9D96
  32752. #define GPIO_PA0_U0RX 0x00000001
  32753. #define GPIO_PA0_I2C1SCL 0x00000008
  32754. #define GPIO_PA0_U1RX 0x00000009
  32755. #define GPIO_PA1_U0TX 0x00000401
  32756. #define GPIO_PA1_I2C1SDA 0x00000408
  32757. #define GPIO_PA1_U1TX 0x00000409
  32758. #define GPIO_PA2_SSI0CLK 0x00000801
  32759. #define GPIO_PA2_PWM4 0x00000804
  32760. #define GPIO_PA2_I2S0RXSD 0x00000809
  32761. #define GPIO_PA3_SSI0FSS 0x00000C01
  32762. #define GPIO_PA3_PWM5 0x00000C04
  32763. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  32764. #define GPIO_PA4_SSI0RX 0x00001001
  32765. #define GPIO_PA4_PWM6 0x00001004
  32766. #define GPIO_PA4_CAN0RX 0x00001005
  32767. #define GPIO_PA4_I2S0TXSCK 0x00001009
  32768. #define GPIO_PA5_SSI0TX 0x00001401
  32769. #define GPIO_PA5_PWM7 0x00001404
  32770. #define GPIO_PA5_CAN0TX 0x00001405
  32771. #define GPIO_PA5_I2S0TXWS 0x00001409
  32772. #define GPIO_PA6_I2C1SCL 0x00001801
  32773. #define GPIO_PA6_CCP1 0x00001802
  32774. #define GPIO_PA6_PWM0 0x00001804
  32775. #define GPIO_PA6_PWM4 0x00001805
  32776. #define GPIO_PA6_CAN0RX 0x00001806
  32777. #define GPIO_PA6_USB0EPEN 0x00001808
  32778. #define GPIO_PA6_U1CTS 0x00001809
  32779. #define GPIO_PA7_I2C1SDA 0x00001C01
  32780. #define GPIO_PA7_CCP4 0x00001C02
  32781. #define GPIO_PA7_PWM1 0x00001C04
  32782. #define GPIO_PA7_PWM5 0x00001C05
  32783. #define GPIO_PA7_CAN0TX 0x00001C06
  32784. #define GPIO_PA7_CCP3 0x00001C07
  32785. #define GPIO_PA7_USB0PFLT 0x00001C08
  32786. #define GPIO_PA7_U1DCD 0x00001C09
  32787. #define GPIO_PB0_CCP0 0x00010001
  32788. #define GPIO_PB0_PWM2 0x00010002
  32789. #define GPIO_PB0_U1RX 0x00010005
  32790. #define GPIO_PB1_CCP2 0x00010401
  32791. #define GPIO_PB1_PWM3 0x00010402
  32792. #define GPIO_PB1_CCP1 0x00010404
  32793. #define GPIO_PB1_U1TX 0x00010405
  32794. #define GPIO_PB2_I2C0SCL 0x00010801
  32795. #define GPIO_PB2_IDX0 0x00010802
  32796. #define GPIO_PB2_CCP3 0x00010804
  32797. #define GPIO_PB2_CCP0 0x00010805
  32798. #define GPIO_PB2_USB0EPEN 0x00010808
  32799. #define GPIO_PB3_I2C0SDA 0x00010C01
  32800. #define GPIO_PB3_FAULT0 0x00010C02
  32801. #define GPIO_PB3_FAULT3 0x00010C04
  32802. #define GPIO_PB3_USB0PFLT 0x00010C08
  32803. #define GPIO_PB4_U2RX 0x00011004
  32804. #define GPIO_PB4_CAN0RX 0x00011005
  32805. #define GPIO_PB4_IDX0 0x00011006
  32806. #define GPIO_PB4_U1RX 0x00011007
  32807. #define GPIO_PB4_EPI0S23 0x00011008
  32808. #define GPIO_PB5_C0O 0x00011401
  32809. #define GPIO_PB5_CCP5 0x00011402
  32810. #define GPIO_PB5_CCP6 0x00011403
  32811. #define GPIO_PB5_CCP0 0x00011404
  32812. #define GPIO_PB5_CAN0TX 0x00011405
  32813. #define GPIO_PB5_CCP2 0x00011406
  32814. #define GPIO_PB5_U1TX 0x00011407
  32815. #define GPIO_PB5_EPI0S22 0x00011408
  32816. #define GPIO_PB6_CCP1 0x00011801
  32817. #define GPIO_PB6_CCP7 0x00011802
  32818. #define GPIO_PB6_C0O 0x00011803
  32819. #define GPIO_PB6_FAULT1 0x00011804
  32820. #define GPIO_PB6_IDX0 0x00011805
  32821. #define GPIO_PB6_CCP5 0x00011806
  32822. #define GPIO_PB6_I2S0TXSCK 0x00011809
  32823. #define GPIO_PB7_NMI 0x00011C04
  32824. #define GPIO_PC0_TCK 0x00020003
  32825. #define GPIO_PC0_SWCLK 0x00020003
  32826. #define GPIO_PC1_TMS 0x00020403
  32827. #define GPIO_PC1_SWDIO 0x00020403
  32828. #define GPIO_PC2_TDI 0x00020803
  32829. #define GPIO_PC3_SWO 0x00020C03
  32830. #define GPIO_PC3_TDO 0x00020C03
  32831. #define GPIO_PC4_CCP5 0x00021001
  32832. #define GPIO_PC4_PHA0 0x00021002
  32833. #define GPIO_PC4_PWM6 0x00021004
  32834. #define GPIO_PC4_CCP2 0x00021005
  32835. #define GPIO_PC4_CCP4 0x00021006
  32836. #define GPIO_PC4_EPI0S2 0x00021008
  32837. #define GPIO_PC4_CCP1 0x00021009
  32838. #define GPIO_PC5_CCP1 0x00021401
  32839. #define GPIO_PC5_C1O 0x00021402
  32840. #define GPIO_PC5_C0O 0x00021403
  32841. #define GPIO_PC5_FAULT2 0x00021404
  32842. #define GPIO_PC5_CCP3 0x00021405
  32843. #define GPIO_PC5_USB0EPEN 0x00021406
  32844. #define GPIO_PC5_EPI0S3 0x00021408
  32845. #define GPIO_PC6_CCP3 0x00021801
  32846. #define GPIO_PC6_PHB0 0x00021802
  32847. #define GPIO_PC6_C2O 0x00021803
  32848. #define GPIO_PC6_PWM7 0x00021804
  32849. #define GPIO_PC6_U1RX 0x00021805
  32850. #define GPIO_PC6_CCP0 0x00021806
  32851. #define GPIO_PC6_USB0PFLT 0x00021807
  32852. #define GPIO_PC6_EPI0S4 0x00021808
  32853. #define GPIO_PC7_CCP4 0x00021C01
  32854. #define GPIO_PC7_PHB0 0x00021C02
  32855. #define GPIO_PC7_CCP0 0x00021C04
  32856. #define GPIO_PC7_U1TX 0x00021C05
  32857. #define GPIO_PC7_USB0PFLT 0x00021C06
  32858. #define GPIO_PC7_C1O 0x00021C07
  32859. #define GPIO_PC7_EPI0S5 0x00021C08
  32860. #define GPIO_PD0_PWM0 0x00030001
  32861. #define GPIO_PD0_CAN0RX 0x00030002
  32862. #define GPIO_PD0_IDX0 0x00030003
  32863. #define GPIO_PD0_U2RX 0x00030004
  32864. #define GPIO_PD0_U1RX 0x00030005
  32865. #define GPIO_PD0_CCP6 0x00030006
  32866. #define GPIO_PD0_I2S0RXSCK 0x00030008
  32867. #define GPIO_PD0_U1CTS 0x00030009
  32868. #define GPIO_PD1_PWM1 0x00030401
  32869. #define GPIO_PD1_CAN0TX 0x00030402
  32870. #define GPIO_PD1_PHA0 0x00030403
  32871. #define GPIO_PD1_U2TX 0x00030404
  32872. #define GPIO_PD1_U1TX 0x00030405
  32873. #define GPIO_PD1_CCP7 0x00030406
  32874. #define GPIO_PD1_I2S0RXWS 0x00030408
  32875. #define GPIO_PD1_U1DCD 0x00030409
  32876. #define GPIO_PD1_CCP2 0x0003040A
  32877. #define GPIO_PD1_PHB1 0x0003040B
  32878. #define GPIO_PD2_U1RX 0x00030801
  32879. #define GPIO_PD2_CCP6 0x00030802
  32880. #define GPIO_PD2_PWM2 0x00030803
  32881. #define GPIO_PD2_CCP5 0x00030804
  32882. #define GPIO_PD2_EPI0S20 0x00030808
  32883. #define GPIO_PD3_U1TX 0x00030C01
  32884. #define GPIO_PD3_CCP7 0x00030C02
  32885. #define GPIO_PD3_PWM3 0x00030C03
  32886. #define GPIO_PD3_CCP0 0x00030C04
  32887. #define GPIO_PD3_EPI0S21 0x00030C08
  32888. #define GPIO_PD4_CCP0 0x00031001
  32889. #define GPIO_PD4_CCP3 0x00031002
  32890. #define GPIO_PD4_I2S0RXSD 0x00031008
  32891. #define GPIO_PD4_U1RI 0x00031009
  32892. #define GPIO_PD4_EPI0S19 0x0003100A
  32893. #define GPIO_PD5_CCP2 0x00031401
  32894. #define GPIO_PD5_CCP4 0x00031402
  32895. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  32896. #define GPIO_PD5_U2RX 0x00031409
  32897. #define GPIO_PD5_EPI0S28 0x0003140A
  32898. #define GPIO_PD6_FAULT0 0x00031801
  32899. #define GPIO_PD6_I2S0TXSCK 0x00031808
  32900. #define GPIO_PD6_U2TX 0x00031809
  32901. #define GPIO_PD6_EPI0S29 0x0003180A
  32902. #define GPIO_PD7_IDX0 0x00031C01
  32903. #define GPIO_PD7_C0O 0x00031C02
  32904. #define GPIO_PD7_CCP1 0x00031C03
  32905. #define GPIO_PD7_I2S0TXWS 0x00031C08
  32906. #define GPIO_PD7_U1DTR 0x00031C09
  32907. #define GPIO_PD7_EPI0S30 0x00031C0A
  32908. #define GPIO_PE0_PWM4 0x00040001
  32909. #define GPIO_PE0_SSI1CLK 0x00040002
  32910. #define GPIO_PE0_CCP3 0x00040003
  32911. #define GPIO_PE0_EPI0S8 0x00040008
  32912. #define GPIO_PE0_USB0PFLT 0x00040009
  32913. #define GPIO_PE1_PWM5 0x00040401
  32914. #define GPIO_PE1_SSI1FSS 0x00040402
  32915. #define GPIO_PE1_FAULT0 0x00040403
  32916. #define GPIO_PE1_CCP2 0x00040404
  32917. #define GPIO_PE1_CCP6 0x00040405
  32918. #define GPIO_PE1_EPI0S9 0x00040408
  32919. #define GPIO_PE2_CCP4 0x00040801
  32920. #define GPIO_PE2_SSI1RX 0x00040802
  32921. #define GPIO_PE2_PHB1 0x00040803
  32922. #define GPIO_PE2_PHA0 0x00040804
  32923. #define GPIO_PE2_CCP2 0x00040805
  32924. #define GPIO_PE2_EPI0S24 0x00040808
  32925. #define GPIO_PE3_CCP1 0x00040C01
  32926. #define GPIO_PE3_SSI1TX 0x00040C02
  32927. #define GPIO_PE3_PHA1 0x00040C03
  32928. #define GPIO_PE3_PHB0 0x00040C04
  32929. #define GPIO_PE3_CCP7 0x00040C05
  32930. #define GPIO_PE3_EPI0S25 0x00040C08
  32931. #define GPIO_PE4_CCP3 0x00041001
  32932. #define GPIO_PE4_FAULT0 0x00041004
  32933. #define GPIO_PE4_U2TX 0x00041005
  32934. #define GPIO_PE4_CCP2 0x00041006
  32935. #define GPIO_PE4_I2S0TXWS 0x00041009
  32936. #define GPIO_PE5_CCP5 0x00041401
  32937. #define GPIO_PE5_I2S0TXSD 0x00041409
  32938. #define GPIO_PE6_PWM4 0x00041801
  32939. #define GPIO_PE6_C1O 0x00041802
  32940. #define GPIO_PE6_U1CTS 0x00041809
  32941. #define GPIO_PE7_PWM5 0x00041C01
  32942. #define GPIO_PE7_C2O 0x00041C02
  32943. #define GPIO_PE7_U1DCD 0x00041C09
  32944. #define GPIO_PF0_CAN1RX 0x00050001
  32945. #define GPIO_PF0_PHB0 0x00050002
  32946. #define GPIO_PF0_PWM0 0x00050003
  32947. #define GPIO_PF0_I2S0TXSD 0x00050008
  32948. #define GPIO_PF0_U1DSR 0x00050009
  32949. #define GPIO_PF1_CAN1TX 0x00050401
  32950. #define GPIO_PF1_IDX1 0x00050402
  32951. #define GPIO_PF1_PWM1 0x00050403
  32952. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  32953. #define GPIO_PF1_U1RTS 0x00050409
  32954. #define GPIO_PF1_CCP3 0x0005040A
  32955. #define GPIO_PF2_LED1 0x00050801
  32956. #define GPIO_PF2_PWM4 0x00050802
  32957. #define GPIO_PF2_PWM2 0x00050804
  32958. #define GPIO_PF2_SSI1CLK 0x00050809
  32959. #define GPIO_PF3_LED0 0x00050C01
  32960. #define GPIO_PF3_PWM5 0x00050C02
  32961. #define GPIO_PF3_PWM3 0x00050C04
  32962. #define GPIO_PF3_SSI1FSS 0x00050C09
  32963. #define GPIO_PF4_CCP0 0x00051001
  32964. #define GPIO_PF4_C0O 0x00051002
  32965. #define GPIO_PF4_FAULT0 0x00051004
  32966. #define GPIO_PF4_EPI0S12 0x00051008
  32967. #define GPIO_PF4_SSI1RX 0x00051009
  32968. #define GPIO_PF5_CCP2 0x00051401
  32969. #define GPIO_PF5_C1O 0x00051402
  32970. #define GPIO_PF5_EPI0S15 0x00051408
  32971. #define GPIO_PF5_SSI1TX 0x00051409
  32972. #define GPIO_PG0_U2RX 0x00060001
  32973. #define GPIO_PG0_PWM0 0x00060002
  32974. #define GPIO_PG0_I2C1SCL 0x00060003
  32975. #define GPIO_PG0_PWM4 0x00060004
  32976. #define GPIO_PG0_USB0EPEN 0x00060007
  32977. #define GPIO_PG0_EPI0S13 0x00060008
  32978. #define GPIO_PG1_U2TX 0x00060401
  32979. #define GPIO_PG1_PWM1 0x00060402
  32980. #define GPIO_PG1_I2C1SDA 0x00060403
  32981. #define GPIO_PG1_PWM5 0x00060404
  32982. #define GPIO_PG1_EPI0S14 0x00060408
  32983. #define GPIO_PG7_PHB1 0x00061C01
  32984. #define GPIO_PG7_PWM7 0x00061C04
  32985. #define GPIO_PG7_CCP5 0x00061C08
  32986. #define GPIO_PG7_EPI0S31 0x00061C09
  32987. #define GPIO_PH0_CCP6 0x00070001
  32988. #define GPIO_PH0_PWM2 0x00070002
  32989. #define GPIO_PH0_EPI0S6 0x00070008
  32990. #define GPIO_PH0_PWM4 0x00070009
  32991. #define GPIO_PH1_CCP7 0x00070401
  32992. #define GPIO_PH1_PWM3 0x00070402
  32993. #define GPIO_PH1_EPI0S7 0x00070408
  32994. #define GPIO_PH1_PWM5 0x00070409
  32995. #define GPIO_PH2_IDX1 0x00070801
  32996. #define GPIO_PH2_C1O 0x00070802
  32997. #define GPIO_PH2_FAULT3 0x00070804
  32998. #define GPIO_PH2_EPI0S1 0x00070808
  32999. #define GPIO_PH3_PHB0 0x00070C01
  33000. #define GPIO_PH3_FAULT0 0x00070C02
  33001. #define GPIO_PH3_USB0EPEN 0x00070C04
  33002. #define GPIO_PH3_EPI0S0 0x00070C08
  33003. #define GPIO_PH4_USB0PFLT 0x00071004
  33004. #define GPIO_PH4_EPI0S10 0x00071008
  33005. #define GPIO_PH4_SSI1CLK 0x0007100B
  33006. #define GPIO_PH5_EPI0S11 0x00071408
  33007. #define GPIO_PH5_FAULT2 0x0007140A
  33008. #define GPIO_PH5_SSI1FSS 0x0007140B
  33009. #define GPIO_PH6_EPI0S26 0x00071808
  33010. #define GPIO_PH6_PWM4 0x0007180A
  33011. #define GPIO_PH6_SSI1RX 0x0007180B
  33012. #define GPIO_PH7_EPI0S27 0x00071C08
  33013. #define GPIO_PH7_PWM5 0x00071C0A
  33014. #define GPIO_PH7_SSI1TX 0x00071C0B
  33015. #define GPIO_PJ0_EPI0S16 0x00080008
  33016. #define GPIO_PJ0_PWM0 0x0008000A
  33017. #define GPIO_PJ0_I2C1SCL 0x0008000B
  33018. #define GPIO_PJ1_EPI0S17 0x00080408
  33019. #define GPIO_PJ1_USB0PFLT 0x00080409
  33020. #define GPIO_PJ1_PWM1 0x0008040A
  33021. #define GPIO_PJ1_I2C1SDA 0x0008040B
  33022. #define GPIO_PJ2_EPI0S18 0x00080808
  33023. #define GPIO_PJ2_CCP0 0x00080809
  33024. #define GPIO_PJ2_FAULT0 0x0008080A
  33025. #define GPIO_PJ3_EPI0S19 0x00080C08
  33026. #define GPIO_PJ3_U1CTS 0x00080C09
  33027. #define GPIO_PJ3_CCP6 0x00080C0A
  33028. #define GPIO_PJ4_EPI0S28 0x00081008
  33029. #define GPIO_PJ4_U1DCD 0x00081009
  33030. #define GPIO_PJ4_CCP4 0x0008100A
  33031. #define GPIO_PJ5_EPI0S29 0x00081408
  33032. #define GPIO_PJ5_U1DSR 0x00081409
  33033. #define GPIO_PJ5_CCP2 0x0008140A
  33034. #define GPIO_PJ6_EPI0S30 0x00081808
  33035. #define GPIO_PJ6_U1RTS 0x00081809
  33036. #define GPIO_PJ6_CCP1 0x0008180A
  33037. #define GPIO_PJ7_U1DTR 0x00081C09
  33038. #define GPIO_PJ7_CCP0 0x00081C0A
  33039. #endif // PART_LM3S9D96
  33040. //*****************************************************************************
  33041. //
  33042. // LM3S9DN5 Port/Pin Mapping Definitions
  33043. //
  33044. //*****************************************************************************
  33045. #ifdef PART_LM3S9DN5
  33046. #define GPIO_PA0_U0RX 0x00000001
  33047. #define GPIO_PA0_I2C1SCL 0x00000008
  33048. #define GPIO_PA0_U1RX 0x00000009
  33049. #define GPIO_PA1_U0TX 0x00000401
  33050. #define GPIO_PA1_I2C1SDA 0x00000408
  33051. #define GPIO_PA1_U1TX 0x00000409
  33052. #define GPIO_PA2_SSI0CLK 0x00000801
  33053. #define GPIO_PA2_TXD2 0x00000803
  33054. #define GPIO_PA2_PWM4 0x00000804
  33055. #define GPIO_PA2_I2S0RXSD 0x00000809
  33056. #define GPIO_PA3_SSI0FSS 0x00000C01
  33057. #define GPIO_PA3_TXD1 0x00000C03
  33058. #define GPIO_PA3_PWM5 0x00000C04
  33059. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  33060. #define GPIO_PA4_SSI0RX 0x00001001
  33061. #define GPIO_PA4_TXD0 0x00001003
  33062. #define GPIO_PA4_PWM6 0x00001004
  33063. #define GPIO_PA4_CAN0RX 0x00001005
  33064. #define GPIO_PA4_I2S0TXSCK 0x00001009
  33065. #define GPIO_PA5_SSI0TX 0x00001401
  33066. #define GPIO_PA5_RXDV 0x00001403
  33067. #define GPIO_PA5_PWM7 0x00001404
  33068. #define GPIO_PA5_CAN0TX 0x00001405
  33069. #define GPIO_PA5_I2S0TXWS 0x00001409
  33070. #define GPIO_PA6_I2C1SCL 0x00001801
  33071. #define GPIO_PA6_CCP1 0x00001802
  33072. #define GPIO_PA6_RXCK 0x00001803
  33073. #define GPIO_PA6_PWM0 0x00001804
  33074. #define GPIO_PA6_PWM4 0x00001805
  33075. #define GPIO_PA6_CAN0RX 0x00001806
  33076. #define GPIO_PA6_USB0EPEN 0x00001808
  33077. #define GPIO_PA6_U1CTS 0x00001809
  33078. #define GPIO_PA7_I2C1SDA 0x00001C01
  33079. #define GPIO_PA7_CCP4 0x00001C02
  33080. #define GPIO_PA7_RXER 0x00001C03
  33081. #define GPIO_PA7_PWM1 0x00001C04
  33082. #define GPIO_PA7_PWM5 0x00001C05
  33083. #define GPIO_PA7_CAN0TX 0x00001C06
  33084. #define GPIO_PA7_CCP3 0x00001C07
  33085. #define GPIO_PA7_USB0PFLT 0x00001C08
  33086. #define GPIO_PA7_U1DCD 0x00001C09
  33087. #define GPIO_PB0_CCP0 0x00010001
  33088. #define GPIO_PB0_PWM2 0x00010002
  33089. #define GPIO_PB0_U1RX 0x00010005
  33090. #define GPIO_PB1_CCP2 0x00010401
  33091. #define GPIO_PB1_PWM3 0x00010402
  33092. #define GPIO_PB1_CCP1 0x00010404
  33093. #define GPIO_PB1_U1TX 0x00010405
  33094. #define GPIO_PB2_I2C0SCL 0x00010801
  33095. #define GPIO_PB2_IDX0 0x00010802
  33096. #define GPIO_PB2_CCP3 0x00010804
  33097. #define GPIO_PB2_CCP0 0x00010805
  33098. #define GPIO_PB2_USB0EPEN 0x00010808
  33099. #define GPIO_PB3_I2C0SDA 0x00010C01
  33100. #define GPIO_PB3_FAULT0 0x00010C02
  33101. #define GPIO_PB3_FAULT3 0x00010C04
  33102. #define GPIO_PB3_USB0PFLT 0x00010C08
  33103. #define GPIO_PB4_U2RX 0x00011004
  33104. #define GPIO_PB4_CAN0RX 0x00011005
  33105. #define GPIO_PB4_IDX0 0x00011006
  33106. #define GPIO_PB4_U1RX 0x00011007
  33107. #define GPIO_PB4_EPI0S23 0x00011008
  33108. #define GPIO_PB5_C0O 0x00011401
  33109. #define GPIO_PB5_CCP5 0x00011402
  33110. #define GPIO_PB5_CCP6 0x00011403
  33111. #define GPIO_PB5_CCP0 0x00011404
  33112. #define GPIO_PB5_CAN0TX 0x00011405
  33113. #define GPIO_PB5_CCP2 0x00011406
  33114. #define GPIO_PB5_U1TX 0x00011407
  33115. #define GPIO_PB5_EPI0S22 0x00011408
  33116. #define GPIO_PB6_CCP1 0x00011801
  33117. #define GPIO_PB6_CCP7 0x00011802
  33118. #define GPIO_PB6_C0O 0x00011803
  33119. #define GPIO_PB6_FAULT1 0x00011804
  33120. #define GPIO_PB6_IDX0 0x00011805
  33121. #define GPIO_PB6_CCP5 0x00011806
  33122. #define GPIO_PB6_I2S0TXSCK 0x00011809
  33123. #define GPIO_PB7_NMI 0x00011C04
  33124. #define GPIO_PB7_RXD1 0x00011C07
  33125. #define GPIO_PC0_TCK 0x00020003
  33126. #define GPIO_PC0_SWCLK 0x00020003
  33127. #define GPIO_PC1_TMS 0x00020403
  33128. #define GPIO_PC1_SWDIO 0x00020403
  33129. #define GPIO_PC2_TDI 0x00020803
  33130. #define GPIO_PC3_SWO 0x00020C03
  33131. #define GPIO_PC3_TDO 0x00020C03
  33132. #define GPIO_PC4_CCP5 0x00021001
  33133. #define GPIO_PC4_PHA0 0x00021002
  33134. #define GPIO_PC4_TXD3 0x00021003
  33135. #define GPIO_PC4_PWM6 0x00021004
  33136. #define GPIO_PC4_CCP2 0x00021005
  33137. #define GPIO_PC4_CCP4 0x00021006
  33138. #define GPIO_PC4_EPI0S2 0x00021008
  33139. #define GPIO_PC4_CCP1 0x00021009
  33140. #define GPIO_PC5_CCP1 0x00021401
  33141. #define GPIO_PC5_C1O 0x00021402
  33142. #define GPIO_PC5_C0O 0x00021403
  33143. #define GPIO_PC5_FAULT2 0x00021404
  33144. #define GPIO_PC5_CCP3 0x00021405
  33145. #define GPIO_PC5_USB0EPEN 0x00021406
  33146. #define GPIO_PC5_EPI0S3 0x00021408
  33147. #define GPIO_PC6_CCP3 0x00021801
  33148. #define GPIO_PC6_PHB0 0x00021802
  33149. #define GPIO_PC6_C2O 0x00021803
  33150. #define GPIO_PC6_PWM7 0x00021804
  33151. #define GPIO_PC6_U1RX 0x00021805
  33152. #define GPIO_PC6_CCP0 0x00021806
  33153. #define GPIO_PC6_USB0PFLT 0x00021807
  33154. #define GPIO_PC6_EPI0S4 0x00021808
  33155. #define GPIO_PC7_CCP4 0x00021C01
  33156. #define GPIO_PC7_PHB0 0x00021C02
  33157. #define GPIO_PC7_CCP0 0x00021C04
  33158. #define GPIO_PC7_U1TX 0x00021C05
  33159. #define GPIO_PC7_USB0PFLT 0x00021C06
  33160. #define GPIO_PC7_C1O 0x00021C07
  33161. #define GPIO_PC7_EPI0S5 0x00021C08
  33162. #define GPIO_PD0_PWM0 0x00030001
  33163. #define GPIO_PD0_CAN0RX 0x00030002
  33164. #define GPIO_PD0_IDX0 0x00030003
  33165. #define GPIO_PD0_U2RX 0x00030004
  33166. #define GPIO_PD0_U1RX 0x00030005
  33167. #define GPIO_PD0_CCP6 0x00030006
  33168. #define GPIO_PD0_RXDV 0x00030007
  33169. #define GPIO_PD0_I2S0RXSCK 0x00030008
  33170. #define GPIO_PD0_U1CTS 0x00030009
  33171. #define GPIO_PD1_PWM1 0x00030401
  33172. #define GPIO_PD1_CAN0TX 0x00030402
  33173. #define GPIO_PD1_PHA0 0x00030403
  33174. #define GPIO_PD1_U2TX 0x00030404
  33175. #define GPIO_PD1_U1TX 0x00030405
  33176. #define GPIO_PD1_CCP7 0x00030406
  33177. #define GPIO_PD1_TXER 0x00030407
  33178. #define GPIO_PD1_I2S0RXWS 0x00030408
  33179. #define GPIO_PD1_U1DCD 0x00030409
  33180. #define GPIO_PD1_CCP2 0x0003040A
  33181. #define GPIO_PD1_PHB1 0x0003040B
  33182. #define GPIO_PD2_U1RX 0x00030801
  33183. #define GPIO_PD2_CCP6 0x00030802
  33184. #define GPIO_PD2_PWM2 0x00030803
  33185. #define GPIO_PD2_CCP5 0x00030804
  33186. #define GPIO_PD2_EPI0S20 0x00030808
  33187. #define GPIO_PD3_U1TX 0x00030C01
  33188. #define GPIO_PD3_CCP7 0x00030C02
  33189. #define GPIO_PD3_PWM3 0x00030C03
  33190. #define GPIO_PD3_CCP0 0x00030C04
  33191. #define GPIO_PD3_EPI0S21 0x00030C08
  33192. #define GPIO_PD4_CCP0 0x00031001
  33193. #define GPIO_PD4_CCP3 0x00031002
  33194. #define GPIO_PD4_TXD3 0x00031004
  33195. #define GPIO_PD4_I2S0RXSD 0x00031008
  33196. #define GPIO_PD4_U1RI 0x00031009
  33197. #define GPIO_PD4_EPI0S19 0x0003100A
  33198. #define GPIO_PD5_CCP2 0x00031401
  33199. #define GPIO_PD5_CCP4 0x00031402
  33200. #define GPIO_PD5_TXD2 0x00031404
  33201. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  33202. #define GPIO_PD5_U2RX 0x00031409
  33203. #define GPIO_PD5_EPI0S28 0x0003140A
  33204. #define GPIO_PD6_FAULT0 0x00031801
  33205. #define GPIO_PD6_TXD1 0x00031804
  33206. #define GPIO_PD6_I2S0TXSCK 0x00031808
  33207. #define GPIO_PD6_U2TX 0x00031809
  33208. #define GPIO_PD6_EPI0S29 0x0003180A
  33209. #define GPIO_PD7_IDX0 0x00031C01
  33210. #define GPIO_PD7_C0O 0x00031C02
  33211. #define GPIO_PD7_CCP1 0x00031C03
  33212. #define GPIO_PD7_TXD0 0x00031C04
  33213. #define GPIO_PD7_I2S0TXWS 0x00031C08
  33214. #define GPIO_PD7_U1DTR 0x00031C09
  33215. #define GPIO_PD7_EPI0S30 0x00031C0A
  33216. #define GPIO_PE0_PWM4 0x00040001
  33217. #define GPIO_PE0_SSI1CLK 0x00040002
  33218. #define GPIO_PE0_CCP3 0x00040003
  33219. #define GPIO_PE0_EPI0S8 0x00040008
  33220. #define GPIO_PE0_USB0PFLT 0x00040009
  33221. #define GPIO_PE1_PWM5 0x00040401
  33222. #define GPIO_PE1_SSI1FSS 0x00040402
  33223. #define GPIO_PE1_FAULT0 0x00040403
  33224. #define GPIO_PE1_CCP2 0x00040404
  33225. #define GPIO_PE1_CCP6 0x00040405
  33226. #define GPIO_PE1_EPI0S9 0x00040408
  33227. #define GPIO_PE2_CCP4 0x00040801
  33228. #define GPIO_PE2_SSI1RX 0x00040802
  33229. #define GPIO_PE2_PHB1 0x00040803
  33230. #define GPIO_PE2_PHA0 0x00040804
  33231. #define GPIO_PE2_CCP2 0x00040805
  33232. #define GPIO_PE2_EPI0S24 0x00040808
  33233. #define GPIO_PE3_CCP1 0x00040C01
  33234. #define GPIO_PE3_SSI1TX 0x00040C02
  33235. #define GPIO_PE3_PHA1 0x00040C03
  33236. #define GPIO_PE3_PHB0 0x00040C04
  33237. #define GPIO_PE3_CCP7 0x00040C05
  33238. #define GPIO_PE3_EPI0S25 0x00040C08
  33239. #define GPIO_PE4_CCP3 0x00041001
  33240. #define GPIO_PE4_FAULT0 0x00041004
  33241. #define GPIO_PE4_U2TX 0x00041005
  33242. #define GPIO_PE4_CCP2 0x00041006
  33243. #define GPIO_PE4_RXD0 0x00041007
  33244. #define GPIO_PE4_I2S0TXWS 0x00041009
  33245. #define GPIO_PE5_CCP5 0x00041401
  33246. #define GPIO_PE5_I2S0TXSD 0x00041409
  33247. #define GPIO_PE6_PWM4 0x00041801
  33248. #define GPIO_PE6_C1O 0x00041802
  33249. #define GPIO_PE6_U1CTS 0x00041809
  33250. #define GPIO_PE7_PWM5 0x00041C01
  33251. #define GPIO_PE7_C2O 0x00041C02
  33252. #define GPIO_PE7_U1DCD 0x00041C09
  33253. #define GPIO_PF0_CAN1RX 0x00050001
  33254. #define GPIO_PF0_PHB0 0x00050002
  33255. #define GPIO_PF0_PWM0 0x00050003
  33256. #define GPIO_PF0_RXCK 0x00050004
  33257. #define GPIO_PF0_I2S0TXSD 0x00050008
  33258. #define GPIO_PF0_U1DSR 0x00050009
  33259. #define GPIO_PF1_CAN1TX 0x00050401
  33260. #define GPIO_PF1_IDX1 0x00050402
  33261. #define GPIO_PF1_PWM1 0x00050403
  33262. #define GPIO_PF1_RXER 0x00050404
  33263. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  33264. #define GPIO_PF1_U1RTS 0x00050409
  33265. #define GPIO_PF1_CCP3 0x0005040A
  33266. #define GPIO_PF2_PWM4 0x00050802
  33267. #define GPIO_PF2_PHYINT 0x00050803
  33268. #define GPIO_PF2_PWM2 0x00050804
  33269. #define GPIO_PF2_SSI1CLK 0x00050809
  33270. #define GPIO_PF3_PWM5 0x00050C02
  33271. #define GPIO_PF3_MDC 0x00050C03
  33272. #define GPIO_PF3_PWM3 0x00050C04
  33273. #define GPIO_PF3_SSI1FSS 0x00050C09
  33274. #define GPIO_PF4_CCP0 0x00051001
  33275. #define GPIO_PF4_C0O 0x00051002
  33276. #define GPIO_PF4_MDIO 0x00051003
  33277. #define GPIO_PF4_FAULT0 0x00051004
  33278. #define GPIO_PF4_EPI0S12 0x00051008
  33279. #define GPIO_PF4_SSI1RX 0x00051009
  33280. #define GPIO_PF5_CCP2 0x00051401
  33281. #define GPIO_PF5_C1O 0x00051402
  33282. #define GPIO_PF5_RXD3 0x00051403
  33283. #define GPIO_PF5_EPI0S15 0x00051408
  33284. #define GPIO_PF5_SSI1TX 0x00051409
  33285. #define GPIO_PF6_CCP1 0x00051801
  33286. #define GPIO_PF6_C2O 0x00051802
  33287. #define GPIO_PF6_RXD2 0x00051803
  33288. #define GPIO_PF6_PHA0 0x00051804
  33289. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  33290. #define GPIO_PF6_U1RTS 0x0005180A
  33291. #define GPIO_PF7_CCP4 0x00051C01
  33292. #define GPIO_PF7_RXD1 0x00051C03
  33293. #define GPIO_PF7_PHB0 0x00051C04
  33294. #define GPIO_PF7_EPI0S12 0x00051C08
  33295. #define GPIO_PF7_FAULT1 0x00051C09
  33296. #define GPIO_PG0_U2RX 0x00060001
  33297. #define GPIO_PG0_PWM0 0x00060002
  33298. #define GPIO_PG0_I2C1SCL 0x00060003
  33299. #define GPIO_PG0_PWM4 0x00060004
  33300. #define GPIO_PG0_USB0EPEN 0x00060007
  33301. #define GPIO_PG0_EPI0S13 0x00060008
  33302. #define GPIO_PG1_U2TX 0x00060401
  33303. #define GPIO_PG1_PWM1 0x00060402
  33304. #define GPIO_PG1_I2C1SDA 0x00060403
  33305. #define GPIO_PG1_PWM5 0x00060404
  33306. #define GPIO_PG1_EPI0S14 0x00060408
  33307. #define GPIO_PG2_PWM0 0x00060801
  33308. #define GPIO_PG2_COL 0x00060803
  33309. #define GPIO_PG2_FAULT0 0x00060804
  33310. #define GPIO_PG2_IDX1 0x00060808
  33311. #define GPIO_PG2_I2S0RXSD 0x00060809
  33312. #define GPIO_PG3_PWM1 0x00060C01
  33313. #define GPIO_PG3_CRS 0x00060C03
  33314. #define GPIO_PG3_FAULT2 0x00060C04
  33315. #define GPIO_PG3_FAULT0 0x00060C08
  33316. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  33317. #define GPIO_PG4_CCP3 0x00061001
  33318. #define GPIO_PG4_RXD0 0x00061003
  33319. #define GPIO_PG4_FAULT1 0x00061004
  33320. #define GPIO_PG4_EPI0S15 0x00061008
  33321. #define GPIO_PG4_PWM6 0x00061009
  33322. #define GPIO_PG4_U1RI 0x0006100A
  33323. #define GPIO_PG5_CCP5 0x00061401
  33324. #define GPIO_PG5_TXEN 0x00061403
  33325. #define GPIO_PG5_IDX0 0x00061404
  33326. #define GPIO_PG5_FAULT1 0x00061405
  33327. #define GPIO_PG5_PWM7 0x00061408
  33328. #define GPIO_PG5_I2S0RXSCK 0x00061409
  33329. #define GPIO_PG5_U1DTR 0x0006140A
  33330. #define GPIO_PG6_PHA1 0x00061801
  33331. #define GPIO_PG6_TXCK 0x00061803
  33332. #define GPIO_PG6_PWM6 0x00061804
  33333. #define GPIO_PG6_FAULT1 0x00061808
  33334. #define GPIO_PG6_I2S0RXWS 0x00061809
  33335. #define GPIO_PG6_U1RI 0x0006180A
  33336. #define GPIO_PG7_PHB1 0x00061C01
  33337. #define GPIO_PG7_TXER 0x00061C03
  33338. #define GPIO_PG7_PWM7 0x00061C04
  33339. #define GPIO_PG7_CCP5 0x00061C08
  33340. #define GPIO_PG7_EPI0S31 0x00061C09
  33341. #define GPIO_PH0_CCP6 0x00070001
  33342. #define GPIO_PH0_PWM2 0x00070002
  33343. #define GPIO_PH0_EPI0S6 0x00070008
  33344. #define GPIO_PH0_PWM4 0x00070009
  33345. #define GPIO_PH1_CCP7 0x00070401
  33346. #define GPIO_PH1_PWM3 0x00070402
  33347. #define GPIO_PH1_EPI0S7 0x00070408
  33348. #define GPIO_PH1_PWM5 0x00070409
  33349. #define GPIO_PH2_IDX1 0x00070801
  33350. #define GPIO_PH2_C1O 0x00070802
  33351. #define GPIO_PH2_FAULT3 0x00070804
  33352. #define GPIO_PH2_EPI0S1 0x00070808
  33353. #define GPIO_PH2_TXD3 0x00070809
  33354. #define GPIO_PH3_PHB0 0x00070C01
  33355. #define GPIO_PH3_FAULT0 0x00070C02
  33356. #define GPIO_PH3_USB0EPEN 0x00070C04
  33357. #define GPIO_PH3_EPI0S0 0x00070C08
  33358. #define GPIO_PH3_TXD2 0x00070C09
  33359. #define GPIO_PH4_USB0PFLT 0x00071004
  33360. #define GPIO_PH4_EPI0S10 0x00071008
  33361. #define GPIO_PH4_TXD1 0x00071009
  33362. #define GPIO_PH4_SSI1CLK 0x0007100B
  33363. #define GPIO_PH5_EPI0S11 0x00071408
  33364. #define GPIO_PH5_TXD0 0x00071409
  33365. #define GPIO_PH5_FAULT2 0x0007140A
  33366. #define GPIO_PH5_SSI1FSS 0x0007140B
  33367. #define GPIO_PH6_EPI0S26 0x00071808
  33368. #define GPIO_PH6_RXDV 0x00071809
  33369. #define GPIO_PH6_PWM4 0x0007180A
  33370. #define GPIO_PH6_SSI1RX 0x0007180B
  33371. #define GPIO_PH7_RXCK 0x00071C03
  33372. #define GPIO_PH7_EPI0S27 0x00071C08
  33373. #define GPIO_PH7_PWM5 0x00071C0A
  33374. #define GPIO_PH7_SSI1TX 0x00071C0B
  33375. #define GPIO_PJ0_RXER 0x00080003
  33376. #define GPIO_PJ0_EPI0S16 0x00080008
  33377. #define GPIO_PJ0_PWM0 0x0008000A
  33378. #define GPIO_PJ0_I2C1SCL 0x0008000B
  33379. #define GPIO_PJ1_EPI0S17 0x00080408
  33380. #define GPIO_PJ1_USB0PFLT 0x00080409
  33381. #define GPIO_PJ1_PWM1 0x0008040A
  33382. #define GPIO_PJ1_I2C1SDA 0x0008040B
  33383. #define GPIO_PJ2_EPI0S18 0x00080808
  33384. #define GPIO_PJ2_CCP0 0x00080809
  33385. #define GPIO_PJ2_FAULT0 0x0008080A
  33386. #define GPIO_PJ3_EPI0S19 0x00080C08
  33387. #define GPIO_PJ3_U1CTS 0x00080C09
  33388. #define GPIO_PJ3_CCP6 0x00080C0A
  33389. #define GPIO_PJ4_EPI0S28 0x00081008
  33390. #define GPIO_PJ4_U1DCD 0x00081009
  33391. #define GPIO_PJ4_CCP4 0x0008100A
  33392. #define GPIO_PJ5_EPI0S29 0x00081408
  33393. #define GPIO_PJ5_U1DSR 0x00081409
  33394. #define GPIO_PJ5_CCP2 0x0008140A
  33395. #define GPIO_PJ6_EPI0S30 0x00081808
  33396. #define GPIO_PJ6_U1RTS 0x00081809
  33397. #define GPIO_PJ6_CCP1 0x0008180A
  33398. #define GPIO_PJ7_U1DTR 0x00081C09
  33399. #define GPIO_PJ7_CCP0 0x00081C0A
  33400. #endif // PART_LM3S9DN5
  33401. //*****************************************************************************
  33402. //
  33403. // LM3S9DN6 Port/Pin Mapping Definitions
  33404. //
  33405. //*****************************************************************************
  33406. #ifdef PART_LM3S9DN6
  33407. #define GPIO_PA0_U0RX 0x00000001
  33408. #define GPIO_PA0_I2C1SCL 0x00000008
  33409. #define GPIO_PA0_U1RX 0x00000009
  33410. #define GPIO_PA1_U0TX 0x00000401
  33411. #define GPIO_PA1_I2C1SDA 0x00000408
  33412. #define GPIO_PA1_U1TX 0x00000409
  33413. #define GPIO_PA2_SSI0CLK 0x00000801
  33414. #define GPIO_PA2_TXD2 0x00000803
  33415. #define GPIO_PA2_PWM4 0x00000804
  33416. #define GPIO_PA2_I2S0RXSD 0x00000809
  33417. #define GPIO_PA3_SSI0FSS 0x00000C01
  33418. #define GPIO_PA3_TXD1 0x00000C03
  33419. #define GPIO_PA3_PWM5 0x00000C04
  33420. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  33421. #define GPIO_PA4_SSI0RX 0x00001001
  33422. #define GPIO_PA4_TXD0 0x00001003
  33423. #define GPIO_PA4_PWM6 0x00001004
  33424. #define GPIO_PA4_CAN0RX 0x00001005
  33425. #define GPIO_PA4_I2S0TXSCK 0x00001009
  33426. #define GPIO_PA5_SSI0TX 0x00001401
  33427. #define GPIO_PA5_RXDV 0x00001403
  33428. #define GPIO_PA5_PWM7 0x00001404
  33429. #define GPIO_PA5_CAN0TX 0x00001405
  33430. #define GPIO_PA5_I2S0TXWS 0x00001409
  33431. #define GPIO_PA6_I2C1SCL 0x00001801
  33432. #define GPIO_PA6_CCP1 0x00001802
  33433. #define GPIO_PA6_RXCK 0x00001803
  33434. #define GPIO_PA6_PWM0 0x00001804
  33435. #define GPIO_PA6_PWM4 0x00001805
  33436. #define GPIO_PA6_CAN0RX 0x00001806
  33437. #define GPIO_PA6_USB0EPEN 0x00001808
  33438. #define GPIO_PA6_U1CTS 0x00001809
  33439. #define GPIO_PA7_I2C1SDA 0x00001C01
  33440. #define GPIO_PA7_CCP4 0x00001C02
  33441. #define GPIO_PA7_RXER 0x00001C03
  33442. #define GPIO_PA7_PWM1 0x00001C04
  33443. #define GPIO_PA7_PWM5 0x00001C05
  33444. #define GPIO_PA7_CAN0TX 0x00001C06
  33445. #define GPIO_PA7_CCP3 0x00001C07
  33446. #define GPIO_PA7_USB0PFLT 0x00001C08
  33447. #define GPIO_PA7_U1DCD 0x00001C09
  33448. #define GPIO_PB0_CCP0 0x00010001
  33449. #define GPIO_PB0_PWM2 0x00010002
  33450. #define GPIO_PB0_U1RX 0x00010005
  33451. #define GPIO_PB1_CCP2 0x00010401
  33452. #define GPIO_PB1_PWM3 0x00010402
  33453. #define GPIO_PB1_CCP1 0x00010404
  33454. #define GPIO_PB1_U1TX 0x00010405
  33455. #define GPIO_PB2_I2C0SCL 0x00010801
  33456. #define GPIO_PB2_IDX0 0x00010802
  33457. #define GPIO_PB2_CCP3 0x00010804
  33458. #define GPIO_PB2_CCP0 0x00010805
  33459. #define GPIO_PB2_USB0EPEN 0x00010808
  33460. #define GPIO_PB3_I2C0SDA 0x00010C01
  33461. #define GPIO_PB3_FAULT0 0x00010C02
  33462. #define GPIO_PB3_FAULT3 0x00010C04
  33463. #define GPIO_PB3_USB0PFLT 0x00010C08
  33464. #define GPIO_PB4_U2RX 0x00011004
  33465. #define GPIO_PB4_CAN0RX 0x00011005
  33466. #define GPIO_PB4_IDX0 0x00011006
  33467. #define GPIO_PB4_U1RX 0x00011007
  33468. #define GPIO_PB4_EPI0S23 0x00011008
  33469. #define GPIO_PB5_C0O 0x00011401
  33470. #define GPIO_PB5_CCP5 0x00011402
  33471. #define GPIO_PB5_CCP6 0x00011403
  33472. #define GPIO_PB5_CCP0 0x00011404
  33473. #define GPIO_PB5_CAN0TX 0x00011405
  33474. #define GPIO_PB5_CCP2 0x00011406
  33475. #define GPIO_PB5_U1TX 0x00011407
  33476. #define GPIO_PB5_EPI0S22 0x00011408
  33477. #define GPIO_PB6_CCP1 0x00011801
  33478. #define GPIO_PB6_CCP7 0x00011802
  33479. #define GPIO_PB6_C0O 0x00011803
  33480. #define GPIO_PB6_FAULT1 0x00011804
  33481. #define GPIO_PB6_IDX0 0x00011805
  33482. #define GPIO_PB6_CCP5 0x00011806
  33483. #define GPIO_PB6_I2S0TXSCK 0x00011809
  33484. #define GPIO_PB7_NMI 0x00011C04
  33485. #define GPIO_PB7_RXD1 0x00011C07
  33486. #define GPIO_PC0_TCK 0x00020003
  33487. #define GPIO_PC0_SWCLK 0x00020003
  33488. #define GPIO_PC1_TMS 0x00020403
  33489. #define GPIO_PC1_SWDIO 0x00020403
  33490. #define GPIO_PC2_TDI 0x00020803
  33491. #define GPIO_PC3_SWO 0x00020C03
  33492. #define GPIO_PC3_TDO 0x00020C03
  33493. #define GPIO_PC4_CCP5 0x00021001
  33494. #define GPIO_PC4_PHA0 0x00021002
  33495. #define GPIO_PC4_TXD3 0x00021003
  33496. #define GPIO_PC4_PWM6 0x00021004
  33497. #define GPIO_PC4_CCP2 0x00021005
  33498. #define GPIO_PC4_CCP4 0x00021006
  33499. #define GPIO_PC4_EPI0S2 0x00021008
  33500. #define GPIO_PC4_CCP1 0x00021009
  33501. #define GPIO_PC5_CCP1 0x00021401
  33502. #define GPIO_PC5_C1O 0x00021402
  33503. #define GPIO_PC5_C0O 0x00021403
  33504. #define GPIO_PC5_FAULT2 0x00021404
  33505. #define GPIO_PC5_CCP3 0x00021405
  33506. #define GPIO_PC5_USB0EPEN 0x00021406
  33507. #define GPIO_PC5_EPI0S3 0x00021408
  33508. #define GPIO_PC6_CCP3 0x00021801
  33509. #define GPIO_PC6_PHB0 0x00021802
  33510. #define GPIO_PC6_C2O 0x00021803
  33511. #define GPIO_PC6_PWM7 0x00021804
  33512. #define GPIO_PC6_U1RX 0x00021805
  33513. #define GPIO_PC6_CCP0 0x00021806
  33514. #define GPIO_PC6_USB0PFLT 0x00021807
  33515. #define GPIO_PC6_EPI0S4 0x00021808
  33516. #define GPIO_PC7_CCP4 0x00021C01
  33517. #define GPIO_PC7_PHB0 0x00021C02
  33518. #define GPIO_PC7_CCP0 0x00021C04
  33519. #define GPIO_PC7_U1TX 0x00021C05
  33520. #define GPIO_PC7_USB0PFLT 0x00021C06
  33521. #define GPIO_PC7_C1O 0x00021C07
  33522. #define GPIO_PC7_EPI0S5 0x00021C08
  33523. #define GPIO_PD0_PWM0 0x00030001
  33524. #define GPIO_PD0_CAN0RX 0x00030002
  33525. #define GPIO_PD0_IDX0 0x00030003
  33526. #define GPIO_PD0_U2RX 0x00030004
  33527. #define GPIO_PD0_U1RX 0x00030005
  33528. #define GPIO_PD0_CCP6 0x00030006
  33529. #define GPIO_PD0_RXDV 0x00030007
  33530. #define GPIO_PD0_I2S0RXSCK 0x00030008
  33531. #define GPIO_PD0_U1CTS 0x00030009
  33532. #define GPIO_PD1_PWM1 0x00030401
  33533. #define GPIO_PD1_CAN0TX 0x00030402
  33534. #define GPIO_PD1_PHA0 0x00030403
  33535. #define GPIO_PD1_U2TX 0x00030404
  33536. #define GPIO_PD1_U1TX 0x00030405
  33537. #define GPIO_PD1_CCP7 0x00030406
  33538. #define GPIO_PD1_TXER 0x00030407
  33539. #define GPIO_PD1_I2S0RXWS 0x00030408
  33540. #define GPIO_PD1_U1DCD 0x00030409
  33541. #define GPIO_PD1_CCP2 0x0003040A
  33542. #define GPIO_PD1_PHB1 0x0003040B
  33543. #define GPIO_PD2_U1RX 0x00030801
  33544. #define GPIO_PD2_CCP6 0x00030802
  33545. #define GPIO_PD2_PWM2 0x00030803
  33546. #define GPIO_PD2_CCP5 0x00030804
  33547. #define GPIO_PD2_EPI0S20 0x00030808
  33548. #define GPIO_PD3_U1TX 0x00030C01
  33549. #define GPIO_PD3_CCP7 0x00030C02
  33550. #define GPIO_PD3_PWM3 0x00030C03
  33551. #define GPIO_PD3_CCP0 0x00030C04
  33552. #define GPIO_PD3_EPI0S21 0x00030C08
  33553. #define GPIO_PD4_CCP0 0x00031001
  33554. #define GPIO_PD4_CCP3 0x00031002
  33555. #define GPIO_PD4_TXD3 0x00031004
  33556. #define GPIO_PD4_I2S0RXSD 0x00031008
  33557. #define GPIO_PD4_U1RI 0x00031009
  33558. #define GPIO_PD4_EPI0S19 0x0003100A
  33559. #define GPIO_PD5_CCP2 0x00031401
  33560. #define GPIO_PD5_CCP4 0x00031402
  33561. #define GPIO_PD5_TXD2 0x00031404
  33562. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  33563. #define GPIO_PD5_U2RX 0x00031409
  33564. #define GPIO_PD5_EPI0S28 0x0003140A
  33565. #define GPIO_PD6_FAULT0 0x00031801
  33566. #define GPIO_PD6_TXD1 0x00031804
  33567. #define GPIO_PD6_I2S0TXSCK 0x00031808
  33568. #define GPIO_PD6_U2TX 0x00031809
  33569. #define GPIO_PD6_EPI0S29 0x0003180A
  33570. #define GPIO_PD7_IDX0 0x00031C01
  33571. #define GPIO_PD7_C0O 0x00031C02
  33572. #define GPIO_PD7_CCP1 0x00031C03
  33573. #define GPIO_PD7_TXD0 0x00031C04
  33574. #define GPIO_PD7_I2S0TXWS 0x00031C08
  33575. #define GPIO_PD7_U1DTR 0x00031C09
  33576. #define GPIO_PD7_EPI0S30 0x00031C0A
  33577. #define GPIO_PE0_PWM4 0x00040001
  33578. #define GPIO_PE0_SSI1CLK 0x00040002
  33579. #define GPIO_PE0_CCP3 0x00040003
  33580. #define GPIO_PE0_EPI0S8 0x00040008
  33581. #define GPIO_PE0_USB0PFLT 0x00040009
  33582. #define GPIO_PE1_PWM5 0x00040401
  33583. #define GPIO_PE1_SSI1FSS 0x00040402
  33584. #define GPIO_PE1_FAULT0 0x00040403
  33585. #define GPIO_PE1_CCP2 0x00040404
  33586. #define GPIO_PE1_CCP6 0x00040405
  33587. #define GPIO_PE1_EPI0S9 0x00040408
  33588. #define GPIO_PE2_CCP4 0x00040801
  33589. #define GPIO_PE2_SSI1RX 0x00040802
  33590. #define GPIO_PE2_PHB1 0x00040803
  33591. #define GPIO_PE2_PHA0 0x00040804
  33592. #define GPIO_PE2_CCP2 0x00040805
  33593. #define GPIO_PE2_EPI0S24 0x00040808
  33594. #define GPIO_PE3_CCP1 0x00040C01
  33595. #define GPIO_PE3_SSI1TX 0x00040C02
  33596. #define GPIO_PE3_PHA1 0x00040C03
  33597. #define GPIO_PE3_PHB0 0x00040C04
  33598. #define GPIO_PE3_CCP7 0x00040C05
  33599. #define GPIO_PE3_EPI0S25 0x00040C08
  33600. #define GPIO_PE4_CCP3 0x00041001
  33601. #define GPIO_PE4_FAULT0 0x00041004
  33602. #define GPIO_PE4_U2TX 0x00041005
  33603. #define GPIO_PE4_CCP2 0x00041006
  33604. #define GPIO_PE4_RXD0 0x00041007
  33605. #define GPIO_PE4_I2S0TXWS 0x00041009
  33606. #define GPIO_PE5_CCP5 0x00041401
  33607. #define GPIO_PE5_I2S0TXSD 0x00041409
  33608. #define GPIO_PE6_PWM4 0x00041801
  33609. #define GPIO_PE6_C1O 0x00041802
  33610. #define GPIO_PE6_U1CTS 0x00041809
  33611. #define GPIO_PE7_PWM5 0x00041C01
  33612. #define GPIO_PE7_C2O 0x00041C02
  33613. #define GPIO_PE7_U1DCD 0x00041C09
  33614. #define GPIO_PF0_CAN1RX 0x00050001
  33615. #define GPIO_PF0_PHB0 0x00050002
  33616. #define GPIO_PF0_PWM0 0x00050003
  33617. #define GPIO_PF0_RXCK 0x00050004
  33618. #define GPIO_PF0_I2S0TXSD 0x00050008
  33619. #define GPIO_PF0_U1DSR 0x00050009
  33620. #define GPIO_PF1_CAN1TX 0x00050401
  33621. #define GPIO_PF1_IDX1 0x00050402
  33622. #define GPIO_PF1_PWM1 0x00050403
  33623. #define GPIO_PF1_RXER 0x00050404
  33624. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  33625. #define GPIO_PF1_U1RTS 0x00050409
  33626. #define GPIO_PF1_CCP3 0x0005040A
  33627. #define GPIO_PF2_PWM4 0x00050802
  33628. #define GPIO_PF2_PHYINT 0x00050803
  33629. #define GPIO_PF2_PWM2 0x00050804
  33630. #define GPIO_PF2_SSI1CLK 0x00050809
  33631. #define GPIO_PF3_PWM5 0x00050C02
  33632. #define GPIO_PF3_MDC 0x00050C03
  33633. #define GPIO_PF3_PWM3 0x00050C04
  33634. #define GPIO_PF3_SSI1FSS 0x00050C09
  33635. #define GPIO_PF4_CCP0 0x00051001
  33636. #define GPIO_PF4_C0O 0x00051002
  33637. #define GPIO_PF4_MDIO 0x00051003
  33638. #define GPIO_PF4_FAULT0 0x00051004
  33639. #define GPIO_PF4_EPI0S12 0x00051008
  33640. #define GPIO_PF4_SSI1RX 0x00051009
  33641. #define GPIO_PF5_CCP2 0x00051401
  33642. #define GPIO_PF5_C1O 0x00051402
  33643. #define GPIO_PF5_RXD3 0x00051403
  33644. #define GPIO_PF5_EPI0S15 0x00051408
  33645. #define GPIO_PF5_SSI1TX 0x00051409
  33646. #define GPIO_PF6_CCP1 0x00051801
  33647. #define GPIO_PF6_C2O 0x00051802
  33648. #define GPIO_PF6_RXD2 0x00051803
  33649. #define GPIO_PF6_PHA0 0x00051804
  33650. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  33651. #define GPIO_PF6_U1RTS 0x0005180A
  33652. #define GPIO_PF7_CCP4 0x00051C01
  33653. #define GPIO_PF7_RXD1 0x00051C03
  33654. #define GPIO_PF7_PHB0 0x00051C04
  33655. #define GPIO_PF7_EPI0S12 0x00051C08
  33656. #define GPIO_PF7_FAULT1 0x00051C09
  33657. #define GPIO_PG0_U2RX 0x00060001
  33658. #define GPIO_PG0_PWM0 0x00060002
  33659. #define GPIO_PG0_I2C1SCL 0x00060003
  33660. #define GPIO_PG0_PWM4 0x00060004
  33661. #define GPIO_PG0_USB0EPEN 0x00060007
  33662. #define GPIO_PG0_EPI0S13 0x00060008
  33663. #define GPIO_PG1_U2TX 0x00060401
  33664. #define GPIO_PG1_PWM1 0x00060402
  33665. #define GPIO_PG1_I2C1SDA 0x00060403
  33666. #define GPIO_PG1_PWM5 0x00060404
  33667. #define GPIO_PG1_EPI0S14 0x00060408
  33668. #define GPIO_PG2_PWM0 0x00060801
  33669. #define GPIO_PG2_COL 0x00060803
  33670. #define GPIO_PG2_FAULT0 0x00060804
  33671. #define GPIO_PG2_IDX1 0x00060808
  33672. #define GPIO_PG2_I2S0RXSD 0x00060809
  33673. #define GPIO_PG3_PWM1 0x00060C01
  33674. #define GPIO_PG3_CRS 0x00060C03
  33675. #define GPIO_PG3_FAULT2 0x00060C04
  33676. #define GPIO_PG3_FAULT0 0x00060C08
  33677. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  33678. #define GPIO_PG4_CCP3 0x00061001
  33679. #define GPIO_PG4_RXD0 0x00061003
  33680. #define GPIO_PG4_FAULT1 0x00061004
  33681. #define GPIO_PG4_EPI0S15 0x00061008
  33682. #define GPIO_PG4_PWM6 0x00061009
  33683. #define GPIO_PG4_U1RI 0x0006100A
  33684. #define GPIO_PG5_CCP5 0x00061401
  33685. #define GPIO_PG5_TXEN 0x00061403
  33686. #define GPIO_PG5_IDX0 0x00061404
  33687. #define GPIO_PG5_FAULT1 0x00061405
  33688. #define GPIO_PG5_PWM7 0x00061408
  33689. #define GPIO_PG5_I2S0RXSCK 0x00061409
  33690. #define GPIO_PG5_U1DTR 0x0006140A
  33691. #define GPIO_PG6_PHA1 0x00061801
  33692. #define GPIO_PG6_TXCK 0x00061803
  33693. #define GPIO_PG6_PWM6 0x00061804
  33694. #define GPIO_PG6_FAULT1 0x00061808
  33695. #define GPIO_PG6_I2S0RXWS 0x00061809
  33696. #define GPIO_PG6_U1RI 0x0006180A
  33697. #define GPIO_PG7_PHB1 0x00061C01
  33698. #define GPIO_PG7_TXER 0x00061C03
  33699. #define GPIO_PG7_PWM7 0x00061C04
  33700. #define GPIO_PG7_CCP5 0x00061C08
  33701. #define GPIO_PG7_EPI0S31 0x00061C09
  33702. #define GPIO_PH0_CCP6 0x00070001
  33703. #define GPIO_PH0_PWM2 0x00070002
  33704. #define GPIO_PH0_EPI0S6 0x00070008
  33705. #define GPIO_PH0_PWM4 0x00070009
  33706. #define GPIO_PH1_CCP7 0x00070401
  33707. #define GPIO_PH1_PWM3 0x00070402
  33708. #define GPIO_PH1_EPI0S7 0x00070408
  33709. #define GPIO_PH1_PWM5 0x00070409
  33710. #define GPIO_PH2_IDX1 0x00070801
  33711. #define GPIO_PH2_C1O 0x00070802
  33712. #define GPIO_PH2_FAULT3 0x00070804
  33713. #define GPIO_PH2_EPI0S1 0x00070808
  33714. #define GPIO_PH2_TXD3 0x00070809
  33715. #define GPIO_PH3_PHB0 0x00070C01
  33716. #define GPIO_PH3_FAULT0 0x00070C02
  33717. #define GPIO_PH3_USB0EPEN 0x00070C04
  33718. #define GPIO_PH3_EPI0S0 0x00070C08
  33719. #define GPIO_PH3_TXD2 0x00070C09
  33720. #define GPIO_PH4_USB0PFLT 0x00071004
  33721. #define GPIO_PH4_EPI0S10 0x00071008
  33722. #define GPIO_PH4_TXD1 0x00071009
  33723. #define GPIO_PH4_SSI1CLK 0x0007100B
  33724. #define GPIO_PH5_EPI0S11 0x00071408
  33725. #define GPIO_PH5_TXD0 0x00071409
  33726. #define GPIO_PH5_FAULT2 0x0007140A
  33727. #define GPIO_PH5_SSI1FSS 0x0007140B
  33728. #define GPIO_PH6_EPI0S26 0x00071808
  33729. #define GPIO_PH6_RXDV 0x00071809
  33730. #define GPIO_PH6_PWM4 0x0007180A
  33731. #define GPIO_PH6_SSI1RX 0x0007180B
  33732. #define GPIO_PH7_RXCK 0x00071C03
  33733. #define GPIO_PH7_EPI0S27 0x00071C08
  33734. #define GPIO_PH7_PWM5 0x00071C0A
  33735. #define GPIO_PH7_SSI1TX 0x00071C0B
  33736. #define GPIO_PJ0_RXER 0x00080003
  33737. #define GPIO_PJ0_EPI0S16 0x00080008
  33738. #define GPIO_PJ0_PWM0 0x0008000A
  33739. #define GPIO_PJ0_I2C1SCL 0x0008000B
  33740. #define GPIO_PJ1_EPI0S17 0x00080408
  33741. #define GPIO_PJ1_USB0PFLT 0x00080409
  33742. #define GPIO_PJ1_PWM1 0x0008040A
  33743. #define GPIO_PJ1_I2C1SDA 0x0008040B
  33744. #define GPIO_PJ2_EPI0S18 0x00080808
  33745. #define GPIO_PJ2_CCP0 0x00080809
  33746. #define GPIO_PJ2_FAULT0 0x0008080A
  33747. #define GPIO_PJ3_EPI0S19 0x00080C08
  33748. #define GPIO_PJ3_U1CTS 0x00080C09
  33749. #define GPIO_PJ3_CCP6 0x00080C0A
  33750. #define GPIO_PJ4_EPI0S28 0x00081008
  33751. #define GPIO_PJ4_U1DCD 0x00081009
  33752. #define GPIO_PJ4_CCP4 0x0008100A
  33753. #define GPIO_PJ5_EPI0S29 0x00081408
  33754. #define GPIO_PJ5_U1DSR 0x00081409
  33755. #define GPIO_PJ5_CCP2 0x0008140A
  33756. #define GPIO_PJ6_EPI0S30 0x00081808
  33757. #define GPIO_PJ6_U1RTS 0x00081809
  33758. #define GPIO_PJ6_CCP1 0x0008180A
  33759. #define GPIO_PJ7_U1DTR 0x00081C09
  33760. #define GPIO_PJ7_CCP0 0x00081C0A
  33761. #endif // PART_LM3S9DN6
  33762. //*****************************************************************************
  33763. //
  33764. // LM3S9G97 Port/Pin Mapping Definitions
  33765. //
  33766. //*****************************************************************************
  33767. #ifdef PART_LM3S9G97
  33768. #define GPIO_PA0_U0RX 0x00000001
  33769. #define GPIO_PA0_I2C1SCL 0x00000008
  33770. #define GPIO_PA0_U1RX 0x00000009
  33771. #define GPIO_PA1_U0TX 0x00000401
  33772. #define GPIO_PA1_I2C1SDA 0x00000408
  33773. #define GPIO_PA1_U1TX 0x00000409
  33774. #define GPIO_PA2_SSI0CLK 0x00000801
  33775. #define GPIO_PA2_PWM4 0x00000804
  33776. #define GPIO_PA2_I2S0RXSD 0x00000809
  33777. #define GPIO_PA3_SSI0FSS 0x00000C01
  33778. #define GPIO_PA3_PWM5 0x00000C04
  33779. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  33780. #define GPIO_PA4_SSI0RX 0x00001001
  33781. #define GPIO_PA4_CAN0RX 0x00001005
  33782. #define GPIO_PA4_I2S0TXSCK 0x00001009
  33783. #define GPIO_PA5_SSI0TX 0x00001401
  33784. #define GPIO_PA5_CAN0TX 0x00001405
  33785. #define GPIO_PA5_I2S0TXWS 0x00001409
  33786. #define GPIO_PA6_I2C1SCL 0x00001801
  33787. #define GPIO_PA6_CCP1 0x00001802
  33788. #define GPIO_PA6_PWM0 0x00001804
  33789. #define GPIO_PA6_PWM4 0x00001805
  33790. #define GPIO_PA6_CAN0RX 0x00001806
  33791. #define GPIO_PA6_USB0EPEN 0x00001808
  33792. #define GPIO_PA6_U1CTS 0x00001809
  33793. #define GPIO_PA7_I2C1SDA 0x00001C01
  33794. #define GPIO_PA7_CCP4 0x00001C02
  33795. #define GPIO_PA7_PWM1 0x00001C04
  33796. #define GPIO_PA7_PWM5 0x00001C05
  33797. #define GPIO_PA7_CAN0TX 0x00001C06
  33798. #define GPIO_PA7_CCP3 0x00001C07
  33799. #define GPIO_PA7_USB0PFLT 0x00001C08
  33800. #define GPIO_PA7_U1DCD 0x00001C09
  33801. #define GPIO_PB0_CCP0 0x00010001
  33802. #define GPIO_PB0_PWM2 0x00010002
  33803. #define GPIO_PB0_U1RX 0x00010005
  33804. #define GPIO_PB1_CCP2 0x00010401
  33805. #define GPIO_PB1_PWM3 0x00010402
  33806. #define GPIO_PB1_CCP1 0x00010404
  33807. #define GPIO_PB1_U1TX 0x00010405
  33808. #define GPIO_PB2_I2C0SCL 0x00010801
  33809. #define GPIO_PB2_IDX0 0x00010802
  33810. #define GPIO_PB2_CCP3 0x00010804
  33811. #define GPIO_PB2_CCP0 0x00010805
  33812. #define GPIO_PB2_USB0EPEN 0x00010808
  33813. #define GPIO_PB3_I2C0SDA 0x00010C01
  33814. #define GPIO_PB3_FAULT0 0x00010C02
  33815. #define GPIO_PB3_FAULT3 0x00010C04
  33816. #define GPIO_PB3_USB0PFLT 0x00010C08
  33817. #define GPIO_PB4_U2RX 0x00011004
  33818. #define GPIO_PB4_CAN0RX 0x00011005
  33819. #define GPIO_PB4_IDX0 0x00011006
  33820. #define GPIO_PB4_U1RX 0x00011007
  33821. #define GPIO_PB5_C0O 0x00011401
  33822. #define GPIO_PB5_CCP5 0x00011402
  33823. #define GPIO_PB5_CCP6 0x00011403
  33824. #define GPIO_PB5_CCP0 0x00011404
  33825. #define GPIO_PB5_CAN0TX 0x00011405
  33826. #define GPIO_PB5_CCP2 0x00011406
  33827. #define GPIO_PB5_U1TX 0x00011407
  33828. #define GPIO_PB6_CCP1 0x00011801
  33829. #define GPIO_PB6_CCP7 0x00011802
  33830. #define GPIO_PB6_C0O 0x00011803
  33831. #define GPIO_PB6_FAULT1 0x00011804
  33832. #define GPIO_PB6_IDX0 0x00011805
  33833. #define GPIO_PB6_CCP5 0x00011806
  33834. #define GPIO_PB6_I2S0TXSCK 0x00011809
  33835. #define GPIO_PB7_NMI 0x00011C04
  33836. #define GPIO_PC0_TCK 0x00020003
  33837. #define GPIO_PC0_SWCLK 0x00020003
  33838. #define GPIO_PC1_TMS 0x00020403
  33839. #define GPIO_PC1_SWDIO 0x00020403
  33840. #define GPIO_PC2_TDI 0x00020803
  33841. #define GPIO_PC3_SWO 0x00020C03
  33842. #define GPIO_PC3_TDO 0x00020C03
  33843. #define GPIO_PC4_CCP5 0x00021001
  33844. #define GPIO_PC4_PHA0 0x00021002
  33845. #define GPIO_PC4_CCP2 0x00021005
  33846. #define GPIO_PC4_CCP4 0x00021006
  33847. #define GPIO_PC4_CCP1 0x00021009
  33848. #define GPIO_PC5_CCP1 0x00021401
  33849. #define GPIO_PC5_C1O 0x00021402
  33850. #define GPIO_PC5_C0O 0x00021403
  33851. #define GPIO_PC5_FAULT2 0x00021404
  33852. #define GPIO_PC5_CCP3 0x00021405
  33853. #define GPIO_PC5_USB0EPEN 0x00021406
  33854. #define GPIO_PC6_CCP3 0x00021801
  33855. #define GPIO_PC6_PHB0 0x00021802
  33856. #define GPIO_PC6_U1RX 0x00021805
  33857. #define GPIO_PC6_CCP0 0x00021806
  33858. #define GPIO_PC6_USB0PFLT 0x00021807
  33859. #define GPIO_PC7_CCP4 0x00021C01
  33860. #define GPIO_PC7_PHB0 0x00021C02
  33861. #define GPIO_PC7_CCP0 0x00021C04
  33862. #define GPIO_PC7_U1TX 0x00021C05
  33863. #define GPIO_PC7_USB0PFLT 0x00021C06
  33864. #define GPIO_PC7_C1O 0x00021C07
  33865. #define GPIO_PD0_PWM0 0x00030001
  33866. #define GPIO_PD0_CAN0RX 0x00030002
  33867. #define GPIO_PD0_IDX0 0x00030003
  33868. #define GPIO_PD0_U2RX 0x00030004
  33869. #define GPIO_PD0_U1RX 0x00030005
  33870. #define GPIO_PD0_CCP6 0x00030006
  33871. #define GPIO_PD0_I2S0RXSCK 0x00030008
  33872. #define GPIO_PD0_U1CTS 0x00030009
  33873. #define GPIO_PD1_PWM1 0x00030401
  33874. #define GPIO_PD1_CAN0TX 0x00030402
  33875. #define GPIO_PD1_PHA0 0x00030403
  33876. #define GPIO_PD1_U2TX 0x00030404
  33877. #define GPIO_PD1_U1TX 0x00030405
  33878. #define GPIO_PD1_CCP7 0x00030406
  33879. #define GPIO_PD1_I2S0RXWS 0x00030408
  33880. #define GPIO_PD1_U1DCD 0x00030409
  33881. #define GPIO_PD1_CCP2 0x0003040A
  33882. #define GPIO_PD1_PHB1 0x0003040B
  33883. #define GPIO_PD2_U1RX 0x00030801
  33884. #define GPIO_PD2_CCP6 0x00030802
  33885. #define GPIO_PD2_PWM2 0x00030803
  33886. #define GPIO_PD2_CCP5 0x00030804
  33887. #define GPIO_PD3_U1TX 0x00030C01
  33888. #define GPIO_PD3_CCP7 0x00030C02
  33889. #define GPIO_PD3_PWM3 0x00030C03
  33890. #define GPIO_PD3_CCP0 0x00030C04
  33891. #define GPIO_PD4_CCP0 0x00031001
  33892. #define GPIO_PD4_CCP3 0x00031002
  33893. #define GPIO_PD4_I2S0RXSD 0x00031008
  33894. #define GPIO_PD4_U1RI 0x00031009
  33895. #define GPIO_PD5_CCP2 0x00031401
  33896. #define GPIO_PD5_CCP4 0x00031402
  33897. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  33898. #define GPIO_PD5_U2RX 0x00031409
  33899. #define GPIO_PD6_FAULT0 0x00031801
  33900. #define GPIO_PD6_I2S0TXSCK 0x00031808
  33901. #define GPIO_PD6_U2TX 0x00031809
  33902. #define GPIO_PD7_IDX0 0x00031C01
  33903. #define GPIO_PD7_C0O 0x00031C02
  33904. #define GPIO_PD7_CCP1 0x00031C03
  33905. #define GPIO_PD7_I2S0TXWS 0x00031C08
  33906. #define GPIO_PD7_U1DTR 0x00031C09
  33907. #define GPIO_PE0_PWM4 0x00040001
  33908. #define GPIO_PE0_SSI1CLK 0x00040002
  33909. #define GPIO_PE0_CCP3 0x00040003
  33910. #define GPIO_PE0_USB0PFLT 0x00040009
  33911. #define GPIO_PE1_PWM5 0x00040401
  33912. #define GPIO_PE1_SSI1FSS 0x00040402
  33913. #define GPIO_PE1_FAULT0 0x00040403
  33914. #define GPIO_PE1_CCP2 0x00040404
  33915. #define GPIO_PE1_CCP6 0x00040405
  33916. #define GPIO_PE2_CCP4 0x00040801
  33917. #define GPIO_PE2_SSI1RX 0x00040802
  33918. #define GPIO_PE2_PHB1 0x00040803
  33919. #define GPIO_PE2_PHA0 0x00040804
  33920. #define GPIO_PE2_CCP2 0x00040805
  33921. #define GPIO_PE3_CCP1 0x00040C01
  33922. #define GPIO_PE3_SSI1TX 0x00040C02
  33923. #define GPIO_PE3_PHA1 0x00040C03
  33924. #define GPIO_PE3_PHB0 0x00040C04
  33925. #define GPIO_PE3_CCP7 0x00040C05
  33926. #define GPIO_PE4_CCP3 0x00041001
  33927. #define GPIO_PE4_FAULT0 0x00041004
  33928. #define GPIO_PE4_U2TX 0x00041005
  33929. #define GPIO_PE4_CCP2 0x00041006
  33930. #define GPIO_PE4_I2S0TXWS 0x00041009
  33931. #define GPIO_PE5_CCP5 0x00041401
  33932. #define GPIO_PE5_I2S0TXSD 0x00041409
  33933. #define GPIO_PE6_PWM4 0x00041801
  33934. #define GPIO_PE6_C1O 0x00041802
  33935. #define GPIO_PE6_U1CTS 0x00041809
  33936. #define GPIO_PE7_PWM5 0x00041C01
  33937. #define GPIO_PE7_U1DCD 0x00041C09
  33938. #define GPIO_PF0_CAN1RX 0x00050001
  33939. #define GPIO_PF0_PHB0 0x00050002
  33940. #define GPIO_PF0_PWM0 0x00050003
  33941. #define GPIO_PF0_I2S0TXSD 0x00050008
  33942. #define GPIO_PF0_U1DSR 0x00050009
  33943. #define GPIO_PF1_CAN1TX 0x00050401
  33944. #define GPIO_PF1_IDX1 0x00050402
  33945. #define GPIO_PF1_PWM1 0x00050403
  33946. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  33947. #define GPIO_PF1_U1RTS 0x00050409
  33948. #define GPIO_PF1_CCP3 0x0005040A
  33949. #define GPIO_PF2_LED1 0x00050801
  33950. #define GPIO_PF2_PWM4 0x00050802
  33951. #define GPIO_PF2_PWM2 0x00050804
  33952. #define GPIO_PF2_SSI1CLK 0x00050809
  33953. #define GPIO_PF3_LED0 0x00050C01
  33954. #define GPIO_PF3_PWM5 0x00050C02
  33955. #define GPIO_PF3_PWM3 0x00050C04
  33956. #define GPIO_PF3_SSI1FSS 0x00050C09
  33957. #define GPIO_PF4_CCP0 0x00051001
  33958. #define GPIO_PF4_C0O 0x00051002
  33959. #define GPIO_PF4_FAULT0 0x00051004
  33960. #define GPIO_PF4_SSI1RX 0x00051009
  33961. #define GPIO_PF5_CCP2 0x00051401
  33962. #define GPIO_PF5_C1O 0x00051402
  33963. #define GPIO_PF5_SSI1TX 0x00051409
  33964. #define GPIO_PG0_U2RX 0x00060001
  33965. #define GPIO_PG0_PWM0 0x00060002
  33966. #define GPIO_PG0_I2C1SCL 0x00060003
  33967. #define GPIO_PG0_PWM4 0x00060004
  33968. #define GPIO_PG0_USB0EPEN 0x00060007
  33969. #define GPIO_PG1_U2TX 0x00060401
  33970. #define GPIO_PG1_PWM1 0x00060402
  33971. #define GPIO_PG1_I2C1SDA 0x00060403
  33972. #define GPIO_PG1_PWM5 0x00060404
  33973. #define GPIO_PG7_PHB1 0x00061C01
  33974. #define GPIO_PG7_CCP5 0x00061C08
  33975. #define GPIO_PH0_CCP6 0x00070001
  33976. #define GPIO_PH0_PWM2 0x00070002
  33977. #define GPIO_PH0_PWM4 0x00070009
  33978. #define GPIO_PH1_CCP7 0x00070401
  33979. #define GPIO_PH1_PWM3 0x00070402
  33980. #define GPIO_PH1_PWM5 0x00070409
  33981. #define GPIO_PH2_IDX1 0x00070801
  33982. #define GPIO_PH2_C1O 0x00070802
  33983. #define GPIO_PH2_FAULT3 0x00070804
  33984. #define GPIO_PH3_PHB0 0x00070C01
  33985. #define GPIO_PH3_FAULT0 0x00070C02
  33986. #define GPIO_PH3_USB0EPEN 0x00070C04
  33987. #define GPIO_PH4_USB0PFLT 0x00071004
  33988. #define GPIO_PH4_SSI1CLK 0x0007100B
  33989. #define GPIO_PH5_FAULT2 0x0007140A
  33990. #define GPIO_PH5_SSI1FSS 0x0007140B
  33991. #define GPIO_PH6_PWM4 0x0007180A
  33992. #define GPIO_PH6_SSI1RX 0x0007180B
  33993. #define GPIO_PH7_PWM5 0x00071C0A
  33994. #define GPIO_PH7_SSI1TX 0x00071C0B
  33995. #define GPIO_PJ0_PWM0 0x0008000A
  33996. #define GPIO_PJ0_I2C1SCL 0x0008000B
  33997. #define GPIO_PJ1_USB0PFLT 0x00080409
  33998. #define GPIO_PJ1_PWM1 0x0008040A
  33999. #define GPIO_PJ1_I2C1SDA 0x0008040B
  34000. #define GPIO_PJ2_CCP0 0x00080809
  34001. #define GPIO_PJ2_FAULT0 0x0008080A
  34002. #endif // PART_LM3S9G97
  34003. //*****************************************************************************
  34004. //
  34005. // LM3S9GN5 Port/Pin Mapping Definitions
  34006. //
  34007. //*****************************************************************************
  34008. #ifdef PART_LM3S9GN5
  34009. #define GPIO_PA0_U0RX 0x00000001
  34010. #define GPIO_PA0_I2C1SCL 0x00000008
  34011. #define GPIO_PA0_U1RX 0x00000009
  34012. #define GPIO_PA1_U0TX 0x00000401
  34013. #define GPIO_PA1_I2C1SDA 0x00000408
  34014. #define GPIO_PA1_U1TX 0x00000409
  34015. #define GPIO_PA2_SSI0CLK 0x00000801
  34016. #define GPIO_PA2_TXD2 0x00000803
  34017. #define GPIO_PA2_PWM4 0x00000804
  34018. #define GPIO_PA2_I2S0RXSD 0x00000809
  34019. #define GPIO_PA3_SSI0FSS 0x00000C01
  34020. #define GPIO_PA3_TXD1 0x00000C03
  34021. #define GPIO_PA3_PWM5 0x00000C04
  34022. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  34023. #define GPIO_PA4_SSI0RX 0x00001001
  34024. #define GPIO_PA4_TXD0 0x00001003
  34025. #define GPIO_PA4_PWM6 0x00001004
  34026. #define GPIO_PA4_CAN0RX 0x00001005
  34027. #define GPIO_PA4_I2S0TXSCK 0x00001009
  34028. #define GPIO_PA5_SSI0TX 0x00001401
  34029. #define GPIO_PA5_RXDV 0x00001403
  34030. #define GPIO_PA5_PWM7 0x00001404
  34031. #define GPIO_PA5_CAN0TX 0x00001405
  34032. #define GPIO_PA5_I2S0TXWS 0x00001409
  34033. #define GPIO_PA6_I2C1SCL 0x00001801
  34034. #define GPIO_PA6_CCP1 0x00001802
  34035. #define GPIO_PA6_RXCK 0x00001803
  34036. #define GPIO_PA6_PWM0 0x00001804
  34037. #define GPIO_PA6_PWM4 0x00001805
  34038. #define GPIO_PA6_CAN0RX 0x00001806
  34039. #define GPIO_PA6_USB0EPEN 0x00001808
  34040. #define GPIO_PA6_U1CTS 0x00001809
  34041. #define GPIO_PA7_I2C1SDA 0x00001C01
  34042. #define GPIO_PA7_CCP4 0x00001C02
  34043. #define GPIO_PA7_RXER 0x00001C03
  34044. #define GPIO_PA7_PWM1 0x00001C04
  34045. #define GPIO_PA7_PWM5 0x00001C05
  34046. #define GPIO_PA7_CAN0TX 0x00001C06
  34047. #define GPIO_PA7_CCP3 0x00001C07
  34048. #define GPIO_PA7_USB0PFLT 0x00001C08
  34049. #define GPIO_PA7_U1DCD 0x00001C09
  34050. #define GPIO_PB0_CCP0 0x00010001
  34051. #define GPIO_PB0_PWM2 0x00010002
  34052. #define GPIO_PB0_U1RX 0x00010005
  34053. #define GPIO_PB1_CCP2 0x00010401
  34054. #define GPIO_PB1_PWM3 0x00010402
  34055. #define GPIO_PB1_CCP1 0x00010404
  34056. #define GPIO_PB1_U1TX 0x00010405
  34057. #define GPIO_PB2_I2C0SCL 0x00010801
  34058. #define GPIO_PB2_IDX0 0x00010802
  34059. #define GPIO_PB2_CCP3 0x00010804
  34060. #define GPIO_PB2_CCP0 0x00010805
  34061. #define GPIO_PB2_USB0EPEN 0x00010808
  34062. #define GPIO_PB3_I2C0SDA 0x00010C01
  34063. #define GPIO_PB3_FAULT0 0x00010C02
  34064. #define GPIO_PB3_FAULT3 0x00010C04
  34065. #define GPIO_PB3_USB0PFLT 0x00010C08
  34066. #define GPIO_PB4_U2RX 0x00011004
  34067. #define GPIO_PB4_CAN0RX 0x00011005
  34068. #define GPIO_PB4_IDX0 0x00011006
  34069. #define GPIO_PB4_U1RX 0x00011007
  34070. #define GPIO_PB4_EPI0S23 0x00011008
  34071. #define GPIO_PB5_C0O 0x00011401
  34072. #define GPIO_PB5_CCP5 0x00011402
  34073. #define GPIO_PB5_CCP6 0x00011403
  34074. #define GPIO_PB5_CCP0 0x00011404
  34075. #define GPIO_PB5_CAN0TX 0x00011405
  34076. #define GPIO_PB5_CCP2 0x00011406
  34077. #define GPIO_PB5_U1TX 0x00011407
  34078. #define GPIO_PB5_EPI0S22 0x00011408
  34079. #define GPIO_PB6_CCP1 0x00011801
  34080. #define GPIO_PB6_CCP7 0x00011802
  34081. #define GPIO_PB6_C0O 0x00011803
  34082. #define GPIO_PB6_FAULT1 0x00011804
  34083. #define GPIO_PB6_IDX0 0x00011805
  34084. #define GPIO_PB6_CCP5 0x00011806
  34085. #define GPIO_PB6_I2S0TXSCK 0x00011809
  34086. #define GPIO_PB7_NMI 0x00011C04
  34087. #define GPIO_PB7_RXD1 0x00011C07
  34088. #define GPIO_PC0_TCK 0x00020003
  34089. #define GPIO_PC0_SWCLK 0x00020003
  34090. #define GPIO_PC1_TMS 0x00020403
  34091. #define GPIO_PC1_SWDIO 0x00020403
  34092. #define GPIO_PC2_TDI 0x00020803
  34093. #define GPIO_PC3_SWO 0x00020C03
  34094. #define GPIO_PC3_TDO 0x00020C03
  34095. #define GPIO_PC4_CCP5 0x00021001
  34096. #define GPIO_PC4_PHA0 0x00021002
  34097. #define GPIO_PC4_TXD3 0x00021003
  34098. #define GPIO_PC4_PWM6 0x00021004
  34099. #define GPIO_PC4_CCP2 0x00021005
  34100. #define GPIO_PC4_CCP4 0x00021006
  34101. #define GPIO_PC4_EPI0S2 0x00021008
  34102. #define GPIO_PC4_CCP1 0x00021009
  34103. #define GPIO_PC5_CCP1 0x00021401
  34104. #define GPIO_PC5_C1O 0x00021402
  34105. #define GPIO_PC5_C0O 0x00021403
  34106. #define GPIO_PC5_FAULT2 0x00021404
  34107. #define GPIO_PC5_CCP3 0x00021405
  34108. #define GPIO_PC5_USB0EPEN 0x00021406
  34109. #define GPIO_PC5_EPI0S3 0x00021408
  34110. #define GPIO_PC6_CCP3 0x00021801
  34111. #define GPIO_PC6_PHB0 0x00021802
  34112. #define GPIO_PC6_C2O 0x00021803
  34113. #define GPIO_PC6_PWM7 0x00021804
  34114. #define GPIO_PC6_U1RX 0x00021805
  34115. #define GPIO_PC6_CCP0 0x00021806
  34116. #define GPIO_PC6_USB0PFLT 0x00021807
  34117. #define GPIO_PC6_EPI0S4 0x00021808
  34118. #define GPIO_PC7_CCP4 0x00021C01
  34119. #define GPIO_PC7_PHB0 0x00021C02
  34120. #define GPIO_PC7_CCP0 0x00021C04
  34121. #define GPIO_PC7_U1TX 0x00021C05
  34122. #define GPIO_PC7_USB0PFLT 0x00021C06
  34123. #define GPIO_PC7_C1O 0x00021C07
  34124. #define GPIO_PC7_EPI0S5 0x00021C08
  34125. #define GPIO_PD0_PWM0 0x00030001
  34126. #define GPIO_PD0_CAN0RX 0x00030002
  34127. #define GPIO_PD0_IDX0 0x00030003
  34128. #define GPIO_PD0_U2RX 0x00030004
  34129. #define GPIO_PD0_U1RX 0x00030005
  34130. #define GPIO_PD0_CCP6 0x00030006
  34131. #define GPIO_PD0_RXDV 0x00030007
  34132. #define GPIO_PD0_I2S0RXSCK 0x00030008
  34133. #define GPIO_PD0_U1CTS 0x00030009
  34134. #define GPIO_PD1_PWM1 0x00030401
  34135. #define GPIO_PD1_CAN0TX 0x00030402
  34136. #define GPIO_PD1_PHA0 0x00030403
  34137. #define GPIO_PD1_U2TX 0x00030404
  34138. #define GPIO_PD1_U1TX 0x00030405
  34139. #define GPIO_PD1_CCP7 0x00030406
  34140. #define GPIO_PD1_TXER 0x00030407
  34141. #define GPIO_PD1_I2S0RXWS 0x00030408
  34142. #define GPIO_PD1_U1DCD 0x00030409
  34143. #define GPIO_PD1_CCP2 0x0003040A
  34144. #define GPIO_PD1_PHB1 0x0003040B
  34145. #define GPIO_PD2_U1RX 0x00030801
  34146. #define GPIO_PD2_CCP6 0x00030802
  34147. #define GPIO_PD2_PWM2 0x00030803
  34148. #define GPIO_PD2_CCP5 0x00030804
  34149. #define GPIO_PD2_EPI0S20 0x00030808
  34150. #define GPIO_PD3_U1TX 0x00030C01
  34151. #define GPIO_PD3_CCP7 0x00030C02
  34152. #define GPIO_PD3_PWM3 0x00030C03
  34153. #define GPIO_PD3_CCP0 0x00030C04
  34154. #define GPIO_PD3_EPI0S21 0x00030C08
  34155. #define GPIO_PD4_CCP0 0x00031001
  34156. #define GPIO_PD4_CCP3 0x00031002
  34157. #define GPIO_PD4_TXD3 0x00031004
  34158. #define GPIO_PD4_I2S0RXSD 0x00031008
  34159. #define GPIO_PD4_U1RI 0x00031009
  34160. #define GPIO_PD4_EPI0S19 0x0003100A
  34161. #define GPIO_PD5_CCP2 0x00031401
  34162. #define GPIO_PD5_CCP4 0x00031402
  34163. #define GPIO_PD5_TXD2 0x00031404
  34164. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  34165. #define GPIO_PD5_U2RX 0x00031409
  34166. #define GPIO_PD5_EPI0S28 0x0003140A
  34167. #define GPIO_PD6_FAULT0 0x00031801
  34168. #define GPIO_PD6_TXD1 0x00031804
  34169. #define GPIO_PD6_I2S0TXSCK 0x00031808
  34170. #define GPIO_PD6_U2TX 0x00031809
  34171. #define GPIO_PD6_EPI0S29 0x0003180A
  34172. #define GPIO_PD7_IDX0 0x00031C01
  34173. #define GPIO_PD7_C0O 0x00031C02
  34174. #define GPIO_PD7_CCP1 0x00031C03
  34175. #define GPIO_PD7_TXD0 0x00031C04
  34176. #define GPIO_PD7_I2S0TXWS 0x00031C08
  34177. #define GPIO_PD7_U1DTR 0x00031C09
  34178. #define GPIO_PD7_EPI0S30 0x00031C0A
  34179. #define GPIO_PE0_PWM4 0x00040001
  34180. #define GPIO_PE0_SSI1CLK 0x00040002
  34181. #define GPIO_PE0_CCP3 0x00040003
  34182. #define GPIO_PE0_EPI0S8 0x00040008
  34183. #define GPIO_PE0_USB0PFLT 0x00040009
  34184. #define GPIO_PE1_PWM5 0x00040401
  34185. #define GPIO_PE1_SSI1FSS 0x00040402
  34186. #define GPIO_PE1_FAULT0 0x00040403
  34187. #define GPIO_PE1_CCP2 0x00040404
  34188. #define GPIO_PE1_CCP6 0x00040405
  34189. #define GPIO_PE1_EPI0S9 0x00040408
  34190. #define GPIO_PE2_CCP4 0x00040801
  34191. #define GPIO_PE2_SSI1RX 0x00040802
  34192. #define GPIO_PE2_PHB1 0x00040803
  34193. #define GPIO_PE2_PHA0 0x00040804
  34194. #define GPIO_PE2_CCP2 0x00040805
  34195. #define GPIO_PE2_EPI0S24 0x00040808
  34196. #define GPIO_PE3_CCP1 0x00040C01
  34197. #define GPIO_PE3_SSI1TX 0x00040C02
  34198. #define GPIO_PE3_PHA1 0x00040C03
  34199. #define GPIO_PE3_PHB0 0x00040C04
  34200. #define GPIO_PE3_CCP7 0x00040C05
  34201. #define GPIO_PE3_EPI0S25 0x00040C08
  34202. #define GPIO_PE4_CCP3 0x00041001
  34203. #define GPIO_PE4_FAULT0 0x00041004
  34204. #define GPIO_PE4_U2TX 0x00041005
  34205. #define GPIO_PE4_CCP2 0x00041006
  34206. #define GPIO_PE4_RXD0 0x00041007
  34207. #define GPIO_PE4_I2S0TXWS 0x00041009
  34208. #define GPIO_PE5_CCP5 0x00041401
  34209. #define GPIO_PE5_I2S0TXSD 0x00041409
  34210. #define GPIO_PE6_PWM4 0x00041801
  34211. #define GPIO_PE6_C1O 0x00041802
  34212. #define GPIO_PE6_U1CTS 0x00041809
  34213. #define GPIO_PE7_PWM5 0x00041C01
  34214. #define GPIO_PE7_C2O 0x00041C02
  34215. #define GPIO_PE7_U1DCD 0x00041C09
  34216. #define GPIO_PF0_CAN1RX 0x00050001
  34217. #define GPIO_PF0_PHB0 0x00050002
  34218. #define GPIO_PF0_PWM0 0x00050003
  34219. #define GPIO_PF0_RXCK 0x00050004
  34220. #define GPIO_PF0_I2S0TXSD 0x00050008
  34221. #define GPIO_PF0_U1DSR 0x00050009
  34222. #define GPIO_PF1_CAN1TX 0x00050401
  34223. #define GPIO_PF1_IDX1 0x00050402
  34224. #define GPIO_PF1_PWM1 0x00050403
  34225. #define GPIO_PF1_RXER 0x00050404
  34226. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  34227. #define GPIO_PF1_U1RTS 0x00050409
  34228. #define GPIO_PF1_CCP3 0x0005040A
  34229. #define GPIO_PF2_PWM4 0x00050802
  34230. #define GPIO_PF2_PHYINT 0x00050803
  34231. #define GPIO_PF2_PWM2 0x00050804
  34232. #define GPIO_PF2_SSI1CLK 0x00050809
  34233. #define GPIO_PF3_PWM5 0x00050C02
  34234. #define GPIO_PF3_MDC 0x00050C03
  34235. #define GPIO_PF3_PWM3 0x00050C04
  34236. #define GPIO_PF3_SSI1FSS 0x00050C09
  34237. #define GPIO_PF4_CCP0 0x00051001
  34238. #define GPIO_PF4_C0O 0x00051002
  34239. #define GPIO_PF4_MDIO 0x00051003
  34240. #define GPIO_PF4_FAULT0 0x00051004
  34241. #define GPIO_PF4_EPI0S12 0x00051008
  34242. #define GPIO_PF4_SSI1RX 0x00051009
  34243. #define GPIO_PF5_CCP2 0x00051401
  34244. #define GPIO_PF5_C1O 0x00051402
  34245. #define GPIO_PF5_RXD3 0x00051403
  34246. #define GPIO_PF5_EPI0S15 0x00051408
  34247. #define GPIO_PF5_SSI1TX 0x00051409
  34248. #define GPIO_PF6_CCP1 0x00051801
  34249. #define GPIO_PF6_C2O 0x00051802
  34250. #define GPIO_PF6_RXD2 0x00051803
  34251. #define GPIO_PF6_PHA0 0x00051804
  34252. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  34253. #define GPIO_PF6_U1RTS 0x0005180A
  34254. #define GPIO_PF7_CCP4 0x00051C01
  34255. #define GPIO_PF7_RXD1 0x00051C03
  34256. #define GPIO_PF7_PHB0 0x00051C04
  34257. #define GPIO_PF7_EPI0S12 0x00051C08
  34258. #define GPIO_PF7_FAULT1 0x00051C09
  34259. #define GPIO_PG0_U2RX 0x00060001
  34260. #define GPIO_PG0_PWM0 0x00060002
  34261. #define GPIO_PG0_I2C1SCL 0x00060003
  34262. #define GPIO_PG0_PWM4 0x00060004
  34263. #define GPIO_PG0_USB0EPEN 0x00060007
  34264. #define GPIO_PG0_EPI0S13 0x00060008
  34265. #define GPIO_PG1_U2TX 0x00060401
  34266. #define GPIO_PG1_PWM1 0x00060402
  34267. #define GPIO_PG1_I2C1SDA 0x00060403
  34268. #define GPIO_PG1_PWM5 0x00060404
  34269. #define GPIO_PG1_EPI0S14 0x00060408
  34270. #define GPIO_PG2_PWM0 0x00060801
  34271. #define GPIO_PG2_COL 0x00060803
  34272. #define GPIO_PG2_FAULT0 0x00060804
  34273. #define GPIO_PG2_IDX1 0x00060808
  34274. #define GPIO_PG2_I2S0RXSD 0x00060809
  34275. #define GPIO_PG3_PWM1 0x00060C01
  34276. #define GPIO_PG3_CRS 0x00060C03
  34277. #define GPIO_PG3_FAULT2 0x00060C04
  34278. #define GPIO_PG3_FAULT0 0x00060C08
  34279. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  34280. #define GPIO_PG4_CCP3 0x00061001
  34281. #define GPIO_PG4_RXD0 0x00061003
  34282. #define GPIO_PG4_FAULT1 0x00061004
  34283. #define GPIO_PG4_EPI0S15 0x00061008
  34284. #define GPIO_PG4_PWM6 0x00061009
  34285. #define GPIO_PG4_U1RI 0x0006100A
  34286. #define GPIO_PG5_CCP5 0x00061401
  34287. #define GPIO_PG5_TXEN 0x00061403
  34288. #define GPIO_PG5_IDX0 0x00061404
  34289. #define GPIO_PG5_FAULT1 0x00061405
  34290. #define GPIO_PG5_PWM7 0x00061408
  34291. #define GPIO_PG5_I2S0RXSCK 0x00061409
  34292. #define GPIO_PG5_U1DTR 0x0006140A
  34293. #define GPIO_PG6_PHA1 0x00061801
  34294. #define GPIO_PG6_TXCK 0x00061803
  34295. #define GPIO_PG6_PWM6 0x00061804
  34296. #define GPIO_PG6_FAULT1 0x00061808
  34297. #define GPIO_PG6_I2S0RXWS 0x00061809
  34298. #define GPIO_PG6_U1RI 0x0006180A
  34299. #define GPIO_PG7_PHB1 0x00061C01
  34300. #define GPIO_PG7_TXER 0x00061C03
  34301. #define GPIO_PG7_PWM7 0x00061C04
  34302. #define GPIO_PG7_CCP5 0x00061C08
  34303. #define GPIO_PG7_EPI0S31 0x00061C09
  34304. #define GPIO_PH0_CCP6 0x00070001
  34305. #define GPIO_PH0_PWM2 0x00070002
  34306. #define GPIO_PH0_EPI0S6 0x00070008
  34307. #define GPIO_PH0_PWM4 0x00070009
  34308. #define GPIO_PH1_CCP7 0x00070401
  34309. #define GPIO_PH1_PWM3 0x00070402
  34310. #define GPIO_PH1_EPI0S7 0x00070408
  34311. #define GPIO_PH1_PWM5 0x00070409
  34312. #define GPIO_PH2_IDX1 0x00070801
  34313. #define GPIO_PH2_C1O 0x00070802
  34314. #define GPIO_PH2_FAULT3 0x00070804
  34315. #define GPIO_PH2_EPI0S1 0x00070808
  34316. #define GPIO_PH2_TXD3 0x00070809
  34317. #define GPIO_PH3_PHB0 0x00070C01
  34318. #define GPIO_PH3_FAULT0 0x00070C02
  34319. #define GPIO_PH3_USB0EPEN 0x00070C04
  34320. #define GPIO_PH3_EPI0S0 0x00070C08
  34321. #define GPIO_PH3_TXD2 0x00070C09
  34322. #define GPIO_PH4_USB0PFLT 0x00071004
  34323. #define GPIO_PH4_EPI0S10 0x00071008
  34324. #define GPIO_PH4_TXD1 0x00071009
  34325. #define GPIO_PH4_SSI1CLK 0x0007100B
  34326. #define GPIO_PH5_EPI0S11 0x00071408
  34327. #define GPIO_PH5_TXD0 0x00071409
  34328. #define GPIO_PH5_FAULT2 0x0007140A
  34329. #define GPIO_PH5_SSI1FSS 0x0007140B
  34330. #define GPIO_PH6_EPI0S26 0x00071808
  34331. #define GPIO_PH6_RXDV 0x00071809
  34332. #define GPIO_PH6_PWM4 0x0007180A
  34333. #define GPIO_PH6_SSI1RX 0x0007180B
  34334. #define GPIO_PH7_RXCK 0x00071C03
  34335. #define GPIO_PH7_EPI0S27 0x00071C08
  34336. #define GPIO_PH7_PWM5 0x00071C0A
  34337. #define GPIO_PH7_SSI1TX 0x00071C0B
  34338. #define GPIO_PJ0_RXER 0x00080003
  34339. #define GPIO_PJ0_EPI0S16 0x00080008
  34340. #define GPIO_PJ0_PWM0 0x0008000A
  34341. #define GPIO_PJ0_I2C1SCL 0x0008000B
  34342. #define GPIO_PJ1_EPI0S17 0x00080408
  34343. #define GPIO_PJ1_USB0PFLT 0x00080409
  34344. #define GPIO_PJ1_PWM1 0x0008040A
  34345. #define GPIO_PJ1_I2C1SDA 0x0008040B
  34346. #define GPIO_PJ2_EPI0S18 0x00080808
  34347. #define GPIO_PJ2_CCP0 0x00080809
  34348. #define GPIO_PJ2_FAULT0 0x0008080A
  34349. #define GPIO_PJ3_EPI0S19 0x00080C08
  34350. #define GPIO_PJ3_U1CTS 0x00080C09
  34351. #define GPIO_PJ3_CCP6 0x00080C0A
  34352. #define GPIO_PJ4_EPI0S28 0x00081008
  34353. #define GPIO_PJ4_U1DCD 0x00081009
  34354. #define GPIO_PJ4_CCP4 0x0008100A
  34355. #define GPIO_PJ5_EPI0S29 0x00081408
  34356. #define GPIO_PJ5_U1DSR 0x00081409
  34357. #define GPIO_PJ5_CCP2 0x0008140A
  34358. #define GPIO_PJ6_EPI0S30 0x00081808
  34359. #define GPIO_PJ6_U1RTS 0x00081809
  34360. #define GPIO_PJ6_CCP1 0x0008180A
  34361. #define GPIO_PJ7_U1DTR 0x00081C09
  34362. #define GPIO_PJ7_CCP0 0x00081C0A
  34363. #endif // PART_LM3S9GN5
  34364. //*****************************************************************************
  34365. //
  34366. // LM3S9L71 Port/Pin Mapping Definitions
  34367. //
  34368. //*****************************************************************************
  34369. #ifdef PART_LM3S9L71
  34370. #define GPIO_PA0_U0RX 0x00000001
  34371. #define GPIO_PA0_I2C1SCL 0x00000008
  34372. #define GPIO_PA0_U1RX 0x00000009
  34373. #define GPIO_PA1_U0TX 0x00000401
  34374. #define GPIO_PA1_I2C1SDA 0x00000408
  34375. #define GPIO_PA1_U1TX 0x00000409
  34376. #define GPIO_PA2_SSI0CLK 0x00000801
  34377. #define GPIO_PA2_TXD2 0x00000803
  34378. #define GPIO_PA2_PWM4 0x00000804
  34379. #define GPIO_PA2_I2S0RXSD 0x00000809
  34380. #define GPIO_PA3_SSI0FSS 0x00000C01
  34381. #define GPIO_PA3_TXD1 0x00000C03
  34382. #define GPIO_PA3_PWM5 0x00000C04
  34383. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  34384. #define GPIO_PA4_SSI0RX 0x00001001
  34385. #define GPIO_PA4_TXD0 0x00001003
  34386. #define GPIO_PA4_CAN0RX 0x00001005
  34387. #define GPIO_PA4_I2S0TXSCK 0x00001009
  34388. #define GPIO_PA5_SSI0TX 0x00001401
  34389. #define GPIO_PA5_RXDV 0x00001403
  34390. #define GPIO_PA5_CAN0TX 0x00001405
  34391. #define GPIO_PA5_I2S0TXWS 0x00001409
  34392. #define GPIO_PA6_I2C1SCL 0x00001801
  34393. #define GPIO_PA6_CCP1 0x00001802
  34394. #define GPIO_PA6_RXCK 0x00001803
  34395. #define GPIO_PA6_PWM0 0x00001804
  34396. #define GPIO_PA6_PWM4 0x00001805
  34397. #define GPIO_PA6_CAN0RX 0x00001806
  34398. #define GPIO_PA6_USB0EPEN 0x00001808
  34399. #define GPIO_PA6_U1CTS 0x00001809
  34400. #define GPIO_PA7_I2C1SDA 0x00001C01
  34401. #define GPIO_PA7_CCP4 0x00001C02
  34402. #define GPIO_PA7_RXER 0x00001C03
  34403. #define GPIO_PA7_PWM1 0x00001C04
  34404. #define GPIO_PA7_PWM5 0x00001C05
  34405. #define GPIO_PA7_CAN0TX 0x00001C06
  34406. #define GPIO_PA7_CCP3 0x00001C07
  34407. #define GPIO_PA7_USB0PFLT 0x00001C08
  34408. #define GPIO_PA7_U1DCD 0x00001C09
  34409. #define GPIO_PB0_CCP0 0x00010001
  34410. #define GPIO_PB0_PWM2 0x00010002
  34411. #define GPIO_PB0_U1RX 0x00010005
  34412. #define GPIO_PB1_CCP2 0x00010401
  34413. #define GPIO_PB1_PWM3 0x00010402
  34414. #define GPIO_PB1_CCP1 0x00010404
  34415. #define GPIO_PB1_U1TX 0x00010405
  34416. #define GPIO_PB2_I2C0SCL 0x00010801
  34417. #define GPIO_PB2_IDX0 0x00010802
  34418. #define GPIO_PB2_CCP3 0x00010804
  34419. #define GPIO_PB2_CCP0 0x00010805
  34420. #define GPIO_PB2_USB0EPEN 0x00010808
  34421. #define GPIO_PB3_I2C0SDA 0x00010C01
  34422. #define GPIO_PB3_FAULT0 0x00010C02
  34423. #define GPIO_PB3_FAULT3 0x00010C04
  34424. #define GPIO_PB3_USB0PFLT 0x00010C08
  34425. #define GPIO_PB4_U2RX 0x00011004
  34426. #define GPIO_PB4_CAN0RX 0x00011005
  34427. #define GPIO_PB4_IDX0 0x00011006
  34428. #define GPIO_PB4_U1RX 0x00011007
  34429. #define GPIO_PB5_C0O 0x00011401
  34430. #define GPIO_PB5_CCP5 0x00011402
  34431. #define GPIO_PB5_CCP6 0x00011403
  34432. #define GPIO_PB5_CCP0 0x00011404
  34433. #define GPIO_PB5_CAN0TX 0x00011405
  34434. #define GPIO_PB5_CCP2 0x00011406
  34435. #define GPIO_PB5_U1TX 0x00011407
  34436. #define GPIO_PB6_CCP1 0x00011801
  34437. #define GPIO_PB6_CCP7 0x00011802
  34438. #define GPIO_PB6_C0O 0x00011803
  34439. #define GPIO_PB6_FAULT1 0x00011804
  34440. #define GPIO_PB6_IDX0 0x00011805
  34441. #define GPIO_PB6_CCP5 0x00011806
  34442. #define GPIO_PB6_I2S0TXSCK 0x00011809
  34443. #define GPIO_PB7_NMI 0x00011C04
  34444. #define GPIO_PB7_RXD1 0x00011C07
  34445. #define GPIO_PC0_TCK 0x00020003
  34446. #define GPIO_PC0_SWCLK 0x00020003
  34447. #define GPIO_PC1_TMS 0x00020403
  34448. #define GPIO_PC1_SWDIO 0x00020403
  34449. #define GPIO_PC2_TDI 0x00020803
  34450. #define GPIO_PC3_SWO 0x00020C03
  34451. #define GPIO_PC3_TDO 0x00020C03
  34452. #define GPIO_PC4_CCP5 0x00021001
  34453. #define GPIO_PC4_PHA0 0x00021002
  34454. #define GPIO_PC4_TXD3 0x00021003
  34455. #define GPIO_PC4_CCP2 0x00021005
  34456. #define GPIO_PC4_CCP4 0x00021006
  34457. #define GPIO_PC4_CCP1 0x00021009
  34458. #define GPIO_PC5_CCP1 0x00021401
  34459. #define GPIO_PC5_C1O 0x00021402
  34460. #define GPIO_PC5_C0O 0x00021403
  34461. #define GPIO_PC5_FAULT2 0x00021404
  34462. #define GPIO_PC5_CCP3 0x00021405
  34463. #define GPIO_PC5_USB0EPEN 0x00021406
  34464. #define GPIO_PC6_CCP3 0x00021801
  34465. #define GPIO_PC6_PHB0 0x00021802
  34466. #define GPIO_PC6_U1RX 0x00021805
  34467. #define GPIO_PC6_CCP0 0x00021806
  34468. #define GPIO_PC6_USB0PFLT 0x00021807
  34469. #define GPIO_PC7_CCP4 0x00021C01
  34470. #define GPIO_PC7_PHB0 0x00021C02
  34471. #define GPIO_PC7_CCP0 0x00021C04
  34472. #define GPIO_PC7_U1TX 0x00021C05
  34473. #define GPIO_PC7_USB0PFLT 0x00021C06
  34474. #define GPIO_PC7_C1O 0x00021C07
  34475. #define GPIO_PD0_PWM0 0x00030001
  34476. #define GPIO_PD0_CAN0RX 0x00030002
  34477. #define GPIO_PD0_IDX0 0x00030003
  34478. #define GPIO_PD0_U2RX 0x00030004
  34479. #define GPIO_PD0_U1RX 0x00030005
  34480. #define GPIO_PD0_CCP6 0x00030006
  34481. #define GPIO_PD0_RXDV 0x00030007
  34482. #define GPIO_PD0_I2S0RXSCK 0x00030008
  34483. #define GPIO_PD0_U1CTS 0x00030009
  34484. #define GPIO_PD1_PWM1 0x00030401
  34485. #define GPIO_PD1_CAN0TX 0x00030402
  34486. #define GPIO_PD1_PHA0 0x00030403
  34487. #define GPIO_PD1_U2TX 0x00030404
  34488. #define GPIO_PD1_U1TX 0x00030405
  34489. #define GPIO_PD1_CCP7 0x00030406
  34490. #define GPIO_PD1_TXER 0x00030407
  34491. #define GPIO_PD1_I2S0RXWS 0x00030408
  34492. #define GPIO_PD1_U1DCD 0x00030409
  34493. #define GPIO_PD1_CCP2 0x0003040A
  34494. #define GPIO_PD1_PHB1 0x0003040B
  34495. #define GPIO_PD2_U1RX 0x00030801
  34496. #define GPIO_PD2_CCP6 0x00030802
  34497. #define GPIO_PD2_PWM2 0x00030803
  34498. #define GPIO_PD2_CCP5 0x00030804
  34499. #define GPIO_PD3_U1TX 0x00030C01
  34500. #define GPIO_PD3_CCP7 0x00030C02
  34501. #define GPIO_PD3_PWM3 0x00030C03
  34502. #define GPIO_PD3_CCP0 0x00030C04
  34503. #define GPIO_PD4_CCP0 0x00031001
  34504. #define GPIO_PD4_CCP3 0x00031002
  34505. #define GPIO_PD4_TXD3 0x00031004
  34506. #define GPIO_PD4_I2S0RXSD 0x00031008
  34507. #define GPIO_PD4_U1RI 0x00031009
  34508. #define GPIO_PD5_CCP2 0x00031401
  34509. #define GPIO_PD5_CCP4 0x00031402
  34510. #define GPIO_PD5_TXD2 0x00031404
  34511. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  34512. #define GPIO_PD5_U2RX 0x00031409
  34513. #define GPIO_PD6_FAULT0 0x00031801
  34514. #define GPIO_PD6_TXD1 0x00031804
  34515. #define GPIO_PD6_I2S0TXSCK 0x00031808
  34516. #define GPIO_PD6_U2TX 0x00031809
  34517. #define GPIO_PD7_IDX0 0x00031C01
  34518. #define GPIO_PD7_C0O 0x00031C02
  34519. #define GPIO_PD7_CCP1 0x00031C03
  34520. #define GPIO_PD7_TXD0 0x00031C04
  34521. #define GPIO_PD7_I2S0TXWS 0x00031C08
  34522. #define GPIO_PD7_U1DTR 0x00031C09
  34523. #define GPIO_PE0_PWM4 0x00040001
  34524. #define GPIO_PE0_SSI1CLK 0x00040002
  34525. #define GPIO_PE0_CCP3 0x00040003
  34526. #define GPIO_PE0_USB0PFLT 0x00040009
  34527. #define GPIO_PE1_PWM5 0x00040401
  34528. #define GPIO_PE1_SSI1FSS 0x00040402
  34529. #define GPIO_PE1_FAULT0 0x00040403
  34530. #define GPIO_PE1_CCP2 0x00040404
  34531. #define GPIO_PE1_CCP6 0x00040405
  34532. #define GPIO_PE2_CCP4 0x00040801
  34533. #define GPIO_PE2_SSI1RX 0x00040802
  34534. #define GPIO_PE2_PHB1 0x00040803
  34535. #define GPIO_PE2_PHA0 0x00040804
  34536. #define GPIO_PE2_CCP2 0x00040805
  34537. #define GPIO_PE3_CCP1 0x00040C01
  34538. #define GPIO_PE3_SSI1TX 0x00040C02
  34539. #define GPIO_PE3_PHA1 0x00040C03
  34540. #define GPIO_PE3_PHB0 0x00040C04
  34541. #define GPIO_PE3_CCP7 0x00040C05
  34542. #define GPIO_PE4_CCP3 0x00041001
  34543. #define GPIO_PE4_FAULT0 0x00041004
  34544. #define GPIO_PE4_U2TX 0x00041005
  34545. #define GPIO_PE4_CCP2 0x00041006
  34546. #define GPIO_PE4_RXD0 0x00041007
  34547. #define GPIO_PE4_I2S0TXWS 0x00041009
  34548. #define GPIO_PE5_CCP5 0x00041401
  34549. #define GPIO_PE5_I2S0TXSD 0x00041409
  34550. #define GPIO_PE6_PWM4 0x00041801
  34551. #define GPIO_PE6_C1O 0x00041802
  34552. #define GPIO_PE6_U1CTS 0x00041809
  34553. #define GPIO_PE7_PWM5 0x00041C01
  34554. #define GPIO_PE7_U1DCD 0x00041C09
  34555. #define GPIO_PF0_CAN1RX 0x00050001
  34556. #define GPIO_PF0_PHB0 0x00050002
  34557. #define GPIO_PF0_PWM0 0x00050003
  34558. #define GPIO_PF0_RXCK 0x00050004
  34559. #define GPIO_PF0_I2S0TXSD 0x00050008
  34560. #define GPIO_PF0_U1DSR 0x00050009
  34561. #define GPIO_PF1_CAN1TX 0x00050401
  34562. #define GPIO_PF1_IDX1 0x00050402
  34563. #define GPIO_PF1_PWM1 0x00050403
  34564. #define GPIO_PF1_RXER 0x00050404
  34565. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  34566. #define GPIO_PF1_U1RTS 0x00050409
  34567. #define GPIO_PF1_CCP3 0x0005040A
  34568. #define GPIO_PF2_PWM4 0x00050802
  34569. #define GPIO_PF2_PHYINT 0x00050803
  34570. #define GPIO_PF2_PWM2 0x00050804
  34571. #define GPIO_PF2_SSI1CLK 0x00050809
  34572. #define GPIO_PF3_PWM5 0x00050C02
  34573. #define GPIO_PF3_MDC 0x00050C03
  34574. #define GPIO_PF3_PWM3 0x00050C04
  34575. #define GPIO_PF3_SSI1FSS 0x00050C09
  34576. #define GPIO_PF4_CCP0 0x00051001
  34577. #define GPIO_PF4_C0O 0x00051002
  34578. #define GPIO_PF4_MDIO 0x00051003
  34579. #define GPIO_PF4_FAULT0 0x00051004
  34580. #define GPIO_PF4_SSI1RX 0x00051009
  34581. #define GPIO_PF5_CCP2 0x00051401
  34582. #define GPIO_PF5_C1O 0x00051402
  34583. #define GPIO_PF5_RXD3 0x00051403
  34584. #define GPIO_PF5_SSI1TX 0x00051409
  34585. #define GPIO_PF6_CCP1 0x00051801
  34586. #define GPIO_PF6_RXD2 0x00051803
  34587. #define GPIO_PF6_PHA0 0x00051804
  34588. #define GPIO_PF6_I2S0TXMCLK 0x00051809
  34589. #define GPIO_PF6_U1RTS 0x0005180A
  34590. #define GPIO_PF7_CCP4 0x00051C01
  34591. #define GPIO_PF7_RXD1 0x00051C03
  34592. #define GPIO_PF7_PHB0 0x00051C04
  34593. #define GPIO_PF7_FAULT1 0x00051C09
  34594. #define GPIO_PG0_U2RX 0x00060001
  34595. #define GPIO_PG0_PWM0 0x00060002
  34596. #define GPIO_PG0_I2C1SCL 0x00060003
  34597. #define GPIO_PG0_PWM4 0x00060004
  34598. #define GPIO_PG0_USB0EPEN 0x00060007
  34599. #define GPIO_PG1_U2TX 0x00060401
  34600. #define GPIO_PG1_PWM1 0x00060402
  34601. #define GPIO_PG1_I2C1SDA 0x00060403
  34602. #define GPIO_PG1_PWM5 0x00060404
  34603. #define GPIO_PG2_PWM0 0x00060801
  34604. #define GPIO_PG2_COL 0x00060803
  34605. #define GPIO_PG2_FAULT0 0x00060804
  34606. #define GPIO_PG2_IDX1 0x00060808
  34607. #define GPIO_PG2_I2S0RXSD 0x00060809
  34608. #define GPIO_PG3_PWM1 0x00060C01
  34609. #define GPIO_PG3_CRS 0x00060C03
  34610. #define GPIO_PG3_FAULT2 0x00060C04
  34611. #define GPIO_PG3_FAULT0 0x00060C08
  34612. #define GPIO_PG3_I2S0RXMCLK 0x00060C09
  34613. #define GPIO_PG4_CCP3 0x00061001
  34614. #define GPIO_PG4_RXD0 0x00061003
  34615. #define GPIO_PG4_FAULT1 0x00061004
  34616. #define GPIO_PG4_U1RI 0x0006100A
  34617. #define GPIO_PG5_CCP5 0x00061401
  34618. #define GPIO_PG5_TXEN 0x00061403
  34619. #define GPIO_PG5_IDX0 0x00061404
  34620. #define GPIO_PG5_FAULT1 0x00061405
  34621. #define GPIO_PG5_I2S0RXSCK 0x00061409
  34622. #define GPIO_PG5_U1DTR 0x0006140A
  34623. #define GPIO_PG6_PHA1 0x00061801
  34624. #define GPIO_PG6_TXCK 0x00061803
  34625. #define GPIO_PG6_FAULT1 0x00061808
  34626. #define GPIO_PG6_I2S0RXWS 0x00061809
  34627. #define GPIO_PG6_U1RI 0x0006180A
  34628. #define GPIO_PG7_PHB1 0x00061C01
  34629. #define GPIO_PG7_TXER 0x00061C03
  34630. #define GPIO_PG7_CCP5 0x00061C08
  34631. #define GPIO_PH0_CCP6 0x00070001
  34632. #define GPIO_PH0_PWM2 0x00070002
  34633. #define GPIO_PH0_PWM4 0x00070009
  34634. #define GPIO_PH1_CCP7 0x00070401
  34635. #define GPIO_PH1_PWM3 0x00070402
  34636. #define GPIO_PH1_PWM5 0x00070409
  34637. #define GPIO_PH2_IDX1 0x00070801
  34638. #define GPIO_PH2_C1O 0x00070802
  34639. #define GPIO_PH2_FAULT3 0x00070804
  34640. #define GPIO_PH2_TXD3 0x00070809
  34641. #define GPIO_PH3_PHB0 0x00070C01
  34642. #define GPIO_PH3_FAULT0 0x00070C02
  34643. #define GPIO_PH3_USB0EPEN 0x00070C04
  34644. #define GPIO_PH3_TXD2 0x00070C09
  34645. #define GPIO_PH4_USB0PFLT 0x00071004
  34646. #define GPIO_PH4_TXD1 0x00071009
  34647. #define GPIO_PH4_SSI1CLK 0x0007100B
  34648. #define GPIO_PH5_TXD0 0x00071409
  34649. #define GPIO_PH5_FAULT2 0x0007140A
  34650. #define GPIO_PH5_SSI1FSS 0x0007140B
  34651. #define GPIO_PH6_RXDV 0x00071809
  34652. #define GPIO_PH6_PWM4 0x0007180A
  34653. #define GPIO_PH6_SSI1RX 0x0007180B
  34654. #define GPIO_PH7_RXCK 0x00071C03
  34655. #define GPIO_PH7_PWM5 0x00071C0A
  34656. #define GPIO_PH7_SSI1TX 0x00071C0B
  34657. #define GPIO_PJ0_RXER 0x00080003
  34658. #define GPIO_PJ0_PWM0 0x0008000A
  34659. #define GPIO_PJ0_I2C1SCL 0x0008000B
  34660. #define GPIO_PJ1_USB0PFLT 0x00080409
  34661. #define GPIO_PJ1_PWM1 0x0008040A
  34662. #define GPIO_PJ1_I2C1SDA 0x0008040B
  34663. #define GPIO_PJ2_CCP0 0x00080809
  34664. #define GPIO_PJ2_FAULT0 0x0008080A
  34665. #define GPIO_PJ3_U1CTS 0x00080C09
  34666. #define GPIO_PJ3_CCP6 0x00080C0A
  34667. #define GPIO_PJ4_U1DCD 0x00081009
  34668. #define GPIO_PJ4_CCP4 0x0008100A
  34669. #define GPIO_PJ5_U1DSR 0x00081409
  34670. #define GPIO_PJ5_CCP2 0x0008140A
  34671. #define GPIO_PJ6_U1RTS 0x00081809
  34672. #define GPIO_PJ6_CCP1 0x0008180A
  34673. #define GPIO_PJ7_U1DTR 0x00081C09
  34674. #define GPIO_PJ7_CCP0 0x00081C0A
  34675. #endif // PART_LM3S9L71
  34676. //*****************************************************************************
  34677. //
  34678. // LM3S9L97 Port/Pin Mapping Definitions
  34679. //
  34680. //*****************************************************************************
  34681. #ifdef PART_LM3S9L97
  34682. #define GPIO_PA0_U0RX 0x00000001
  34683. #define GPIO_PA0_I2C1SCL 0x00000008
  34684. #define GPIO_PA0_U1RX 0x00000009
  34685. #define GPIO_PA1_U0TX 0x00000401
  34686. #define GPIO_PA1_I2C1SDA 0x00000408
  34687. #define GPIO_PA1_U1TX 0x00000409
  34688. #define GPIO_PA2_SSI0CLK 0x00000801
  34689. #define GPIO_PA2_PWM4 0x00000804
  34690. #define GPIO_PA2_I2S0RXSD 0x00000809
  34691. #define GPIO_PA3_SSI0FSS 0x00000C01
  34692. #define GPIO_PA3_PWM5 0x00000C04
  34693. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  34694. #define GPIO_PA4_SSI0RX 0x00001001
  34695. #define GPIO_PA4_CAN0RX 0x00001005
  34696. #define GPIO_PA4_I2S0TXSCK 0x00001009
  34697. #define GPIO_PA5_SSI0TX 0x00001401
  34698. #define GPIO_PA5_CAN0TX 0x00001405
  34699. #define GPIO_PA5_I2S0TXWS 0x00001409
  34700. #define GPIO_PA6_I2C1SCL 0x00001801
  34701. #define GPIO_PA6_CCP1 0x00001802
  34702. #define GPIO_PA6_PWM0 0x00001804
  34703. #define GPIO_PA6_PWM4 0x00001805
  34704. #define GPIO_PA6_CAN0RX 0x00001806
  34705. #define GPIO_PA6_USB0EPEN 0x00001808
  34706. #define GPIO_PA6_U1CTS 0x00001809
  34707. #define GPIO_PA7_I2C1SDA 0x00001C01
  34708. #define GPIO_PA7_CCP4 0x00001C02
  34709. #define GPIO_PA7_PWM1 0x00001C04
  34710. #define GPIO_PA7_PWM5 0x00001C05
  34711. #define GPIO_PA7_CAN0TX 0x00001C06
  34712. #define GPIO_PA7_CCP3 0x00001C07
  34713. #define GPIO_PA7_USB0PFLT 0x00001C08
  34714. #define GPIO_PA7_U1DCD 0x00001C09
  34715. #define GPIO_PB0_CCP0 0x00010001
  34716. #define GPIO_PB0_PWM2 0x00010002
  34717. #define GPIO_PB0_U1RX 0x00010005
  34718. #define GPIO_PB1_CCP2 0x00010401
  34719. #define GPIO_PB1_PWM3 0x00010402
  34720. #define GPIO_PB1_CCP1 0x00010404
  34721. #define GPIO_PB1_U1TX 0x00010405
  34722. #define GPIO_PB2_I2C0SCL 0x00010801
  34723. #define GPIO_PB2_IDX0 0x00010802
  34724. #define GPIO_PB2_CCP3 0x00010804
  34725. #define GPIO_PB2_CCP0 0x00010805
  34726. #define GPIO_PB2_USB0EPEN 0x00010808
  34727. #define GPIO_PB3_I2C0SDA 0x00010C01
  34728. #define GPIO_PB3_FAULT0 0x00010C02
  34729. #define GPIO_PB3_FAULT3 0x00010C04
  34730. #define GPIO_PB3_USB0PFLT 0x00010C08
  34731. #define GPIO_PB4_U2RX 0x00011004
  34732. #define GPIO_PB4_CAN0RX 0x00011005
  34733. #define GPIO_PB4_IDX0 0x00011006
  34734. #define GPIO_PB4_U1RX 0x00011007
  34735. #define GPIO_PB5_C0O 0x00011401
  34736. #define GPIO_PB5_CCP5 0x00011402
  34737. #define GPIO_PB5_CCP6 0x00011403
  34738. #define GPIO_PB5_CCP0 0x00011404
  34739. #define GPIO_PB5_CAN0TX 0x00011405
  34740. #define GPIO_PB5_CCP2 0x00011406
  34741. #define GPIO_PB5_U1TX 0x00011407
  34742. #define GPIO_PB6_CCP1 0x00011801
  34743. #define GPIO_PB6_CCP7 0x00011802
  34744. #define GPIO_PB6_C0O 0x00011803
  34745. #define GPIO_PB6_FAULT1 0x00011804
  34746. #define GPIO_PB6_IDX0 0x00011805
  34747. #define GPIO_PB6_CCP5 0x00011806
  34748. #define GPIO_PB6_I2S0TXSCK 0x00011809
  34749. #define GPIO_PB7_NMI 0x00011C04
  34750. #define GPIO_PC0_TCK 0x00020003
  34751. #define GPIO_PC0_SWCLK 0x00020003
  34752. #define GPIO_PC1_TMS 0x00020403
  34753. #define GPIO_PC1_SWDIO 0x00020403
  34754. #define GPIO_PC2_TDI 0x00020803
  34755. #define GPIO_PC3_SWO 0x00020C03
  34756. #define GPIO_PC3_TDO 0x00020C03
  34757. #define GPIO_PC4_CCP5 0x00021001
  34758. #define GPIO_PC4_PHA0 0x00021002
  34759. #define GPIO_PC4_CCP2 0x00021005
  34760. #define GPIO_PC4_CCP4 0x00021006
  34761. #define GPIO_PC4_CCP1 0x00021009
  34762. #define GPIO_PC5_CCP1 0x00021401
  34763. #define GPIO_PC5_C1O 0x00021402
  34764. #define GPIO_PC5_C0O 0x00021403
  34765. #define GPIO_PC5_FAULT2 0x00021404
  34766. #define GPIO_PC5_CCP3 0x00021405
  34767. #define GPIO_PC5_USB0EPEN 0x00021406
  34768. #define GPIO_PC6_CCP3 0x00021801
  34769. #define GPIO_PC6_PHB0 0x00021802
  34770. #define GPIO_PC6_U1RX 0x00021805
  34771. #define GPIO_PC6_CCP0 0x00021806
  34772. #define GPIO_PC6_USB0PFLT 0x00021807
  34773. #define GPIO_PC7_CCP4 0x00021C01
  34774. #define GPIO_PC7_PHB0 0x00021C02
  34775. #define GPIO_PC7_CCP0 0x00021C04
  34776. #define GPIO_PC7_U1TX 0x00021C05
  34777. #define GPIO_PC7_USB0PFLT 0x00021C06
  34778. #define GPIO_PC7_C1O 0x00021C07
  34779. #define GPIO_PD0_PWM0 0x00030001
  34780. #define GPIO_PD0_CAN0RX 0x00030002
  34781. #define GPIO_PD0_IDX0 0x00030003
  34782. #define GPIO_PD0_U2RX 0x00030004
  34783. #define GPIO_PD0_U1RX 0x00030005
  34784. #define GPIO_PD0_CCP6 0x00030006
  34785. #define GPIO_PD0_I2S0RXSCK 0x00030008
  34786. #define GPIO_PD0_U1CTS 0x00030009
  34787. #define GPIO_PD1_PWM1 0x00030401
  34788. #define GPIO_PD1_CAN0TX 0x00030402
  34789. #define GPIO_PD1_PHA0 0x00030403
  34790. #define GPIO_PD1_U2TX 0x00030404
  34791. #define GPIO_PD1_U1TX 0x00030405
  34792. #define GPIO_PD1_CCP7 0x00030406
  34793. #define GPIO_PD1_I2S0RXWS 0x00030408
  34794. #define GPIO_PD1_U1DCD 0x00030409
  34795. #define GPIO_PD1_CCP2 0x0003040A
  34796. #define GPIO_PD1_PHB1 0x0003040B
  34797. #define GPIO_PD2_U1RX 0x00030801
  34798. #define GPIO_PD2_CCP6 0x00030802
  34799. #define GPIO_PD2_PWM2 0x00030803
  34800. #define GPIO_PD2_CCP5 0x00030804
  34801. #define GPIO_PD3_U1TX 0x00030C01
  34802. #define GPIO_PD3_CCP7 0x00030C02
  34803. #define GPIO_PD3_PWM3 0x00030C03
  34804. #define GPIO_PD3_CCP0 0x00030C04
  34805. #define GPIO_PD4_CCP0 0x00031001
  34806. #define GPIO_PD4_CCP3 0x00031002
  34807. #define GPIO_PD4_I2S0RXSD 0x00031008
  34808. #define GPIO_PD4_U1RI 0x00031009
  34809. #define GPIO_PD5_CCP2 0x00031401
  34810. #define GPIO_PD5_CCP4 0x00031402
  34811. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  34812. #define GPIO_PD5_U2RX 0x00031409
  34813. #define GPIO_PD6_FAULT0 0x00031801
  34814. #define GPIO_PD6_I2S0TXSCK 0x00031808
  34815. #define GPIO_PD6_U2TX 0x00031809
  34816. #define GPIO_PD7_IDX0 0x00031C01
  34817. #define GPIO_PD7_C0O 0x00031C02
  34818. #define GPIO_PD7_CCP1 0x00031C03
  34819. #define GPIO_PD7_I2S0TXWS 0x00031C08
  34820. #define GPIO_PD7_U1DTR 0x00031C09
  34821. #define GPIO_PE0_PWM4 0x00040001
  34822. #define GPIO_PE0_SSI1CLK 0x00040002
  34823. #define GPIO_PE0_CCP3 0x00040003
  34824. #define GPIO_PE0_USB0PFLT 0x00040009
  34825. #define GPIO_PE1_PWM5 0x00040401
  34826. #define GPIO_PE1_SSI1FSS 0x00040402
  34827. #define GPIO_PE1_FAULT0 0x00040403
  34828. #define GPIO_PE1_CCP2 0x00040404
  34829. #define GPIO_PE1_CCP6 0x00040405
  34830. #define GPIO_PE2_CCP4 0x00040801
  34831. #define GPIO_PE2_SSI1RX 0x00040802
  34832. #define GPIO_PE2_PHB1 0x00040803
  34833. #define GPIO_PE2_PHA0 0x00040804
  34834. #define GPIO_PE2_CCP2 0x00040805
  34835. #define GPIO_PE3_CCP1 0x00040C01
  34836. #define GPIO_PE3_SSI1TX 0x00040C02
  34837. #define GPIO_PE3_PHA1 0x00040C03
  34838. #define GPIO_PE3_PHB0 0x00040C04
  34839. #define GPIO_PE3_CCP7 0x00040C05
  34840. #define GPIO_PE4_CCP3 0x00041001
  34841. #define GPIO_PE4_FAULT0 0x00041004
  34842. #define GPIO_PE4_U2TX 0x00041005
  34843. #define GPIO_PE4_CCP2 0x00041006
  34844. #define GPIO_PE4_I2S0TXWS 0x00041009
  34845. #define GPIO_PE5_CCP5 0x00041401
  34846. #define GPIO_PE5_I2S0TXSD 0x00041409
  34847. #define GPIO_PE6_PWM4 0x00041801
  34848. #define GPIO_PE6_C1O 0x00041802
  34849. #define GPIO_PE6_U1CTS 0x00041809
  34850. #define GPIO_PE7_PWM5 0x00041C01
  34851. #define GPIO_PE7_U1DCD 0x00041C09
  34852. #define GPIO_PF0_CAN1RX 0x00050001
  34853. #define GPIO_PF0_PHB0 0x00050002
  34854. #define GPIO_PF0_PWM0 0x00050003
  34855. #define GPIO_PF0_I2S0TXSD 0x00050008
  34856. #define GPIO_PF0_U1DSR 0x00050009
  34857. #define GPIO_PF1_CAN1TX 0x00050401
  34858. #define GPIO_PF1_IDX1 0x00050402
  34859. #define GPIO_PF1_PWM1 0x00050403
  34860. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  34861. #define GPIO_PF1_U1RTS 0x00050409
  34862. #define GPIO_PF1_CCP3 0x0005040A
  34863. #define GPIO_PF2_LED1 0x00050801
  34864. #define GPIO_PF2_PWM4 0x00050802
  34865. #define GPIO_PF2_PWM2 0x00050804
  34866. #define GPIO_PF2_SSI1CLK 0x00050809
  34867. #define GPIO_PF3_LED0 0x00050C01
  34868. #define GPIO_PF3_PWM5 0x00050C02
  34869. #define GPIO_PF3_PWM3 0x00050C04
  34870. #define GPIO_PF3_SSI1FSS 0x00050C09
  34871. #define GPIO_PF4_CCP0 0x00051001
  34872. #define GPIO_PF4_C0O 0x00051002
  34873. #define GPIO_PF4_FAULT0 0x00051004
  34874. #define GPIO_PF4_SSI1RX 0x00051009
  34875. #define GPIO_PF5_CCP2 0x00051401
  34876. #define GPIO_PF5_C1O 0x00051402
  34877. #define GPIO_PF5_SSI1TX 0x00051409
  34878. #define GPIO_PG0_U2RX 0x00060001
  34879. #define GPIO_PG0_PWM0 0x00060002
  34880. #define GPIO_PG0_I2C1SCL 0x00060003
  34881. #define GPIO_PG0_PWM4 0x00060004
  34882. #define GPIO_PG0_USB0EPEN 0x00060007
  34883. #define GPIO_PG1_U2TX 0x00060401
  34884. #define GPIO_PG1_PWM1 0x00060402
  34885. #define GPIO_PG1_I2C1SDA 0x00060403
  34886. #define GPIO_PG1_PWM5 0x00060404
  34887. #define GPIO_PG7_PHB1 0x00061C01
  34888. #define GPIO_PG7_CCP5 0x00061C08
  34889. #define GPIO_PH0_CCP6 0x00070001
  34890. #define GPIO_PH0_PWM2 0x00070002
  34891. #define GPIO_PH0_PWM4 0x00070009
  34892. #define GPIO_PH1_CCP7 0x00070401
  34893. #define GPIO_PH1_PWM3 0x00070402
  34894. #define GPIO_PH1_PWM5 0x00070409
  34895. #define GPIO_PH2_IDX1 0x00070801
  34896. #define GPIO_PH2_C1O 0x00070802
  34897. #define GPIO_PH2_FAULT3 0x00070804
  34898. #define GPIO_PH3_PHB0 0x00070C01
  34899. #define GPIO_PH3_FAULT0 0x00070C02
  34900. #define GPIO_PH3_USB0EPEN 0x00070C04
  34901. #define GPIO_PH4_USB0PFLT 0x00071004
  34902. #define GPIO_PH4_SSI1CLK 0x0007100B
  34903. #define GPIO_PH5_FAULT2 0x0007140A
  34904. #define GPIO_PH5_SSI1FSS 0x0007140B
  34905. #define GPIO_PH6_PWM4 0x0007180A
  34906. #define GPIO_PH6_SSI1RX 0x0007180B
  34907. #define GPIO_PH7_PWM5 0x00071C0A
  34908. #define GPIO_PH7_SSI1TX 0x00071C0B
  34909. #define GPIO_PJ0_PWM0 0x0008000A
  34910. #define GPIO_PJ0_I2C1SCL 0x0008000B
  34911. #define GPIO_PJ1_USB0PFLT 0x00080409
  34912. #define GPIO_PJ1_PWM1 0x0008040A
  34913. #define GPIO_PJ1_I2C1SDA 0x0008040B
  34914. #define GPIO_PJ2_CCP0 0x00080809
  34915. #define GPIO_PJ2_FAULT0 0x0008080A
  34916. #endif // PART_LM3S9L97
  34917. //*****************************************************************************
  34918. //
  34919. // LM3S9U81 Port/Pin Mapping Definitions
  34920. //
  34921. //*****************************************************************************
  34922. #ifdef PART_LM3S9U81
  34923. #define GPIO_PA0_U0RX 0x00000001
  34924. #define GPIO_PA0_I2C1SCL 0x00000008
  34925. #define GPIO_PA0_U1RX 0x00000009
  34926. #define GPIO_PA1_U0TX 0x00000401
  34927. #define GPIO_PA1_I2C1SDA 0x00000408
  34928. #define GPIO_PA1_U1TX 0x00000409
  34929. #define GPIO_PA2_SSI0CLK 0x00000801
  34930. #define GPIO_PA2_I2S0RXSD 0x00000809
  34931. #define GPIO_PA3_SSI0FSS 0x00000C01
  34932. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  34933. #define GPIO_PA4_SSI0RX 0x00001001
  34934. #define GPIO_PA4_CAN0RX 0x00001005
  34935. #define GPIO_PA4_I2S0TXSCK 0x00001009
  34936. #define GPIO_PA5_SSI0TX 0x00001401
  34937. #define GPIO_PA5_CAN0TX 0x00001405
  34938. #define GPIO_PA5_I2S0TXWS 0x00001409
  34939. #define GPIO_PA6_I2C1SCL 0x00001801
  34940. #define GPIO_PA6_CCP1 0x00001802
  34941. #define GPIO_PA6_CAN0RX 0x00001806
  34942. #define GPIO_PA6_USB0EPEN 0x00001808
  34943. #define GPIO_PA6_U1CTS 0x00001809
  34944. #define GPIO_PA7_I2C1SDA 0x00001C01
  34945. #define GPIO_PA7_CCP4 0x00001C02
  34946. #define GPIO_PA7_CAN0TX 0x00001C06
  34947. #define GPIO_PA7_CCP3 0x00001C07
  34948. #define GPIO_PA7_USB0PFLT 0x00001C08
  34949. #define GPIO_PA7_U1DCD 0x00001C09
  34950. #define GPIO_PB0_CCP0 0x00010001
  34951. #define GPIO_PB0_U1RX 0x00010005
  34952. #define GPIO_PB1_CCP2 0x00010401
  34953. #define GPIO_PB1_CCP1 0x00010404
  34954. #define GPIO_PB1_U1TX 0x00010405
  34955. #define GPIO_PB2_I2C0SCL 0x00010801
  34956. #define GPIO_PB2_CCP3 0x00010804
  34957. #define GPIO_PB2_CCP0 0x00010805
  34958. #define GPIO_PB2_USB0EPEN 0x00010808
  34959. #define GPIO_PB3_I2C0SDA 0x00010C01
  34960. #define GPIO_PB3_USB0PFLT 0x00010C08
  34961. #define GPIO_PB4_U2RX 0x00011004
  34962. #define GPIO_PB4_CAN0RX 0x00011005
  34963. #define GPIO_PB4_U1RX 0x00011007
  34964. #define GPIO_PB4_EPI0S23 0x00011008
  34965. #define GPIO_PB5_C0O 0x00011401
  34966. #define GPIO_PB5_CCP5 0x00011402
  34967. #define GPIO_PB5_CCP6 0x00011403
  34968. #define GPIO_PB5_CCP0 0x00011404
  34969. #define GPIO_PB5_CAN0TX 0x00011405
  34970. #define GPIO_PB5_CCP2 0x00011406
  34971. #define GPIO_PB5_U1TX 0x00011407
  34972. #define GPIO_PB5_EPI0S22 0x00011408
  34973. #define GPIO_PB6_CCP1 0x00011801
  34974. #define GPIO_PB6_CCP7 0x00011802
  34975. #define GPIO_PB6_C0O 0x00011803
  34976. #define GPIO_PB6_CCP5 0x00011806
  34977. #define GPIO_PB6_I2S0TXSCK 0x00011809
  34978. #define GPIO_PB7_NMI 0x00011C04
  34979. #define GPIO_PC0_TCK 0x00020003
  34980. #define GPIO_PC0_SWCLK 0x00020003
  34981. #define GPIO_PC1_TMS 0x00020403
  34982. #define GPIO_PC1_SWDIO 0x00020403
  34983. #define GPIO_PC2_TDI 0x00020803
  34984. #define GPIO_PC3_SWO 0x00020C03
  34985. #define GPIO_PC3_TDO 0x00020C03
  34986. #define GPIO_PC4_CCP5 0x00021001
  34987. #define GPIO_PC4_CCP2 0x00021005
  34988. #define GPIO_PC4_CCP4 0x00021006
  34989. #define GPIO_PC4_EPI0S2 0x00021008
  34990. #define GPIO_PC4_CCP1 0x00021009
  34991. #define GPIO_PC5_CCP1 0x00021401
  34992. #define GPIO_PC5_C1O 0x00021402
  34993. #define GPIO_PC5_C0O 0x00021403
  34994. #define GPIO_PC5_CCP3 0x00021405
  34995. #define GPIO_PC5_USB0EPEN 0x00021406
  34996. #define GPIO_PC5_EPI0S3 0x00021408
  34997. #define GPIO_PC6_CCP3 0x00021801
  34998. #define GPIO_PC6_C2O 0x00021803
  34999. #define GPIO_PC6_U1RX 0x00021805
  35000. #define GPIO_PC6_CCP0 0x00021806
  35001. #define GPIO_PC6_USB0PFLT 0x00021807
  35002. #define GPIO_PC6_EPI0S4 0x00021808
  35003. #define GPIO_PC7_CCP4 0x00021C01
  35004. #define GPIO_PC7_CCP0 0x00021C04
  35005. #define GPIO_PC7_U1TX 0x00021C05
  35006. #define GPIO_PC7_USB0PFLT 0x00021C06
  35007. #define GPIO_PC7_C1O 0x00021C07
  35008. #define GPIO_PC7_EPI0S5 0x00021C08
  35009. #define GPIO_PD0_CAN0RX 0x00030002
  35010. #define GPIO_PD0_U2RX 0x00030004
  35011. #define GPIO_PD0_U1RX 0x00030005
  35012. #define GPIO_PD0_CCP6 0x00030006
  35013. #define GPIO_PD0_I2S0RXSCK 0x00030008
  35014. #define GPIO_PD0_U1CTS 0x00030009
  35015. #define GPIO_PD1_CAN0TX 0x00030402
  35016. #define GPIO_PD1_U2TX 0x00030404
  35017. #define GPIO_PD1_U1TX 0x00030405
  35018. #define GPIO_PD1_CCP7 0x00030406
  35019. #define GPIO_PD1_I2S0RXWS 0x00030408
  35020. #define GPIO_PD1_U1DCD 0x00030409
  35021. #define GPIO_PD1_CCP2 0x0003040A
  35022. #define GPIO_PD2_U1RX 0x00030801
  35023. #define GPIO_PD2_CCP6 0x00030802
  35024. #define GPIO_PD2_CCP5 0x00030804
  35025. #define GPIO_PD2_EPI0S20 0x00030808
  35026. #define GPIO_PD3_U1TX 0x00030C01
  35027. #define GPIO_PD3_CCP7 0x00030C02
  35028. #define GPIO_PD3_CCP0 0x00030C04
  35029. #define GPIO_PD3_EPI0S21 0x00030C08
  35030. #define GPIO_PD4_CCP0 0x00031001
  35031. #define GPIO_PD4_CCP3 0x00031002
  35032. #define GPIO_PD4_I2S0RXSD 0x00031008
  35033. #define GPIO_PD4_U1RI 0x00031009
  35034. #define GPIO_PD4_EPI0S19 0x0003100A
  35035. #define GPIO_PD5_CCP2 0x00031401
  35036. #define GPIO_PD5_CCP4 0x00031402
  35037. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  35038. #define GPIO_PD5_U2RX 0x00031409
  35039. #define GPIO_PD5_EPI0S28 0x0003140A
  35040. #define GPIO_PD6_I2S0TXSCK 0x00031808
  35041. #define GPIO_PD6_U2TX 0x00031809
  35042. #define GPIO_PD6_EPI0S29 0x0003180A
  35043. #define GPIO_PD7_C0O 0x00031C02
  35044. #define GPIO_PD7_CCP1 0x00031C03
  35045. #define GPIO_PD7_I2S0TXWS 0x00031C08
  35046. #define GPIO_PD7_U1DTR 0x00031C09
  35047. #define GPIO_PD7_EPI0S30 0x00031C0A
  35048. #define GPIO_PE0_SSI1CLK 0x00040002
  35049. #define GPIO_PE0_CCP3 0x00040003
  35050. #define GPIO_PE0_EPI0S8 0x00040008
  35051. #define GPIO_PE0_USB0PFLT 0x00040009
  35052. #define GPIO_PE1_SSI1FSS 0x00040402
  35053. #define GPIO_PE1_CCP2 0x00040404
  35054. #define GPIO_PE1_CCP6 0x00040405
  35055. #define GPIO_PE1_EPI0S9 0x00040408
  35056. #define GPIO_PE2_CCP4 0x00040801
  35057. #define GPIO_PE2_SSI1RX 0x00040802
  35058. #define GPIO_PE2_CCP2 0x00040805
  35059. #define GPIO_PE2_EPI0S24 0x00040808
  35060. #define GPIO_PE3_CCP1 0x00040C01
  35061. #define GPIO_PE3_SSI1TX 0x00040C02
  35062. #define GPIO_PE3_CCP7 0x00040C05
  35063. #define GPIO_PE3_EPI0S25 0x00040C08
  35064. #define GPIO_PE4_CCP3 0x00041001
  35065. #define GPIO_PE4_CAN2RX 0x00041002
  35066. #define GPIO_PE4_U2TX 0x00041005
  35067. #define GPIO_PE4_CCP2 0x00041006
  35068. #define GPIO_PE4_I2S0TXWS 0x00041009
  35069. #define GPIO_PE5_CCP5 0x00041401
  35070. #define GPIO_PE5_CAN2TX 0x00041402
  35071. #define GPIO_PE5_I2S0TXSD 0x00041409
  35072. #define GPIO_PE6_C1O 0x00041802
  35073. #define GPIO_PE6_U1CTS 0x00041809
  35074. #define GPIO_PE7_C2O 0x00041C02
  35075. #define GPIO_PE7_U1DCD 0x00041C09
  35076. #define GPIO_PF0_CAN1RX 0x00050001
  35077. #define GPIO_PF0_I2S0TXSD 0x00050008
  35078. #define GPIO_PF0_U1DSR 0x00050009
  35079. #define GPIO_PF1_CAN1TX 0x00050401
  35080. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  35081. #define GPIO_PF1_U1RTS 0x00050409
  35082. #define GPIO_PF1_CCP3 0x0005040A
  35083. #define GPIO_PF2_LED1 0x00050801
  35084. #define GPIO_PF2_SSI1CLK 0x00050809
  35085. #define GPIO_PF3_LED0 0x00050C01
  35086. #define GPIO_PF3_SSI1FSS 0x00050C09
  35087. #define GPIO_PF4_CCP0 0x00051001
  35088. #define GPIO_PF4_C0O 0x00051002
  35089. #define GPIO_PF4_EPI0S12 0x00051008
  35090. #define GPIO_PF4_SSI1RX 0x00051009
  35091. #define GPIO_PF5_CCP2 0x00051401
  35092. #define GPIO_PF5_C1O 0x00051402
  35093. #define GPIO_PF5_EPI0S15 0x00051408
  35094. #define GPIO_PF5_SSI1TX 0x00051409
  35095. #define GPIO_PG0_U2RX 0x00060001
  35096. #define GPIO_PG0_I2C1SCL 0x00060003
  35097. #define GPIO_PG0_USB0EPEN 0x00060007
  35098. #define GPIO_PG0_EPI0S13 0x00060008
  35099. #define GPIO_PG1_U2TX 0x00060401
  35100. #define GPIO_PG1_I2C1SDA 0x00060403
  35101. #define GPIO_PG1_EPI0S14 0x00060408
  35102. #define GPIO_PG7_CCP5 0x00061C08
  35103. #define GPIO_PG7_EPI0S31 0x00061C09
  35104. #define GPIO_PH0_CCP6 0x00070001
  35105. #define GPIO_PH0_EPI0S6 0x00070008
  35106. #define GPIO_PH1_CCP7 0x00070401
  35107. #define GPIO_PH1_EPI0S7 0x00070408
  35108. #define GPIO_PH2_C1O 0x00070802
  35109. #define GPIO_PH2_EPI0S1 0x00070808
  35110. #define GPIO_PH3_USB0EPEN 0x00070C04
  35111. #define GPIO_PH3_EPI0S0 0x00070C08
  35112. #define GPIO_PH4_USB0PFLT 0x00071004
  35113. #define GPIO_PH4_EPI0S10 0x00071008
  35114. #define GPIO_PH4_SSI1CLK 0x0007100B
  35115. #define GPIO_PH5_EPI0S11 0x00071408
  35116. #define GPIO_PH5_SSI1FSS 0x0007140B
  35117. #define GPIO_PH6_EPI0S26 0x00071808
  35118. #define GPIO_PH6_SSI1RX 0x0007180B
  35119. #define GPIO_PH7_EPI0S27 0x00071C08
  35120. #define GPIO_PH7_SSI1TX 0x00071C0B
  35121. #define GPIO_PJ0_EPI0S16 0x00080008
  35122. #define GPIO_PJ0_I2C1SCL 0x0008000B
  35123. #define GPIO_PJ1_EPI0S17 0x00080408
  35124. #define GPIO_PJ1_USB0PFLT 0x00080409
  35125. #define GPIO_PJ1_I2C1SDA 0x0008040B
  35126. #define GPIO_PJ2_EPI0S18 0x00080808
  35127. #define GPIO_PJ2_CCP0 0x00080809
  35128. #define GPIO_PJ3_EPI0S19 0x00080C08
  35129. #define GPIO_PJ3_U1CTS 0x00080C09
  35130. #define GPIO_PJ3_CCP6 0x00080C0A
  35131. #define GPIO_PJ4_EPI0S28 0x00081008
  35132. #define GPIO_PJ4_U1DCD 0x00081009
  35133. #define GPIO_PJ4_CCP4 0x0008100A
  35134. #define GPIO_PJ5_EPI0S29 0x00081408
  35135. #define GPIO_PJ5_U1DSR 0x00081409
  35136. #define GPIO_PJ5_CCP2 0x0008140A
  35137. #define GPIO_PJ6_EPI0S30 0x00081808
  35138. #define GPIO_PJ6_U1RTS 0x00081809
  35139. #define GPIO_PJ6_CCP1 0x0008180A
  35140. #define GPIO_PJ7_U1DTR 0x00081C09
  35141. #define GPIO_PJ7_CCP0 0x00081C0A
  35142. #endif // PART_LM3S9U81
  35143. //*****************************************************************************
  35144. //
  35145. // LM3S9U90 Port/Pin Mapping Definitions
  35146. //
  35147. //*****************************************************************************
  35148. #ifdef PART_LM3S9U90
  35149. #define GPIO_PA0_U0RX 0x00000001
  35150. #define GPIO_PA0_I2C1SCL 0x00000008
  35151. #define GPIO_PA0_U1RX 0x00000009
  35152. #define GPIO_PA1_U0TX 0x00000401
  35153. #define GPIO_PA1_I2C1SDA 0x00000408
  35154. #define GPIO_PA1_U1TX 0x00000409
  35155. #define GPIO_PA2_SSI0CLK 0x00000801
  35156. #define GPIO_PA2_I2S0RXSD 0x00000809
  35157. #define GPIO_PA3_SSI0FSS 0x00000C01
  35158. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  35159. #define GPIO_PA4_SSI0RX 0x00001001
  35160. #define GPIO_PA4_CAN0RX 0x00001005
  35161. #define GPIO_PA4_I2S0TXSCK 0x00001009
  35162. #define GPIO_PA5_SSI0TX 0x00001401
  35163. #define GPIO_PA5_CAN0TX 0x00001405
  35164. #define GPIO_PA5_I2S0TXWS 0x00001409
  35165. #define GPIO_PA6_I2C1SCL 0x00001801
  35166. #define GPIO_PA6_CCP1 0x00001802
  35167. #define GPIO_PA6_CAN0RX 0x00001806
  35168. #define GPIO_PA6_USB0EPEN 0x00001808
  35169. #define GPIO_PA6_U1CTS 0x00001809
  35170. #define GPIO_PA7_I2C1SDA 0x00001C01
  35171. #define GPIO_PA7_CCP4 0x00001C02
  35172. #define GPIO_PA7_CAN0TX 0x00001C06
  35173. #define GPIO_PA7_CCP3 0x00001C07
  35174. #define GPIO_PA7_USB0PFLT 0x00001C08
  35175. #define GPIO_PA7_U1DCD 0x00001C09
  35176. #define GPIO_PB0_CCP0 0x00010001
  35177. #define GPIO_PB0_U1RX 0x00010005
  35178. #define GPIO_PB1_CCP2 0x00010401
  35179. #define GPIO_PB1_CCP1 0x00010404
  35180. #define GPIO_PB1_U1TX 0x00010405
  35181. #define GPIO_PB2_I2C0SCL 0x00010801
  35182. #define GPIO_PB2_CCP3 0x00010804
  35183. #define GPIO_PB2_CCP0 0x00010805
  35184. #define GPIO_PB2_USB0EPEN 0x00010808
  35185. #define GPIO_PB3_I2C0SDA 0x00010C01
  35186. #define GPIO_PB3_USB0PFLT 0x00010C08
  35187. #define GPIO_PB4_U2RX 0x00011004
  35188. #define GPIO_PB4_CAN0RX 0x00011005
  35189. #define GPIO_PB4_U1RX 0x00011007
  35190. #define GPIO_PB4_EPI0S23 0x00011008
  35191. #define GPIO_PB5_C0O 0x00011401
  35192. #define GPIO_PB5_CCP5 0x00011402
  35193. #define GPIO_PB5_CCP6 0x00011403
  35194. #define GPIO_PB5_CCP0 0x00011404
  35195. #define GPIO_PB5_CAN0TX 0x00011405
  35196. #define GPIO_PB5_CCP2 0x00011406
  35197. #define GPIO_PB5_U1TX 0x00011407
  35198. #define GPIO_PB5_EPI0S22 0x00011408
  35199. #define GPIO_PB6_CCP1 0x00011801
  35200. #define GPIO_PB6_CCP7 0x00011802
  35201. #define GPIO_PB6_C0O 0x00011803
  35202. #define GPIO_PB6_CCP5 0x00011806
  35203. #define GPIO_PB6_I2S0TXSCK 0x00011809
  35204. #define GPIO_PB7_NMI 0x00011C04
  35205. #define GPIO_PC0_TCK 0x00020003
  35206. #define GPIO_PC0_SWCLK 0x00020003
  35207. #define GPIO_PC1_TMS 0x00020403
  35208. #define GPIO_PC1_SWDIO 0x00020403
  35209. #define GPIO_PC2_TDI 0x00020803
  35210. #define GPIO_PC3_SWO 0x00020C03
  35211. #define GPIO_PC3_TDO 0x00020C03
  35212. #define GPIO_PC4_CCP5 0x00021001
  35213. #define GPIO_PC4_CCP2 0x00021005
  35214. #define GPIO_PC4_CCP4 0x00021006
  35215. #define GPIO_PC4_EPI0S2 0x00021008
  35216. #define GPIO_PC4_CCP1 0x00021009
  35217. #define GPIO_PC5_CCP1 0x00021401
  35218. #define GPIO_PC5_C1O 0x00021402
  35219. #define GPIO_PC5_C0O 0x00021403
  35220. #define GPIO_PC5_CCP3 0x00021405
  35221. #define GPIO_PC5_USB0EPEN 0x00021406
  35222. #define GPIO_PC5_EPI0S3 0x00021408
  35223. #define GPIO_PC6_CCP3 0x00021801
  35224. #define GPIO_PC6_C2O 0x00021803
  35225. #define GPIO_PC6_U1RX 0x00021805
  35226. #define GPIO_PC6_CCP0 0x00021806
  35227. #define GPIO_PC6_USB0PFLT 0x00021807
  35228. #define GPIO_PC6_EPI0S4 0x00021808
  35229. #define GPIO_PC7_CCP4 0x00021C01
  35230. #define GPIO_PC7_CCP0 0x00021C04
  35231. #define GPIO_PC7_U1TX 0x00021C05
  35232. #define GPIO_PC7_USB0PFLT 0x00021C06
  35233. #define GPIO_PC7_C1O 0x00021C07
  35234. #define GPIO_PC7_EPI0S5 0x00021C08
  35235. #define GPIO_PD0_CAN0RX 0x00030002
  35236. #define GPIO_PD0_U2RX 0x00030004
  35237. #define GPIO_PD0_U1RX 0x00030005
  35238. #define GPIO_PD0_CCP6 0x00030006
  35239. #define GPIO_PD0_I2S0RXSCK 0x00030008
  35240. #define GPIO_PD0_U1CTS 0x00030009
  35241. #define GPIO_PD1_CAN0TX 0x00030402
  35242. #define GPIO_PD1_U2TX 0x00030404
  35243. #define GPIO_PD1_U1TX 0x00030405
  35244. #define GPIO_PD1_CCP7 0x00030406
  35245. #define GPIO_PD1_I2S0RXWS 0x00030408
  35246. #define GPIO_PD1_U1DCD 0x00030409
  35247. #define GPIO_PD1_CCP2 0x0003040A
  35248. #define GPIO_PD2_U1RX 0x00030801
  35249. #define GPIO_PD2_CCP6 0x00030802
  35250. #define GPIO_PD2_CCP5 0x00030804
  35251. #define GPIO_PD2_EPI0S20 0x00030808
  35252. #define GPIO_PD3_U1TX 0x00030C01
  35253. #define GPIO_PD3_CCP7 0x00030C02
  35254. #define GPIO_PD3_CCP0 0x00030C04
  35255. #define GPIO_PD3_EPI0S21 0x00030C08
  35256. #define GPIO_PD4_CCP0 0x00031001
  35257. #define GPIO_PD4_CCP3 0x00031002
  35258. #define GPIO_PD4_I2S0RXSD 0x00031008
  35259. #define GPIO_PD4_U1RI 0x00031009
  35260. #define GPIO_PD4_EPI0S19 0x0003100A
  35261. #define GPIO_PD5_CCP2 0x00031401
  35262. #define GPIO_PD5_CCP4 0x00031402
  35263. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  35264. #define GPIO_PD5_U2RX 0x00031409
  35265. #define GPIO_PD5_EPI0S28 0x0003140A
  35266. #define GPIO_PD6_I2S0TXSCK 0x00031808
  35267. #define GPIO_PD6_U2TX 0x00031809
  35268. #define GPIO_PD6_EPI0S29 0x0003180A
  35269. #define GPIO_PD7_C0O 0x00031C02
  35270. #define GPIO_PD7_CCP1 0x00031C03
  35271. #define GPIO_PD7_I2S0TXWS 0x00031C08
  35272. #define GPIO_PD7_U1DTR 0x00031C09
  35273. #define GPIO_PD7_EPI0S30 0x00031C0A
  35274. #define GPIO_PE0_SSI1CLK 0x00040002
  35275. #define GPIO_PE0_CCP3 0x00040003
  35276. #define GPIO_PE0_EPI0S8 0x00040008
  35277. #define GPIO_PE0_USB0PFLT 0x00040009
  35278. #define GPIO_PE1_SSI1FSS 0x00040402
  35279. #define GPIO_PE1_CCP2 0x00040404
  35280. #define GPIO_PE1_CCP6 0x00040405
  35281. #define GPIO_PE1_EPI0S9 0x00040408
  35282. #define GPIO_PE2_CCP4 0x00040801
  35283. #define GPIO_PE2_SSI1RX 0x00040802
  35284. #define GPIO_PE2_CCP2 0x00040805
  35285. #define GPIO_PE2_EPI0S24 0x00040808
  35286. #define GPIO_PE3_CCP1 0x00040C01
  35287. #define GPIO_PE3_SSI1TX 0x00040C02
  35288. #define GPIO_PE3_CCP7 0x00040C05
  35289. #define GPIO_PE3_EPI0S25 0x00040C08
  35290. #define GPIO_PE4_CCP3 0x00041001
  35291. #define GPIO_PE4_U2TX 0x00041005
  35292. #define GPIO_PE4_CCP2 0x00041006
  35293. #define GPIO_PE4_I2S0TXWS 0x00041009
  35294. #define GPIO_PE5_CCP5 0x00041401
  35295. #define GPIO_PE5_I2S0TXSD 0x00041409
  35296. #define GPIO_PE6_C1O 0x00041802
  35297. #define GPIO_PE6_U1CTS 0x00041809
  35298. #define GPIO_PE7_C2O 0x00041C02
  35299. #define GPIO_PE7_U1DCD 0x00041C09
  35300. #define GPIO_PF0_CAN1RX 0x00050001
  35301. #define GPIO_PF0_I2S0TXSD 0x00050008
  35302. #define GPIO_PF0_U1DSR 0x00050009
  35303. #define GPIO_PF1_CAN1TX 0x00050401
  35304. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  35305. #define GPIO_PF1_U1RTS 0x00050409
  35306. #define GPIO_PF1_CCP3 0x0005040A
  35307. #define GPIO_PF2_LED1 0x00050801
  35308. #define GPIO_PF2_SSI1CLK 0x00050809
  35309. #define GPIO_PF3_LED0 0x00050C01
  35310. #define GPIO_PF3_SSI1FSS 0x00050C09
  35311. #define GPIO_PF4_CCP0 0x00051001
  35312. #define GPIO_PF4_C0O 0x00051002
  35313. #define GPIO_PF4_EPI0S12 0x00051008
  35314. #define GPIO_PF4_SSI1RX 0x00051009
  35315. #define GPIO_PF5_CCP2 0x00051401
  35316. #define GPIO_PF5_C1O 0x00051402
  35317. #define GPIO_PF5_EPI0S15 0x00051408
  35318. #define GPIO_PF5_SSI1TX 0x00051409
  35319. #define GPIO_PG0_U2RX 0x00060001
  35320. #define GPIO_PG0_I2C1SCL 0x00060003
  35321. #define GPIO_PG0_USB0EPEN 0x00060007
  35322. #define GPIO_PG0_EPI0S13 0x00060008
  35323. #define GPIO_PG1_U2TX 0x00060401
  35324. #define GPIO_PG1_I2C1SDA 0x00060403
  35325. #define GPIO_PG1_EPI0S14 0x00060408
  35326. #define GPIO_PG7_CCP5 0x00061C08
  35327. #define GPIO_PG7_EPI0S31 0x00061C09
  35328. #define GPIO_PH0_CCP6 0x00070001
  35329. #define GPIO_PH0_EPI0S6 0x00070008
  35330. #define GPIO_PH1_CCP7 0x00070401
  35331. #define GPIO_PH1_EPI0S7 0x00070408
  35332. #define GPIO_PH2_C1O 0x00070802
  35333. #define GPIO_PH2_EPI0S1 0x00070808
  35334. #define GPIO_PH3_USB0EPEN 0x00070C04
  35335. #define GPIO_PH3_EPI0S0 0x00070C08
  35336. #define GPIO_PH4_USB0PFLT 0x00071004
  35337. #define GPIO_PH4_EPI0S10 0x00071008
  35338. #define GPIO_PH4_SSI1CLK 0x0007100B
  35339. #define GPIO_PH5_EPI0S11 0x00071408
  35340. #define GPIO_PH5_SSI1FSS 0x0007140B
  35341. #define GPIO_PH6_EPI0S26 0x00071808
  35342. #define GPIO_PH6_SSI1RX 0x0007180B
  35343. #define GPIO_PH7_EPI0S27 0x00071C08
  35344. #define GPIO_PH7_SSI1TX 0x00071C0B
  35345. #define GPIO_PJ0_EPI0S16 0x00080008
  35346. #define GPIO_PJ0_I2C1SCL 0x0008000B
  35347. #define GPIO_PJ1_EPI0S17 0x00080408
  35348. #define GPIO_PJ1_USB0PFLT 0x00080409
  35349. #define GPIO_PJ1_I2C1SDA 0x0008040B
  35350. #define GPIO_PJ2_EPI0S18 0x00080808
  35351. #define GPIO_PJ2_CCP0 0x00080809
  35352. #endif // PART_LM3S9U90
  35353. //*****************************************************************************
  35354. //
  35355. // LM3S9U92 Port/Pin Mapping Definitions
  35356. //
  35357. //*****************************************************************************
  35358. #ifdef PART_LM3S9U92
  35359. #define GPIO_PA0_U0RX 0x00000001
  35360. #define GPIO_PA0_I2C1SCL 0x00000008
  35361. #define GPIO_PA0_U1RX 0x00000009
  35362. #define GPIO_PA1_U0TX 0x00000401
  35363. #define GPIO_PA1_I2C1SDA 0x00000408
  35364. #define GPIO_PA1_U1TX 0x00000409
  35365. #define GPIO_PA2_SSI0CLK 0x00000801
  35366. #define GPIO_PA2_PWM4 0x00000804
  35367. #define GPIO_PA2_I2S0RXSD 0x00000809
  35368. #define GPIO_PA3_SSI0FSS 0x00000C01
  35369. #define GPIO_PA3_PWM5 0x00000C04
  35370. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  35371. #define GPIO_PA4_SSI0RX 0x00001001
  35372. #define GPIO_PA4_PWM6 0x00001004
  35373. #define GPIO_PA4_CAN0RX 0x00001005
  35374. #define GPIO_PA4_I2S0TXSCK 0x00001009
  35375. #define GPIO_PA5_SSI0TX 0x00001401
  35376. #define GPIO_PA5_PWM7 0x00001404
  35377. #define GPIO_PA5_CAN0TX 0x00001405
  35378. #define GPIO_PA5_I2S0TXWS 0x00001409
  35379. #define GPIO_PA6_I2C1SCL 0x00001801
  35380. #define GPIO_PA6_CCP1 0x00001802
  35381. #define GPIO_PA6_PWM0 0x00001804
  35382. #define GPIO_PA6_PWM4 0x00001805
  35383. #define GPIO_PA6_CAN0RX 0x00001806
  35384. #define GPIO_PA6_USB0EPEN 0x00001808
  35385. #define GPIO_PA6_U1CTS 0x00001809
  35386. #define GPIO_PA7_I2C1SDA 0x00001C01
  35387. #define GPIO_PA7_CCP4 0x00001C02
  35388. #define GPIO_PA7_PWM1 0x00001C04
  35389. #define GPIO_PA7_PWM5 0x00001C05
  35390. #define GPIO_PA7_CAN0TX 0x00001C06
  35391. #define GPIO_PA7_CCP3 0x00001C07
  35392. #define GPIO_PA7_USB0PFLT 0x00001C08
  35393. #define GPIO_PA7_U1DCD 0x00001C09
  35394. #define GPIO_PB0_CCP0 0x00010001
  35395. #define GPIO_PB0_PWM2 0x00010002
  35396. #define GPIO_PB0_U1RX 0x00010005
  35397. #define GPIO_PB1_CCP2 0x00010401
  35398. #define GPIO_PB1_PWM3 0x00010402
  35399. #define GPIO_PB1_CCP1 0x00010404
  35400. #define GPIO_PB1_U1TX 0x00010405
  35401. #define GPIO_PB2_I2C0SCL 0x00010801
  35402. #define GPIO_PB2_IDX0 0x00010802
  35403. #define GPIO_PB2_CCP3 0x00010804
  35404. #define GPIO_PB2_CCP0 0x00010805
  35405. #define GPIO_PB2_USB0EPEN 0x00010808
  35406. #define GPIO_PB3_I2C0SDA 0x00010C01
  35407. #define GPIO_PB3_FAULT0 0x00010C02
  35408. #define GPIO_PB3_FAULT3 0x00010C04
  35409. #define GPIO_PB3_USB0PFLT 0x00010C08
  35410. #define GPIO_PB4_U2RX 0x00011004
  35411. #define GPIO_PB4_CAN0RX 0x00011005
  35412. #define GPIO_PB4_IDX0 0x00011006
  35413. #define GPIO_PB4_U1RX 0x00011007
  35414. #define GPIO_PB4_EPI0S23 0x00011008
  35415. #define GPIO_PB5_C0O 0x00011401
  35416. #define GPIO_PB5_CCP5 0x00011402
  35417. #define GPIO_PB5_CCP6 0x00011403
  35418. #define GPIO_PB5_CCP0 0x00011404
  35419. #define GPIO_PB5_CAN0TX 0x00011405
  35420. #define GPIO_PB5_CCP2 0x00011406
  35421. #define GPIO_PB5_U1TX 0x00011407
  35422. #define GPIO_PB5_EPI0S22 0x00011408
  35423. #define GPIO_PB6_CCP1 0x00011801
  35424. #define GPIO_PB6_CCP7 0x00011802
  35425. #define GPIO_PB6_C0O 0x00011803
  35426. #define GPIO_PB6_FAULT1 0x00011804
  35427. #define GPIO_PB6_IDX0 0x00011805
  35428. #define GPIO_PB6_CCP5 0x00011806
  35429. #define GPIO_PB6_I2S0TXSCK 0x00011809
  35430. #define GPIO_PB7_NMI 0x00011C04
  35431. #define GPIO_PC0_TCK 0x00020003
  35432. #define GPIO_PC0_SWCLK 0x00020003
  35433. #define GPIO_PC1_TMS 0x00020403
  35434. #define GPIO_PC1_SWDIO 0x00020403
  35435. #define GPIO_PC2_TDI 0x00020803
  35436. #define GPIO_PC3_SWO 0x00020C03
  35437. #define GPIO_PC3_TDO 0x00020C03
  35438. #define GPIO_PC4_CCP5 0x00021001
  35439. #define GPIO_PC4_PHA0 0x00021002
  35440. #define GPIO_PC4_PWM6 0x00021004
  35441. #define GPIO_PC4_CCP2 0x00021005
  35442. #define GPIO_PC4_CCP4 0x00021006
  35443. #define GPIO_PC4_EPI0S2 0x00021008
  35444. #define GPIO_PC4_CCP1 0x00021009
  35445. #define GPIO_PC5_CCP1 0x00021401
  35446. #define GPIO_PC5_C1O 0x00021402
  35447. #define GPIO_PC5_C0O 0x00021403
  35448. #define GPIO_PC5_FAULT2 0x00021404
  35449. #define GPIO_PC5_CCP3 0x00021405
  35450. #define GPIO_PC5_USB0EPEN 0x00021406
  35451. #define GPIO_PC5_EPI0S3 0x00021408
  35452. #define GPIO_PC6_CCP3 0x00021801
  35453. #define GPIO_PC6_PHB0 0x00021802
  35454. #define GPIO_PC6_C2O 0x00021803
  35455. #define GPIO_PC6_PWM7 0x00021804
  35456. #define GPIO_PC6_U1RX 0x00021805
  35457. #define GPIO_PC6_CCP0 0x00021806
  35458. #define GPIO_PC6_USB0PFLT 0x00021807
  35459. #define GPIO_PC6_EPI0S4 0x00021808
  35460. #define GPIO_PC7_CCP4 0x00021C01
  35461. #define GPIO_PC7_PHB0 0x00021C02
  35462. #define GPIO_PC7_CCP0 0x00021C04
  35463. #define GPIO_PC7_U1TX 0x00021C05
  35464. #define GPIO_PC7_USB0PFLT 0x00021C06
  35465. #define GPIO_PC7_C1O 0x00021C07
  35466. #define GPIO_PC7_EPI0S5 0x00021C08
  35467. #define GPIO_PD0_PWM0 0x00030001
  35468. #define GPIO_PD0_CAN0RX 0x00030002
  35469. #define GPIO_PD0_IDX0 0x00030003
  35470. #define GPIO_PD0_U2RX 0x00030004
  35471. #define GPIO_PD0_U1RX 0x00030005
  35472. #define GPIO_PD0_CCP6 0x00030006
  35473. #define GPIO_PD0_I2S0RXSCK 0x00030008
  35474. #define GPIO_PD0_U1CTS 0x00030009
  35475. #define GPIO_PD1_PWM1 0x00030401
  35476. #define GPIO_PD1_CAN0TX 0x00030402
  35477. #define GPIO_PD1_PHA0 0x00030403
  35478. #define GPIO_PD1_U2TX 0x00030404
  35479. #define GPIO_PD1_U1TX 0x00030405
  35480. #define GPIO_PD1_CCP7 0x00030406
  35481. #define GPIO_PD1_I2S0RXWS 0x00030408
  35482. #define GPIO_PD1_U1DCD 0x00030409
  35483. #define GPIO_PD1_CCP2 0x0003040A
  35484. #define GPIO_PD1_PHB1 0x0003040B
  35485. #define GPIO_PD2_U1RX 0x00030801
  35486. #define GPIO_PD2_CCP6 0x00030802
  35487. #define GPIO_PD2_PWM2 0x00030803
  35488. #define GPIO_PD2_CCP5 0x00030804
  35489. #define GPIO_PD2_EPI0S20 0x00030808
  35490. #define GPIO_PD3_U1TX 0x00030C01
  35491. #define GPIO_PD3_CCP7 0x00030C02
  35492. #define GPIO_PD3_PWM3 0x00030C03
  35493. #define GPIO_PD3_CCP0 0x00030C04
  35494. #define GPIO_PD3_EPI0S21 0x00030C08
  35495. #define GPIO_PD4_CCP0 0x00031001
  35496. #define GPIO_PD4_CCP3 0x00031002
  35497. #define GPIO_PD4_I2S0RXSD 0x00031008
  35498. #define GPIO_PD4_U1RI 0x00031009
  35499. #define GPIO_PD4_EPI0S19 0x0003100A
  35500. #define GPIO_PD5_CCP2 0x00031401
  35501. #define GPIO_PD5_CCP4 0x00031402
  35502. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  35503. #define GPIO_PD5_U2RX 0x00031409
  35504. #define GPIO_PD5_EPI0S28 0x0003140A
  35505. #define GPIO_PD6_FAULT0 0x00031801
  35506. #define GPIO_PD6_I2S0TXSCK 0x00031808
  35507. #define GPIO_PD6_U2TX 0x00031809
  35508. #define GPIO_PD6_EPI0S29 0x0003180A
  35509. #define GPIO_PD7_IDX0 0x00031C01
  35510. #define GPIO_PD7_C0O 0x00031C02
  35511. #define GPIO_PD7_CCP1 0x00031C03
  35512. #define GPIO_PD7_I2S0TXWS 0x00031C08
  35513. #define GPIO_PD7_U1DTR 0x00031C09
  35514. #define GPIO_PD7_EPI0S30 0x00031C0A
  35515. #define GPIO_PE0_PWM4 0x00040001
  35516. #define GPIO_PE0_SSI1CLK 0x00040002
  35517. #define GPIO_PE0_CCP3 0x00040003
  35518. #define GPIO_PE0_EPI0S8 0x00040008
  35519. #define GPIO_PE0_USB0PFLT 0x00040009
  35520. #define GPIO_PE1_PWM5 0x00040401
  35521. #define GPIO_PE1_SSI1FSS 0x00040402
  35522. #define GPIO_PE1_FAULT0 0x00040403
  35523. #define GPIO_PE1_CCP2 0x00040404
  35524. #define GPIO_PE1_CCP6 0x00040405
  35525. #define GPIO_PE1_EPI0S9 0x00040408
  35526. #define GPIO_PE2_CCP4 0x00040801
  35527. #define GPIO_PE2_SSI1RX 0x00040802
  35528. #define GPIO_PE2_PHB1 0x00040803
  35529. #define GPIO_PE2_PHA0 0x00040804
  35530. #define GPIO_PE2_CCP2 0x00040805
  35531. #define GPIO_PE2_EPI0S24 0x00040808
  35532. #define GPIO_PE3_CCP1 0x00040C01
  35533. #define GPIO_PE3_SSI1TX 0x00040C02
  35534. #define GPIO_PE3_PHA1 0x00040C03
  35535. #define GPIO_PE3_PHB0 0x00040C04
  35536. #define GPIO_PE3_CCP7 0x00040C05
  35537. #define GPIO_PE3_EPI0S25 0x00040C08
  35538. #define GPIO_PE4_CCP3 0x00041001
  35539. #define GPIO_PE4_FAULT0 0x00041004
  35540. #define GPIO_PE4_U2TX 0x00041005
  35541. #define GPIO_PE4_CCP2 0x00041006
  35542. #define GPIO_PE4_I2S0TXWS 0x00041009
  35543. #define GPIO_PE5_CCP5 0x00041401
  35544. #define GPIO_PE5_I2S0TXSD 0x00041409
  35545. #define GPIO_PE6_PWM4 0x00041801
  35546. #define GPIO_PE6_C1O 0x00041802
  35547. #define GPIO_PE6_U1CTS 0x00041809
  35548. #define GPIO_PE7_PWM5 0x00041C01
  35549. #define GPIO_PE7_C2O 0x00041C02
  35550. #define GPIO_PE7_U1DCD 0x00041C09
  35551. #define GPIO_PF0_CAN1RX 0x00050001
  35552. #define GPIO_PF0_PHB0 0x00050002
  35553. #define GPIO_PF0_PWM0 0x00050003
  35554. #define GPIO_PF0_I2S0TXSD 0x00050008
  35555. #define GPIO_PF0_U1DSR 0x00050009
  35556. #define GPIO_PF1_CAN1TX 0x00050401
  35557. #define GPIO_PF1_IDX1 0x00050402
  35558. #define GPIO_PF1_PWM1 0x00050403
  35559. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  35560. #define GPIO_PF1_U1RTS 0x00050409
  35561. #define GPIO_PF1_CCP3 0x0005040A
  35562. #define GPIO_PF2_LED1 0x00050801
  35563. #define GPIO_PF2_PWM4 0x00050802
  35564. #define GPIO_PF2_PWM2 0x00050804
  35565. #define GPIO_PF2_SSI1CLK 0x00050809
  35566. #define GPIO_PF3_LED0 0x00050C01
  35567. #define GPIO_PF3_PWM5 0x00050C02
  35568. #define GPIO_PF3_PWM3 0x00050C04
  35569. #define GPIO_PF3_SSI1FSS 0x00050C09
  35570. #define GPIO_PF4_CCP0 0x00051001
  35571. #define GPIO_PF4_C0O 0x00051002
  35572. #define GPIO_PF4_FAULT0 0x00051004
  35573. #define GPIO_PF4_EPI0S12 0x00051008
  35574. #define GPIO_PF4_SSI1RX 0x00051009
  35575. #define GPIO_PF5_CCP2 0x00051401
  35576. #define GPIO_PF5_C1O 0x00051402
  35577. #define GPIO_PF5_EPI0S15 0x00051408
  35578. #define GPIO_PF5_SSI1TX 0x00051409
  35579. #define GPIO_PG0_U2RX 0x00060001
  35580. #define GPIO_PG0_PWM0 0x00060002
  35581. #define GPIO_PG0_I2C1SCL 0x00060003
  35582. #define GPIO_PG0_PWM4 0x00060004
  35583. #define GPIO_PG0_USB0EPEN 0x00060007
  35584. #define GPIO_PG0_EPI0S13 0x00060008
  35585. #define GPIO_PG1_U2TX 0x00060401
  35586. #define GPIO_PG1_PWM1 0x00060402
  35587. #define GPIO_PG1_I2C1SDA 0x00060403
  35588. #define GPIO_PG1_PWM5 0x00060404
  35589. #define GPIO_PG1_EPI0S14 0x00060408
  35590. #define GPIO_PG7_PHB1 0x00061C01
  35591. #define GPIO_PG7_PWM7 0x00061C04
  35592. #define GPIO_PG7_CCP5 0x00061C08
  35593. #define GPIO_PG7_EPI0S31 0x00061C09
  35594. #define GPIO_PH0_CCP6 0x00070001
  35595. #define GPIO_PH0_PWM2 0x00070002
  35596. #define GPIO_PH0_EPI0S6 0x00070008
  35597. #define GPIO_PH0_PWM4 0x00070009
  35598. #define GPIO_PH1_CCP7 0x00070401
  35599. #define GPIO_PH1_PWM3 0x00070402
  35600. #define GPIO_PH1_EPI0S7 0x00070408
  35601. #define GPIO_PH1_PWM5 0x00070409
  35602. #define GPIO_PH2_IDX1 0x00070801
  35603. #define GPIO_PH2_C1O 0x00070802
  35604. #define GPIO_PH2_FAULT3 0x00070804
  35605. #define GPIO_PH2_EPI0S1 0x00070808
  35606. #define GPIO_PH3_PHB0 0x00070C01
  35607. #define GPIO_PH3_FAULT0 0x00070C02
  35608. #define GPIO_PH3_USB0EPEN 0x00070C04
  35609. #define GPIO_PH3_EPI0S0 0x00070C08
  35610. #define GPIO_PH4_USB0PFLT 0x00071004
  35611. #define GPIO_PH4_EPI0S10 0x00071008
  35612. #define GPIO_PH4_SSI1CLK 0x0007100B
  35613. #define GPIO_PH5_EPI0S11 0x00071408
  35614. #define GPIO_PH5_FAULT2 0x0007140A
  35615. #define GPIO_PH5_SSI1FSS 0x0007140B
  35616. #define GPIO_PH6_EPI0S26 0x00071808
  35617. #define GPIO_PH6_PWM4 0x0007180A
  35618. #define GPIO_PH6_SSI1RX 0x0007180B
  35619. #define GPIO_PH7_EPI0S27 0x00071C08
  35620. #define GPIO_PH7_PWM5 0x00071C0A
  35621. #define GPIO_PH7_SSI1TX 0x00071C0B
  35622. #define GPIO_PJ0_EPI0S16 0x00080008
  35623. #define GPIO_PJ0_PWM0 0x0008000A
  35624. #define GPIO_PJ0_I2C1SCL 0x0008000B
  35625. #define GPIO_PJ1_EPI0S17 0x00080408
  35626. #define GPIO_PJ1_USB0PFLT 0x00080409
  35627. #define GPIO_PJ1_PWM1 0x0008040A
  35628. #define GPIO_PJ1_I2C1SDA 0x0008040B
  35629. #define GPIO_PJ2_EPI0S18 0x00080808
  35630. #define GPIO_PJ2_CCP0 0x00080809
  35631. #define GPIO_PJ2_FAULT0 0x0008080A
  35632. #define GPIO_PJ3_EPI0S19 0x00080C08
  35633. #define GPIO_PJ3_U1CTS 0x00080C09
  35634. #define GPIO_PJ3_CCP6 0x00080C0A
  35635. #define GPIO_PJ4_EPI0S28 0x00081008
  35636. #define GPIO_PJ4_U1DCD 0x00081009
  35637. #define GPIO_PJ4_CCP4 0x0008100A
  35638. #define GPIO_PJ5_EPI0S29 0x00081408
  35639. #define GPIO_PJ5_U1DSR 0x00081409
  35640. #define GPIO_PJ5_CCP2 0x0008140A
  35641. #define GPIO_PJ6_EPI0S30 0x00081808
  35642. #define GPIO_PJ6_U1RTS 0x00081809
  35643. #define GPIO_PJ6_CCP1 0x0008180A
  35644. #define GPIO_PJ7_U1DTR 0x00081C09
  35645. #define GPIO_PJ7_CCP0 0x00081C0A
  35646. #endif // PART_LM3S9U92
  35647. //*****************************************************************************
  35648. //
  35649. // LM3S9U95 Port/Pin Mapping Definitions
  35650. //
  35651. //*****************************************************************************
  35652. #ifdef PART_LM3S9U95
  35653. #define GPIO_PA0_U0RX 0x00000001
  35654. #define GPIO_PA0_I2C1SCL 0x00000008
  35655. #define GPIO_PA0_U1RX 0x00000009
  35656. #define GPIO_PA1_U0TX 0x00000401
  35657. #define GPIO_PA1_I2C1SDA 0x00000408
  35658. #define GPIO_PA1_U1TX 0x00000409
  35659. #define GPIO_PA2_SSI0CLK 0x00000801
  35660. #define GPIO_PA2_PWM4 0x00000804
  35661. #define GPIO_PA2_I2S0RXSD 0x00000809
  35662. #define GPIO_PA3_SSI0FSS 0x00000C01
  35663. #define GPIO_PA3_PWM5 0x00000C04
  35664. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  35665. #define GPIO_PA4_SSI0RX 0x00001001
  35666. #define GPIO_PA4_PWM6 0x00001004
  35667. #define GPIO_PA4_CAN0RX 0x00001005
  35668. #define GPIO_PA4_I2S0TXSCK 0x00001009
  35669. #define GPIO_PA5_SSI0TX 0x00001401
  35670. #define GPIO_PA5_PWM7 0x00001404
  35671. #define GPIO_PA5_CAN0TX 0x00001405
  35672. #define GPIO_PA5_I2S0TXWS 0x00001409
  35673. #define GPIO_PA6_I2C1SCL 0x00001801
  35674. #define GPIO_PA6_CCP1 0x00001802
  35675. #define GPIO_PA6_PWM0 0x00001804
  35676. #define GPIO_PA6_PWM4 0x00001805
  35677. #define GPIO_PA6_CAN0RX 0x00001806
  35678. #define GPIO_PA6_USB0EPEN 0x00001808
  35679. #define GPIO_PA6_U1CTS 0x00001809
  35680. #define GPIO_PA7_I2C1SDA 0x00001C01
  35681. #define GPIO_PA7_CCP4 0x00001C02
  35682. #define GPIO_PA7_PWM1 0x00001C04
  35683. #define GPIO_PA7_PWM5 0x00001C05
  35684. #define GPIO_PA7_CAN0TX 0x00001C06
  35685. #define GPIO_PA7_CCP3 0x00001C07
  35686. #define GPIO_PA7_USB0PFLT 0x00001C08
  35687. #define GPIO_PA7_U1DCD 0x00001C09
  35688. #define GPIO_PB0_CCP0 0x00010001
  35689. #define GPIO_PB0_PWM2 0x00010002
  35690. #define GPIO_PB0_U1RX 0x00010005
  35691. #define GPIO_PB1_CCP2 0x00010401
  35692. #define GPIO_PB1_PWM3 0x00010402
  35693. #define GPIO_PB1_CCP1 0x00010404
  35694. #define GPIO_PB1_U1TX 0x00010405
  35695. #define GPIO_PB2_I2C0SCL 0x00010801
  35696. #define GPIO_PB2_IDX0 0x00010802
  35697. #define GPIO_PB2_CCP3 0x00010804
  35698. #define GPIO_PB2_CCP0 0x00010805
  35699. #define GPIO_PB2_USB0EPEN 0x00010808
  35700. #define GPIO_PB3_I2C0SDA 0x00010C01
  35701. #define GPIO_PB3_FAULT0 0x00010C02
  35702. #define GPIO_PB3_FAULT3 0x00010C04
  35703. #define GPIO_PB3_USB0PFLT 0x00010C08
  35704. #define GPIO_PB4_U2RX 0x00011004
  35705. #define GPIO_PB4_CAN0RX 0x00011005
  35706. #define GPIO_PB4_IDX0 0x00011006
  35707. #define GPIO_PB4_U1RX 0x00011007
  35708. #define GPIO_PB4_EPI0S23 0x00011008
  35709. #define GPIO_PB5_C0O 0x00011401
  35710. #define GPIO_PB5_CCP5 0x00011402
  35711. #define GPIO_PB5_CCP6 0x00011403
  35712. #define GPIO_PB5_CCP0 0x00011404
  35713. #define GPIO_PB5_CAN0TX 0x00011405
  35714. #define GPIO_PB5_CCP2 0x00011406
  35715. #define GPIO_PB5_U1TX 0x00011407
  35716. #define GPIO_PB5_EPI0S22 0x00011408
  35717. #define GPIO_PB6_CCP1 0x00011801
  35718. #define GPIO_PB6_CCP7 0x00011802
  35719. #define GPIO_PB6_C0O 0x00011803
  35720. #define GPIO_PB6_FAULT1 0x00011804
  35721. #define GPIO_PB6_IDX0 0x00011805
  35722. #define GPIO_PB6_CCP5 0x00011806
  35723. #define GPIO_PB6_I2S0TXSCK 0x00011809
  35724. #define GPIO_PB7_NMI 0x00011C04
  35725. #define GPIO_PC0_TCK 0x00020003
  35726. #define GPIO_PC0_SWCLK 0x00020003
  35727. #define GPIO_PC1_TMS 0x00020403
  35728. #define GPIO_PC1_SWDIO 0x00020403
  35729. #define GPIO_PC2_TDI 0x00020803
  35730. #define GPIO_PC3_SWO 0x00020C03
  35731. #define GPIO_PC3_TDO 0x00020C03
  35732. #define GPIO_PC4_CCP5 0x00021001
  35733. #define GPIO_PC4_PHA0 0x00021002
  35734. #define GPIO_PC4_PWM6 0x00021004
  35735. #define GPIO_PC4_CCP2 0x00021005
  35736. #define GPIO_PC4_CCP4 0x00021006
  35737. #define GPIO_PC4_EPI0S2 0x00021008
  35738. #define GPIO_PC4_CCP1 0x00021009
  35739. #define GPIO_PC5_CCP1 0x00021401
  35740. #define GPIO_PC5_C1O 0x00021402
  35741. #define GPIO_PC5_C0O 0x00021403
  35742. #define GPIO_PC5_FAULT2 0x00021404
  35743. #define GPIO_PC5_CCP3 0x00021405
  35744. #define GPIO_PC5_USB0EPEN 0x00021406
  35745. #define GPIO_PC5_EPI0S3 0x00021408
  35746. #define GPIO_PC6_CCP3 0x00021801
  35747. #define GPIO_PC6_PHB0 0x00021802
  35748. #define GPIO_PC6_C2O 0x00021803
  35749. #define GPIO_PC6_PWM7 0x00021804
  35750. #define GPIO_PC6_U1RX 0x00021805
  35751. #define GPIO_PC6_CCP0 0x00021806
  35752. #define GPIO_PC6_USB0PFLT 0x00021807
  35753. #define GPIO_PC6_EPI0S4 0x00021808
  35754. #define GPIO_PC7_CCP4 0x00021C01
  35755. #define GPIO_PC7_PHB0 0x00021C02
  35756. #define GPIO_PC7_CCP0 0x00021C04
  35757. #define GPIO_PC7_U1TX 0x00021C05
  35758. #define GPIO_PC7_USB0PFLT 0x00021C06
  35759. #define GPIO_PC7_C1O 0x00021C07
  35760. #define GPIO_PC7_EPI0S5 0x00021C08
  35761. #define GPIO_PD0_PWM0 0x00030001
  35762. #define GPIO_PD0_CAN0RX 0x00030002
  35763. #define GPIO_PD0_IDX0 0x00030003
  35764. #define GPIO_PD0_U2RX 0x00030004
  35765. #define GPIO_PD0_U1RX 0x00030005
  35766. #define GPIO_PD0_CCP6 0x00030006
  35767. #define GPIO_PD0_I2S0RXSCK 0x00030008
  35768. #define GPIO_PD0_U1CTS 0x00030009
  35769. #define GPIO_PD1_PWM1 0x00030401
  35770. #define GPIO_PD1_CAN0TX 0x00030402
  35771. #define GPIO_PD1_PHA0 0x00030403
  35772. #define GPIO_PD1_U2TX 0x00030404
  35773. #define GPIO_PD1_U1TX 0x00030405
  35774. #define GPIO_PD1_CCP7 0x00030406
  35775. #define GPIO_PD1_I2S0RXWS 0x00030408
  35776. #define GPIO_PD1_U1DCD 0x00030409
  35777. #define GPIO_PD1_CCP2 0x0003040A
  35778. #define GPIO_PD1_PHB1 0x0003040B
  35779. #define GPIO_PD2_U1RX 0x00030801
  35780. #define GPIO_PD2_CCP6 0x00030802
  35781. #define GPIO_PD2_PWM2 0x00030803
  35782. #define GPIO_PD2_CCP5 0x00030804
  35783. #define GPIO_PD2_EPI0S20 0x00030808
  35784. #define GPIO_PD3_U1TX 0x00030C01
  35785. #define GPIO_PD3_CCP7 0x00030C02
  35786. #define GPIO_PD3_PWM3 0x00030C03
  35787. #define GPIO_PD3_CCP0 0x00030C04
  35788. #define GPIO_PD3_EPI0S21 0x00030C08
  35789. #define GPIO_PD4_CCP0 0x00031001
  35790. #define GPIO_PD4_CCP3 0x00031002
  35791. #define GPIO_PD4_I2S0RXSD 0x00031008
  35792. #define GPIO_PD4_U1RI 0x00031009
  35793. #define GPIO_PD4_EPI0S19 0x0003100A
  35794. #define GPIO_PD5_CCP2 0x00031401
  35795. #define GPIO_PD5_CCP4 0x00031402
  35796. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  35797. #define GPIO_PD5_U2RX 0x00031409
  35798. #define GPIO_PD5_EPI0S28 0x0003140A
  35799. #define GPIO_PD6_FAULT0 0x00031801
  35800. #define GPIO_PD6_I2S0TXSCK 0x00031808
  35801. #define GPIO_PD6_U2TX 0x00031809
  35802. #define GPIO_PD6_EPI0S29 0x0003180A
  35803. #define GPIO_PD7_IDX0 0x00031C01
  35804. #define GPIO_PD7_C0O 0x00031C02
  35805. #define GPIO_PD7_CCP1 0x00031C03
  35806. #define GPIO_PD7_I2S0TXWS 0x00031C08
  35807. #define GPIO_PD7_U1DTR 0x00031C09
  35808. #define GPIO_PD7_EPI0S30 0x00031C0A
  35809. #define GPIO_PE0_PWM4 0x00040001
  35810. #define GPIO_PE0_SSI1CLK 0x00040002
  35811. #define GPIO_PE0_CCP3 0x00040003
  35812. #define GPIO_PE0_EPI0S8 0x00040008
  35813. #define GPIO_PE0_USB0PFLT 0x00040009
  35814. #define GPIO_PE1_PWM5 0x00040401
  35815. #define GPIO_PE1_SSI1FSS 0x00040402
  35816. #define GPIO_PE1_FAULT0 0x00040403
  35817. #define GPIO_PE1_CCP2 0x00040404
  35818. #define GPIO_PE1_CCP6 0x00040405
  35819. #define GPIO_PE1_EPI0S9 0x00040408
  35820. #define GPIO_PE2_CCP4 0x00040801
  35821. #define GPIO_PE2_SSI1RX 0x00040802
  35822. #define GPIO_PE2_PHB1 0x00040803
  35823. #define GPIO_PE2_PHA0 0x00040804
  35824. #define GPIO_PE2_CCP2 0x00040805
  35825. #define GPIO_PE2_EPI0S24 0x00040808
  35826. #define GPIO_PE3_CCP1 0x00040C01
  35827. #define GPIO_PE3_SSI1TX 0x00040C02
  35828. #define GPIO_PE3_PHA1 0x00040C03
  35829. #define GPIO_PE3_PHB0 0x00040C04
  35830. #define GPIO_PE3_CCP7 0x00040C05
  35831. #define GPIO_PE3_EPI0S25 0x00040C08
  35832. #define GPIO_PE4_CCP3 0x00041001
  35833. #define GPIO_PE4_FAULT0 0x00041004
  35834. #define GPIO_PE4_U2TX 0x00041005
  35835. #define GPIO_PE4_CCP2 0x00041006
  35836. #define GPIO_PE4_I2S0TXWS 0x00041009
  35837. #define GPIO_PE5_CCP5 0x00041401
  35838. #define GPIO_PE5_I2S0TXSD 0x00041409
  35839. #define GPIO_PE6_PWM4 0x00041801
  35840. #define GPIO_PE6_C1O 0x00041802
  35841. #define GPIO_PE6_U1CTS 0x00041809
  35842. #define GPIO_PE7_PWM5 0x00041C01
  35843. #define GPIO_PE7_C2O 0x00041C02
  35844. #define GPIO_PE7_U1DCD 0x00041C09
  35845. #define GPIO_PF0_CAN1RX 0x00050001
  35846. #define GPIO_PF0_PHB0 0x00050002
  35847. #define GPIO_PF0_PWM0 0x00050003
  35848. #define GPIO_PF0_I2S0TXSD 0x00050008
  35849. #define GPIO_PF0_U1DSR 0x00050009
  35850. #define GPIO_PF1_CAN1TX 0x00050401
  35851. #define GPIO_PF1_IDX1 0x00050402
  35852. #define GPIO_PF1_PWM1 0x00050403
  35853. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  35854. #define GPIO_PF1_U1RTS 0x00050409
  35855. #define GPIO_PF1_CCP3 0x0005040A
  35856. #define GPIO_PF2_LED1 0x00050801
  35857. #define GPIO_PF2_PWM4 0x00050802
  35858. #define GPIO_PF2_PWM2 0x00050804
  35859. #define GPIO_PF2_SSI1CLK 0x00050809
  35860. #define GPIO_PF3_LED0 0x00050C01
  35861. #define GPIO_PF3_PWM5 0x00050C02
  35862. #define GPIO_PF3_PWM3 0x00050C04
  35863. #define GPIO_PF3_SSI1FSS 0x00050C09
  35864. #define GPIO_PF4_CCP0 0x00051001
  35865. #define GPIO_PF4_C0O 0x00051002
  35866. #define GPIO_PF4_FAULT0 0x00051004
  35867. #define GPIO_PF4_EPI0S12 0x00051008
  35868. #define GPIO_PF4_SSI1RX 0x00051009
  35869. #define GPIO_PF5_CCP2 0x00051401
  35870. #define GPIO_PF5_C1O 0x00051402
  35871. #define GPIO_PF5_EPI0S15 0x00051408
  35872. #define GPIO_PF5_SSI1TX 0x00051409
  35873. #define GPIO_PG0_U2RX 0x00060001
  35874. #define GPIO_PG0_PWM0 0x00060002
  35875. #define GPIO_PG0_I2C1SCL 0x00060003
  35876. #define GPIO_PG0_PWM4 0x00060004
  35877. #define GPIO_PG0_USB0EPEN 0x00060007
  35878. #define GPIO_PG0_EPI0S13 0x00060008
  35879. #define GPIO_PG1_U2TX 0x00060401
  35880. #define GPIO_PG1_PWM1 0x00060402
  35881. #define GPIO_PG1_I2C1SDA 0x00060403
  35882. #define GPIO_PG1_PWM5 0x00060404
  35883. #define GPIO_PG1_EPI0S14 0x00060408
  35884. #define GPIO_PG7_PHB1 0x00061C01
  35885. #define GPIO_PG7_PWM7 0x00061C04
  35886. #define GPIO_PG7_CCP5 0x00061C08
  35887. #define GPIO_PG7_EPI0S31 0x00061C09
  35888. #define GPIO_PH0_CCP6 0x00070001
  35889. #define GPIO_PH0_PWM2 0x00070002
  35890. #define GPIO_PH0_EPI0S6 0x00070008
  35891. #define GPIO_PH0_PWM4 0x00070009
  35892. #define GPIO_PH1_CCP7 0x00070401
  35893. #define GPIO_PH1_PWM3 0x00070402
  35894. #define GPIO_PH1_EPI0S7 0x00070408
  35895. #define GPIO_PH1_PWM5 0x00070409
  35896. #define GPIO_PH2_IDX1 0x00070801
  35897. #define GPIO_PH2_C1O 0x00070802
  35898. #define GPIO_PH2_FAULT3 0x00070804
  35899. #define GPIO_PH2_EPI0S1 0x00070808
  35900. #define GPIO_PH3_PHB0 0x00070C01
  35901. #define GPIO_PH3_FAULT0 0x00070C02
  35902. #define GPIO_PH3_USB0EPEN 0x00070C04
  35903. #define GPIO_PH3_EPI0S0 0x00070C08
  35904. #define GPIO_PH4_USB0PFLT 0x00071004
  35905. #define GPIO_PH4_EPI0S10 0x00071008
  35906. #define GPIO_PH4_SSI1CLK 0x0007100B
  35907. #define GPIO_PH5_EPI0S11 0x00071408
  35908. #define GPIO_PH5_FAULT2 0x0007140A
  35909. #define GPIO_PH5_SSI1FSS 0x0007140B
  35910. #define GPIO_PH6_EPI0S26 0x00071808
  35911. #define GPIO_PH6_PWM4 0x0007180A
  35912. #define GPIO_PH6_SSI1RX 0x0007180B
  35913. #define GPIO_PH7_EPI0S27 0x00071C08
  35914. #define GPIO_PH7_PWM5 0x00071C0A
  35915. #define GPIO_PH7_SSI1TX 0x00071C0B
  35916. #define GPIO_PJ0_EPI0S16 0x00080008
  35917. #define GPIO_PJ0_PWM0 0x0008000A
  35918. #define GPIO_PJ0_I2C1SCL 0x0008000B
  35919. #define GPIO_PJ1_EPI0S17 0x00080408
  35920. #define GPIO_PJ1_USB0PFLT 0x00080409
  35921. #define GPIO_PJ1_PWM1 0x0008040A
  35922. #define GPIO_PJ1_I2C1SDA 0x0008040B
  35923. #define GPIO_PJ2_EPI0S18 0x00080808
  35924. #define GPIO_PJ2_CCP0 0x00080809
  35925. #define GPIO_PJ2_FAULT0 0x0008080A
  35926. #define GPIO_PJ3_EPI0S19 0x00080C08
  35927. #define GPIO_PJ3_U1CTS 0x00080C09
  35928. #define GPIO_PJ3_CCP6 0x00080C0A
  35929. #define GPIO_PJ4_EPI0S28 0x00081008
  35930. #define GPIO_PJ4_U1DCD 0x00081009
  35931. #define GPIO_PJ4_CCP4 0x0008100A
  35932. #define GPIO_PJ5_EPI0S29 0x00081408
  35933. #define GPIO_PJ5_U1DSR 0x00081409
  35934. #define GPIO_PJ5_CCP2 0x0008140A
  35935. #define GPIO_PJ6_EPI0S30 0x00081808
  35936. #define GPIO_PJ6_U1RTS 0x00081809
  35937. #define GPIO_PJ6_CCP1 0x0008180A
  35938. #define GPIO_PJ7_U1DTR 0x00081C09
  35939. #define GPIO_PJ7_CCP0 0x00081C0A
  35940. #endif // PART_LM3S9U95
  35941. //*****************************************************************************
  35942. //
  35943. // LM3S9U96 Port/Pin Mapping Definitions
  35944. //
  35945. //*****************************************************************************
  35946. #ifdef PART_LM3S9U96
  35947. #define GPIO_PA0_U0RX 0x00000001
  35948. #define GPIO_PA0_I2C1SCL 0x00000008
  35949. #define GPIO_PA0_U1RX 0x00000009
  35950. #define GPIO_PA1_U0TX 0x00000401
  35951. #define GPIO_PA1_I2C1SDA 0x00000408
  35952. #define GPIO_PA1_U1TX 0x00000409
  35953. #define GPIO_PA2_SSI0CLK 0x00000801
  35954. #define GPIO_PA2_PWM4 0x00000804
  35955. #define GPIO_PA2_I2S0RXSD 0x00000809
  35956. #define GPIO_PA3_SSI0FSS 0x00000C01
  35957. #define GPIO_PA3_PWM5 0x00000C04
  35958. #define GPIO_PA3_I2S0RXMCLK 0x00000C09
  35959. #define GPIO_PA4_SSI0RX 0x00001001
  35960. #define GPIO_PA4_PWM6 0x00001004
  35961. #define GPIO_PA4_CAN0RX 0x00001005
  35962. #define GPIO_PA4_I2S0TXSCK 0x00001009
  35963. #define GPIO_PA5_SSI0TX 0x00001401
  35964. #define GPIO_PA5_PWM7 0x00001404
  35965. #define GPIO_PA5_CAN0TX 0x00001405
  35966. #define GPIO_PA5_I2S0TXWS 0x00001409
  35967. #define GPIO_PA6_I2C1SCL 0x00001801
  35968. #define GPIO_PA6_CCP1 0x00001802
  35969. #define GPIO_PA6_PWM0 0x00001804
  35970. #define GPIO_PA6_PWM4 0x00001805
  35971. #define GPIO_PA6_CAN0RX 0x00001806
  35972. #define GPIO_PA6_USB0EPEN 0x00001808
  35973. #define GPIO_PA6_U1CTS 0x00001809
  35974. #define GPIO_PA7_I2C1SDA 0x00001C01
  35975. #define GPIO_PA7_CCP4 0x00001C02
  35976. #define GPIO_PA7_PWM1 0x00001C04
  35977. #define GPIO_PA7_PWM5 0x00001C05
  35978. #define GPIO_PA7_CAN0TX 0x00001C06
  35979. #define GPIO_PA7_CCP3 0x00001C07
  35980. #define GPIO_PA7_USB0PFLT 0x00001C08
  35981. #define GPIO_PA7_U1DCD 0x00001C09
  35982. #define GPIO_PB0_CCP0 0x00010001
  35983. #define GPIO_PB0_PWM2 0x00010002
  35984. #define GPIO_PB0_U1RX 0x00010005
  35985. #define GPIO_PB1_CCP2 0x00010401
  35986. #define GPIO_PB1_PWM3 0x00010402
  35987. #define GPIO_PB1_CCP1 0x00010404
  35988. #define GPIO_PB1_U1TX 0x00010405
  35989. #define GPIO_PB2_I2C0SCL 0x00010801
  35990. #define GPIO_PB2_IDX0 0x00010802
  35991. #define GPIO_PB2_CCP3 0x00010804
  35992. #define GPIO_PB2_CCP0 0x00010805
  35993. #define GPIO_PB2_USB0EPEN 0x00010808
  35994. #define GPIO_PB3_I2C0SDA 0x00010C01
  35995. #define GPIO_PB3_FAULT0 0x00010C02
  35996. #define GPIO_PB3_FAULT3 0x00010C04
  35997. #define GPIO_PB3_USB0PFLT 0x00010C08
  35998. #define GPIO_PB4_U2RX 0x00011004
  35999. #define GPIO_PB4_CAN0RX 0x00011005
  36000. #define GPIO_PB4_IDX0 0x00011006
  36001. #define GPIO_PB4_U1RX 0x00011007
  36002. #define GPIO_PB4_EPI0S23 0x00011008
  36003. #define GPIO_PB5_C0O 0x00011401
  36004. #define GPIO_PB5_CCP5 0x00011402
  36005. #define GPIO_PB5_CCP6 0x00011403
  36006. #define GPIO_PB5_CCP0 0x00011404
  36007. #define GPIO_PB5_CAN0TX 0x00011405
  36008. #define GPIO_PB5_CCP2 0x00011406
  36009. #define GPIO_PB5_U1TX 0x00011407
  36010. #define GPIO_PB5_EPI0S22 0x00011408
  36011. #define GPIO_PB6_CCP1 0x00011801
  36012. #define GPIO_PB6_CCP7 0x00011802
  36013. #define GPIO_PB6_C0O 0x00011803
  36014. #define GPIO_PB6_FAULT1 0x00011804
  36015. #define GPIO_PB6_IDX0 0x00011805
  36016. #define GPIO_PB6_CCP5 0x00011806
  36017. #define GPIO_PB6_I2S0TXSCK 0x00011809
  36018. #define GPIO_PB7_NMI 0x00011C04
  36019. #define GPIO_PC0_TCK 0x00020003
  36020. #define GPIO_PC0_SWCLK 0x00020003
  36021. #define GPIO_PC1_TMS 0x00020403
  36022. #define GPIO_PC1_SWDIO 0x00020403
  36023. #define GPIO_PC2_TDI 0x00020803
  36024. #define GPIO_PC3_SWO 0x00020C03
  36025. #define GPIO_PC3_TDO 0x00020C03
  36026. #define GPIO_PC4_CCP5 0x00021001
  36027. #define GPIO_PC4_PHA0 0x00021002
  36028. #define GPIO_PC4_PWM6 0x00021004
  36029. #define GPIO_PC4_CCP2 0x00021005
  36030. #define GPIO_PC4_CCP4 0x00021006
  36031. #define GPIO_PC4_EPI0S2 0x00021008
  36032. #define GPIO_PC4_CCP1 0x00021009
  36033. #define GPIO_PC5_CCP1 0x00021401
  36034. #define GPIO_PC5_C1O 0x00021402
  36035. #define GPIO_PC5_C0O 0x00021403
  36036. #define GPIO_PC5_FAULT2 0x00021404
  36037. #define GPIO_PC5_CCP3 0x00021405
  36038. #define GPIO_PC5_USB0EPEN 0x00021406
  36039. #define GPIO_PC5_EPI0S3 0x00021408
  36040. #define GPIO_PC6_CCP3 0x00021801
  36041. #define GPIO_PC6_PHB0 0x00021802
  36042. #define GPIO_PC6_C2O 0x00021803
  36043. #define GPIO_PC6_PWM7 0x00021804
  36044. #define GPIO_PC6_U1RX 0x00021805
  36045. #define GPIO_PC6_CCP0 0x00021806
  36046. #define GPIO_PC6_USB0PFLT 0x00021807
  36047. #define GPIO_PC6_EPI0S4 0x00021808
  36048. #define GPIO_PC7_CCP4 0x00021C01
  36049. #define GPIO_PC7_PHB0 0x00021C02
  36050. #define GPIO_PC7_CCP0 0x00021C04
  36051. #define GPIO_PC7_U1TX 0x00021C05
  36052. #define GPIO_PC7_USB0PFLT 0x00021C06
  36053. #define GPIO_PC7_C1O 0x00021C07
  36054. #define GPIO_PC7_EPI0S5 0x00021C08
  36055. #define GPIO_PD0_PWM0 0x00030001
  36056. #define GPIO_PD0_CAN0RX 0x00030002
  36057. #define GPIO_PD0_IDX0 0x00030003
  36058. #define GPIO_PD0_U2RX 0x00030004
  36059. #define GPIO_PD0_U1RX 0x00030005
  36060. #define GPIO_PD0_CCP6 0x00030006
  36061. #define GPIO_PD0_I2S0RXSCK 0x00030008
  36062. #define GPIO_PD0_U1CTS 0x00030009
  36063. #define GPIO_PD1_PWM1 0x00030401
  36064. #define GPIO_PD1_CAN0TX 0x00030402
  36065. #define GPIO_PD1_PHA0 0x00030403
  36066. #define GPIO_PD1_U2TX 0x00030404
  36067. #define GPIO_PD1_U1TX 0x00030405
  36068. #define GPIO_PD1_CCP7 0x00030406
  36069. #define GPIO_PD1_I2S0RXWS 0x00030408
  36070. #define GPIO_PD1_U1DCD 0x00030409
  36071. #define GPIO_PD1_CCP2 0x0003040A
  36072. #define GPIO_PD1_PHB1 0x0003040B
  36073. #define GPIO_PD2_U1RX 0x00030801
  36074. #define GPIO_PD2_CCP6 0x00030802
  36075. #define GPIO_PD2_PWM2 0x00030803
  36076. #define GPIO_PD2_CCP5 0x00030804
  36077. #define GPIO_PD2_EPI0S20 0x00030808
  36078. #define GPIO_PD3_U1TX 0x00030C01
  36079. #define GPIO_PD3_CCP7 0x00030C02
  36080. #define GPIO_PD3_PWM3 0x00030C03
  36081. #define GPIO_PD3_CCP0 0x00030C04
  36082. #define GPIO_PD3_EPI0S21 0x00030C08
  36083. #define GPIO_PD4_CCP0 0x00031001
  36084. #define GPIO_PD4_CCP3 0x00031002
  36085. #define GPIO_PD4_I2S0RXSD 0x00031008
  36086. #define GPIO_PD4_U1RI 0x00031009
  36087. #define GPIO_PD4_EPI0S19 0x0003100A
  36088. #define GPIO_PD5_CCP2 0x00031401
  36089. #define GPIO_PD5_CCP4 0x00031402
  36090. #define GPIO_PD5_I2S0RXMCLK 0x00031408
  36091. #define GPIO_PD5_U2RX 0x00031409
  36092. #define GPIO_PD5_EPI0S28 0x0003140A
  36093. #define GPIO_PD6_FAULT0 0x00031801
  36094. #define GPIO_PD6_I2S0TXSCK 0x00031808
  36095. #define GPIO_PD6_U2TX 0x00031809
  36096. #define GPIO_PD6_EPI0S29 0x0003180A
  36097. #define GPIO_PD7_IDX0 0x00031C01
  36098. #define GPIO_PD7_C0O 0x00031C02
  36099. #define GPIO_PD7_CCP1 0x00031C03
  36100. #define GPIO_PD7_I2S0TXWS 0x00031C08
  36101. #define GPIO_PD7_U1DTR 0x00031C09
  36102. #define GPIO_PD7_EPI0S30 0x00031C0A
  36103. #define GPIO_PE0_PWM4 0x00040001
  36104. #define GPIO_PE0_SSI1CLK 0x00040002
  36105. #define GPIO_PE0_CCP3 0x00040003
  36106. #define GPIO_PE0_EPI0S8 0x00040008
  36107. #define GPIO_PE0_USB0PFLT 0x00040009
  36108. #define GPIO_PE1_PWM5 0x00040401
  36109. #define GPIO_PE1_SSI1FSS 0x00040402
  36110. #define GPIO_PE1_FAULT0 0x00040403
  36111. #define GPIO_PE1_CCP2 0x00040404
  36112. #define GPIO_PE1_CCP6 0x00040405
  36113. #define GPIO_PE1_EPI0S9 0x00040408
  36114. #define GPIO_PE2_CCP4 0x00040801
  36115. #define GPIO_PE2_SSI1RX 0x00040802
  36116. #define GPIO_PE2_PHB1 0x00040803
  36117. #define GPIO_PE2_PHA0 0x00040804
  36118. #define GPIO_PE2_CCP2 0x00040805
  36119. #define GPIO_PE2_EPI0S24 0x00040808
  36120. #define GPIO_PE3_CCP1 0x00040C01
  36121. #define GPIO_PE3_SSI1TX 0x00040C02
  36122. #define GPIO_PE3_PHA1 0x00040C03
  36123. #define GPIO_PE3_PHB0 0x00040C04
  36124. #define GPIO_PE3_CCP7 0x00040C05
  36125. #define GPIO_PE3_EPI0S25 0x00040C08
  36126. #define GPIO_PE4_CCP3 0x00041001
  36127. #define GPIO_PE4_FAULT0 0x00041004
  36128. #define GPIO_PE4_U2TX 0x00041005
  36129. #define GPIO_PE4_CCP2 0x00041006
  36130. #define GPIO_PE4_I2S0TXWS 0x00041009
  36131. #define GPIO_PE5_CCP5 0x00041401
  36132. #define GPIO_PE5_I2S0TXSD 0x00041409
  36133. #define GPIO_PE6_PWM4 0x00041801
  36134. #define GPIO_PE6_C1O 0x00041802
  36135. #define GPIO_PE6_U1CTS 0x00041809
  36136. #define GPIO_PE7_PWM5 0x00041C01
  36137. #define GPIO_PE7_C2O 0x00041C02
  36138. #define GPIO_PE7_U1DCD 0x00041C09
  36139. #define GPIO_PF0_CAN1RX 0x00050001
  36140. #define GPIO_PF0_PHB0 0x00050002
  36141. #define GPIO_PF0_PWM0 0x00050003
  36142. #define GPIO_PF0_I2S0TXSD 0x00050008
  36143. #define GPIO_PF0_U1DSR 0x00050009
  36144. #define GPIO_PF1_CAN1TX 0x00050401
  36145. #define GPIO_PF1_IDX1 0x00050402
  36146. #define GPIO_PF1_PWM1 0x00050403
  36147. #define GPIO_PF1_I2S0TXMCLK 0x00050408
  36148. #define GPIO_PF1_U1RTS 0x00050409
  36149. #define GPIO_PF1_CCP3 0x0005040A
  36150. #define GPIO_PF2_LED1 0x00050801
  36151. #define GPIO_PF2_PWM4 0x00050802
  36152. #define GPIO_PF2_PWM2 0x00050804
  36153. #define GPIO_PF2_SSI1CLK 0x00050809
  36154. #define GPIO_PF3_LED0 0x00050C01
  36155. #define GPIO_PF3_PWM5 0x00050C02
  36156. #define GPIO_PF3_PWM3 0x00050C04
  36157. #define GPIO_PF3_SSI1FSS 0x00050C09
  36158. #define GPIO_PF4_CCP0 0x00051001
  36159. #define GPIO_PF4_C0O 0x00051002
  36160. #define GPIO_PF4_FAULT0 0x00051004
  36161. #define GPIO_PF4_EPI0S12 0x00051008
  36162. #define GPIO_PF4_SSI1RX 0x00051009
  36163. #define GPIO_PF5_CCP2 0x00051401
  36164. #define GPIO_PF5_C1O 0x00051402
  36165. #define GPIO_PF5_EPI0S15 0x00051408
  36166. #define GPIO_PF5_SSI1TX 0x00051409
  36167. #define GPIO_PG0_U2RX 0x00060001
  36168. #define GPIO_PG0_PWM0 0x00060002
  36169. #define GPIO_PG0_I2C1SCL 0x00060003
  36170. #define GPIO_PG0_PWM4 0x00060004
  36171. #define GPIO_PG0_USB0EPEN 0x00060007
  36172. #define GPIO_PG0_EPI0S13 0x00060008
  36173. #define GPIO_PG1_U2TX 0x00060401
  36174. #define GPIO_PG1_PWM1 0x00060402
  36175. #define GPIO_PG1_I2C1SDA 0x00060403
  36176. #define GPIO_PG1_PWM5 0x00060404
  36177. #define GPIO_PG1_EPI0S14 0x00060408
  36178. #define GPIO_PG7_PHB1 0x00061C01
  36179. #define GPIO_PG7_PWM7 0x00061C04
  36180. #define GPIO_PG7_CCP5 0x00061C08
  36181. #define GPIO_PG7_EPI0S31 0x00061C09
  36182. #define GPIO_PH0_CCP6 0x00070001
  36183. #define GPIO_PH0_PWM2 0x00070002
  36184. #define GPIO_PH0_EPI0S6 0x00070008
  36185. #define GPIO_PH0_PWM4 0x00070009
  36186. #define GPIO_PH1_CCP7 0x00070401
  36187. #define GPIO_PH1_PWM3 0x00070402
  36188. #define GPIO_PH1_EPI0S7 0x00070408
  36189. #define GPIO_PH1_PWM5 0x00070409
  36190. #define GPIO_PH2_IDX1 0x00070801
  36191. #define GPIO_PH2_C1O 0x00070802
  36192. #define GPIO_PH2_FAULT3 0x00070804
  36193. #define GPIO_PH2_EPI0S1 0x00070808
  36194. #define GPIO_PH3_PHB0 0x00070C01
  36195. #define GPIO_PH3_FAULT0 0x00070C02
  36196. #define GPIO_PH3_USB0EPEN 0x00070C04
  36197. #define GPIO_PH3_EPI0S0 0x00070C08
  36198. #define GPIO_PH4_USB0PFLT 0x00071004
  36199. #define GPIO_PH4_EPI0S10 0x00071008
  36200. #define GPIO_PH4_SSI1CLK 0x0007100B
  36201. #define GPIO_PH5_EPI0S11 0x00071408
  36202. #define GPIO_PH5_FAULT2 0x0007140A
  36203. #define GPIO_PH5_SSI1FSS 0x0007140B
  36204. #define GPIO_PH6_EPI0S26 0x00071808
  36205. #define GPIO_PH6_PWM4 0x0007180A
  36206. #define GPIO_PH6_SSI1RX 0x0007180B
  36207. #define GPIO_PH7_EPI0S27 0x00071C08
  36208. #define GPIO_PH7_PWM5 0x00071C0A
  36209. #define GPIO_PH7_SSI1TX 0x00071C0B
  36210. #define GPIO_PJ0_EPI0S16 0x00080008
  36211. #define GPIO_PJ0_PWM0 0x0008000A
  36212. #define GPIO_PJ0_I2C1SCL 0x0008000B
  36213. #define GPIO_PJ1_EPI0S17 0x00080408
  36214. #define GPIO_PJ1_USB0PFLT 0x00080409
  36215. #define GPIO_PJ1_PWM1 0x0008040A
  36216. #define GPIO_PJ1_I2C1SDA 0x0008040B
  36217. #define GPIO_PJ2_EPI0S18 0x00080808
  36218. #define GPIO_PJ2_CCP0 0x00080809
  36219. #define GPIO_PJ2_FAULT0 0x0008080A
  36220. #define GPIO_PJ3_EPI0S19 0x00080C08
  36221. #define GPIO_PJ3_U1CTS 0x00080C09
  36222. #define GPIO_PJ3_CCP6 0x00080C0A
  36223. #define GPIO_PJ4_EPI0S28 0x00081008
  36224. #define GPIO_PJ4_U1DCD 0x00081009
  36225. #define GPIO_PJ4_CCP4 0x0008100A
  36226. #define GPIO_PJ5_EPI0S29 0x00081408
  36227. #define GPIO_PJ5_U1DSR 0x00081409
  36228. #define GPIO_PJ5_CCP2 0x0008140A
  36229. #define GPIO_PJ6_EPI0S30 0x00081808
  36230. #define GPIO_PJ6_U1RTS 0x00081809
  36231. #define GPIO_PJ6_CCP1 0x0008180A
  36232. #define GPIO_PJ7_U1DTR 0x00081C09
  36233. #define GPIO_PJ7_CCP0 0x00081C0A
  36234. #endif // PART_LM3S9U96
  36235. //*****************************************************************************
  36236. //
  36237. // LM4F110B2QR Port/Pin Mapping Definitions
  36238. //
  36239. //*****************************************************************************
  36240. #ifdef PART_LM4F110B2QR
  36241. #define GPIO_PA0_U0RX 0x00000001
  36242. #define GPIO_PA1_U0TX 0x00000401
  36243. #define GPIO_PA2_SSI0CLK 0x00000802
  36244. #define GPIO_PA3_SSI0FSS 0x00000C02
  36245. #define GPIO_PA4_SSI0RX 0x00001002
  36246. #define GPIO_PA5_SSI0TX 0x00001402
  36247. #define GPIO_PA6_I2C1SCL 0x00001803
  36248. #define GPIO_PA7_I2C1SDA 0x00001C03
  36249. #define GPIO_PB0_U1RX 0x00010001
  36250. #define GPIO_PB0_T2CCP0 0x00010007
  36251. #define GPIO_PB1_U1TX 0x00010401
  36252. #define GPIO_PB1_T2CCP1 0x00010407
  36253. #define GPIO_PB2_I2C0SCL 0x00010803
  36254. #define GPIO_PB2_T3CCP0 0x00010807
  36255. #define GPIO_PB3_I2C0SDA 0x00010C03
  36256. #define GPIO_PB3_T3CCP1 0x00010C07
  36257. #define GPIO_PB4_SSI2CLK 0x00011002
  36258. #define GPIO_PB4_CAN0RX 0x00011008
  36259. #define GPIO_PB4_T1CCP0 0x00011007
  36260. #define GPIO_PB5_SSI2FSS 0x00011402
  36261. #define GPIO_PB5_CAN0TX 0x00011408
  36262. #define GPIO_PB5_T1CCP1 0x00011407
  36263. #define GPIO_PB6_SSI2RX 0x00011802
  36264. #define GPIO_PB6_T0CCP0 0x00011807
  36265. #define GPIO_PB7_SSI2TX 0x00011C02
  36266. #define GPIO_PB7_T0CCP1 0x00011C07
  36267. #define GPIO_PC0_TCK 0x00020001
  36268. #define GPIO_PC0_SWCLK 0x00020001
  36269. #define GPIO_PC0_T4CCP0 0x00020007
  36270. #define GPIO_PC1_TMS 0x00020401
  36271. #define GPIO_PC1_SWDIO 0x00020401
  36272. #define GPIO_PC1_T4CCP1 0x00020407
  36273. #define GPIO_PC2_TDI 0x00020801
  36274. #define GPIO_PC2_T5CCP0 0x00020807
  36275. #define GPIO_PC3_SWO 0x00020C01
  36276. #define GPIO_PC3_TDO 0x00020C01
  36277. #define GPIO_PC3_T5CCP1 0x00020C07
  36278. #define GPIO_PC4_U4RX 0x00021001
  36279. #define GPIO_PC4_U1RX 0x00021002
  36280. #define GPIO_PC4_WT0CCP0 0x00021007
  36281. #define GPIO_PC4_U1RTS 0x00021008
  36282. #define GPIO_PC5_U4TX 0x00021401
  36283. #define GPIO_PC5_U1TX 0x00021402
  36284. #define GPIO_PC5_WT0CCP1 0x00021407
  36285. #define GPIO_PC5_U1CTS 0x00021408
  36286. #define GPIO_PC6_U3RX 0x00021801
  36287. #define GPIO_PC6_WT1CCP0 0x00021807
  36288. #define GPIO_PC7_U3TX 0x00021C01
  36289. #define GPIO_PC7_WT1CCP1 0x00021C07
  36290. #define GPIO_PD0_SSI3CLK 0x00030001
  36291. #define GPIO_PD0_SSI1CLK 0x00030002
  36292. #define GPIO_PD0_I2C3SCL 0x00030003
  36293. #define GPIO_PD0_WT2CCP0 0x00030007
  36294. #define GPIO_PD1_SSI3FSS 0x00030401
  36295. #define GPIO_PD1_SSI1FSS 0x00030402
  36296. #define GPIO_PD1_I2C3SDA 0x00030403
  36297. #define GPIO_PD1_WT2CCP1 0x00030407
  36298. #define GPIO_PD2_SSI3RX 0x00030801
  36299. #define GPIO_PD2_SSI1RX 0x00030802
  36300. #define GPIO_PD2_WT3CCP0 0x00030807
  36301. #define GPIO_PD3_SSI3TX 0x00030C01
  36302. #define GPIO_PD3_SSI1TX 0x00030C02
  36303. #define GPIO_PD3_WT3CCP1 0x00030C07
  36304. #define GPIO_PD4_U6RX 0x00031001
  36305. #define GPIO_PD4_WT4CCP0 0x00031007
  36306. #define GPIO_PD5_U6TX 0x00031401
  36307. #define GPIO_PD5_WT4CCP1 0x00031407
  36308. #define GPIO_PD6_U2RX 0x00031801
  36309. #define GPIO_PD6_WT5CCP0 0x00031807
  36310. #define GPIO_PD7_U2TX 0x00031C01
  36311. #define GPIO_PD7_WT5CCP1 0x00031C07
  36312. #define GPIO_PD7_NMI 0x00031C08
  36313. #define GPIO_PE0_U7RX 0x00040001
  36314. #define GPIO_PE1_U7TX 0x00040401
  36315. #define GPIO_PE4_U5RX 0x00041001
  36316. #define GPIO_PE4_I2C2SCL 0x00041003
  36317. #define GPIO_PE4_CAN0RX 0x00041008
  36318. #define GPIO_PE5_U5TX 0x00041401
  36319. #define GPIO_PE5_I2C2SDA 0x00041403
  36320. #define GPIO_PE5_CAN0TX 0x00041408
  36321. #define GPIO_PF0_U1RTS 0x00050001
  36322. #define GPIO_PF0_SSI1RX 0x00050002
  36323. #define GPIO_PF0_CAN0RX 0x00050003
  36324. #define GPIO_PF0_T0CCP0 0x00050007
  36325. #define GPIO_PF0_NMI 0x00050008
  36326. #define GPIO_PF0_C0O 0x00050009
  36327. #define GPIO_PF0_TRD2 0x0005000E
  36328. #define GPIO_PF1_U1CTS 0x00050401
  36329. #define GPIO_PF1_SSI1TX 0x00050402
  36330. #define GPIO_PF1_T0CCP1 0x00050407
  36331. #define GPIO_PF1_C1O 0x00050409
  36332. #define GPIO_PF1_TRD1 0x0005040E
  36333. #define GPIO_PF2_T1CCP0 0x00050807
  36334. #define GPIO_PF2_SSI1CLK 0x00050802
  36335. #define GPIO_PF2_TRD0 0x0005080E
  36336. #define GPIO_PF3_CAN0TX 0x00050C03
  36337. #define GPIO_PF3_T1CCP1 0x00050C07
  36338. #define GPIO_PF3_SSI1FSS 0x00050C02
  36339. #define GPIO_PF3_TRCLK 0x00050C0E
  36340. #define GPIO_PF4_T2CCP0 0x00051007
  36341. #endif // PART_LM4F110B2QR
  36342. //*****************************************************************************
  36343. //
  36344. // LM4F110C4QR Port/Pin Mapping Definitions
  36345. //
  36346. //*****************************************************************************
  36347. #ifdef PART_LM4F110C4QR
  36348. #define GPIO_PA0_U0RX 0x00000001
  36349. #define GPIO_PA1_U0TX 0x00000401
  36350. #define GPIO_PA2_SSI0CLK 0x00000802
  36351. #define GPIO_PA3_SSI0FSS 0x00000C02
  36352. #define GPIO_PA4_SSI0RX 0x00001002
  36353. #define GPIO_PA5_SSI0TX 0x00001402
  36354. #define GPIO_PA6_I2C1SCL 0x00001803
  36355. #define GPIO_PA7_I2C1SDA 0x00001C03
  36356. #define GPIO_PB0_U1RX 0x00010001
  36357. #define GPIO_PB0_T2CCP0 0x00010007
  36358. #define GPIO_PB1_U1TX 0x00010401
  36359. #define GPIO_PB1_T2CCP1 0x00010407
  36360. #define GPIO_PB2_I2C0SCL 0x00010803
  36361. #define GPIO_PB2_T3CCP0 0x00010807
  36362. #define GPIO_PB3_I2C0SDA 0x00010C03
  36363. #define GPIO_PB3_T3CCP1 0x00010C07
  36364. #define GPIO_PB4_SSI2CLK 0x00011002
  36365. #define GPIO_PB4_CAN0RX 0x00011008
  36366. #define GPIO_PB4_T1CCP0 0x00011007
  36367. #define GPIO_PB5_SSI2FSS 0x00011402
  36368. #define GPIO_PB5_CAN0TX 0x00011408
  36369. #define GPIO_PB5_T1CCP1 0x00011407
  36370. #define GPIO_PB6_SSI2RX 0x00011802
  36371. #define GPIO_PB6_T0CCP0 0x00011807
  36372. #define GPIO_PB7_SSI2TX 0x00011C02
  36373. #define GPIO_PB7_T0CCP1 0x00011C07
  36374. #define GPIO_PC0_TCK 0x00020001
  36375. #define GPIO_PC0_SWCLK 0x00020001
  36376. #define GPIO_PC0_T4CCP0 0x00020007
  36377. #define GPIO_PC1_TMS 0x00020401
  36378. #define GPIO_PC1_SWDIO 0x00020401
  36379. #define GPIO_PC1_T4CCP1 0x00020407
  36380. #define GPIO_PC2_TDI 0x00020801
  36381. #define GPIO_PC2_T5CCP0 0x00020807
  36382. #define GPIO_PC3_SWO 0x00020C01
  36383. #define GPIO_PC3_TDO 0x00020C01
  36384. #define GPIO_PC3_T5CCP1 0x00020C07
  36385. #define GPIO_PC4_U4RX 0x00021001
  36386. #define GPIO_PC4_U1RX 0x00021002
  36387. #define GPIO_PC4_WT0CCP0 0x00021007
  36388. #define GPIO_PC4_U1RTS 0x00021008
  36389. #define GPIO_PC5_U4TX 0x00021401
  36390. #define GPIO_PC5_U1TX 0x00021402
  36391. #define GPIO_PC5_WT0CCP1 0x00021407
  36392. #define GPIO_PC5_U1CTS 0x00021408
  36393. #define GPIO_PC6_U3RX 0x00021801
  36394. #define GPIO_PC6_WT1CCP0 0x00021807
  36395. #define GPIO_PC7_U3TX 0x00021C01
  36396. #define GPIO_PC7_WT1CCP1 0x00021C07
  36397. #define GPIO_PD0_SSI3CLK 0x00030001
  36398. #define GPIO_PD0_SSI1CLK 0x00030002
  36399. #define GPIO_PD0_I2C3SCL 0x00030003
  36400. #define GPIO_PD0_WT2CCP0 0x00030007
  36401. #define GPIO_PD1_SSI3FSS 0x00030401
  36402. #define GPIO_PD1_SSI1FSS 0x00030402
  36403. #define GPIO_PD1_I2C3SDA 0x00030403
  36404. #define GPIO_PD1_WT2CCP1 0x00030407
  36405. #define GPIO_PD2_SSI3RX 0x00030801
  36406. #define GPIO_PD2_SSI1RX 0x00030802
  36407. #define GPIO_PD2_WT3CCP0 0x00030807
  36408. #define GPIO_PD3_SSI3TX 0x00030C01
  36409. #define GPIO_PD3_SSI1TX 0x00030C02
  36410. #define GPIO_PD3_WT3CCP1 0x00030C07
  36411. #define GPIO_PD4_U6RX 0x00031001
  36412. #define GPIO_PD4_WT4CCP0 0x00031007
  36413. #define GPIO_PD5_U6TX 0x00031401
  36414. #define GPIO_PD5_WT4CCP1 0x00031407
  36415. #define GPIO_PD6_U2RX 0x00031801
  36416. #define GPIO_PD6_WT5CCP0 0x00031807
  36417. #define GPIO_PD7_U2TX 0x00031C01
  36418. #define GPIO_PD7_WT5CCP1 0x00031C07
  36419. #define GPIO_PD7_NMI 0x00031C08
  36420. #define GPIO_PE0_U7RX 0x00040001
  36421. #define GPIO_PE1_U7TX 0x00040401
  36422. #define GPIO_PE4_U5RX 0x00041001
  36423. #define GPIO_PE4_I2C2SCL 0x00041003
  36424. #define GPIO_PE4_CAN0RX 0x00041008
  36425. #define GPIO_PE5_U5TX 0x00041401
  36426. #define GPIO_PE5_I2C2SDA 0x00041403
  36427. #define GPIO_PE5_CAN0TX 0x00041408
  36428. #define GPIO_PF0_U1RTS 0x00050001
  36429. #define GPIO_PF0_SSI1RX 0x00050002
  36430. #define GPIO_PF0_CAN0RX 0x00050003
  36431. #define GPIO_PF0_T0CCP0 0x00050007
  36432. #define GPIO_PF0_NMI 0x00050008
  36433. #define GPIO_PF0_C0O 0x00050009
  36434. #define GPIO_PF0_TRD2 0x0005000E
  36435. #define GPIO_PF1_U1CTS 0x00050401
  36436. #define GPIO_PF1_SSI1TX 0x00050402
  36437. #define GPIO_PF1_T0CCP1 0x00050407
  36438. #define GPIO_PF1_C1O 0x00050409
  36439. #define GPIO_PF1_TRD1 0x0005040E
  36440. #define GPIO_PF2_T1CCP0 0x00050807
  36441. #define GPIO_PF2_SSI1CLK 0x00050802
  36442. #define GPIO_PF2_TRD0 0x0005080E
  36443. #define GPIO_PF3_CAN0TX 0x00050C03
  36444. #define GPIO_PF3_T1CCP1 0x00050C07
  36445. #define GPIO_PF3_SSI1FSS 0x00050C02
  36446. #define GPIO_PF3_TRCLK 0x00050C0E
  36447. #define GPIO_PF4_T2CCP0 0x00051007
  36448. #endif // PART_LM4F110C4QR
  36449. //*****************************************************************************
  36450. //
  36451. // LM4F110E5QR Port/Pin Mapping Definitions
  36452. //
  36453. //*****************************************************************************
  36454. #ifdef PART_LM4F110E5QR
  36455. #define GPIO_PA0_U0RX 0x00000001
  36456. #define GPIO_PA1_U0TX 0x00000401
  36457. #define GPIO_PA2_SSI0CLK 0x00000802
  36458. #define GPIO_PA3_SSI0FSS 0x00000C02
  36459. #define GPIO_PA4_SSI0RX 0x00001002
  36460. #define GPIO_PA5_SSI0TX 0x00001402
  36461. #define GPIO_PA6_I2C1SCL 0x00001803
  36462. #define GPIO_PA7_I2C1SDA 0x00001C03
  36463. #define GPIO_PB0_U1RX 0x00010001
  36464. #define GPIO_PB0_T2CCP0 0x00010007
  36465. #define GPIO_PB1_U1TX 0x00010401
  36466. #define GPIO_PB1_T2CCP1 0x00010407
  36467. #define GPIO_PB2_I2C0SCL 0x00010803
  36468. #define GPIO_PB2_T3CCP0 0x00010807
  36469. #define GPIO_PB3_I2C0SDA 0x00010C03
  36470. #define GPIO_PB3_T3CCP1 0x00010C07
  36471. #define GPIO_PB4_SSI2CLK 0x00011002
  36472. #define GPIO_PB4_CAN0RX 0x00011008
  36473. #define GPIO_PB4_T1CCP0 0x00011007
  36474. #define GPIO_PB5_SSI2FSS 0x00011402
  36475. #define GPIO_PB5_CAN0TX 0x00011408
  36476. #define GPIO_PB5_T1CCP1 0x00011407
  36477. #define GPIO_PB6_SSI2RX 0x00011802
  36478. #define GPIO_PB6_T0CCP0 0x00011807
  36479. #define GPIO_PB7_SSI2TX 0x00011C02
  36480. #define GPIO_PB7_T0CCP1 0x00011C07
  36481. #define GPIO_PC0_TCK 0x00020001
  36482. #define GPIO_PC0_SWCLK 0x00020001
  36483. #define GPIO_PC0_T4CCP0 0x00020007
  36484. #define GPIO_PC1_TMS 0x00020401
  36485. #define GPIO_PC1_SWDIO 0x00020401
  36486. #define GPIO_PC1_T4CCP1 0x00020407
  36487. #define GPIO_PC2_TDI 0x00020801
  36488. #define GPIO_PC2_T5CCP0 0x00020807
  36489. #define GPIO_PC3_SWO 0x00020C01
  36490. #define GPIO_PC3_TDO 0x00020C01
  36491. #define GPIO_PC3_T5CCP1 0x00020C07
  36492. #define GPIO_PC4_U4RX 0x00021001
  36493. #define GPIO_PC4_U1RX 0x00021002
  36494. #define GPIO_PC4_WT0CCP0 0x00021007
  36495. #define GPIO_PC4_U1RTS 0x00021008
  36496. #define GPIO_PC5_U4TX 0x00021401
  36497. #define GPIO_PC5_U1TX 0x00021402
  36498. #define GPIO_PC5_WT0CCP1 0x00021407
  36499. #define GPIO_PC5_U1CTS 0x00021408
  36500. #define GPIO_PC6_U3RX 0x00021801
  36501. #define GPIO_PC6_WT1CCP0 0x00021807
  36502. #define GPIO_PC7_U3TX 0x00021C01
  36503. #define GPIO_PC7_WT1CCP1 0x00021C07
  36504. #define GPIO_PD0_SSI3CLK 0x00030001
  36505. #define GPIO_PD0_SSI1CLK 0x00030002
  36506. #define GPIO_PD0_I2C3SCL 0x00030003
  36507. #define GPIO_PD0_WT2CCP0 0x00030007
  36508. #define GPIO_PD1_SSI3FSS 0x00030401
  36509. #define GPIO_PD1_SSI1FSS 0x00030402
  36510. #define GPIO_PD1_I2C3SDA 0x00030403
  36511. #define GPIO_PD1_WT2CCP1 0x00030407
  36512. #define GPIO_PD2_SSI3RX 0x00030801
  36513. #define GPIO_PD2_SSI1RX 0x00030802
  36514. #define GPIO_PD2_WT3CCP0 0x00030807
  36515. #define GPIO_PD3_SSI3TX 0x00030C01
  36516. #define GPIO_PD3_SSI1TX 0x00030C02
  36517. #define GPIO_PD3_WT3CCP1 0x00030C07
  36518. #define GPIO_PD4_U6RX 0x00031001
  36519. #define GPIO_PD4_WT4CCP0 0x00031007
  36520. #define GPIO_PD5_U6TX 0x00031401
  36521. #define GPIO_PD5_WT4CCP1 0x00031407
  36522. #define GPIO_PD6_U2RX 0x00031801
  36523. #define GPIO_PD6_WT5CCP0 0x00031807
  36524. #define GPIO_PD7_U2TX 0x00031C01
  36525. #define GPIO_PD7_WT5CCP1 0x00031C07
  36526. #define GPIO_PD7_NMI 0x00031C08
  36527. #define GPIO_PE0_U7RX 0x00040001
  36528. #define GPIO_PE1_U7TX 0x00040401
  36529. #define GPIO_PE4_U5RX 0x00041001
  36530. #define GPIO_PE4_I2C2SCL 0x00041003
  36531. #define GPIO_PE4_CAN0RX 0x00041008
  36532. #define GPIO_PE5_U5TX 0x00041401
  36533. #define GPIO_PE5_I2C2SDA 0x00041403
  36534. #define GPIO_PE5_CAN0TX 0x00041408
  36535. #define GPIO_PF0_U1RTS 0x00050001
  36536. #define GPIO_PF0_SSI1RX 0x00050002
  36537. #define GPIO_PF0_CAN0RX 0x00050003
  36538. #define GPIO_PF0_T0CCP0 0x00050007
  36539. #define GPIO_PF0_NMI 0x00050008
  36540. #define GPIO_PF0_C0O 0x00050009
  36541. #define GPIO_PF0_TRD2 0x0005000E
  36542. #define GPIO_PF1_U1CTS 0x00050401
  36543. #define GPIO_PF1_SSI1TX 0x00050402
  36544. #define GPIO_PF1_T0CCP1 0x00050407
  36545. #define GPIO_PF1_C1O 0x00050409
  36546. #define GPIO_PF1_TRD1 0x0005040E
  36547. #define GPIO_PF2_T1CCP0 0x00050807
  36548. #define GPIO_PF2_SSI1CLK 0x00050802
  36549. #define GPIO_PF2_TRD0 0x0005080E
  36550. #define GPIO_PF3_CAN0TX 0x00050C03
  36551. #define GPIO_PF3_T1CCP1 0x00050C07
  36552. #define GPIO_PF3_SSI1FSS 0x00050C02
  36553. #define GPIO_PF3_TRCLK 0x00050C0E
  36554. #define GPIO_PF4_T2CCP0 0x00051007
  36555. #endif // PART_LM4F110E5QR
  36556. //*****************************************************************************
  36557. //
  36558. // LM4F110H5QR Port/Pin Mapping Definitions
  36559. //
  36560. //*****************************************************************************
  36561. #ifdef PART_LM4F110H5QR
  36562. #define GPIO_PA0_U0RX 0x00000001
  36563. #define GPIO_PA1_U0TX 0x00000401
  36564. #define GPIO_PA2_SSI0CLK 0x00000802
  36565. #define GPIO_PA3_SSI0FSS 0x00000C02
  36566. #define GPIO_PA4_SSI0RX 0x00001002
  36567. #define GPIO_PA5_SSI0TX 0x00001402
  36568. #define GPIO_PA6_I2C1SCL 0x00001803
  36569. #define GPIO_PA7_I2C1SDA 0x00001C03
  36570. #define GPIO_PB0_U1RX 0x00010001
  36571. #define GPIO_PB0_T2CCP0 0x00010007
  36572. #define GPIO_PB1_U1TX 0x00010401
  36573. #define GPIO_PB1_T2CCP1 0x00010407
  36574. #define GPIO_PB2_I2C0SCL 0x00010803
  36575. #define GPIO_PB2_T3CCP0 0x00010807
  36576. #define GPIO_PB3_I2C0SDA 0x00010C03
  36577. #define GPIO_PB3_T3CCP1 0x00010C07
  36578. #define GPIO_PB4_SSI2CLK 0x00011002
  36579. #define GPIO_PB4_CAN0RX 0x00011008
  36580. #define GPIO_PB4_T1CCP0 0x00011007
  36581. #define GPIO_PB5_SSI2FSS 0x00011402
  36582. #define GPIO_PB5_CAN0TX 0x00011408
  36583. #define GPIO_PB5_T1CCP1 0x00011407
  36584. #define GPIO_PB6_SSI2RX 0x00011802
  36585. #define GPIO_PB6_T0CCP0 0x00011807
  36586. #define GPIO_PB7_SSI2TX 0x00011C02
  36587. #define GPIO_PB7_T0CCP1 0x00011C07
  36588. #define GPIO_PC0_TCK 0x00020001
  36589. #define GPIO_PC0_SWCLK 0x00020001
  36590. #define GPIO_PC0_T4CCP0 0x00020007
  36591. #define GPIO_PC1_TMS 0x00020401
  36592. #define GPIO_PC1_SWDIO 0x00020401
  36593. #define GPIO_PC1_T4CCP1 0x00020407
  36594. #define GPIO_PC2_TDI 0x00020801
  36595. #define GPIO_PC2_T5CCP0 0x00020807
  36596. #define GPIO_PC3_SWO 0x00020C01
  36597. #define GPIO_PC3_TDO 0x00020C01
  36598. #define GPIO_PC3_T5CCP1 0x00020C07
  36599. #define GPIO_PC4_U4RX 0x00021001
  36600. #define GPIO_PC4_U1RX 0x00021002
  36601. #define GPIO_PC4_WT0CCP0 0x00021007
  36602. #define GPIO_PC4_U1RTS 0x00021008
  36603. #define GPIO_PC5_U4TX 0x00021401
  36604. #define GPIO_PC5_U1TX 0x00021402
  36605. #define GPIO_PC5_WT0CCP1 0x00021407
  36606. #define GPIO_PC5_U1CTS 0x00021408
  36607. #define GPIO_PC6_U3RX 0x00021801
  36608. #define GPIO_PC6_WT1CCP0 0x00021807
  36609. #define GPIO_PC7_U3TX 0x00021C01
  36610. #define GPIO_PC7_WT1CCP1 0x00021C07
  36611. #define GPIO_PD0_SSI3CLK 0x00030001
  36612. #define GPIO_PD0_SSI1CLK 0x00030002
  36613. #define GPIO_PD0_I2C3SCL 0x00030003
  36614. #define GPIO_PD0_WT2CCP0 0x00030007
  36615. #define GPIO_PD1_SSI3FSS 0x00030401
  36616. #define GPIO_PD1_SSI1FSS 0x00030402
  36617. #define GPIO_PD1_I2C3SDA 0x00030403
  36618. #define GPIO_PD1_WT2CCP1 0x00030407
  36619. #define GPIO_PD2_SSI3RX 0x00030801
  36620. #define GPIO_PD2_SSI1RX 0x00030802
  36621. #define GPIO_PD2_WT3CCP0 0x00030807
  36622. #define GPIO_PD3_SSI3TX 0x00030C01
  36623. #define GPIO_PD3_SSI1TX 0x00030C02
  36624. #define GPIO_PD3_WT3CCP1 0x00030C07
  36625. #define GPIO_PD4_U6RX 0x00031001
  36626. #define GPIO_PD4_WT4CCP0 0x00031007
  36627. #define GPIO_PD5_U6TX 0x00031401
  36628. #define GPIO_PD5_WT4CCP1 0x00031407
  36629. #define GPIO_PD6_U2RX 0x00031801
  36630. #define GPIO_PD6_WT5CCP0 0x00031807
  36631. #define GPIO_PD7_U2TX 0x00031C01
  36632. #define GPIO_PD7_WT5CCP1 0x00031C07
  36633. #define GPIO_PD7_NMI 0x00031C08
  36634. #define GPIO_PE0_U7RX 0x00040001
  36635. #define GPIO_PE1_U7TX 0x00040401
  36636. #define GPIO_PE4_U5RX 0x00041001
  36637. #define GPIO_PE4_I2C2SCL 0x00041003
  36638. #define GPIO_PE4_CAN0RX 0x00041008
  36639. #define GPIO_PE5_U5TX 0x00041401
  36640. #define GPIO_PE5_I2C2SDA 0x00041403
  36641. #define GPIO_PE5_CAN0TX 0x00041408
  36642. #define GPIO_PF0_U1RTS 0x00050001
  36643. #define GPIO_PF0_SSI1RX 0x00050002
  36644. #define GPIO_PF0_CAN0RX 0x00050003
  36645. #define GPIO_PF0_T0CCP0 0x00050007
  36646. #define GPIO_PF0_NMI 0x00050008
  36647. #define GPIO_PF0_C0O 0x00050009
  36648. #define GPIO_PF0_TRD2 0x0005000E
  36649. #define GPIO_PF1_U1CTS 0x00050401
  36650. #define GPIO_PF1_SSI1TX 0x00050402
  36651. #define GPIO_PF1_T0CCP1 0x00050407
  36652. #define GPIO_PF1_C1O 0x00050409
  36653. #define GPIO_PF1_TRD1 0x0005040E
  36654. #define GPIO_PF2_T1CCP0 0x00050807
  36655. #define GPIO_PF2_SSI1CLK 0x00050802
  36656. #define GPIO_PF2_TRD0 0x0005080E
  36657. #define GPIO_PF3_CAN0TX 0x00050C03
  36658. #define GPIO_PF3_T1CCP1 0x00050C07
  36659. #define GPIO_PF3_SSI1FSS 0x00050C02
  36660. #define GPIO_PF3_TRCLK 0x00050C0E
  36661. #define GPIO_PF4_T2CCP0 0x00051007
  36662. #endif // PART_LM4F110H5QR
  36663. //*****************************************************************************
  36664. //
  36665. // LM4F111B2QR Port/Pin Mapping Definitions
  36666. //
  36667. //*****************************************************************************
  36668. #ifdef PART_LM4F111B2QR
  36669. #define GPIO_PA0_U0RX 0x00000001
  36670. #define GPIO_PA1_U0TX 0x00000401
  36671. #define GPIO_PA2_SSI0CLK 0x00000802
  36672. #define GPIO_PA3_SSI0FSS 0x00000C02
  36673. #define GPIO_PA4_SSI0RX 0x00001002
  36674. #define GPIO_PA5_SSI0TX 0x00001402
  36675. #define GPIO_PA6_I2C1SCL 0x00001803
  36676. #define GPIO_PA7_I2C1SDA 0x00001C03
  36677. #define GPIO_PB0_U1RX 0x00010001
  36678. #define GPIO_PB0_T2CCP0 0x00010007
  36679. #define GPIO_PB1_U1TX 0x00010401
  36680. #define GPIO_PB1_T2CCP1 0x00010407
  36681. #define GPIO_PB2_I2C0SCL 0x00010803
  36682. #define GPIO_PB2_T3CCP0 0x00010807
  36683. #define GPIO_PB3_I2C0SDA 0x00010C03
  36684. #define GPIO_PB3_T3CCP1 0x00010C07
  36685. #define GPIO_PB4_SSI2CLK 0x00011002
  36686. #define GPIO_PB4_CAN0RX 0x00011008
  36687. #define GPIO_PB4_T1CCP0 0x00011007
  36688. #define GPIO_PB5_SSI2FSS 0x00011402
  36689. #define GPIO_PB5_CAN0TX 0x00011408
  36690. #define GPIO_PB5_T1CCP1 0x00011407
  36691. #define GPIO_PB6_SSI2RX 0x00011802
  36692. #define GPIO_PB6_I2C5SCL 0x00011803
  36693. #define GPIO_PB6_T0CCP0 0x00011807
  36694. #define GPIO_PB7_SSI2TX 0x00011C02
  36695. #define GPIO_PB7_I2C5SDA 0x00011C03
  36696. #define GPIO_PB7_T0CCP1 0x00011C07
  36697. #define GPIO_PC0_TCK 0x00020001
  36698. #define GPIO_PC0_SWCLK 0x00020001
  36699. #define GPIO_PC0_T4CCP0 0x00020007
  36700. #define GPIO_PC1_TMS 0x00020401
  36701. #define GPIO_PC1_SWDIO 0x00020401
  36702. #define GPIO_PC1_T4CCP1 0x00020407
  36703. #define GPIO_PC2_TDI 0x00020801
  36704. #define GPIO_PC2_T5CCP0 0x00020807
  36705. #define GPIO_PC3_SWO 0x00020C01
  36706. #define GPIO_PC3_TDO 0x00020C01
  36707. #define GPIO_PC3_T5CCP1 0x00020C07
  36708. #define GPIO_PC4_U4RX 0x00021001
  36709. #define GPIO_PC4_U1RX 0x00021002
  36710. #define GPIO_PC4_WT0CCP0 0x00021007
  36711. #define GPIO_PC4_U1RTS 0x00021008
  36712. #define GPIO_PC5_U4TX 0x00021401
  36713. #define GPIO_PC5_U1TX 0x00021402
  36714. #define GPIO_PC5_WT0CCP1 0x00021407
  36715. #define GPIO_PC5_U1CTS 0x00021408
  36716. #define GPIO_PC6_U3RX 0x00021801
  36717. #define GPIO_PC6_WT1CCP0 0x00021807
  36718. #define GPIO_PC7_U3TX 0x00021C01
  36719. #define GPIO_PC7_WT1CCP1 0x00021C07
  36720. #define GPIO_PD0_SSI3CLK 0x00030001
  36721. #define GPIO_PD0_SSI1CLK 0x00030002
  36722. #define GPIO_PD0_I2C3SCL 0x00030003
  36723. #define GPIO_PD0_WT2CCP0 0x00030007
  36724. #define GPIO_PD1_SSI3FSS 0x00030401
  36725. #define GPIO_PD1_SSI1FSS 0x00030402
  36726. #define GPIO_PD1_I2C3SDA 0x00030403
  36727. #define GPIO_PD1_WT2CCP1 0x00030407
  36728. #define GPIO_PD2_SSI3RX 0x00030801
  36729. #define GPIO_PD2_SSI1RX 0x00030802
  36730. #define GPIO_PD2_WT3CCP0 0x00030807
  36731. #define GPIO_PD3_SSI3TX 0x00030C01
  36732. #define GPIO_PD3_SSI1TX 0x00030C02
  36733. #define GPIO_PD3_WT3CCP1 0x00030C07
  36734. #define GPIO_PD4_U6RX 0x00031001
  36735. #define GPIO_PD4_WT4CCP0 0x00031007
  36736. #define GPIO_PD5_U6TX 0x00031401
  36737. #define GPIO_PD5_WT4CCP1 0x00031407
  36738. #define GPIO_PD6_U2RX 0x00031801
  36739. #define GPIO_PD6_WT5CCP0 0x00031807
  36740. #define GPIO_PD7_U2TX 0x00031C01
  36741. #define GPIO_PD7_WT5CCP1 0x00031C07
  36742. #define GPIO_PD7_NMI 0x00031C08
  36743. #define GPIO_PE0_U7RX 0x00040001
  36744. #define GPIO_PE1_U7TX 0x00040401
  36745. #define GPIO_PE4_U5RX 0x00041001
  36746. #define GPIO_PE4_I2C2SCL 0x00041003
  36747. #define GPIO_PE4_CAN0RX 0x00041008
  36748. #define GPIO_PE5_U5TX 0x00041401
  36749. #define GPIO_PE5_I2C2SDA 0x00041403
  36750. #define GPIO_PE5_CAN0TX 0x00041408
  36751. #define GPIO_PF0_U1RTS 0x00050001
  36752. #define GPIO_PF0_SSI1RX 0x00050002
  36753. #define GPIO_PF0_CAN0RX 0x00050003
  36754. #define GPIO_PF0_T0CCP0 0x00050007
  36755. #define GPIO_PF0_NMI 0x00050008
  36756. #define GPIO_PF0_C0O 0x00050009
  36757. #define GPIO_PF0_TRD2 0x0005000E
  36758. #define GPIO_PF1_U1CTS 0x00050401
  36759. #define GPIO_PF1_SSI1TX 0x00050402
  36760. #define GPIO_PF1_T0CCP1 0x00050407
  36761. #define GPIO_PF1_C1O 0x00050409
  36762. #define GPIO_PF1_TRD1 0x0005040E
  36763. #define GPIO_PF2_T1CCP0 0x00050807
  36764. #define GPIO_PF2_SSI1CLK 0x00050802
  36765. #define GPIO_PF2_TRD0 0x0005080E
  36766. #define GPIO_PF3_CAN0TX 0x00050C03
  36767. #define GPIO_PF3_T1CCP1 0x00050C07
  36768. #define GPIO_PF3_SSI1FSS 0x00050C02
  36769. #define GPIO_PF3_TRCLK 0x00050C0E
  36770. #define GPIO_PF4_T2CCP0 0x00051007
  36771. #define GPIO_PG0_I2C3SCL 0x00060003
  36772. #define GPIO_PG0_T4CCP0 0x00060007
  36773. #define GPIO_PG1_I2C3SDA 0x00060403
  36774. #define GPIO_PG1_T4CCP1 0x00060407
  36775. #define GPIO_PG2_I2C4SCL 0x00060803
  36776. #define GPIO_PG2_T5CCP0 0x00060807
  36777. #define GPIO_PG3_I2C4SDA 0x00060C03
  36778. #define GPIO_PG3_T5CCP1 0x00060C07
  36779. #define GPIO_PG4_U2RX 0x00061001
  36780. #define GPIO_PG4_I2C1SCL 0x00061003
  36781. #define GPIO_PG4_WT0CCP0 0x00061007
  36782. #define GPIO_PG5_U2TX 0x00061401
  36783. #define GPIO_PG5_I2C1SDA 0x00061403
  36784. #define GPIO_PG5_WT0CCP1 0x00061407
  36785. #endif // PART_LM4F111B2QR
  36786. //*****************************************************************************
  36787. //
  36788. // LM4F111C4QR Port/Pin Mapping Definitions
  36789. //
  36790. //*****************************************************************************
  36791. #ifdef PART_LM4F111C4QR
  36792. #define GPIO_PA0_U0RX 0x00000001
  36793. #define GPIO_PA1_U0TX 0x00000401
  36794. #define GPIO_PA2_SSI0CLK 0x00000802
  36795. #define GPIO_PA3_SSI0FSS 0x00000C02
  36796. #define GPIO_PA4_SSI0RX 0x00001002
  36797. #define GPIO_PA5_SSI0TX 0x00001402
  36798. #define GPIO_PA6_I2C1SCL 0x00001803
  36799. #define GPIO_PA7_I2C1SDA 0x00001C03
  36800. #define GPIO_PB0_U1RX 0x00010001
  36801. #define GPIO_PB0_T2CCP0 0x00010007
  36802. #define GPIO_PB1_U1TX 0x00010401
  36803. #define GPIO_PB1_T2CCP1 0x00010407
  36804. #define GPIO_PB2_I2C0SCL 0x00010803
  36805. #define GPIO_PB2_T3CCP0 0x00010807
  36806. #define GPIO_PB3_I2C0SDA 0x00010C03
  36807. #define GPIO_PB3_T3CCP1 0x00010C07
  36808. #define GPIO_PB4_SSI2CLK 0x00011002
  36809. #define GPIO_PB4_CAN0RX 0x00011008
  36810. #define GPIO_PB4_T1CCP0 0x00011007
  36811. #define GPIO_PB5_SSI2FSS 0x00011402
  36812. #define GPIO_PB5_CAN0TX 0x00011408
  36813. #define GPIO_PB5_T1CCP1 0x00011407
  36814. #define GPIO_PB6_SSI2RX 0x00011802
  36815. #define GPIO_PB6_I2C5SCL 0x00011803
  36816. #define GPIO_PB6_T0CCP0 0x00011807
  36817. #define GPIO_PB7_SSI2TX 0x00011C02
  36818. #define GPIO_PB7_I2C5SDA 0x00011C03
  36819. #define GPIO_PB7_T0CCP1 0x00011C07
  36820. #define GPIO_PC0_TCK 0x00020001
  36821. #define GPIO_PC0_SWCLK 0x00020001
  36822. #define GPIO_PC0_T4CCP0 0x00020007
  36823. #define GPIO_PC1_TMS 0x00020401
  36824. #define GPIO_PC1_SWDIO 0x00020401
  36825. #define GPIO_PC1_T4CCP1 0x00020407
  36826. #define GPIO_PC2_TDI 0x00020801
  36827. #define GPIO_PC2_T5CCP0 0x00020807
  36828. #define GPIO_PC3_SWO 0x00020C01
  36829. #define GPIO_PC3_TDO 0x00020C01
  36830. #define GPIO_PC3_T5CCP1 0x00020C07
  36831. #define GPIO_PC4_U4RX 0x00021001
  36832. #define GPIO_PC4_U1RX 0x00021002
  36833. #define GPIO_PC4_WT0CCP0 0x00021007
  36834. #define GPIO_PC4_U1RTS 0x00021008
  36835. #define GPIO_PC5_U4TX 0x00021401
  36836. #define GPIO_PC5_U1TX 0x00021402
  36837. #define GPIO_PC5_WT0CCP1 0x00021407
  36838. #define GPIO_PC5_U1CTS 0x00021408
  36839. #define GPIO_PC6_U3RX 0x00021801
  36840. #define GPIO_PC6_WT1CCP0 0x00021807
  36841. #define GPIO_PC7_U3TX 0x00021C01
  36842. #define GPIO_PC7_WT1CCP1 0x00021C07
  36843. #define GPIO_PD0_SSI3CLK 0x00030001
  36844. #define GPIO_PD0_SSI1CLK 0x00030002
  36845. #define GPIO_PD0_I2C3SCL 0x00030003
  36846. #define GPIO_PD0_WT2CCP0 0x00030007
  36847. #define GPIO_PD1_SSI3FSS 0x00030401
  36848. #define GPIO_PD1_SSI1FSS 0x00030402
  36849. #define GPIO_PD1_I2C3SDA 0x00030403
  36850. #define GPIO_PD1_WT2CCP1 0x00030407
  36851. #define GPIO_PD2_SSI3RX 0x00030801
  36852. #define GPIO_PD2_SSI1RX 0x00030802
  36853. #define GPIO_PD2_WT3CCP0 0x00030807
  36854. #define GPIO_PD3_SSI3TX 0x00030C01
  36855. #define GPIO_PD3_SSI1TX 0x00030C02
  36856. #define GPIO_PD3_WT3CCP1 0x00030C07
  36857. #define GPIO_PD4_U6RX 0x00031001
  36858. #define GPIO_PD4_WT4CCP0 0x00031007
  36859. #define GPIO_PD5_U6TX 0x00031401
  36860. #define GPIO_PD5_WT4CCP1 0x00031407
  36861. #define GPIO_PD6_U2RX 0x00031801
  36862. #define GPIO_PD6_WT5CCP0 0x00031807
  36863. #define GPIO_PD7_U2TX 0x00031C01
  36864. #define GPIO_PD7_WT5CCP1 0x00031C07
  36865. #define GPIO_PD7_NMI 0x00031C08
  36866. #define GPIO_PE0_U7RX 0x00040001
  36867. #define GPIO_PE1_U7TX 0x00040401
  36868. #define GPIO_PE4_U5RX 0x00041001
  36869. #define GPIO_PE4_I2C2SCL 0x00041003
  36870. #define GPIO_PE4_CAN0RX 0x00041008
  36871. #define GPIO_PE5_U5TX 0x00041401
  36872. #define GPIO_PE5_I2C2SDA 0x00041403
  36873. #define GPIO_PE5_CAN0TX 0x00041408
  36874. #define GPIO_PF0_U1RTS 0x00050001
  36875. #define GPIO_PF0_SSI1RX 0x00050002
  36876. #define GPIO_PF0_CAN0RX 0x00050003
  36877. #define GPIO_PF0_T0CCP0 0x00050007
  36878. #define GPIO_PF0_NMI 0x00050008
  36879. #define GPIO_PF0_C0O 0x00050009
  36880. #define GPIO_PF0_TRD2 0x0005000E
  36881. #define GPIO_PF1_U1CTS 0x00050401
  36882. #define GPIO_PF1_SSI1TX 0x00050402
  36883. #define GPIO_PF1_T0CCP1 0x00050407
  36884. #define GPIO_PF1_C1O 0x00050409
  36885. #define GPIO_PF1_TRD1 0x0005040E
  36886. #define GPIO_PF2_T1CCP0 0x00050807
  36887. #define GPIO_PF2_SSI1CLK 0x00050802
  36888. #define GPIO_PF2_TRD0 0x0005080E
  36889. #define GPIO_PF3_CAN0TX 0x00050C03
  36890. #define GPIO_PF3_T1CCP1 0x00050C07
  36891. #define GPIO_PF3_SSI1FSS 0x00050C02
  36892. #define GPIO_PF3_TRCLK 0x00050C0E
  36893. #define GPIO_PF4_T2CCP0 0x00051007
  36894. #define GPIO_PG0_I2C3SCL 0x00060003
  36895. #define GPIO_PG0_T4CCP0 0x00060007
  36896. #define GPIO_PG1_I2C3SDA 0x00060403
  36897. #define GPIO_PG1_T4CCP1 0x00060407
  36898. #define GPIO_PG2_I2C4SCL 0x00060803
  36899. #define GPIO_PG2_T5CCP0 0x00060807
  36900. #define GPIO_PG3_I2C4SDA 0x00060C03
  36901. #define GPIO_PG3_T5CCP1 0x00060C07
  36902. #define GPIO_PG4_U2RX 0x00061001
  36903. #define GPIO_PG4_I2C1SCL 0x00061003
  36904. #define GPIO_PG4_WT0CCP0 0x00061007
  36905. #define GPIO_PG5_U2TX 0x00061401
  36906. #define GPIO_PG5_I2C1SDA 0x00061403
  36907. #define GPIO_PG5_WT0CCP1 0x00061407
  36908. #endif // PART_LM4F111C4QR
  36909. //*****************************************************************************
  36910. //
  36911. // LM4F111E5QR Port/Pin Mapping Definitions
  36912. //
  36913. //*****************************************************************************
  36914. #ifdef PART_LM4F111E5QR
  36915. #define GPIO_PA0_U0RX 0x00000001
  36916. #define GPIO_PA1_U0TX 0x00000401
  36917. #define GPIO_PA2_SSI0CLK 0x00000802
  36918. #define GPIO_PA3_SSI0FSS 0x00000C02
  36919. #define GPIO_PA4_SSI0RX 0x00001002
  36920. #define GPIO_PA5_SSI0TX 0x00001402
  36921. #define GPIO_PA6_I2C1SCL 0x00001803
  36922. #define GPIO_PA7_I2C1SDA 0x00001C03
  36923. #define GPIO_PB0_U1RX 0x00010001
  36924. #define GPIO_PB0_T2CCP0 0x00010007
  36925. #define GPIO_PB1_U1TX 0x00010401
  36926. #define GPIO_PB1_T2CCP1 0x00010407
  36927. #define GPIO_PB2_I2C0SCL 0x00010803
  36928. #define GPIO_PB2_T3CCP0 0x00010807
  36929. #define GPIO_PB3_I2C0SDA 0x00010C03
  36930. #define GPIO_PB3_T3CCP1 0x00010C07
  36931. #define GPIO_PB4_SSI2CLK 0x00011002
  36932. #define GPIO_PB4_CAN0RX 0x00011008
  36933. #define GPIO_PB4_T1CCP0 0x00011007
  36934. #define GPIO_PB5_SSI2FSS 0x00011402
  36935. #define GPIO_PB5_CAN0TX 0x00011408
  36936. #define GPIO_PB5_T1CCP1 0x00011407
  36937. #define GPIO_PB6_SSI2RX 0x00011802
  36938. #define GPIO_PB6_I2C5SCL 0x00011803
  36939. #define GPIO_PB6_T0CCP0 0x00011807
  36940. #define GPIO_PB7_SSI2TX 0x00011C02
  36941. #define GPIO_PB7_I2C5SDA 0x00011C03
  36942. #define GPIO_PB7_T0CCP1 0x00011C07
  36943. #define GPIO_PC0_TCK 0x00020001
  36944. #define GPIO_PC0_SWCLK 0x00020001
  36945. #define GPIO_PC0_T4CCP0 0x00020007
  36946. #define GPIO_PC1_TMS 0x00020401
  36947. #define GPIO_PC1_SWDIO 0x00020401
  36948. #define GPIO_PC1_T4CCP1 0x00020407
  36949. #define GPIO_PC2_TDI 0x00020801
  36950. #define GPIO_PC2_T5CCP0 0x00020807
  36951. #define GPIO_PC3_SWO 0x00020C01
  36952. #define GPIO_PC3_TDO 0x00020C01
  36953. #define GPIO_PC3_T5CCP1 0x00020C07
  36954. #define GPIO_PC4_U4RX 0x00021001
  36955. #define GPIO_PC4_U1RX 0x00021002
  36956. #define GPIO_PC4_WT0CCP0 0x00021007
  36957. #define GPIO_PC4_U1RTS 0x00021008
  36958. #define GPIO_PC5_U4TX 0x00021401
  36959. #define GPIO_PC5_U1TX 0x00021402
  36960. #define GPIO_PC5_WT0CCP1 0x00021407
  36961. #define GPIO_PC5_U1CTS 0x00021408
  36962. #define GPIO_PC6_U3RX 0x00021801
  36963. #define GPIO_PC6_WT1CCP0 0x00021807
  36964. #define GPIO_PC7_U3TX 0x00021C01
  36965. #define GPIO_PC7_WT1CCP1 0x00021C07
  36966. #define GPIO_PD0_SSI3CLK 0x00030001
  36967. #define GPIO_PD0_SSI1CLK 0x00030002
  36968. #define GPIO_PD0_I2C3SCL 0x00030003
  36969. #define GPIO_PD0_WT2CCP0 0x00030007
  36970. #define GPIO_PD1_SSI3FSS 0x00030401
  36971. #define GPIO_PD1_SSI1FSS 0x00030402
  36972. #define GPIO_PD1_I2C3SDA 0x00030403
  36973. #define GPIO_PD1_WT2CCP1 0x00030407
  36974. #define GPIO_PD2_SSI3RX 0x00030801
  36975. #define GPIO_PD2_SSI1RX 0x00030802
  36976. #define GPIO_PD2_WT3CCP0 0x00030807
  36977. #define GPIO_PD3_SSI3TX 0x00030C01
  36978. #define GPIO_PD3_SSI1TX 0x00030C02
  36979. #define GPIO_PD3_WT3CCP1 0x00030C07
  36980. #define GPIO_PD4_U6RX 0x00031001
  36981. #define GPIO_PD4_WT4CCP0 0x00031007
  36982. #define GPIO_PD5_U6TX 0x00031401
  36983. #define GPIO_PD5_WT4CCP1 0x00031407
  36984. #define GPIO_PD6_U2RX 0x00031801
  36985. #define GPIO_PD6_WT5CCP0 0x00031807
  36986. #define GPIO_PD7_U2TX 0x00031C01
  36987. #define GPIO_PD7_WT5CCP1 0x00031C07
  36988. #define GPIO_PD7_NMI 0x00031C08
  36989. #define GPIO_PE0_U7RX 0x00040001
  36990. #define GPIO_PE1_U7TX 0x00040401
  36991. #define GPIO_PE4_U5RX 0x00041001
  36992. #define GPIO_PE4_I2C2SCL 0x00041003
  36993. #define GPIO_PE4_CAN0RX 0x00041008
  36994. #define GPIO_PE5_U5TX 0x00041401
  36995. #define GPIO_PE5_I2C2SDA 0x00041403
  36996. #define GPIO_PE5_CAN0TX 0x00041408
  36997. #define GPIO_PF0_U1RTS 0x00050001
  36998. #define GPIO_PF0_SSI1RX 0x00050002
  36999. #define GPIO_PF0_CAN0RX 0x00050003
  37000. #define GPIO_PF0_T0CCP0 0x00050007
  37001. #define GPIO_PF0_NMI 0x00050008
  37002. #define GPIO_PF0_C0O 0x00050009
  37003. #define GPIO_PF0_TRD2 0x0005000E
  37004. #define GPIO_PF1_U1CTS 0x00050401
  37005. #define GPIO_PF1_SSI1TX 0x00050402
  37006. #define GPIO_PF1_T0CCP1 0x00050407
  37007. #define GPIO_PF1_C1O 0x00050409
  37008. #define GPIO_PF1_TRD1 0x0005040E
  37009. #define GPIO_PF2_T1CCP0 0x00050807
  37010. #define GPIO_PF2_SSI1CLK 0x00050802
  37011. #define GPIO_PF2_TRD0 0x0005080E
  37012. #define GPIO_PF3_CAN0TX 0x00050C03
  37013. #define GPIO_PF3_T1CCP1 0x00050C07
  37014. #define GPIO_PF3_SSI1FSS 0x00050C02
  37015. #define GPIO_PF3_TRCLK 0x00050C0E
  37016. #define GPIO_PF4_T2CCP0 0x00051007
  37017. #define GPIO_PG0_I2C3SCL 0x00060003
  37018. #define GPIO_PG0_T4CCP0 0x00060007
  37019. #define GPIO_PG1_I2C3SDA 0x00060403
  37020. #define GPIO_PG1_T4CCP1 0x00060407
  37021. #define GPIO_PG2_I2C4SCL 0x00060803
  37022. #define GPIO_PG2_T5CCP0 0x00060807
  37023. #define GPIO_PG3_I2C4SDA 0x00060C03
  37024. #define GPIO_PG3_T5CCP1 0x00060C07
  37025. #define GPIO_PG4_U2RX 0x00061001
  37026. #define GPIO_PG4_I2C1SCL 0x00061003
  37027. #define GPIO_PG4_WT0CCP0 0x00061007
  37028. #define GPIO_PG5_U2TX 0x00061401
  37029. #define GPIO_PG5_I2C1SDA 0x00061403
  37030. #define GPIO_PG5_WT0CCP1 0x00061407
  37031. #endif // PART_LM4F111E5QR
  37032. //*****************************************************************************
  37033. //
  37034. // LM4F111H5QR Port/Pin Mapping Definitions
  37035. //
  37036. //*****************************************************************************
  37037. #ifdef PART_LM4F111H5QR
  37038. #define GPIO_PA0_U0RX 0x00000001
  37039. #define GPIO_PA1_U0TX 0x00000401
  37040. #define GPIO_PA2_SSI0CLK 0x00000802
  37041. #define GPIO_PA3_SSI0FSS 0x00000C02
  37042. #define GPIO_PA4_SSI0RX 0x00001002
  37043. #define GPIO_PA5_SSI0TX 0x00001402
  37044. #define GPIO_PA6_I2C1SCL 0x00001803
  37045. #define GPIO_PA7_I2C1SDA 0x00001C03
  37046. #define GPIO_PB0_U1RX 0x00010001
  37047. #define GPIO_PB0_T2CCP0 0x00010007
  37048. #define GPIO_PB1_U1TX 0x00010401
  37049. #define GPIO_PB1_T2CCP1 0x00010407
  37050. #define GPIO_PB2_I2C0SCL 0x00010803
  37051. #define GPIO_PB2_T3CCP0 0x00010807
  37052. #define GPIO_PB3_I2C0SDA 0x00010C03
  37053. #define GPIO_PB3_T3CCP1 0x00010C07
  37054. #define GPIO_PB4_SSI2CLK 0x00011002
  37055. #define GPIO_PB4_CAN0RX 0x00011008
  37056. #define GPIO_PB4_T1CCP0 0x00011007
  37057. #define GPIO_PB5_SSI2FSS 0x00011402
  37058. #define GPIO_PB5_CAN0TX 0x00011408
  37059. #define GPIO_PB5_T1CCP1 0x00011407
  37060. #define GPIO_PB6_SSI2RX 0x00011802
  37061. #define GPIO_PB6_I2C5SCL 0x00011803
  37062. #define GPIO_PB6_T0CCP0 0x00011807
  37063. #define GPIO_PB7_SSI2TX 0x00011C02
  37064. #define GPIO_PB7_I2C5SDA 0x00011C03
  37065. #define GPIO_PB7_T0CCP1 0x00011C07
  37066. #define GPIO_PC0_TCK 0x00020001
  37067. #define GPIO_PC0_SWCLK 0x00020001
  37068. #define GPIO_PC0_T4CCP0 0x00020007
  37069. #define GPIO_PC1_TMS 0x00020401
  37070. #define GPIO_PC1_SWDIO 0x00020401
  37071. #define GPIO_PC1_T4CCP1 0x00020407
  37072. #define GPIO_PC2_TDI 0x00020801
  37073. #define GPIO_PC2_T5CCP0 0x00020807
  37074. #define GPIO_PC3_SWO 0x00020C01
  37075. #define GPIO_PC3_TDO 0x00020C01
  37076. #define GPIO_PC3_T5CCP1 0x00020C07
  37077. #define GPIO_PC4_U4RX 0x00021001
  37078. #define GPIO_PC4_U1RX 0x00021002
  37079. #define GPIO_PC4_WT0CCP0 0x00021007
  37080. #define GPIO_PC4_U1RTS 0x00021008
  37081. #define GPIO_PC5_U4TX 0x00021401
  37082. #define GPIO_PC5_U1TX 0x00021402
  37083. #define GPIO_PC5_WT0CCP1 0x00021407
  37084. #define GPIO_PC5_U1CTS 0x00021408
  37085. #define GPIO_PC6_U3RX 0x00021801
  37086. #define GPIO_PC6_WT1CCP0 0x00021807
  37087. #define GPIO_PC7_U3TX 0x00021C01
  37088. #define GPIO_PC7_WT1CCP1 0x00021C07
  37089. #define GPIO_PD0_SSI3CLK 0x00030001
  37090. #define GPIO_PD0_SSI1CLK 0x00030002
  37091. #define GPIO_PD0_I2C3SCL 0x00030003
  37092. #define GPIO_PD0_WT2CCP0 0x00030007
  37093. #define GPIO_PD1_SSI3FSS 0x00030401
  37094. #define GPIO_PD1_SSI1FSS 0x00030402
  37095. #define GPIO_PD1_I2C3SDA 0x00030403
  37096. #define GPIO_PD1_WT2CCP1 0x00030407
  37097. #define GPIO_PD2_SSI3RX 0x00030801
  37098. #define GPIO_PD2_SSI1RX 0x00030802
  37099. #define GPIO_PD2_WT3CCP0 0x00030807
  37100. #define GPIO_PD3_SSI3TX 0x00030C01
  37101. #define GPIO_PD3_SSI1TX 0x00030C02
  37102. #define GPIO_PD3_WT3CCP1 0x00030C07
  37103. #define GPIO_PD4_U6RX 0x00031001
  37104. #define GPIO_PD4_WT4CCP0 0x00031007
  37105. #define GPIO_PD5_U6TX 0x00031401
  37106. #define GPIO_PD5_WT4CCP1 0x00031407
  37107. #define GPIO_PD6_U2RX 0x00031801
  37108. #define GPIO_PD6_WT5CCP0 0x00031807
  37109. #define GPIO_PD7_U2TX 0x00031C01
  37110. #define GPIO_PD7_WT5CCP1 0x00031C07
  37111. #define GPIO_PD7_NMI 0x00031C08
  37112. #define GPIO_PE0_U7RX 0x00040001
  37113. #define GPIO_PE1_U7TX 0x00040401
  37114. #define GPIO_PE4_U5RX 0x00041001
  37115. #define GPIO_PE4_I2C2SCL 0x00041003
  37116. #define GPIO_PE4_CAN0RX 0x00041008
  37117. #define GPIO_PE5_U5TX 0x00041401
  37118. #define GPIO_PE5_I2C2SDA 0x00041403
  37119. #define GPIO_PE5_CAN0TX 0x00041408
  37120. #define GPIO_PF0_U1RTS 0x00050001
  37121. #define GPIO_PF0_SSI1RX 0x00050002
  37122. #define GPIO_PF0_CAN0RX 0x00050003
  37123. #define GPIO_PF0_T0CCP0 0x00050007
  37124. #define GPIO_PF0_NMI 0x00050008
  37125. #define GPIO_PF0_C0O 0x00050009
  37126. #define GPIO_PF0_TRD2 0x0005000E
  37127. #define GPIO_PF1_U1CTS 0x00050401
  37128. #define GPIO_PF1_SSI1TX 0x00050402
  37129. #define GPIO_PF1_T0CCP1 0x00050407
  37130. #define GPIO_PF1_C1O 0x00050409
  37131. #define GPIO_PF1_TRD1 0x0005040E
  37132. #define GPIO_PF2_T1CCP0 0x00050807
  37133. #define GPIO_PF2_SSI1CLK 0x00050802
  37134. #define GPIO_PF2_TRD0 0x0005080E
  37135. #define GPIO_PF3_CAN0TX 0x00050C03
  37136. #define GPIO_PF3_T1CCP1 0x00050C07
  37137. #define GPIO_PF3_SSI1FSS 0x00050C02
  37138. #define GPIO_PF3_TRCLK 0x00050C0E
  37139. #define GPIO_PF4_T2CCP0 0x00051007
  37140. #define GPIO_PG0_I2C3SCL 0x00060003
  37141. #define GPIO_PG0_T4CCP0 0x00060007
  37142. #define GPIO_PG1_I2C3SDA 0x00060403
  37143. #define GPIO_PG1_T4CCP1 0x00060407
  37144. #define GPIO_PG2_I2C4SCL 0x00060803
  37145. #define GPIO_PG2_T5CCP0 0x00060807
  37146. #define GPIO_PG3_I2C4SDA 0x00060C03
  37147. #define GPIO_PG3_T5CCP1 0x00060C07
  37148. #define GPIO_PG4_U2RX 0x00061001
  37149. #define GPIO_PG4_I2C1SCL 0x00061003
  37150. #define GPIO_PG4_WT0CCP0 0x00061007
  37151. #define GPIO_PG5_U2TX 0x00061401
  37152. #define GPIO_PG5_I2C1SDA 0x00061403
  37153. #define GPIO_PG5_WT0CCP1 0x00061407
  37154. #endif // PART_LM4F111H5QR
  37155. //*****************************************************************************
  37156. //
  37157. // LM4F112C4QC Port/Pin Mapping Definitions
  37158. //
  37159. //*****************************************************************************
  37160. #ifdef PART_LM4F112C4QC
  37161. #define GPIO_PA0_U0RX 0x00000001
  37162. #define GPIO_PA1_U0TX 0x00000401
  37163. #define GPIO_PA2_SSI0CLK 0x00000802
  37164. #define GPIO_PA3_SSI0FSS 0x00000C02
  37165. #define GPIO_PA4_SSI0RX 0x00001002
  37166. #define GPIO_PA5_SSI0TX 0x00001402
  37167. #define GPIO_PA6_I2C1SCL 0x00001803
  37168. #define GPIO_PA7_I2C1SDA 0x00001C03
  37169. #define GPIO_PB0_U1RX 0x00010001
  37170. #define GPIO_PB0_T2CCP0 0x00010007
  37171. #define GPIO_PB1_U1TX 0x00010401
  37172. #define GPIO_PB1_T2CCP1 0x00010407
  37173. #define GPIO_PB2_I2C0SCL 0x00010803
  37174. #define GPIO_PB2_T3CCP0 0x00010807
  37175. #define GPIO_PB3_I2C0SDA 0x00010C03
  37176. #define GPIO_PB3_T3CCP1 0x00010C07
  37177. #define GPIO_PB4_SSI2CLK 0x00011002
  37178. #define GPIO_PB4_CAN0RX 0x00011008
  37179. #define GPIO_PB4_T1CCP0 0x00011007
  37180. #define GPIO_PB5_SSI2FSS 0x00011402
  37181. #define GPIO_PB5_CAN0TX 0x00011408
  37182. #define GPIO_PB5_T1CCP1 0x00011407
  37183. #define GPIO_PC0_TCK 0x00020001
  37184. #define GPIO_PC0_SWCLK 0x00020001
  37185. #define GPIO_PC0_T4CCP0 0x00020007
  37186. #define GPIO_PC1_TMS 0x00020401
  37187. #define GPIO_PC1_SWDIO 0x00020401
  37188. #define GPIO_PC1_T4CCP1 0x00020407
  37189. #define GPIO_PC2_TDI 0x00020801
  37190. #define GPIO_PC2_T5CCP0 0x00020807
  37191. #define GPIO_PC3_SWO 0x00020C01
  37192. #define GPIO_PC3_TDO 0x00020C01
  37193. #define GPIO_PC3_T5CCP1 0x00020C07
  37194. #define GPIO_PC4_U4RX 0x00021001
  37195. #define GPIO_PC4_U1RX 0x00021002
  37196. #define GPIO_PC4_WT0CCP0 0x00021007
  37197. #define GPIO_PC4_U1RTS 0x00021008
  37198. #define GPIO_PC5_U4TX 0x00021401
  37199. #define GPIO_PC5_U1TX 0x00021402
  37200. #define GPIO_PC5_WT0CCP1 0x00021407
  37201. #define GPIO_PC5_U1CTS 0x00021408
  37202. #define GPIO_PC6_U3RX 0x00021801
  37203. #define GPIO_PC6_WT1CCP0 0x00021807
  37204. #define GPIO_PC7_U3TX 0x00021C01
  37205. #define GPIO_PC7_WT1CCP1 0x00021C07
  37206. #define GPIO_PD0_SSI3CLK 0x00030001
  37207. #define GPIO_PD0_SSI1CLK 0x00030002
  37208. #define GPIO_PD0_I2C3SCL 0x00030003
  37209. #define GPIO_PD0_WT2CCP0 0x00030007
  37210. #define GPIO_PD1_SSI3FSS 0x00030401
  37211. #define GPIO_PD1_SSI1FSS 0x00030402
  37212. #define GPIO_PD1_I2C3SDA 0x00030403
  37213. #define GPIO_PD1_WT2CCP1 0x00030407
  37214. #define GPIO_PD2_SSI3RX 0x00030801
  37215. #define GPIO_PD2_SSI1RX 0x00030802
  37216. #define GPIO_PD2_WT3CCP0 0x00030807
  37217. #define GPIO_PD3_SSI3TX 0x00030C01
  37218. #define GPIO_PD3_SSI1TX 0x00030C02
  37219. #define GPIO_PD3_WT3CCP1 0x00030C07
  37220. #define GPIO_PD4_U6RX 0x00031001
  37221. #define GPIO_PD4_WT4CCP0 0x00031007
  37222. #define GPIO_PD5_U6TX 0x00031401
  37223. #define GPIO_PD5_WT4CCP1 0x00031407
  37224. #define GPIO_PD6_U2RX 0x00031801
  37225. #define GPIO_PD6_WT5CCP0 0x00031807
  37226. #define GPIO_PD7_U2TX 0x00031C01
  37227. #define GPIO_PD7_WT5CCP1 0x00031C07
  37228. #define GPIO_PD7_NMI 0x00031C08
  37229. #define GPIO_PE0_U7RX 0x00040001
  37230. #define GPIO_PE1_U7TX 0x00040401
  37231. #define GPIO_PE4_U5RX 0x00041001
  37232. #define GPIO_PE4_I2C2SCL 0x00041003
  37233. #define GPIO_PE4_CAN0RX 0x00041008
  37234. #define GPIO_PE5_U5TX 0x00041401
  37235. #define GPIO_PE5_I2C2SDA 0x00041403
  37236. #define GPIO_PE5_CAN0TX 0x00041408
  37237. #define GPIO_PE7_U1RI 0x00041C01
  37238. #define GPIO_PF0_U1RTS 0x00050001
  37239. #define GPIO_PF0_SSI1RX 0x00050002
  37240. #define GPIO_PF0_CAN0RX 0x00050003
  37241. #define GPIO_PF0_T0CCP0 0x00050007
  37242. #define GPIO_PF0_NMI 0x00050008
  37243. #define GPIO_PF0_C0O 0x00050009
  37244. #define GPIO_PF0_TRD2 0x0005000E
  37245. #define GPIO_PF1_U1CTS 0x00050401
  37246. #define GPIO_PF1_SSI1TX 0x00050402
  37247. #define GPIO_PF1_T0CCP1 0x00050407
  37248. #define GPIO_PF1_C1O 0x00050409
  37249. #define GPIO_PF1_TRD1 0x0005040E
  37250. #define GPIO_PF2_U1DCD 0x00050801
  37251. #define GPIO_PF2_T1CCP0 0x00050807
  37252. #define GPIO_PF2_SSI1CLK 0x00050802
  37253. #define GPIO_PF2_C2O 0x00050809
  37254. #define GPIO_PF2_TRD0 0x0005080E
  37255. #define GPIO_PF3_U1DSR 0x00050C01
  37256. #define GPIO_PF3_CAN0TX 0x00050C03
  37257. #define GPIO_PF3_T1CCP1 0x00050C07
  37258. #define GPIO_PF3_SSI1FSS 0x00050C02
  37259. #define GPIO_PF3_TRCLK 0x00050C0E
  37260. #define GPIO_PF4_U1DTR 0x00051001
  37261. #define GPIO_PF4_T2CCP0 0x00051007
  37262. #define GPIO_PF4_TRD3 0x0005100E
  37263. #define GPIO_PF5_T2CCP1 0x00051407
  37264. #define GPIO_PF6_I2C2SCL 0x00051803
  37265. #define GPIO_PF6_T3CCP0 0x00051807
  37266. #define GPIO_PF7_I2C2SDA 0x00051C03
  37267. #define GPIO_PF7_T3CCP1 0x00051C07
  37268. #define GPIO_PG0_I2C3SCL 0x00060003
  37269. #define GPIO_PG0_T4CCP0 0x00060007
  37270. #define GPIO_PG0_LPC0PD_N 0x0006000F
  37271. #define GPIO_PG1_I2C3SDA 0x00060403
  37272. #define GPIO_PG1_T4CCP1 0x00060407
  37273. #define GPIO_PG1_LPC0SCI_N 0x0006040F
  37274. #define GPIO_PG2_I2C4SCL 0x00060803
  37275. #define GPIO_PG2_T5CCP0 0x00060807
  37276. #define GPIO_PG2_LPC0CLKRUN_N 0x0006080F
  37277. #define GPIO_PG3_I2C4SDA 0x00060C03
  37278. #define GPIO_PG3_T5CCP1 0x00060C07
  37279. #define GPIO_PG4_U2RX 0x00061001
  37280. #define GPIO_PG4_I2C1SCL 0x00061003
  37281. #define GPIO_PG4_WT0CCP0 0x00061007
  37282. #define GPIO_PG5_U2TX 0x00061401
  37283. #define GPIO_PG5_I2C1SDA 0x00061403
  37284. #define GPIO_PG5_WT0CCP1 0x00061407
  37285. #define GPIO_PG6_I2C5SCL 0x00061803
  37286. #define GPIO_PG6_WT1CCP0 0x00061807
  37287. #define GPIO_PG7_I2C5SDA 0x00061C03
  37288. #define GPIO_PG7_WT1CCP1 0x00061C07
  37289. #define GPIO_PH0_SSI3CLK 0x00070002
  37290. #define GPIO_PH0_WT2CCP0 0x00070007
  37291. #define GPIO_PH1_SSI3FSS 0x00070402
  37292. #define GPIO_PH1_WT2CCP1 0x00070407
  37293. #define GPIO_PH2_SSI3RX 0x00070802
  37294. #define GPIO_PH2_WT5CCP0 0x00070807
  37295. #define GPIO_PH3_SSI3TX 0x00070C02
  37296. #define GPIO_PH3_WT5CCP1 0x00070C07
  37297. #define GPIO_PH4_SSI2CLK 0x00071002
  37298. #define GPIO_PH4_WT3CCP0 0x00071007
  37299. #define GPIO_PH5_SSI2FSS 0x00071402
  37300. #define GPIO_PH5_WT3CCP1 0x00071407
  37301. #define GPIO_PH6_SSI2RX 0x00071802
  37302. #define GPIO_PH6_WT4CCP0 0x00071807
  37303. #define GPIO_PH7_SSI2TX 0x00071C02
  37304. #define GPIO_PH7_WT4CCP1 0x00071C07
  37305. #define GPIO_PJ0_U4RX 0x00080001
  37306. #define GPIO_PJ0_T1CCP0 0x00080007
  37307. #define GPIO_PJ1_U4TX 0x00080401
  37308. #define GPIO_PJ1_T1CCP1 0x00080407
  37309. #define GPIO_PJ2_U5RX 0x00080801
  37310. #define GPIO_PJ2_T2CCP0 0x00080807
  37311. #define GPIO_PK0_SSI3CLK 0x00090002
  37312. #define GPIO_PK1_SSI3FSS 0x00090402
  37313. #define GPIO_PK2_SSI3RX 0x00090802
  37314. #define GPIO_PK3_SSI3TX 0x00090C02
  37315. #endif // PART_LM4F112C4QC
  37316. //*****************************************************************************
  37317. //
  37318. // LM4F112E5QC Port/Pin Mapping Definitions
  37319. //
  37320. //*****************************************************************************
  37321. #ifdef PART_LM4F112E5QC
  37322. #define GPIO_PA0_U0RX 0x00000001
  37323. #define GPIO_PA1_U0TX 0x00000401
  37324. #define GPIO_PA2_SSI0CLK 0x00000802
  37325. #define GPIO_PA3_SSI0FSS 0x00000C02
  37326. #define GPIO_PA4_SSI0RX 0x00001002
  37327. #define GPIO_PA5_SSI0TX 0x00001402
  37328. #define GPIO_PA6_I2C1SCL 0x00001803
  37329. #define GPIO_PA7_I2C1SDA 0x00001C03
  37330. #define GPIO_PB0_U1RX 0x00010001
  37331. #define GPIO_PB0_T2CCP0 0x00010007
  37332. #define GPIO_PB1_U1TX 0x00010401
  37333. #define GPIO_PB1_T2CCP1 0x00010407
  37334. #define GPIO_PB2_I2C0SCL 0x00010803
  37335. #define GPIO_PB2_T3CCP0 0x00010807
  37336. #define GPIO_PB3_I2C0SDA 0x00010C03
  37337. #define GPIO_PB3_T3CCP1 0x00010C07
  37338. #define GPIO_PB4_SSI2CLK 0x00011002
  37339. #define GPIO_PB4_CAN0RX 0x00011008
  37340. #define GPIO_PB4_T1CCP0 0x00011007
  37341. #define GPIO_PB5_SSI2FSS 0x00011402
  37342. #define GPIO_PB5_CAN0TX 0x00011408
  37343. #define GPIO_PB5_T1CCP1 0x00011407
  37344. #define GPIO_PC0_TCK 0x00020001
  37345. #define GPIO_PC0_SWCLK 0x00020001
  37346. #define GPIO_PC0_T4CCP0 0x00020007
  37347. #define GPIO_PC1_TMS 0x00020401
  37348. #define GPIO_PC1_SWDIO 0x00020401
  37349. #define GPIO_PC1_T4CCP1 0x00020407
  37350. #define GPIO_PC2_TDI 0x00020801
  37351. #define GPIO_PC2_T5CCP0 0x00020807
  37352. #define GPIO_PC3_SWO 0x00020C01
  37353. #define GPIO_PC3_TDO 0x00020C01
  37354. #define GPIO_PC3_T5CCP1 0x00020C07
  37355. #define GPIO_PC4_U4RX 0x00021001
  37356. #define GPIO_PC4_U1RX 0x00021002
  37357. #define GPIO_PC4_WT0CCP0 0x00021007
  37358. #define GPIO_PC4_U1RTS 0x00021008
  37359. #define GPIO_PC5_U4TX 0x00021401
  37360. #define GPIO_PC5_U1TX 0x00021402
  37361. #define GPIO_PC5_WT0CCP1 0x00021407
  37362. #define GPIO_PC5_U1CTS 0x00021408
  37363. #define GPIO_PC6_U3RX 0x00021801
  37364. #define GPIO_PC6_WT1CCP0 0x00021807
  37365. #define GPIO_PC7_U3TX 0x00021C01
  37366. #define GPIO_PC7_WT1CCP1 0x00021C07
  37367. #define GPIO_PD0_SSI3CLK 0x00030001
  37368. #define GPIO_PD0_SSI1CLK 0x00030002
  37369. #define GPIO_PD0_I2C3SCL 0x00030003
  37370. #define GPIO_PD0_WT2CCP0 0x00030007
  37371. #define GPIO_PD1_SSI3FSS 0x00030401
  37372. #define GPIO_PD1_SSI1FSS 0x00030402
  37373. #define GPIO_PD1_I2C3SDA 0x00030403
  37374. #define GPIO_PD1_WT2CCP1 0x00030407
  37375. #define GPIO_PD2_SSI3RX 0x00030801
  37376. #define GPIO_PD2_SSI1RX 0x00030802
  37377. #define GPIO_PD2_WT3CCP0 0x00030807
  37378. #define GPIO_PD3_SSI3TX 0x00030C01
  37379. #define GPIO_PD3_SSI1TX 0x00030C02
  37380. #define GPIO_PD3_WT3CCP1 0x00030C07
  37381. #define GPIO_PD4_U6RX 0x00031001
  37382. #define GPIO_PD4_WT4CCP0 0x00031007
  37383. #define GPIO_PD5_U6TX 0x00031401
  37384. #define GPIO_PD5_WT4CCP1 0x00031407
  37385. #define GPIO_PD6_U2RX 0x00031801
  37386. #define GPIO_PD6_WT5CCP0 0x00031807
  37387. #define GPIO_PD7_U2TX 0x00031C01
  37388. #define GPIO_PD7_WT5CCP1 0x00031C07
  37389. #define GPIO_PD7_NMI 0x00031C08
  37390. #define GPIO_PE0_U7RX 0x00040001
  37391. #define GPIO_PE1_U7TX 0x00040401
  37392. #define GPIO_PE4_U5RX 0x00041001
  37393. #define GPIO_PE4_I2C2SCL 0x00041003
  37394. #define GPIO_PE4_CAN0RX 0x00041008
  37395. #define GPIO_PE5_U5TX 0x00041401
  37396. #define GPIO_PE5_I2C2SDA 0x00041403
  37397. #define GPIO_PE5_CAN0TX 0x00041408
  37398. #define GPIO_PE7_U1RI 0x00041C01
  37399. #define GPIO_PF0_U1RTS 0x00050001
  37400. #define GPIO_PF0_SSI1RX 0x00050002
  37401. #define GPIO_PF0_CAN0RX 0x00050003
  37402. #define GPIO_PF0_T0CCP0 0x00050007
  37403. #define GPIO_PF0_NMI 0x00050008
  37404. #define GPIO_PF0_C0O 0x00050009
  37405. #define GPIO_PF0_TRD2 0x0005000E
  37406. #define GPIO_PF1_U1CTS 0x00050401
  37407. #define GPIO_PF1_SSI1TX 0x00050402
  37408. #define GPIO_PF1_T0CCP1 0x00050407
  37409. #define GPIO_PF1_C1O 0x00050409
  37410. #define GPIO_PF1_TRD1 0x0005040E
  37411. #define GPIO_PF2_U1DCD 0x00050801
  37412. #define GPIO_PF2_T1CCP0 0x00050807
  37413. #define GPIO_PF2_SSI1CLK 0x00050802
  37414. #define GPIO_PF2_C2O 0x00050809
  37415. #define GPIO_PF2_TRD0 0x0005080E
  37416. #define GPIO_PF3_U1DSR 0x00050C01
  37417. #define GPIO_PF3_CAN0TX 0x00050C03
  37418. #define GPIO_PF3_T1CCP1 0x00050C07
  37419. #define GPIO_PF3_SSI1FSS 0x00050C02
  37420. #define GPIO_PF3_TRCLK 0x00050C0E
  37421. #define GPIO_PF4_U1DTR 0x00051001
  37422. #define GPIO_PF4_T2CCP0 0x00051007
  37423. #define GPIO_PF4_TRD3 0x0005100E
  37424. #define GPIO_PF5_T2CCP1 0x00051407
  37425. #define GPIO_PF6_I2C2SCL 0x00051803
  37426. #define GPIO_PF6_T3CCP0 0x00051807
  37427. #define GPIO_PF7_I2C2SDA 0x00051C03
  37428. #define GPIO_PF7_T3CCP1 0x00051C07
  37429. #define GPIO_PG0_I2C3SCL 0x00060003
  37430. #define GPIO_PG0_T4CCP0 0x00060007
  37431. #define GPIO_PG0_LPC0PD_N 0x0006000F
  37432. #define GPIO_PG1_I2C3SDA 0x00060403
  37433. #define GPIO_PG1_T4CCP1 0x00060407
  37434. #define GPIO_PG1_LPC0SCI_N 0x0006040F
  37435. #define GPIO_PG2_I2C4SCL 0x00060803
  37436. #define GPIO_PG2_T5CCP0 0x00060807
  37437. #define GPIO_PG2_LPC0CLKRUN_N 0x0006080F
  37438. #define GPIO_PG3_I2C4SDA 0x00060C03
  37439. #define GPIO_PG3_T5CCP1 0x00060C07
  37440. #define GPIO_PG4_U2RX 0x00061001
  37441. #define GPIO_PG4_I2C1SCL 0x00061003
  37442. #define GPIO_PG4_WT0CCP0 0x00061007
  37443. #define GPIO_PG5_U2TX 0x00061401
  37444. #define GPIO_PG5_I2C1SDA 0x00061403
  37445. #define GPIO_PG5_WT0CCP1 0x00061407
  37446. #define GPIO_PG6_I2C5SCL 0x00061803
  37447. #define GPIO_PG6_WT1CCP0 0x00061807
  37448. #define GPIO_PG7_I2C5SDA 0x00061C03
  37449. #define GPIO_PG7_WT1CCP1 0x00061C07
  37450. #define GPIO_PH0_SSI3CLK 0x00070002
  37451. #define GPIO_PH0_WT2CCP0 0x00070007
  37452. #define GPIO_PH1_SSI3FSS 0x00070402
  37453. #define GPIO_PH1_WT2CCP1 0x00070407
  37454. #define GPIO_PH2_SSI3RX 0x00070802
  37455. #define GPIO_PH2_WT5CCP0 0x00070807
  37456. #define GPIO_PH3_SSI3TX 0x00070C02
  37457. #define GPIO_PH3_WT5CCP1 0x00070C07
  37458. #define GPIO_PH4_SSI2CLK 0x00071002
  37459. #define GPIO_PH4_WT3CCP0 0x00071007
  37460. #define GPIO_PH5_SSI2FSS 0x00071402
  37461. #define GPIO_PH5_WT3CCP1 0x00071407
  37462. #define GPIO_PH6_SSI2RX 0x00071802
  37463. #define GPIO_PH6_WT4CCP0 0x00071807
  37464. #define GPIO_PH7_SSI2TX 0x00071C02
  37465. #define GPIO_PH7_WT4CCP1 0x00071C07
  37466. #define GPIO_PJ0_U4RX 0x00080001
  37467. #define GPIO_PJ0_T1CCP0 0x00080007
  37468. #define GPIO_PJ1_U4TX 0x00080401
  37469. #define GPIO_PJ1_T1CCP1 0x00080407
  37470. #define GPIO_PJ2_U5RX 0x00080801
  37471. #define GPIO_PJ2_T2CCP0 0x00080807
  37472. #define GPIO_PK0_SSI3CLK 0x00090002
  37473. #define GPIO_PK1_SSI3FSS 0x00090402
  37474. #define GPIO_PK2_SSI3RX 0x00090802
  37475. #define GPIO_PK3_SSI3TX 0x00090C02
  37476. #endif // PART_LM4F112E5QC
  37477. //*****************************************************************************
  37478. //
  37479. // LM4F112H5QC Port/Pin Mapping Definitions
  37480. //
  37481. //*****************************************************************************
  37482. #ifdef PART_LM4F112H5QC
  37483. #define GPIO_PA0_U0RX 0x00000001
  37484. #define GPIO_PA1_U0TX 0x00000401
  37485. #define GPIO_PA2_SSI0CLK 0x00000802
  37486. #define GPIO_PA3_SSI0FSS 0x00000C02
  37487. #define GPIO_PA4_SSI0RX 0x00001002
  37488. #define GPIO_PA5_SSI0TX 0x00001402
  37489. #define GPIO_PA6_I2C1SCL 0x00001803
  37490. #define GPIO_PA7_I2C1SDA 0x00001C03
  37491. #define GPIO_PB0_U1RX 0x00010001
  37492. #define GPIO_PB0_T2CCP0 0x00010007
  37493. #define GPIO_PB1_U1TX 0x00010401
  37494. #define GPIO_PB1_T2CCP1 0x00010407
  37495. #define GPIO_PB2_I2C0SCL 0x00010803
  37496. #define GPIO_PB2_T3CCP0 0x00010807
  37497. #define GPIO_PB3_I2C0SDA 0x00010C03
  37498. #define GPIO_PB3_T3CCP1 0x00010C07
  37499. #define GPIO_PB4_SSI2CLK 0x00011002
  37500. #define GPIO_PB4_CAN0RX 0x00011008
  37501. #define GPIO_PB4_T1CCP0 0x00011007
  37502. #define GPIO_PB5_SSI2FSS 0x00011402
  37503. #define GPIO_PB5_CAN0TX 0x00011408
  37504. #define GPIO_PB5_T1CCP1 0x00011407
  37505. #define GPIO_PC0_TCK 0x00020001
  37506. #define GPIO_PC0_SWCLK 0x00020001
  37507. #define GPIO_PC0_T4CCP0 0x00020007
  37508. #define GPIO_PC1_TMS 0x00020401
  37509. #define GPIO_PC1_SWDIO 0x00020401
  37510. #define GPIO_PC1_T4CCP1 0x00020407
  37511. #define GPIO_PC2_TDI 0x00020801
  37512. #define GPIO_PC2_T5CCP0 0x00020807
  37513. #define GPIO_PC3_SWO 0x00020C01
  37514. #define GPIO_PC3_TDO 0x00020C01
  37515. #define GPIO_PC3_T5CCP1 0x00020C07
  37516. #define GPIO_PC4_U4RX 0x00021001
  37517. #define GPIO_PC4_U1RX 0x00021002
  37518. #define GPIO_PC4_WT0CCP0 0x00021007
  37519. #define GPIO_PC4_U1RTS 0x00021008
  37520. #define GPIO_PC5_U4TX 0x00021401
  37521. #define GPIO_PC5_U1TX 0x00021402
  37522. #define GPIO_PC5_WT0CCP1 0x00021407
  37523. #define GPIO_PC5_U1CTS 0x00021408
  37524. #define GPIO_PC6_U3RX 0x00021801
  37525. #define GPIO_PC6_WT1CCP0 0x00021807
  37526. #define GPIO_PC7_U3TX 0x00021C01
  37527. #define GPIO_PC7_WT1CCP1 0x00021C07
  37528. #define GPIO_PD0_SSI3CLK 0x00030001
  37529. #define GPIO_PD0_SSI1CLK 0x00030002
  37530. #define GPIO_PD0_I2C3SCL 0x00030003
  37531. #define GPIO_PD0_WT2CCP0 0x00030007
  37532. #define GPIO_PD1_SSI3FSS 0x00030401
  37533. #define GPIO_PD1_SSI1FSS 0x00030402
  37534. #define GPIO_PD1_I2C3SDA 0x00030403
  37535. #define GPIO_PD1_WT2CCP1 0x00030407
  37536. #define GPIO_PD2_SSI3RX 0x00030801
  37537. #define GPIO_PD2_SSI1RX 0x00030802
  37538. #define GPIO_PD2_WT3CCP0 0x00030807
  37539. #define GPIO_PD3_SSI3TX 0x00030C01
  37540. #define GPIO_PD3_SSI1TX 0x00030C02
  37541. #define GPIO_PD3_WT3CCP1 0x00030C07
  37542. #define GPIO_PD4_U6RX 0x00031001
  37543. #define GPIO_PD4_WT4CCP0 0x00031007
  37544. #define GPIO_PD5_U6TX 0x00031401
  37545. #define GPIO_PD5_WT4CCP1 0x00031407
  37546. #define GPIO_PD6_U2RX 0x00031801
  37547. #define GPIO_PD6_WT5CCP0 0x00031807
  37548. #define GPIO_PD7_U2TX 0x00031C01
  37549. #define GPIO_PD7_WT5CCP1 0x00031C07
  37550. #define GPIO_PD7_NMI 0x00031C08
  37551. #define GPIO_PE0_U7RX 0x00040001
  37552. #define GPIO_PE1_U7TX 0x00040401
  37553. #define GPIO_PE4_U5RX 0x00041001
  37554. #define GPIO_PE4_I2C2SCL 0x00041003
  37555. #define GPIO_PE4_CAN0RX 0x00041008
  37556. #define GPIO_PE5_U5TX 0x00041401
  37557. #define GPIO_PE5_I2C2SDA 0x00041403
  37558. #define GPIO_PE5_CAN0TX 0x00041408
  37559. #define GPIO_PE7_U1RI 0x00041C01
  37560. #define GPIO_PF0_U1RTS 0x00050001
  37561. #define GPIO_PF0_SSI1RX 0x00050002
  37562. #define GPIO_PF0_CAN0RX 0x00050003
  37563. #define GPIO_PF0_T0CCP0 0x00050007
  37564. #define GPIO_PF0_NMI 0x00050008
  37565. #define GPIO_PF0_C0O 0x00050009
  37566. #define GPIO_PF0_TRD2 0x0005000E
  37567. #define GPIO_PF1_U1CTS 0x00050401
  37568. #define GPIO_PF1_SSI1TX 0x00050402
  37569. #define GPIO_PF1_T0CCP1 0x00050407
  37570. #define GPIO_PF1_C1O 0x00050409
  37571. #define GPIO_PF1_TRD1 0x0005040E
  37572. #define GPIO_PF2_U1DCD 0x00050801
  37573. #define GPIO_PF2_T1CCP0 0x00050807
  37574. #define GPIO_PF2_SSI1CLK 0x00050802
  37575. #define GPIO_PF2_C2O 0x00050809
  37576. #define GPIO_PF2_TRD0 0x0005080E
  37577. #define GPIO_PF3_U1DSR 0x00050C01
  37578. #define GPIO_PF3_CAN0TX 0x00050C03
  37579. #define GPIO_PF3_T1CCP1 0x00050C07
  37580. #define GPIO_PF3_SSI1FSS 0x00050C02
  37581. #define GPIO_PF3_TRCLK 0x00050C0E
  37582. #define GPIO_PF4_U1DTR 0x00051001
  37583. #define GPIO_PF4_T2CCP0 0x00051007
  37584. #define GPIO_PF4_TRD3 0x0005100E
  37585. #define GPIO_PF5_T2CCP1 0x00051407
  37586. #define GPIO_PF6_I2C2SCL 0x00051803
  37587. #define GPIO_PF6_T3CCP0 0x00051807
  37588. #define GPIO_PF7_I2C2SDA 0x00051C03
  37589. #define GPIO_PF7_T3CCP1 0x00051C07
  37590. #define GPIO_PG0_I2C3SCL 0x00060003
  37591. #define GPIO_PG0_T4CCP0 0x00060007
  37592. #define GPIO_PG0_LPC0PD_N 0x0006000F
  37593. #define GPIO_PG1_I2C3SDA 0x00060403
  37594. #define GPIO_PG1_T4CCP1 0x00060407
  37595. #define GPIO_PG1_LPC0SCI_N 0x0006040F
  37596. #define GPIO_PG2_I2C4SCL 0x00060803
  37597. #define GPIO_PG2_T5CCP0 0x00060807
  37598. #define GPIO_PG2_LPC0CLKRUN_N 0x0006080F
  37599. #define GPIO_PG3_I2C4SDA 0x00060C03
  37600. #define GPIO_PG3_T5CCP1 0x00060C07
  37601. #define GPIO_PG4_U2RX 0x00061001
  37602. #define GPIO_PG4_I2C1SCL 0x00061003
  37603. #define GPIO_PG4_WT0CCP0 0x00061007
  37604. #define GPIO_PG5_U2TX 0x00061401
  37605. #define GPIO_PG5_I2C1SDA 0x00061403
  37606. #define GPIO_PG5_WT0CCP1 0x00061407
  37607. #define GPIO_PG6_I2C5SCL 0x00061803
  37608. #define GPIO_PG6_WT1CCP0 0x00061807
  37609. #define GPIO_PG7_I2C5SDA 0x00061C03
  37610. #define GPIO_PG7_WT1CCP1 0x00061C07
  37611. #define GPIO_PH0_SSI3CLK 0x00070002
  37612. #define GPIO_PH0_WT2CCP0 0x00070007
  37613. #define GPIO_PH1_SSI3FSS 0x00070402
  37614. #define GPIO_PH1_WT2CCP1 0x00070407
  37615. #define GPIO_PH2_SSI3RX 0x00070802
  37616. #define GPIO_PH2_WT5CCP0 0x00070807
  37617. #define GPIO_PH3_SSI3TX 0x00070C02
  37618. #define GPIO_PH3_WT5CCP1 0x00070C07
  37619. #define GPIO_PH4_SSI2CLK 0x00071002
  37620. #define GPIO_PH4_WT3CCP0 0x00071007
  37621. #define GPIO_PH5_SSI2FSS 0x00071402
  37622. #define GPIO_PH5_WT3CCP1 0x00071407
  37623. #define GPIO_PH6_SSI2RX 0x00071802
  37624. #define GPIO_PH6_WT4CCP0 0x00071807
  37625. #define GPIO_PH7_SSI2TX 0x00071C02
  37626. #define GPIO_PH7_WT4CCP1 0x00071C07
  37627. #define GPIO_PJ0_U4RX 0x00080001
  37628. #define GPIO_PJ0_T1CCP0 0x00080007
  37629. #define GPIO_PJ1_U4TX 0x00080401
  37630. #define GPIO_PJ1_T1CCP1 0x00080407
  37631. #define GPIO_PJ2_U5RX 0x00080801
  37632. #define GPIO_PJ2_T2CCP0 0x00080807
  37633. #define GPIO_PK0_SSI3CLK 0x00090002
  37634. #define GPIO_PK1_SSI3FSS 0x00090402
  37635. #define GPIO_PK2_SSI3RX 0x00090802
  37636. #define GPIO_PK3_SSI3TX 0x00090C02
  37637. #endif // PART_LM4F112H5QC
  37638. //*****************************************************************************
  37639. //
  37640. // LM4F112H5QD Port/Pin Mapping Definitions
  37641. //
  37642. //*****************************************************************************
  37643. #ifdef PART_LM4F112H5QD
  37644. #define GPIO_PA0_U0RX 0x00000001
  37645. #define GPIO_PA1_U0TX 0x00000401
  37646. #define GPIO_PA2_SSI0CLK 0x00000802
  37647. #define GPIO_PA3_SSI0FSS 0x00000C02
  37648. #define GPIO_PA4_SSI0RX 0x00001002
  37649. #define GPIO_PA5_SSI0TX 0x00001402
  37650. #define GPIO_PA6_I2C1SCL 0x00001803
  37651. #define GPIO_PA7_I2C1SDA 0x00001C03
  37652. #define GPIO_PB0_U1RX 0x00010001
  37653. #define GPIO_PB0_T2CCP0 0x00010007
  37654. #define GPIO_PB1_U1TX 0x00010401
  37655. #define GPIO_PB1_T2CCP1 0x00010407
  37656. #define GPIO_PB2_I2C0SCL 0x00010803
  37657. #define GPIO_PB2_T3CCP0 0x00010807
  37658. #define GPIO_PB3_I2C0SDA 0x00010C03
  37659. #define GPIO_PB3_T3CCP1 0x00010C07
  37660. #define GPIO_PB4_SSI2CLK 0x00011002
  37661. #define GPIO_PB4_CAN0RX 0x00011008
  37662. #define GPIO_PB4_T1CCP0 0x00011007
  37663. #define GPIO_PB5_SSI2FSS 0x00011402
  37664. #define GPIO_PB5_CAN0TX 0x00011408
  37665. #define GPIO_PB5_T1CCP1 0x00011407
  37666. #define GPIO_PC0_TCK 0x00020001
  37667. #define GPIO_PC0_SWCLK 0x00020001
  37668. #define GPIO_PC0_T4CCP0 0x00020007
  37669. #define GPIO_PC1_TMS 0x00020401
  37670. #define GPIO_PC1_SWDIO 0x00020401
  37671. #define GPIO_PC1_T4CCP1 0x00020407
  37672. #define GPIO_PC2_TDI 0x00020801
  37673. #define GPIO_PC2_T5CCP0 0x00020807
  37674. #define GPIO_PC3_SWO 0x00020C01
  37675. #define GPIO_PC3_TDO 0x00020C01
  37676. #define GPIO_PC3_T5CCP1 0x00020C07
  37677. #define GPIO_PC4_U4RX 0x00021001
  37678. #define GPIO_PC4_U1RX 0x00021002
  37679. #define GPIO_PC4_WT0CCP0 0x00021007
  37680. #define GPIO_PC4_U1RTS 0x00021008
  37681. #define GPIO_PC5_U4TX 0x00021401
  37682. #define GPIO_PC5_U1TX 0x00021402
  37683. #define GPIO_PC5_WT0CCP1 0x00021407
  37684. #define GPIO_PC5_U1CTS 0x00021408
  37685. #define GPIO_PC6_U3RX 0x00021801
  37686. #define GPIO_PC6_WT1CCP0 0x00021807
  37687. #define GPIO_PC7_U3TX 0x00021C01
  37688. #define GPIO_PC7_WT1CCP1 0x00021C07
  37689. #define GPIO_PD0_SSI3CLK 0x00030001
  37690. #define GPIO_PD0_SSI1CLK 0x00030002
  37691. #define GPIO_PD0_I2C3SCL 0x00030003
  37692. #define GPIO_PD0_WT2CCP0 0x00030007
  37693. #define GPIO_PD1_SSI3FSS 0x00030401
  37694. #define GPIO_PD1_SSI1FSS 0x00030402
  37695. #define GPIO_PD1_I2C3SDA 0x00030403
  37696. #define GPIO_PD1_WT2CCP1 0x00030407
  37697. #define GPIO_PD2_SSI3RX 0x00030801
  37698. #define GPIO_PD2_SSI1RX 0x00030802
  37699. #define GPIO_PD2_WT3CCP0 0x00030807
  37700. #define GPIO_PD3_SSI3TX 0x00030C01
  37701. #define GPIO_PD3_SSI1TX 0x00030C02
  37702. #define GPIO_PD3_WT3CCP1 0x00030C07
  37703. #define GPIO_PD4_U6RX 0x00031001
  37704. #define GPIO_PD4_WT4CCP0 0x00031007
  37705. #define GPIO_PD5_U6TX 0x00031401
  37706. #define GPIO_PD5_WT4CCP1 0x00031407
  37707. #define GPIO_PD6_U2RX 0x00031801
  37708. #define GPIO_PD6_WT5CCP0 0x00031807
  37709. #define GPIO_PD7_U2TX 0x00031C01
  37710. #define GPIO_PD7_WT5CCP1 0x00031C07
  37711. #define GPIO_PD7_NMI 0x00031C08
  37712. #define GPIO_PE0_U7RX 0x00040001
  37713. #define GPIO_PE1_U7TX 0x00040401
  37714. #define GPIO_PE4_U5RX 0x00041001
  37715. #define GPIO_PE4_I2C2SCL 0x00041003
  37716. #define GPIO_PE4_CAN0RX 0x00041008
  37717. #define GPIO_PE5_U5TX 0x00041401
  37718. #define GPIO_PE5_I2C2SDA 0x00041403
  37719. #define GPIO_PE5_CAN0TX 0x00041408
  37720. #define GPIO_PE7_U1RI 0x00041C01
  37721. #define GPIO_PF0_U1RTS 0x00050001
  37722. #define GPIO_PF0_SSI1RX 0x00050002
  37723. #define GPIO_PF0_CAN0RX 0x00050003
  37724. #define GPIO_PF0_T0CCP0 0x00050007
  37725. #define GPIO_PF0_NMI 0x00050008
  37726. #define GPIO_PF0_C0O 0x00050009
  37727. #define GPIO_PF0_TRD2 0x0005000E
  37728. #define GPIO_PF1_U1CTS 0x00050401
  37729. #define GPIO_PF1_SSI1TX 0x00050402
  37730. #define GPIO_PF1_T0CCP1 0x00050407
  37731. #define GPIO_PF1_C1O 0x00050409
  37732. #define GPIO_PF1_TRD1 0x0005040E
  37733. #define GPIO_PF2_U1DCD 0x00050801
  37734. #define GPIO_PF2_T1CCP0 0x00050807
  37735. #define GPIO_PF2_SSI1CLK 0x00050802
  37736. #define GPIO_PF2_C2O 0x00050809
  37737. #define GPIO_PF2_TRD0 0x0005080E
  37738. #define GPIO_PF3_U1DSR 0x00050C01
  37739. #define GPIO_PF3_CAN0TX 0x00050C03
  37740. #define GPIO_PF3_T1CCP1 0x00050C07
  37741. #define GPIO_PF3_SSI1FSS 0x00050C02
  37742. #define GPIO_PF3_TRCLK 0x00050C0E
  37743. #define GPIO_PF4_U1DTR 0x00051001
  37744. #define GPIO_PF4_T2CCP0 0x00051007
  37745. #define GPIO_PF4_TRD3 0x0005100E
  37746. #define GPIO_PF5_T2CCP1 0x00051407
  37747. #define GPIO_PF6_I2C2SCL 0x00051803
  37748. #define GPIO_PF6_T3CCP0 0x00051807
  37749. #define GPIO_PF7_I2C2SDA 0x00051C03
  37750. #define GPIO_PF7_T3CCP1 0x00051C07
  37751. #define GPIO_PG0_I2C3SCL 0x00060003
  37752. #define GPIO_PG0_T4CCP0 0x00060007
  37753. #define GPIO_PG1_I2C3SDA 0x00060403
  37754. #define GPIO_PG1_T4CCP1 0x00060407
  37755. #define GPIO_PG2_I2C4SCL 0x00060803
  37756. #define GPIO_PG2_T5CCP0 0x00060807
  37757. #define GPIO_PG3_I2C4SDA 0x00060C03
  37758. #define GPIO_PG3_T5CCP1 0x00060C07
  37759. #define GPIO_PG4_U2RX 0x00061001
  37760. #define GPIO_PG4_I2C1SCL 0x00061003
  37761. #define GPIO_PG4_WT0CCP0 0x00061007
  37762. #define GPIO_PG5_U2TX 0x00061401
  37763. #define GPIO_PG5_I2C1SDA 0x00061403
  37764. #define GPIO_PG5_WT0CCP1 0x00061407
  37765. #define GPIO_PG6_I2C5SCL 0x00061803
  37766. #define GPIO_PG6_WT1CCP0 0x00061807
  37767. #define GPIO_PG7_I2C5SDA 0x00061C03
  37768. #define GPIO_PG7_WT1CCP1 0x00061C07
  37769. #define GPIO_PH0_SSI3CLK 0x00070002
  37770. #define GPIO_PH0_WT2CCP0 0x00070007
  37771. #define GPIO_PH1_SSI3FSS 0x00070402
  37772. #define GPIO_PH1_WT2CCP1 0x00070407
  37773. #define GPIO_PH2_SSI3RX 0x00070802
  37774. #define GPIO_PH2_WT5CCP0 0x00070807
  37775. #define GPIO_PH3_SSI3TX 0x00070C02
  37776. #define GPIO_PH3_WT5CCP1 0x00070C07
  37777. #define GPIO_PH4_SSI2CLK 0x00071002
  37778. #define GPIO_PH4_WT3CCP0 0x00071007
  37779. #define GPIO_PH5_SSI2FSS 0x00071402
  37780. #define GPIO_PH5_WT3CCP1 0x00071407
  37781. #define GPIO_PH6_SSI2RX 0x00071802
  37782. #define GPIO_PH6_WT4CCP0 0x00071807
  37783. #define GPIO_PH7_SSI2TX 0x00071C02
  37784. #define GPIO_PH7_WT4CCP1 0x00071C07
  37785. #define GPIO_PJ0_U4RX 0x00080001
  37786. #define GPIO_PJ0_T1CCP0 0x00080007
  37787. #define GPIO_PJ1_U4TX 0x00080401
  37788. #define GPIO_PJ1_T1CCP1 0x00080407
  37789. #define GPIO_PJ2_U5RX 0x00080801
  37790. #define GPIO_PJ2_T2CCP0 0x00080807
  37791. #define GPIO_PJ3_U5TX 0x00080C01
  37792. #define GPIO_PJ3_T2CCP1 0x00080C07
  37793. #define GPIO_PJ4_U6RX 0x00081001
  37794. #define GPIO_PJ4_T3CCP0 0x00081007
  37795. #define GPIO_PJ5_U6TX 0x00081401
  37796. #define GPIO_PJ5_T3CCP1 0x00081407
  37797. #define GPIO_PK0_SSI3CLK 0x00090002
  37798. #define GPIO_PK1_SSI3FSS 0x00090402
  37799. #define GPIO_PK2_SSI3RX 0x00090802
  37800. #define GPIO_PK3_SSI3TX 0x00090C02
  37801. #define GPIO_PK4_U7RX 0x00091001
  37802. #define GPIO_PK4_RTCCLK 0x00091007
  37803. #define GPIO_PK4_C0O 0x00091008
  37804. #define GPIO_PK5_U7TX 0x00091401
  37805. #define GPIO_PK5_C1O 0x00091408
  37806. #define GPIO_PK6_WT1CCP0 0x00091807
  37807. #define GPIO_PK6_C2O 0x00091808
  37808. #define GPIO_PK7_WT1CCP1 0x00091C07
  37809. #define GPIO_PL0_T0CCP0 0x000A0007
  37810. #define GPIO_PL0_WT0CCP0 0x000A0008
  37811. #define GPIO_PL1_T0CCP1 0x000A0407
  37812. #define GPIO_PL1_WT0CCP1 0x000A0408
  37813. #define GPIO_PL2_T1CCP0 0x000A0807
  37814. #define GPIO_PL2_WT1CCP0 0x000A0808
  37815. #define GPIO_PL3_T1CCP1 0x000A0C07
  37816. #define GPIO_PL3_WT1CCP1 0x000A0C08
  37817. #define GPIO_PL4_T2CCP0 0x000A1007
  37818. #define GPIO_PL4_WT2CCP0 0x000A1008
  37819. #define GPIO_PL4_LPC0FRAME_N 0x000A100F
  37820. #define GPIO_PL5_T2CCP1 0x000A1407
  37821. #define GPIO_PL5_WT2CCP1 0x000A1408
  37822. #define GPIO_PL5_LPC0RESET_N 0x000A140F
  37823. #define GPIO_PL6_T3CCP0 0x000A1807
  37824. #define GPIO_PL6_WT3CCP0 0x000A1808
  37825. #define GPIO_PL7_T3CCP1 0x000A1C07
  37826. #define GPIO_PL7_WT3CCP1 0x000A1C08
  37827. #define GPIO_PM0_T4CCP0 0x000B0007
  37828. #define GPIO_PM0_WT4CCP0 0x000B0008
  37829. #define GPIO_PM0_LPC0PD_N 0x000B000F
  37830. #define GPIO_PM1_T4CCP1 0x000B0407
  37831. #define GPIO_PM1_WT4CCP1 0x000B0408
  37832. #define GPIO_PM1_LPC0SCI_N 0x000B040F
  37833. #define GPIO_PM2_T5CCP0 0x000B0807
  37834. #define GPIO_PM2_WT5CCP0 0x000B0808
  37835. #define GPIO_PM2_LPC0CLKRUN_N 0x000B080F
  37836. #define GPIO_PM3_T5CCP1 0x000B0C07
  37837. #define GPIO_PM3_WT5CCP1 0x000B0C08
  37838. #define GPIO_PM6_WT0CCP0 0x000B1807
  37839. #define GPIO_PM7_WT0CCP1 0x000B1C07
  37840. #define GPIO_PN0_CAN0RX 0x000C0001
  37841. #define GPIO_PN1_CAN0TX 0x000C0401
  37842. #define GPIO_PN2_WT2CCP0 0x000C0807
  37843. #define GPIO_PN3_WT2CCP1 0x000C0C07
  37844. #define GPIO_PN4_WT3CCP0 0x000C1007
  37845. #define GPIO_PN5_WT3CCP1 0x000C1407
  37846. #define GPIO_PN6_WT4CCP0 0x000C1807
  37847. #define GPIO_PN7_WT4CCP1 0x000C1C07
  37848. #define GPIO_PP0_T4CCP0 0x000D0007
  37849. #define GPIO_PP1_T4CCP1 0x000D0407
  37850. #define GPIO_PP2_T5CCP0 0x000D0807
  37851. #endif // PART_LM4F112H5QD
  37852. //*****************************************************************************
  37853. //
  37854. // LM4F120B2QR Port/Pin Mapping Definitions
  37855. //
  37856. //*****************************************************************************
  37857. #ifdef PART_LM4F120B2QR
  37858. #define GPIO_PA0_U0RX 0x00000001
  37859. #define GPIO_PA1_U0TX 0x00000401
  37860. #define GPIO_PA2_SSI0CLK 0x00000802
  37861. #define GPIO_PA3_SSI0FSS 0x00000C02
  37862. #define GPIO_PA4_SSI0RX 0x00001002
  37863. #define GPIO_PA5_SSI0TX 0x00001402
  37864. #define GPIO_PA6_I2C1SCL 0x00001803
  37865. #define GPIO_PA7_I2C1SDA 0x00001C03
  37866. #define GPIO_PB0_U1RX 0x00010001
  37867. #define GPIO_PB0_T2CCP0 0x00010007
  37868. #define GPIO_PB1_U1TX 0x00010401
  37869. #define GPIO_PB1_T2CCP1 0x00010407
  37870. #define GPIO_PB2_I2C0SCL 0x00010803
  37871. #define GPIO_PB2_T3CCP0 0x00010807
  37872. #define GPIO_PB3_I2C0SDA 0x00010C03
  37873. #define GPIO_PB3_T3CCP1 0x00010C07
  37874. #define GPIO_PB4_SSI2CLK 0x00011002
  37875. #define GPIO_PB4_CAN0RX 0x00011008
  37876. #define GPIO_PB4_T1CCP0 0x00011007
  37877. #define GPIO_PB5_SSI2FSS 0x00011402
  37878. #define GPIO_PB5_CAN0TX 0x00011408
  37879. #define GPIO_PB5_T1CCP1 0x00011407
  37880. #define GPIO_PB6_SSI2RX 0x00011802
  37881. #define GPIO_PB6_T0CCP0 0x00011807
  37882. #define GPIO_PB7_SSI2TX 0x00011C02
  37883. #define GPIO_PB7_T0CCP1 0x00011C07
  37884. #define GPIO_PC0_TCK 0x00020001
  37885. #define GPIO_PC0_SWCLK 0x00020001
  37886. #define GPIO_PC0_T4CCP0 0x00020007
  37887. #define GPIO_PC1_TMS 0x00020401
  37888. #define GPIO_PC1_SWDIO 0x00020401
  37889. #define GPIO_PC1_T4CCP1 0x00020407
  37890. #define GPIO_PC2_TDI 0x00020801
  37891. #define GPIO_PC2_T5CCP0 0x00020807
  37892. #define GPIO_PC3_SWO 0x00020C01
  37893. #define GPIO_PC3_TDO 0x00020C01
  37894. #define GPIO_PC3_T5CCP1 0x00020C07
  37895. #define GPIO_PC4_U4RX 0x00021001
  37896. #define GPIO_PC4_U1RX 0x00021002
  37897. #define GPIO_PC4_WT0CCP0 0x00021007
  37898. #define GPIO_PC4_U1RTS 0x00021008
  37899. #define GPIO_PC5_U4TX 0x00021401
  37900. #define GPIO_PC5_U1TX 0x00021402
  37901. #define GPIO_PC5_WT0CCP1 0x00021407
  37902. #define GPIO_PC5_U1CTS 0x00021408
  37903. #define GPIO_PC6_U3RX 0x00021801
  37904. #define GPIO_PC6_WT1CCP0 0x00021807
  37905. #define GPIO_PC7_U3TX 0x00021C01
  37906. #define GPIO_PC7_WT1CCP1 0x00021C07
  37907. #define GPIO_PD0_SSI3CLK 0x00030001
  37908. #define GPIO_PD0_SSI1CLK 0x00030002
  37909. #define GPIO_PD0_I2C3SCL 0x00030003
  37910. #define GPIO_PD0_WT2CCP0 0x00030007
  37911. #define GPIO_PD1_SSI3FSS 0x00030401
  37912. #define GPIO_PD1_SSI1FSS 0x00030402
  37913. #define GPIO_PD1_I2C3SDA 0x00030403
  37914. #define GPIO_PD1_WT2CCP1 0x00030407
  37915. #define GPIO_PD2_SSI3RX 0x00030801
  37916. #define GPIO_PD2_SSI1RX 0x00030802
  37917. #define GPIO_PD2_WT3CCP0 0x00030807
  37918. #define GPIO_PD3_SSI3TX 0x00030C01
  37919. #define GPIO_PD3_SSI1TX 0x00030C02
  37920. #define GPIO_PD3_WT3CCP1 0x00030C07
  37921. #define GPIO_PD4_U6RX 0x00031001
  37922. #define GPIO_PD4_WT4CCP0 0x00031007
  37923. #define GPIO_PD5_U6TX 0x00031401
  37924. #define GPIO_PD5_WT4CCP1 0x00031407
  37925. #define GPIO_PD6_U2RX 0x00031801
  37926. #define GPIO_PD6_WT5CCP0 0x00031807
  37927. #define GPIO_PD7_U2TX 0x00031C01
  37928. #define GPIO_PD7_WT5CCP1 0x00031C07
  37929. #define GPIO_PD7_NMI 0x00031C08
  37930. #define GPIO_PE0_U7RX 0x00040001
  37931. #define GPIO_PE1_U7TX 0x00040401
  37932. #define GPIO_PE4_U5RX 0x00041001
  37933. #define GPIO_PE4_I2C2SCL 0x00041003
  37934. #define GPIO_PE4_CAN0RX 0x00041008
  37935. #define GPIO_PE5_U5TX 0x00041401
  37936. #define GPIO_PE5_I2C2SDA 0x00041403
  37937. #define GPIO_PE5_CAN0TX 0x00041408
  37938. #define GPIO_PF0_U1RTS 0x00050001
  37939. #define GPIO_PF0_SSI1RX 0x00050002
  37940. #define GPIO_PF0_CAN0RX 0x00050003
  37941. #define GPIO_PF0_T0CCP0 0x00050007
  37942. #define GPIO_PF0_NMI 0x00050008
  37943. #define GPIO_PF0_C0O 0x00050009
  37944. #define GPIO_PF0_TRD2 0x0005000E
  37945. #define GPIO_PF1_U1CTS 0x00050401
  37946. #define GPIO_PF1_SSI1TX 0x00050402
  37947. #define GPIO_PF1_T0CCP1 0x00050407
  37948. #define GPIO_PF1_C1O 0x00050409
  37949. #define GPIO_PF1_TRD1 0x0005040E
  37950. #define GPIO_PF2_T1CCP0 0x00050807
  37951. #define GPIO_PF2_SSI1CLK 0x00050802
  37952. #define GPIO_PF2_TRD0 0x0005080E
  37953. #define GPIO_PF3_CAN0TX 0x00050C03
  37954. #define GPIO_PF3_T1CCP1 0x00050C07
  37955. #define GPIO_PF3_SSI1FSS 0x00050C02
  37956. #define GPIO_PF3_TRCLK 0x00050C0E
  37957. #define GPIO_PF4_T2CCP0 0x00051007
  37958. #endif // PART_LM4F120B2QR
  37959. //*****************************************************************************
  37960. //
  37961. // LM4F120C4QR Port/Pin Mapping Definitions
  37962. //
  37963. //*****************************************************************************
  37964. #ifdef PART_LM4F120C4QR
  37965. #define GPIO_PA0_U0RX 0x00000001
  37966. #define GPIO_PA1_U0TX 0x00000401
  37967. #define GPIO_PA2_SSI0CLK 0x00000802
  37968. #define GPIO_PA3_SSI0FSS 0x00000C02
  37969. #define GPIO_PA4_SSI0RX 0x00001002
  37970. #define GPIO_PA5_SSI0TX 0x00001402
  37971. #define GPIO_PA6_I2C1SCL 0x00001803
  37972. #define GPIO_PA7_I2C1SDA 0x00001C03
  37973. #define GPIO_PB0_U1RX 0x00010001
  37974. #define GPIO_PB0_T2CCP0 0x00010007
  37975. #define GPIO_PB1_U1TX 0x00010401
  37976. #define GPIO_PB1_T2CCP1 0x00010407
  37977. #define GPIO_PB2_I2C0SCL 0x00010803
  37978. #define GPIO_PB2_T3CCP0 0x00010807
  37979. #define GPIO_PB3_I2C0SDA 0x00010C03
  37980. #define GPIO_PB3_T3CCP1 0x00010C07
  37981. #define GPIO_PB4_SSI2CLK 0x00011002
  37982. #define GPIO_PB4_CAN0RX 0x00011008
  37983. #define GPIO_PB4_T1CCP0 0x00011007
  37984. #define GPIO_PB5_SSI2FSS 0x00011402
  37985. #define GPIO_PB5_CAN0TX 0x00011408
  37986. #define GPIO_PB5_T1CCP1 0x00011407
  37987. #define GPIO_PB6_SSI2RX 0x00011802
  37988. #define GPIO_PB6_T0CCP0 0x00011807
  37989. #define GPIO_PB7_SSI2TX 0x00011C02
  37990. #define GPIO_PB7_T0CCP1 0x00011C07
  37991. #define GPIO_PC0_TCK 0x00020001
  37992. #define GPIO_PC0_SWCLK 0x00020001
  37993. #define GPIO_PC0_T4CCP0 0x00020007
  37994. #define GPIO_PC1_TMS 0x00020401
  37995. #define GPIO_PC1_SWDIO 0x00020401
  37996. #define GPIO_PC1_T4CCP1 0x00020407
  37997. #define GPIO_PC2_TDI 0x00020801
  37998. #define GPIO_PC2_T5CCP0 0x00020807
  37999. #define GPIO_PC3_SWO 0x00020C01
  38000. #define GPIO_PC3_TDO 0x00020C01
  38001. #define GPIO_PC3_T5CCP1 0x00020C07
  38002. #define GPIO_PC4_U4RX 0x00021001
  38003. #define GPIO_PC4_U1RX 0x00021002
  38004. #define GPIO_PC4_WT0CCP0 0x00021007
  38005. #define GPIO_PC4_U1RTS 0x00021008
  38006. #define GPIO_PC5_U4TX 0x00021401
  38007. #define GPIO_PC5_U1TX 0x00021402
  38008. #define GPIO_PC5_WT0CCP1 0x00021407
  38009. #define GPIO_PC5_U1CTS 0x00021408
  38010. #define GPIO_PC6_U3RX 0x00021801
  38011. #define GPIO_PC6_WT1CCP0 0x00021807
  38012. #define GPIO_PC7_U3TX 0x00021C01
  38013. #define GPIO_PC7_WT1CCP1 0x00021C07
  38014. #define GPIO_PD0_SSI3CLK 0x00030001
  38015. #define GPIO_PD0_SSI1CLK 0x00030002
  38016. #define GPIO_PD0_I2C3SCL 0x00030003
  38017. #define GPIO_PD0_WT2CCP0 0x00030007
  38018. #define GPIO_PD1_SSI3FSS 0x00030401
  38019. #define GPIO_PD1_SSI1FSS 0x00030402
  38020. #define GPIO_PD1_I2C3SDA 0x00030403
  38021. #define GPIO_PD1_WT2CCP1 0x00030407
  38022. #define GPIO_PD2_SSI3RX 0x00030801
  38023. #define GPIO_PD2_SSI1RX 0x00030802
  38024. #define GPIO_PD2_WT3CCP0 0x00030807
  38025. #define GPIO_PD3_SSI3TX 0x00030C01
  38026. #define GPIO_PD3_SSI1TX 0x00030C02
  38027. #define GPIO_PD3_WT3CCP1 0x00030C07
  38028. #define GPIO_PD4_U6RX 0x00031001
  38029. #define GPIO_PD4_WT4CCP0 0x00031007
  38030. #define GPIO_PD5_U6TX 0x00031401
  38031. #define GPIO_PD5_WT4CCP1 0x00031407
  38032. #define GPIO_PD6_U2RX 0x00031801
  38033. #define GPIO_PD6_WT5CCP0 0x00031807
  38034. #define GPIO_PD7_U2TX 0x00031C01
  38035. #define GPIO_PD7_WT5CCP1 0x00031C07
  38036. #define GPIO_PD7_NMI 0x00031C08
  38037. #define GPIO_PE0_U7RX 0x00040001
  38038. #define GPIO_PE1_U7TX 0x00040401
  38039. #define GPIO_PE4_U5RX 0x00041001
  38040. #define GPIO_PE4_I2C2SCL 0x00041003
  38041. #define GPIO_PE4_CAN0RX 0x00041008
  38042. #define GPIO_PE5_U5TX 0x00041401
  38043. #define GPIO_PE5_I2C2SDA 0x00041403
  38044. #define GPIO_PE5_CAN0TX 0x00041408
  38045. #define GPIO_PF0_U1RTS 0x00050001
  38046. #define GPIO_PF0_SSI1RX 0x00050002
  38047. #define GPIO_PF0_CAN0RX 0x00050003
  38048. #define GPIO_PF0_T0CCP0 0x00050007
  38049. #define GPIO_PF0_NMI 0x00050008
  38050. #define GPIO_PF0_C0O 0x00050009
  38051. #define GPIO_PF0_TRD2 0x0005000E
  38052. #define GPIO_PF1_U1CTS 0x00050401
  38053. #define GPIO_PF1_SSI1TX 0x00050402
  38054. #define GPIO_PF1_T0CCP1 0x00050407
  38055. #define GPIO_PF1_C1O 0x00050409
  38056. #define GPIO_PF1_TRD1 0x0005040E
  38057. #define GPIO_PF2_T1CCP0 0x00050807
  38058. #define GPIO_PF2_SSI1CLK 0x00050802
  38059. #define GPIO_PF2_TRD0 0x0005080E
  38060. #define GPIO_PF3_CAN0TX 0x00050C03
  38061. #define GPIO_PF3_T1CCP1 0x00050C07
  38062. #define GPIO_PF3_SSI1FSS 0x00050C02
  38063. #define GPIO_PF3_TRCLK 0x00050C0E
  38064. #define GPIO_PF4_T2CCP0 0x00051007
  38065. #endif // PART_LM4F120C4QR
  38066. //*****************************************************************************
  38067. //
  38068. // LM4F120E5QR Port/Pin Mapping Definitions
  38069. //
  38070. //*****************************************************************************
  38071. #ifdef PART_LM4F120E5QR
  38072. #define GPIO_PA0_U0RX 0x00000001
  38073. #define GPIO_PA1_U0TX 0x00000401
  38074. #define GPIO_PA2_SSI0CLK 0x00000802
  38075. #define GPIO_PA3_SSI0FSS 0x00000C02
  38076. #define GPIO_PA4_SSI0RX 0x00001002
  38077. #define GPIO_PA5_SSI0TX 0x00001402
  38078. #define GPIO_PA6_I2C1SCL 0x00001803
  38079. #define GPIO_PA7_I2C1SDA 0x00001C03
  38080. #define GPIO_PB0_U1RX 0x00010001
  38081. #define GPIO_PB0_T2CCP0 0x00010007
  38082. #define GPIO_PB1_U1TX 0x00010401
  38083. #define GPIO_PB1_T2CCP1 0x00010407
  38084. #define GPIO_PB2_I2C0SCL 0x00010803
  38085. #define GPIO_PB2_T3CCP0 0x00010807
  38086. #define GPIO_PB3_I2C0SDA 0x00010C03
  38087. #define GPIO_PB3_T3CCP1 0x00010C07
  38088. #define GPIO_PB4_SSI2CLK 0x00011002
  38089. #define GPIO_PB4_CAN0RX 0x00011008
  38090. #define GPIO_PB4_T1CCP0 0x00011007
  38091. #define GPIO_PB5_SSI2FSS 0x00011402
  38092. #define GPIO_PB5_CAN0TX 0x00011408
  38093. #define GPIO_PB5_T1CCP1 0x00011407
  38094. #define GPIO_PB6_SSI2RX 0x00011802
  38095. #define GPIO_PB6_T0CCP0 0x00011807
  38096. #define GPIO_PB7_SSI2TX 0x00011C02
  38097. #define GPIO_PB7_T0CCP1 0x00011C07
  38098. #define GPIO_PC0_TCK 0x00020001
  38099. #define GPIO_PC0_SWCLK 0x00020001
  38100. #define GPIO_PC0_T4CCP0 0x00020007
  38101. #define GPIO_PC1_TMS 0x00020401
  38102. #define GPIO_PC1_SWDIO 0x00020401
  38103. #define GPIO_PC1_T4CCP1 0x00020407
  38104. #define GPIO_PC2_TDI 0x00020801
  38105. #define GPIO_PC2_T5CCP0 0x00020807
  38106. #define GPIO_PC3_SWO 0x00020C01
  38107. #define GPIO_PC3_TDO 0x00020C01
  38108. #define GPIO_PC3_T5CCP1 0x00020C07
  38109. #define GPIO_PC4_U4RX 0x00021001
  38110. #define GPIO_PC4_U1RX 0x00021002
  38111. #define GPIO_PC4_WT0CCP0 0x00021007
  38112. #define GPIO_PC4_U1RTS 0x00021008
  38113. #define GPIO_PC5_U4TX 0x00021401
  38114. #define GPIO_PC5_U1TX 0x00021402
  38115. #define GPIO_PC5_WT0CCP1 0x00021407
  38116. #define GPIO_PC5_U1CTS 0x00021408
  38117. #define GPIO_PC6_U3RX 0x00021801
  38118. #define GPIO_PC6_WT1CCP0 0x00021807
  38119. #define GPIO_PC7_U3TX 0x00021C01
  38120. #define GPIO_PC7_WT1CCP1 0x00021C07
  38121. #define GPIO_PD0_SSI3CLK 0x00030001
  38122. #define GPIO_PD0_SSI1CLK 0x00030002
  38123. #define GPIO_PD0_I2C3SCL 0x00030003
  38124. #define GPIO_PD0_WT2CCP0 0x00030007
  38125. #define GPIO_PD1_SSI3FSS 0x00030401
  38126. #define GPIO_PD1_SSI1FSS 0x00030402
  38127. #define GPIO_PD1_I2C3SDA 0x00030403
  38128. #define GPIO_PD1_WT2CCP1 0x00030407
  38129. #define GPIO_PD2_SSI3RX 0x00030801
  38130. #define GPIO_PD2_SSI1RX 0x00030802
  38131. #define GPIO_PD2_WT3CCP0 0x00030807
  38132. #define GPIO_PD3_SSI3TX 0x00030C01
  38133. #define GPIO_PD3_SSI1TX 0x00030C02
  38134. #define GPIO_PD3_WT3CCP1 0x00030C07
  38135. #define GPIO_PD4_U6RX 0x00031001
  38136. #define GPIO_PD4_WT4CCP0 0x00031007
  38137. #define GPIO_PD5_U6TX 0x00031401
  38138. #define GPIO_PD5_WT4CCP1 0x00031407
  38139. #define GPIO_PD6_U2RX 0x00031801
  38140. #define GPIO_PD6_WT5CCP0 0x00031807
  38141. #define GPIO_PD7_U2TX 0x00031C01
  38142. #define GPIO_PD7_WT5CCP1 0x00031C07
  38143. #define GPIO_PD7_NMI 0x00031C08
  38144. #define GPIO_PE0_U7RX 0x00040001
  38145. #define GPIO_PE1_U7TX 0x00040401
  38146. #define GPIO_PE4_U5RX 0x00041001
  38147. #define GPIO_PE4_I2C2SCL 0x00041003
  38148. #define GPIO_PE4_CAN0RX 0x00041008
  38149. #define GPIO_PE5_U5TX 0x00041401
  38150. #define GPIO_PE5_I2C2SDA 0x00041403
  38151. #define GPIO_PE5_CAN0TX 0x00041408
  38152. #define GPIO_PF0_U1RTS 0x00050001
  38153. #define GPIO_PF0_SSI1RX 0x00050002
  38154. #define GPIO_PF0_CAN0RX 0x00050003
  38155. #define GPIO_PF0_T0CCP0 0x00050007
  38156. #define GPIO_PF0_NMI 0x00050008
  38157. #define GPIO_PF0_C0O 0x00050009
  38158. #define GPIO_PF0_TRD2 0x0005000E
  38159. #define GPIO_PF1_U1CTS 0x00050401
  38160. #define GPIO_PF1_SSI1TX 0x00050402
  38161. #define GPIO_PF1_T0CCP1 0x00050407
  38162. #define GPIO_PF1_C1O 0x00050409
  38163. #define GPIO_PF1_TRD1 0x0005040E
  38164. #define GPIO_PF2_T1CCP0 0x00050807
  38165. #define GPIO_PF2_SSI1CLK 0x00050802
  38166. #define GPIO_PF2_TRD0 0x0005080E
  38167. #define GPIO_PF3_CAN0TX 0x00050C03
  38168. #define GPIO_PF3_T1CCP1 0x00050C07
  38169. #define GPIO_PF3_SSI1FSS 0x00050C02
  38170. #define GPIO_PF3_TRCLK 0x00050C0E
  38171. #define GPIO_PF4_T2CCP0 0x00051007
  38172. #endif // PART_LM4F120E5QR
  38173. //*****************************************************************************
  38174. //
  38175. // LM4F120H5QR Port/Pin Mapping Definitions
  38176. //
  38177. //*****************************************************************************
  38178. #ifdef PART_LM4F120H5QR
  38179. #define GPIO_PA0_U0RX 0x00000001
  38180. #define GPIO_PA1_U0TX 0x00000401
  38181. #define GPIO_PA2_SSI0CLK 0x00000802
  38182. #define GPIO_PA3_SSI0FSS 0x00000C02
  38183. #define GPIO_PA4_SSI0RX 0x00001002
  38184. #define GPIO_PA5_SSI0TX 0x00001402
  38185. #define GPIO_PA6_I2C1SCL 0x00001803
  38186. #define GPIO_PA7_I2C1SDA 0x00001C03
  38187. #define GPIO_PB0_U1RX 0x00010001
  38188. #define GPIO_PB0_T2CCP0 0x00010007
  38189. #define GPIO_PB1_U1TX 0x00010401
  38190. #define GPIO_PB1_T2CCP1 0x00010407
  38191. #define GPIO_PB2_I2C0SCL 0x00010803
  38192. #define GPIO_PB2_T3CCP0 0x00010807
  38193. #define GPIO_PB3_I2C0SDA 0x00010C03
  38194. #define GPIO_PB3_T3CCP1 0x00010C07
  38195. #define GPIO_PB4_SSI2CLK 0x00011002
  38196. #define GPIO_PB4_CAN0RX 0x00011008
  38197. #define GPIO_PB4_T1CCP0 0x00011007
  38198. #define GPIO_PB5_SSI2FSS 0x00011402
  38199. #define GPIO_PB5_CAN0TX 0x00011408
  38200. #define GPIO_PB5_T1CCP1 0x00011407
  38201. #define GPIO_PB6_SSI2RX 0x00011802
  38202. #define GPIO_PB6_T0CCP0 0x00011807
  38203. #define GPIO_PB7_SSI2TX 0x00011C02
  38204. #define GPIO_PB7_T0CCP1 0x00011C07
  38205. #define GPIO_PC0_TCK 0x00020001
  38206. #define GPIO_PC0_SWCLK 0x00020001
  38207. #define GPIO_PC0_T4CCP0 0x00020007
  38208. #define GPIO_PC1_TMS 0x00020401
  38209. #define GPIO_PC1_SWDIO 0x00020401
  38210. #define GPIO_PC1_T4CCP1 0x00020407
  38211. #define GPIO_PC2_TDI 0x00020801
  38212. #define GPIO_PC2_T5CCP0 0x00020807
  38213. #define GPIO_PC3_SWO 0x00020C01
  38214. #define GPIO_PC3_TDO 0x00020C01
  38215. #define GPIO_PC3_T5CCP1 0x00020C07
  38216. #define GPIO_PC4_U4RX 0x00021001
  38217. #define GPIO_PC4_U1RX 0x00021002
  38218. #define GPIO_PC4_WT0CCP0 0x00021007
  38219. #define GPIO_PC4_U1RTS 0x00021008
  38220. #define GPIO_PC5_U4TX 0x00021401
  38221. #define GPIO_PC5_U1TX 0x00021402
  38222. #define GPIO_PC5_WT0CCP1 0x00021407
  38223. #define GPIO_PC5_U1CTS 0x00021408
  38224. #define GPIO_PC6_U3RX 0x00021801
  38225. #define GPIO_PC6_WT1CCP0 0x00021807
  38226. #define GPIO_PC7_U3TX 0x00021C01
  38227. #define GPIO_PC7_WT1CCP1 0x00021C07
  38228. #define GPIO_PD0_SSI3CLK 0x00030001
  38229. #define GPIO_PD0_SSI1CLK 0x00030002
  38230. #define GPIO_PD0_I2C3SCL 0x00030003
  38231. #define GPIO_PD0_WT2CCP0 0x00030007
  38232. #define GPIO_PD1_SSI3FSS 0x00030401
  38233. #define GPIO_PD1_SSI1FSS 0x00030402
  38234. #define GPIO_PD1_I2C3SDA 0x00030403
  38235. #define GPIO_PD1_WT2CCP1 0x00030407
  38236. #define GPIO_PD2_SSI3RX 0x00030801
  38237. #define GPIO_PD2_SSI1RX 0x00030802
  38238. #define GPIO_PD2_WT3CCP0 0x00030807
  38239. #define GPIO_PD3_SSI3TX 0x00030C01
  38240. #define GPIO_PD3_SSI1TX 0x00030C02
  38241. #define GPIO_PD3_WT3CCP1 0x00030C07
  38242. #define GPIO_PD4_U6RX 0x00031001
  38243. #define GPIO_PD4_WT4CCP0 0x00031007
  38244. #define GPIO_PD5_U6TX 0x00031401
  38245. #define GPIO_PD5_WT4CCP1 0x00031407
  38246. #define GPIO_PD6_U2RX 0x00031801
  38247. #define GPIO_PD6_WT5CCP0 0x00031807
  38248. #define GPIO_PD7_U2TX 0x00031C01
  38249. #define GPIO_PD7_WT5CCP1 0x00031C07
  38250. #define GPIO_PD7_NMI 0x00031C08
  38251. #define GPIO_PE0_U7RX 0x00040001
  38252. #define GPIO_PE1_U7TX 0x00040401
  38253. #define GPIO_PE4_U5RX 0x00041001
  38254. #define GPIO_PE4_I2C2SCL 0x00041003
  38255. #define GPIO_PE4_CAN0RX 0x00041008
  38256. #define GPIO_PE5_U5TX 0x00041401
  38257. #define GPIO_PE5_I2C2SDA 0x00041403
  38258. #define GPIO_PE5_CAN0TX 0x00041408
  38259. #define GPIO_PF0_U1RTS 0x00050001
  38260. #define GPIO_PF0_SSI1RX 0x00050002
  38261. #define GPIO_PF0_CAN0RX 0x00050003
  38262. #define GPIO_PF0_T0CCP0 0x00050007
  38263. #define GPIO_PF0_NMI 0x00050008
  38264. #define GPIO_PF0_C0O 0x00050009
  38265. #define GPIO_PF0_TRD2 0x0005000E
  38266. #define GPIO_PF1_U1CTS 0x00050401
  38267. #define GPIO_PF1_SSI1TX 0x00050402
  38268. #define GPIO_PF1_T0CCP1 0x00050407
  38269. #define GPIO_PF1_C1O 0x00050409
  38270. #define GPIO_PF1_TRD1 0x0005040E
  38271. #define GPIO_PF2_T1CCP0 0x00050807
  38272. #define GPIO_PF2_SSI1CLK 0x00050802
  38273. #define GPIO_PF2_TRD0 0x0005080E
  38274. #define GPIO_PF3_CAN0TX 0x00050C03
  38275. #define GPIO_PF3_T1CCP1 0x00050C07
  38276. #define GPIO_PF3_SSI1FSS 0x00050C02
  38277. #define GPIO_PF3_TRCLK 0x00050C0E
  38278. #define GPIO_PF4_T2CCP0 0x00051007
  38279. #endif // PART_LM4F120H5QR
  38280. //*****************************************************************************
  38281. //
  38282. // LM4F121B2QR Port/Pin Mapping Definitions
  38283. //
  38284. //*****************************************************************************
  38285. #ifdef PART_LM4F121B2QR
  38286. #define GPIO_PA0_U0RX 0x00000001
  38287. #define GPIO_PA1_U0TX 0x00000401
  38288. #define GPIO_PA2_SSI0CLK 0x00000802
  38289. #define GPIO_PA3_SSI0FSS 0x00000C02
  38290. #define GPIO_PA4_SSI0RX 0x00001002
  38291. #define GPIO_PA5_SSI0TX 0x00001402
  38292. #define GPIO_PA6_I2C1SCL 0x00001803
  38293. #define GPIO_PA7_I2C1SDA 0x00001C03
  38294. #define GPIO_PB0_U1RX 0x00010001
  38295. #define GPIO_PB0_T2CCP0 0x00010007
  38296. #define GPIO_PB1_U1TX 0x00010401
  38297. #define GPIO_PB1_T2CCP1 0x00010407
  38298. #define GPIO_PB2_I2C0SCL 0x00010803
  38299. #define GPIO_PB2_T3CCP0 0x00010807
  38300. #define GPIO_PB3_I2C0SDA 0x00010C03
  38301. #define GPIO_PB3_T3CCP1 0x00010C07
  38302. #define GPIO_PB4_SSI2CLK 0x00011002
  38303. #define GPIO_PB4_CAN0RX 0x00011008
  38304. #define GPIO_PB4_T1CCP0 0x00011007
  38305. #define GPIO_PB5_SSI2FSS 0x00011402
  38306. #define GPIO_PB5_CAN0TX 0x00011408
  38307. #define GPIO_PB5_T1CCP1 0x00011407
  38308. #define GPIO_PB6_SSI2RX 0x00011802
  38309. #define GPIO_PB6_I2C5SCL 0x00011803
  38310. #define GPIO_PB6_T0CCP0 0x00011807
  38311. #define GPIO_PB7_SSI2TX 0x00011C02
  38312. #define GPIO_PB7_I2C5SDA 0x00011C03
  38313. #define GPIO_PB7_T0CCP1 0x00011C07
  38314. #define GPIO_PC0_TCK 0x00020001
  38315. #define GPIO_PC0_SWCLK 0x00020001
  38316. #define GPIO_PC0_T4CCP0 0x00020007
  38317. #define GPIO_PC1_TMS 0x00020401
  38318. #define GPIO_PC1_SWDIO 0x00020401
  38319. #define GPIO_PC1_T4CCP1 0x00020407
  38320. #define GPIO_PC2_TDI 0x00020801
  38321. #define GPIO_PC2_T5CCP0 0x00020807
  38322. #define GPIO_PC3_SWO 0x00020C01
  38323. #define GPIO_PC3_TDO 0x00020C01
  38324. #define GPIO_PC3_T5CCP1 0x00020C07
  38325. #define GPIO_PC4_U4RX 0x00021001
  38326. #define GPIO_PC4_U1RX 0x00021002
  38327. #define GPIO_PC4_WT0CCP0 0x00021007
  38328. #define GPIO_PC4_U1RTS 0x00021008
  38329. #define GPIO_PC5_U4TX 0x00021401
  38330. #define GPIO_PC5_U1TX 0x00021402
  38331. #define GPIO_PC5_WT0CCP1 0x00021407
  38332. #define GPIO_PC5_U1CTS 0x00021408
  38333. #define GPIO_PC6_U3RX 0x00021801
  38334. #define GPIO_PC6_WT1CCP0 0x00021807
  38335. #define GPIO_PC7_U3TX 0x00021C01
  38336. #define GPIO_PC7_WT1CCP1 0x00021C07
  38337. #define GPIO_PD0_SSI3CLK 0x00030001
  38338. #define GPIO_PD0_SSI1CLK 0x00030002
  38339. #define GPIO_PD0_I2C3SCL 0x00030003
  38340. #define GPIO_PD0_WT2CCP0 0x00030007
  38341. #define GPIO_PD1_SSI3FSS 0x00030401
  38342. #define GPIO_PD1_SSI1FSS 0x00030402
  38343. #define GPIO_PD1_I2C3SDA 0x00030403
  38344. #define GPIO_PD1_WT2CCP1 0x00030407
  38345. #define GPIO_PD2_SSI3RX 0x00030801
  38346. #define GPIO_PD2_SSI1RX 0x00030802
  38347. #define GPIO_PD2_WT3CCP0 0x00030807
  38348. #define GPIO_PD3_SSI3TX 0x00030C01
  38349. #define GPIO_PD3_SSI1TX 0x00030C02
  38350. #define GPIO_PD3_WT3CCP1 0x00030C07
  38351. #define GPIO_PD4_U6RX 0x00031001
  38352. #define GPIO_PD4_WT4CCP0 0x00031007
  38353. #define GPIO_PD5_U6TX 0x00031401
  38354. #define GPIO_PD5_WT4CCP1 0x00031407
  38355. #define GPIO_PD6_U2RX 0x00031801
  38356. #define GPIO_PD6_WT5CCP0 0x00031807
  38357. #define GPIO_PD7_U2TX 0x00031C01
  38358. #define GPIO_PD7_WT5CCP1 0x00031C07
  38359. #define GPIO_PD7_NMI 0x00031C08
  38360. #define GPIO_PE0_U7RX 0x00040001
  38361. #define GPIO_PE1_U7TX 0x00040401
  38362. #define GPIO_PE4_U5RX 0x00041001
  38363. #define GPIO_PE4_I2C2SCL 0x00041003
  38364. #define GPIO_PE4_CAN0RX 0x00041008
  38365. #define GPIO_PE5_U5TX 0x00041401
  38366. #define GPIO_PE5_I2C2SDA 0x00041403
  38367. #define GPIO_PE5_CAN0TX 0x00041408
  38368. #define GPIO_PF0_U1RTS 0x00050001
  38369. #define GPIO_PF0_SSI1RX 0x00050002
  38370. #define GPIO_PF0_CAN0RX 0x00050003
  38371. #define GPIO_PF0_T0CCP0 0x00050007
  38372. #define GPIO_PF0_NMI 0x00050008
  38373. #define GPIO_PF0_C0O 0x00050009
  38374. #define GPIO_PF0_TRD2 0x0005000E
  38375. #define GPIO_PF1_U1CTS 0x00050401
  38376. #define GPIO_PF1_SSI1TX 0x00050402
  38377. #define GPIO_PF1_T0CCP1 0x00050407
  38378. #define GPIO_PF1_C1O 0x00050409
  38379. #define GPIO_PF1_TRD1 0x0005040E
  38380. #define GPIO_PF2_T1CCP0 0x00050807
  38381. #define GPIO_PF2_SSI1CLK 0x00050802
  38382. #define GPIO_PF2_TRD0 0x0005080E
  38383. #define GPIO_PF3_CAN0TX 0x00050C03
  38384. #define GPIO_PF3_T1CCP1 0x00050C07
  38385. #define GPIO_PF3_SSI1FSS 0x00050C02
  38386. #define GPIO_PF3_TRCLK 0x00050C0E
  38387. #define GPIO_PF4_T2CCP0 0x00051007
  38388. #define GPIO_PG0_I2C3SCL 0x00060003
  38389. #define GPIO_PG0_T4CCP0 0x00060007
  38390. #define GPIO_PG1_I2C3SDA 0x00060403
  38391. #define GPIO_PG1_T4CCP1 0x00060407
  38392. #define GPIO_PG2_I2C4SCL 0x00060803
  38393. #define GPIO_PG2_T5CCP0 0x00060807
  38394. #define GPIO_PG3_I2C4SDA 0x00060C03
  38395. #define GPIO_PG3_T5CCP1 0x00060C07
  38396. #define GPIO_PG4_U2RX 0x00061001
  38397. #define GPIO_PG4_I2C1SCL 0x00061003
  38398. #define GPIO_PG4_WT0CCP0 0x00061007
  38399. #define GPIO_PG5_U2TX 0x00061401
  38400. #define GPIO_PG5_I2C1SDA 0x00061403
  38401. #define GPIO_PG5_WT0CCP1 0x00061407
  38402. #endif // PART_LM4F121B2QR
  38403. //*****************************************************************************
  38404. //
  38405. // LM4F121C4QR Port/Pin Mapping Definitions
  38406. //
  38407. //*****************************************************************************
  38408. #ifdef PART_LM4F121C4QR
  38409. #define GPIO_PA0_U0RX 0x00000001
  38410. #define GPIO_PA1_U0TX 0x00000401
  38411. #define GPIO_PA2_SSI0CLK 0x00000802
  38412. #define GPIO_PA3_SSI0FSS 0x00000C02
  38413. #define GPIO_PA4_SSI0RX 0x00001002
  38414. #define GPIO_PA5_SSI0TX 0x00001402
  38415. #define GPIO_PA6_I2C1SCL 0x00001803
  38416. #define GPIO_PA7_I2C1SDA 0x00001C03
  38417. #define GPIO_PB0_U1RX 0x00010001
  38418. #define GPIO_PB0_T2CCP0 0x00010007
  38419. #define GPIO_PB1_U1TX 0x00010401
  38420. #define GPIO_PB1_T2CCP1 0x00010407
  38421. #define GPIO_PB2_I2C0SCL 0x00010803
  38422. #define GPIO_PB2_T3CCP0 0x00010807
  38423. #define GPIO_PB3_I2C0SDA 0x00010C03
  38424. #define GPIO_PB3_T3CCP1 0x00010C07
  38425. #define GPIO_PB4_SSI2CLK 0x00011002
  38426. #define GPIO_PB4_CAN0RX 0x00011008
  38427. #define GPIO_PB4_T1CCP0 0x00011007
  38428. #define GPIO_PB5_SSI2FSS 0x00011402
  38429. #define GPIO_PB5_CAN0TX 0x00011408
  38430. #define GPIO_PB5_T1CCP1 0x00011407
  38431. #define GPIO_PB6_SSI2RX 0x00011802
  38432. #define GPIO_PB6_I2C5SCL 0x00011803
  38433. #define GPIO_PB6_T0CCP0 0x00011807
  38434. #define GPIO_PB7_SSI2TX 0x00011C02
  38435. #define GPIO_PB7_I2C5SDA 0x00011C03
  38436. #define GPIO_PB7_T0CCP1 0x00011C07
  38437. #define GPIO_PC0_TCK 0x00020001
  38438. #define GPIO_PC0_SWCLK 0x00020001
  38439. #define GPIO_PC0_T4CCP0 0x00020007
  38440. #define GPIO_PC1_TMS 0x00020401
  38441. #define GPIO_PC1_SWDIO 0x00020401
  38442. #define GPIO_PC1_T4CCP1 0x00020407
  38443. #define GPIO_PC2_TDI 0x00020801
  38444. #define GPIO_PC2_T5CCP0 0x00020807
  38445. #define GPIO_PC3_SWO 0x00020C01
  38446. #define GPIO_PC3_TDO 0x00020C01
  38447. #define GPIO_PC3_T5CCP1 0x00020C07
  38448. #define GPIO_PC4_U4RX 0x00021001
  38449. #define GPIO_PC4_U1RX 0x00021002
  38450. #define GPIO_PC4_WT0CCP0 0x00021007
  38451. #define GPIO_PC4_U1RTS 0x00021008
  38452. #define GPIO_PC5_U4TX 0x00021401
  38453. #define GPIO_PC5_U1TX 0x00021402
  38454. #define GPIO_PC5_WT0CCP1 0x00021407
  38455. #define GPIO_PC5_U1CTS 0x00021408
  38456. #define GPIO_PC6_U3RX 0x00021801
  38457. #define GPIO_PC6_WT1CCP0 0x00021807
  38458. #define GPIO_PC7_U3TX 0x00021C01
  38459. #define GPIO_PC7_WT1CCP1 0x00021C07
  38460. #define GPIO_PD0_SSI3CLK 0x00030001
  38461. #define GPIO_PD0_SSI1CLK 0x00030002
  38462. #define GPIO_PD0_I2C3SCL 0x00030003
  38463. #define GPIO_PD0_WT2CCP0 0x00030007
  38464. #define GPIO_PD1_SSI3FSS 0x00030401
  38465. #define GPIO_PD1_SSI1FSS 0x00030402
  38466. #define GPIO_PD1_I2C3SDA 0x00030403
  38467. #define GPIO_PD1_WT2CCP1 0x00030407
  38468. #define GPIO_PD2_SSI3RX 0x00030801
  38469. #define GPIO_PD2_SSI1RX 0x00030802
  38470. #define GPIO_PD2_WT3CCP0 0x00030807
  38471. #define GPIO_PD3_SSI3TX 0x00030C01
  38472. #define GPIO_PD3_SSI1TX 0x00030C02
  38473. #define GPIO_PD3_WT3CCP1 0x00030C07
  38474. #define GPIO_PD4_U6RX 0x00031001
  38475. #define GPIO_PD4_WT4CCP0 0x00031007
  38476. #define GPIO_PD5_U6TX 0x00031401
  38477. #define GPIO_PD5_WT4CCP1 0x00031407
  38478. #define GPIO_PD6_U2RX 0x00031801
  38479. #define GPIO_PD6_WT5CCP0 0x00031807
  38480. #define GPIO_PD7_U2TX 0x00031C01
  38481. #define GPIO_PD7_WT5CCP1 0x00031C07
  38482. #define GPIO_PD7_NMI 0x00031C08
  38483. #define GPIO_PE0_U7RX 0x00040001
  38484. #define GPIO_PE1_U7TX 0x00040401
  38485. #define GPIO_PE4_U5RX 0x00041001
  38486. #define GPIO_PE4_I2C2SCL 0x00041003
  38487. #define GPIO_PE4_CAN0RX 0x00041008
  38488. #define GPIO_PE5_U5TX 0x00041401
  38489. #define GPIO_PE5_I2C2SDA 0x00041403
  38490. #define GPIO_PE5_CAN0TX 0x00041408
  38491. #define GPIO_PF0_U1RTS 0x00050001
  38492. #define GPIO_PF0_SSI1RX 0x00050002
  38493. #define GPIO_PF0_CAN0RX 0x00050003
  38494. #define GPIO_PF0_T0CCP0 0x00050007
  38495. #define GPIO_PF0_NMI 0x00050008
  38496. #define GPIO_PF0_C0O 0x00050009
  38497. #define GPIO_PF0_TRD2 0x0005000E
  38498. #define GPIO_PF1_U1CTS 0x00050401
  38499. #define GPIO_PF1_SSI1TX 0x00050402
  38500. #define GPIO_PF1_T0CCP1 0x00050407
  38501. #define GPIO_PF1_C1O 0x00050409
  38502. #define GPIO_PF1_TRD1 0x0005040E
  38503. #define GPIO_PF2_T1CCP0 0x00050807
  38504. #define GPIO_PF2_SSI1CLK 0x00050802
  38505. #define GPIO_PF2_TRD0 0x0005080E
  38506. #define GPIO_PF3_CAN0TX 0x00050C03
  38507. #define GPIO_PF3_T1CCP1 0x00050C07
  38508. #define GPIO_PF3_SSI1FSS 0x00050C02
  38509. #define GPIO_PF3_TRCLK 0x00050C0E
  38510. #define GPIO_PF4_T2CCP0 0x00051007
  38511. #define GPIO_PG0_I2C3SCL 0x00060003
  38512. #define GPIO_PG0_T4CCP0 0x00060007
  38513. #define GPIO_PG1_I2C3SDA 0x00060403
  38514. #define GPIO_PG1_T4CCP1 0x00060407
  38515. #define GPIO_PG2_I2C4SCL 0x00060803
  38516. #define GPIO_PG2_T5CCP0 0x00060807
  38517. #define GPIO_PG3_I2C4SDA 0x00060C03
  38518. #define GPIO_PG3_T5CCP1 0x00060C07
  38519. #define GPIO_PG4_U2RX 0x00061001
  38520. #define GPIO_PG4_I2C1SCL 0x00061003
  38521. #define GPIO_PG4_WT0CCP0 0x00061007
  38522. #define GPIO_PG5_U2TX 0x00061401
  38523. #define GPIO_PG5_I2C1SDA 0x00061403
  38524. #define GPIO_PG5_WT0CCP1 0x00061407
  38525. #endif // PART_LM4F121C4QR
  38526. //*****************************************************************************
  38527. //
  38528. // LM4F121E5QR Port/Pin Mapping Definitions
  38529. //
  38530. //*****************************************************************************
  38531. #ifdef PART_LM4F121E5QR
  38532. #define GPIO_PA0_U0RX 0x00000001
  38533. #define GPIO_PA1_U0TX 0x00000401
  38534. #define GPIO_PA2_SSI0CLK 0x00000802
  38535. #define GPIO_PA3_SSI0FSS 0x00000C02
  38536. #define GPIO_PA4_SSI0RX 0x00001002
  38537. #define GPIO_PA5_SSI0TX 0x00001402
  38538. #define GPIO_PA6_I2C1SCL 0x00001803
  38539. #define GPIO_PA7_I2C1SDA 0x00001C03
  38540. #define GPIO_PB0_U1RX 0x00010001
  38541. #define GPIO_PB0_T2CCP0 0x00010007
  38542. #define GPIO_PB1_U1TX 0x00010401
  38543. #define GPIO_PB1_T2CCP1 0x00010407
  38544. #define GPIO_PB2_I2C0SCL 0x00010803
  38545. #define GPIO_PB2_T3CCP0 0x00010807
  38546. #define GPIO_PB3_I2C0SDA 0x00010C03
  38547. #define GPIO_PB3_T3CCP1 0x00010C07
  38548. #define GPIO_PB4_SSI2CLK 0x00011002
  38549. #define GPIO_PB4_CAN0RX 0x00011008
  38550. #define GPIO_PB4_T1CCP0 0x00011007
  38551. #define GPIO_PB5_SSI2FSS 0x00011402
  38552. #define GPIO_PB5_CAN0TX 0x00011408
  38553. #define GPIO_PB5_T1CCP1 0x00011407
  38554. #define GPIO_PB6_SSI2RX 0x00011802
  38555. #define GPIO_PB6_I2C5SCL 0x00011803
  38556. #define GPIO_PB6_T0CCP0 0x00011807
  38557. #define GPIO_PB7_SSI2TX 0x00011C02
  38558. #define GPIO_PB7_I2C5SDA 0x00011C03
  38559. #define GPIO_PB7_T0CCP1 0x00011C07
  38560. #define GPIO_PC0_TCK 0x00020001
  38561. #define GPIO_PC0_SWCLK 0x00020001
  38562. #define GPIO_PC0_T4CCP0 0x00020007
  38563. #define GPIO_PC1_TMS 0x00020401
  38564. #define GPIO_PC1_SWDIO 0x00020401
  38565. #define GPIO_PC1_T4CCP1 0x00020407
  38566. #define GPIO_PC2_TDI 0x00020801
  38567. #define GPIO_PC2_T5CCP0 0x00020807
  38568. #define GPIO_PC3_SWO 0x00020C01
  38569. #define GPIO_PC3_TDO 0x00020C01
  38570. #define GPIO_PC3_T5CCP1 0x00020C07
  38571. #define GPIO_PC4_U4RX 0x00021001
  38572. #define GPIO_PC4_U1RX 0x00021002
  38573. #define GPIO_PC4_WT0CCP0 0x00021007
  38574. #define GPIO_PC4_U1RTS 0x00021008
  38575. #define GPIO_PC5_U4TX 0x00021401
  38576. #define GPIO_PC5_U1TX 0x00021402
  38577. #define GPIO_PC5_WT0CCP1 0x00021407
  38578. #define GPIO_PC5_U1CTS 0x00021408
  38579. #define GPIO_PC6_U3RX 0x00021801
  38580. #define GPIO_PC6_WT1CCP0 0x00021807
  38581. #define GPIO_PC7_U3TX 0x00021C01
  38582. #define GPIO_PC7_WT1CCP1 0x00021C07
  38583. #define GPIO_PD0_SSI3CLK 0x00030001
  38584. #define GPIO_PD0_SSI1CLK 0x00030002
  38585. #define GPIO_PD0_I2C3SCL 0x00030003
  38586. #define GPIO_PD0_WT2CCP0 0x00030007
  38587. #define GPIO_PD1_SSI3FSS 0x00030401
  38588. #define GPIO_PD1_SSI1FSS 0x00030402
  38589. #define GPIO_PD1_I2C3SDA 0x00030403
  38590. #define GPIO_PD1_WT2CCP1 0x00030407
  38591. #define GPIO_PD2_SSI3RX 0x00030801
  38592. #define GPIO_PD2_SSI1RX 0x00030802
  38593. #define GPIO_PD2_WT3CCP0 0x00030807
  38594. #define GPIO_PD3_SSI3TX 0x00030C01
  38595. #define GPIO_PD3_SSI1TX 0x00030C02
  38596. #define GPIO_PD3_WT3CCP1 0x00030C07
  38597. #define GPIO_PD4_U6RX 0x00031001
  38598. #define GPIO_PD4_WT4CCP0 0x00031007
  38599. #define GPIO_PD5_U6TX 0x00031401
  38600. #define GPIO_PD5_WT4CCP1 0x00031407
  38601. #define GPIO_PD6_U2RX 0x00031801
  38602. #define GPIO_PD6_WT5CCP0 0x00031807
  38603. #define GPIO_PD7_U2TX 0x00031C01
  38604. #define GPIO_PD7_WT5CCP1 0x00031C07
  38605. #define GPIO_PD7_NMI 0x00031C08
  38606. #define GPIO_PE0_U7RX 0x00040001
  38607. #define GPIO_PE1_U7TX 0x00040401
  38608. #define GPIO_PE4_U5RX 0x00041001
  38609. #define GPIO_PE4_I2C2SCL 0x00041003
  38610. #define GPIO_PE4_CAN0RX 0x00041008
  38611. #define GPIO_PE5_U5TX 0x00041401
  38612. #define GPIO_PE5_I2C2SDA 0x00041403
  38613. #define GPIO_PE5_CAN0TX 0x00041408
  38614. #define GPIO_PF0_U1RTS 0x00050001
  38615. #define GPIO_PF0_SSI1RX 0x00050002
  38616. #define GPIO_PF0_CAN0RX 0x00050003
  38617. #define GPIO_PF0_T0CCP0 0x00050007
  38618. #define GPIO_PF0_NMI 0x00050008
  38619. #define GPIO_PF0_C0O 0x00050009
  38620. #define GPIO_PF0_TRD2 0x0005000E
  38621. #define GPIO_PF1_U1CTS 0x00050401
  38622. #define GPIO_PF1_SSI1TX 0x00050402
  38623. #define GPIO_PF1_T0CCP1 0x00050407
  38624. #define GPIO_PF1_C1O 0x00050409
  38625. #define GPIO_PF1_TRD1 0x0005040E
  38626. #define GPIO_PF2_T1CCP0 0x00050807
  38627. #define GPIO_PF2_SSI1CLK 0x00050802
  38628. #define GPIO_PF2_TRD0 0x0005080E
  38629. #define GPIO_PF3_CAN0TX 0x00050C03
  38630. #define GPIO_PF3_T1CCP1 0x00050C07
  38631. #define GPIO_PF3_SSI1FSS 0x00050C02
  38632. #define GPIO_PF3_TRCLK 0x00050C0E
  38633. #define GPIO_PF4_T2CCP0 0x00051007
  38634. #define GPIO_PG0_I2C3SCL 0x00060003
  38635. #define GPIO_PG0_T4CCP0 0x00060007
  38636. #define GPIO_PG1_I2C3SDA 0x00060403
  38637. #define GPIO_PG1_T4CCP1 0x00060407
  38638. #define GPIO_PG2_I2C4SCL 0x00060803
  38639. #define GPIO_PG2_T5CCP0 0x00060807
  38640. #define GPIO_PG3_I2C4SDA 0x00060C03
  38641. #define GPIO_PG3_T5CCP1 0x00060C07
  38642. #define GPIO_PG4_U2RX 0x00061001
  38643. #define GPIO_PG4_I2C1SCL 0x00061003
  38644. #define GPIO_PG4_WT0CCP0 0x00061007
  38645. #define GPIO_PG5_U2TX 0x00061401
  38646. #define GPIO_PG5_I2C1SDA 0x00061403
  38647. #define GPIO_PG5_WT0CCP1 0x00061407
  38648. #endif // PART_LM4F121E5QR
  38649. //*****************************************************************************
  38650. //
  38651. // LM4F121H5QR Port/Pin Mapping Definitions
  38652. //
  38653. //*****************************************************************************
  38654. #ifdef PART_LM4F121H5QR
  38655. #define GPIO_PA0_U0RX 0x00000001
  38656. #define GPIO_PA1_U0TX 0x00000401
  38657. #define GPIO_PA2_SSI0CLK 0x00000802
  38658. #define GPIO_PA3_SSI0FSS 0x00000C02
  38659. #define GPIO_PA4_SSI0RX 0x00001002
  38660. #define GPIO_PA5_SSI0TX 0x00001402
  38661. #define GPIO_PA6_I2C1SCL 0x00001803
  38662. #define GPIO_PA7_I2C1SDA 0x00001C03
  38663. #define GPIO_PB0_U1RX 0x00010001
  38664. #define GPIO_PB0_T2CCP0 0x00010007
  38665. #define GPIO_PB1_U1TX 0x00010401
  38666. #define GPIO_PB1_T2CCP1 0x00010407
  38667. #define GPIO_PB2_I2C0SCL 0x00010803
  38668. #define GPIO_PB2_T3CCP0 0x00010807
  38669. #define GPIO_PB3_I2C0SDA 0x00010C03
  38670. #define GPIO_PB3_T3CCP1 0x00010C07
  38671. #define GPIO_PB4_SSI2CLK 0x00011002
  38672. #define GPIO_PB4_CAN0RX 0x00011008
  38673. #define GPIO_PB4_T1CCP0 0x00011007
  38674. #define GPIO_PB5_SSI2FSS 0x00011402
  38675. #define GPIO_PB5_CAN0TX 0x00011408
  38676. #define GPIO_PB5_T1CCP1 0x00011407
  38677. #define GPIO_PB6_SSI2RX 0x00011802
  38678. #define GPIO_PB6_I2C5SCL 0x00011803
  38679. #define GPIO_PB6_T0CCP0 0x00011807
  38680. #define GPIO_PB7_SSI2TX 0x00011C02
  38681. #define GPIO_PB7_I2C5SDA 0x00011C03
  38682. #define GPIO_PB7_T0CCP1 0x00011C07
  38683. #define GPIO_PC0_TCK 0x00020001
  38684. #define GPIO_PC0_SWCLK 0x00020001
  38685. #define GPIO_PC0_T4CCP0 0x00020007
  38686. #define GPIO_PC1_TMS 0x00020401
  38687. #define GPIO_PC1_SWDIO 0x00020401
  38688. #define GPIO_PC1_T4CCP1 0x00020407
  38689. #define GPIO_PC2_TDI 0x00020801
  38690. #define GPIO_PC2_T5CCP0 0x00020807
  38691. #define GPIO_PC3_SWO 0x00020C01
  38692. #define GPIO_PC3_TDO 0x00020C01
  38693. #define GPIO_PC3_T5CCP1 0x00020C07
  38694. #define GPIO_PC4_U4RX 0x00021001
  38695. #define GPIO_PC4_U1RX 0x00021002
  38696. #define GPIO_PC4_WT0CCP0 0x00021007
  38697. #define GPIO_PC4_U1RTS 0x00021008
  38698. #define GPIO_PC5_U4TX 0x00021401
  38699. #define GPIO_PC5_U1TX 0x00021402
  38700. #define GPIO_PC5_WT0CCP1 0x00021407
  38701. #define GPIO_PC5_U1CTS 0x00021408
  38702. #define GPIO_PC6_U3RX 0x00021801
  38703. #define GPIO_PC6_WT1CCP0 0x00021807
  38704. #define GPIO_PC7_U3TX 0x00021C01
  38705. #define GPIO_PC7_WT1CCP1 0x00021C07
  38706. #define GPIO_PD0_SSI3CLK 0x00030001
  38707. #define GPIO_PD0_SSI1CLK 0x00030002
  38708. #define GPIO_PD0_I2C3SCL 0x00030003
  38709. #define GPIO_PD0_WT2CCP0 0x00030007
  38710. #define GPIO_PD1_SSI3FSS 0x00030401
  38711. #define GPIO_PD1_SSI1FSS 0x00030402
  38712. #define GPIO_PD1_I2C3SDA 0x00030403
  38713. #define GPIO_PD1_WT2CCP1 0x00030407
  38714. #define GPIO_PD2_SSI3RX 0x00030801
  38715. #define GPIO_PD2_SSI1RX 0x00030802
  38716. #define GPIO_PD2_WT3CCP0 0x00030807
  38717. #define GPIO_PD3_SSI3TX 0x00030C01
  38718. #define GPIO_PD3_SSI1TX 0x00030C02
  38719. #define GPIO_PD3_WT3CCP1 0x00030C07
  38720. #define GPIO_PD4_U6RX 0x00031001
  38721. #define GPIO_PD4_WT4CCP0 0x00031007
  38722. #define GPIO_PD5_U6TX 0x00031401
  38723. #define GPIO_PD5_WT4CCP1 0x00031407
  38724. #define GPIO_PD6_U2RX 0x00031801
  38725. #define GPIO_PD6_WT5CCP0 0x00031807
  38726. #define GPIO_PD7_U2TX 0x00031C01
  38727. #define GPIO_PD7_WT5CCP1 0x00031C07
  38728. #define GPIO_PD7_NMI 0x00031C08
  38729. #define GPIO_PE0_U7RX 0x00040001
  38730. #define GPIO_PE1_U7TX 0x00040401
  38731. #define GPIO_PE4_U5RX 0x00041001
  38732. #define GPIO_PE4_I2C2SCL 0x00041003
  38733. #define GPIO_PE4_CAN0RX 0x00041008
  38734. #define GPIO_PE5_U5TX 0x00041401
  38735. #define GPIO_PE5_I2C2SDA 0x00041403
  38736. #define GPIO_PE5_CAN0TX 0x00041408
  38737. #define GPIO_PF0_U1RTS 0x00050001
  38738. #define GPIO_PF0_SSI1RX 0x00050002
  38739. #define GPIO_PF0_CAN0RX 0x00050003
  38740. #define GPIO_PF0_T0CCP0 0x00050007
  38741. #define GPIO_PF0_NMI 0x00050008
  38742. #define GPIO_PF0_C0O 0x00050009
  38743. #define GPIO_PF0_TRD2 0x0005000E
  38744. #define GPIO_PF1_U1CTS 0x00050401
  38745. #define GPIO_PF1_SSI1TX 0x00050402
  38746. #define GPIO_PF1_T0CCP1 0x00050407
  38747. #define GPIO_PF1_C1O 0x00050409
  38748. #define GPIO_PF1_TRD1 0x0005040E
  38749. #define GPIO_PF2_T1CCP0 0x00050807
  38750. #define GPIO_PF2_SSI1CLK 0x00050802
  38751. #define GPIO_PF2_TRD0 0x0005080E
  38752. #define GPIO_PF3_CAN0TX 0x00050C03
  38753. #define GPIO_PF3_T1CCP1 0x00050C07
  38754. #define GPIO_PF3_SSI1FSS 0x00050C02
  38755. #define GPIO_PF3_TRCLK 0x00050C0E
  38756. #define GPIO_PF4_T2CCP0 0x00051007
  38757. #define GPIO_PG0_I2C3SCL 0x00060003
  38758. #define GPIO_PG0_T4CCP0 0x00060007
  38759. #define GPIO_PG1_I2C3SDA 0x00060403
  38760. #define GPIO_PG1_T4CCP1 0x00060407
  38761. #define GPIO_PG2_I2C4SCL 0x00060803
  38762. #define GPIO_PG2_T5CCP0 0x00060807
  38763. #define GPIO_PG3_I2C4SDA 0x00060C03
  38764. #define GPIO_PG3_T5CCP1 0x00060C07
  38765. #define GPIO_PG4_U2RX 0x00061001
  38766. #define GPIO_PG4_I2C1SCL 0x00061003
  38767. #define GPIO_PG4_WT0CCP0 0x00061007
  38768. #define GPIO_PG5_U2TX 0x00061401
  38769. #define GPIO_PG5_I2C1SDA 0x00061403
  38770. #define GPIO_PG5_WT0CCP1 0x00061407
  38771. #endif // PART_LM4F121H5QR
  38772. //*****************************************************************************
  38773. //
  38774. // LM4F122C4QC Port/Pin Mapping Definitions
  38775. //
  38776. //*****************************************************************************
  38777. #ifdef PART_LM4F122C4QC
  38778. #define GPIO_PA0_U0RX 0x00000001
  38779. #define GPIO_PA1_U0TX 0x00000401
  38780. #define GPIO_PA2_SSI0CLK 0x00000802
  38781. #define GPIO_PA3_SSI0FSS 0x00000C02
  38782. #define GPIO_PA4_SSI0RX 0x00001002
  38783. #define GPIO_PA5_SSI0TX 0x00001402
  38784. #define GPIO_PA6_I2C1SCL 0x00001803
  38785. #define GPIO_PA7_I2C1SDA 0x00001C03
  38786. #define GPIO_PB0_U1RX 0x00010001
  38787. #define GPIO_PB0_T2CCP0 0x00010007
  38788. #define GPIO_PB1_U1TX 0x00010401
  38789. #define GPIO_PB1_T2CCP1 0x00010407
  38790. #define GPIO_PB2_I2C0SCL 0x00010803
  38791. #define GPIO_PB2_T3CCP0 0x00010807
  38792. #define GPIO_PB3_I2C0SDA 0x00010C03
  38793. #define GPIO_PB3_T3CCP1 0x00010C07
  38794. #define GPIO_PB4_SSI2CLK 0x00011002
  38795. #define GPIO_PB4_CAN0RX 0x00011008
  38796. #define GPIO_PB4_T1CCP0 0x00011007
  38797. #define GPIO_PB5_SSI2FSS 0x00011402
  38798. #define GPIO_PB5_CAN0TX 0x00011408
  38799. #define GPIO_PB5_T1CCP1 0x00011407
  38800. #define GPIO_PC0_TCK 0x00020001
  38801. #define GPIO_PC0_SWCLK 0x00020001
  38802. #define GPIO_PC0_T4CCP0 0x00020007
  38803. #define GPIO_PC1_TMS 0x00020401
  38804. #define GPIO_PC1_SWDIO 0x00020401
  38805. #define GPIO_PC1_T4CCP1 0x00020407
  38806. #define GPIO_PC2_TDI 0x00020801
  38807. #define GPIO_PC2_T5CCP0 0x00020807
  38808. #define GPIO_PC3_SWO 0x00020C01
  38809. #define GPIO_PC3_TDO 0x00020C01
  38810. #define GPIO_PC3_T5CCP1 0x00020C07
  38811. #define GPIO_PC4_U4RX 0x00021001
  38812. #define GPIO_PC4_U1RX 0x00021002
  38813. #define GPIO_PC4_WT0CCP0 0x00021007
  38814. #define GPIO_PC4_U1RTS 0x00021008
  38815. #define GPIO_PC5_U4TX 0x00021401
  38816. #define GPIO_PC5_U1TX 0x00021402
  38817. #define GPIO_PC5_WT0CCP1 0x00021407
  38818. #define GPIO_PC5_U1CTS 0x00021408
  38819. #define GPIO_PC6_U3RX 0x00021801
  38820. #define GPIO_PC6_WT1CCP0 0x00021807
  38821. #define GPIO_PC7_U3TX 0x00021C01
  38822. #define GPIO_PC7_WT1CCP1 0x00021C07
  38823. #define GPIO_PD0_SSI3CLK 0x00030001
  38824. #define GPIO_PD0_SSI1CLK 0x00030002
  38825. #define GPIO_PD0_I2C3SCL 0x00030003
  38826. #define GPIO_PD0_WT2CCP0 0x00030007
  38827. #define GPIO_PD1_SSI3FSS 0x00030401
  38828. #define GPIO_PD1_SSI1FSS 0x00030402
  38829. #define GPIO_PD1_I2C3SDA 0x00030403
  38830. #define GPIO_PD1_WT2CCP1 0x00030407
  38831. #define GPIO_PD2_SSI3RX 0x00030801
  38832. #define GPIO_PD2_SSI1RX 0x00030802
  38833. #define GPIO_PD2_WT3CCP0 0x00030807
  38834. #define GPIO_PD3_SSI3TX 0x00030C01
  38835. #define GPIO_PD3_SSI1TX 0x00030C02
  38836. #define GPIO_PD3_WT3CCP1 0x00030C07
  38837. #define GPIO_PD4_U6RX 0x00031001
  38838. #define GPIO_PD4_WT4CCP0 0x00031007
  38839. #define GPIO_PD5_U6TX 0x00031401
  38840. #define GPIO_PD5_WT4CCP1 0x00031407
  38841. #define GPIO_PD6_U2RX 0x00031801
  38842. #define GPIO_PD6_WT5CCP0 0x00031807
  38843. #define GPIO_PD7_U2TX 0x00031C01
  38844. #define GPIO_PD7_WT5CCP1 0x00031C07
  38845. #define GPIO_PD7_NMI 0x00031C08
  38846. #define GPIO_PE0_U7RX 0x00040001
  38847. #define GPIO_PE1_U7TX 0x00040401
  38848. #define GPIO_PE4_U5RX 0x00041001
  38849. #define GPIO_PE4_I2C2SCL 0x00041003
  38850. #define GPIO_PE4_CAN0RX 0x00041008
  38851. #define GPIO_PE5_U5TX 0x00041401
  38852. #define GPIO_PE5_I2C2SDA 0x00041403
  38853. #define GPIO_PE5_CAN0TX 0x00041408
  38854. #define GPIO_PE7_U1RI 0x00041C01
  38855. #define GPIO_PF0_U1RTS 0x00050001
  38856. #define GPIO_PF0_SSI1RX 0x00050002
  38857. #define GPIO_PF0_CAN0RX 0x00050003
  38858. #define GPIO_PF0_T0CCP0 0x00050007
  38859. #define GPIO_PF0_NMI 0x00050008
  38860. #define GPIO_PF0_C0O 0x00050009
  38861. #define GPIO_PF0_TRD2 0x0005000E
  38862. #define GPIO_PF1_U1CTS 0x00050401
  38863. #define GPIO_PF1_SSI1TX 0x00050402
  38864. #define GPIO_PF1_T0CCP1 0x00050407
  38865. #define GPIO_PF1_C1O 0x00050409
  38866. #define GPIO_PF1_TRD1 0x0005040E
  38867. #define GPIO_PF2_U1DCD 0x00050801
  38868. #define GPIO_PF2_T1CCP0 0x00050807
  38869. #define GPIO_PF2_SSI1CLK 0x00050802
  38870. #define GPIO_PF2_C2O 0x00050809
  38871. #define GPIO_PF2_TRD0 0x0005080E
  38872. #define GPIO_PF3_U1DSR 0x00050C01
  38873. #define GPIO_PF3_CAN0TX 0x00050C03
  38874. #define GPIO_PF3_T1CCP1 0x00050C07
  38875. #define GPIO_PF3_SSI1FSS 0x00050C02
  38876. #define GPIO_PF3_TRCLK 0x00050C0E
  38877. #define GPIO_PF4_U1DTR 0x00051001
  38878. #define GPIO_PF4_T2CCP0 0x00051007
  38879. #define GPIO_PF4_TRD3 0x0005100E
  38880. #define GPIO_PF5_T2CCP1 0x00051407
  38881. #define GPIO_PF6_I2C2SCL 0x00051803
  38882. #define GPIO_PF6_T3CCP0 0x00051807
  38883. #define GPIO_PF7_I2C2SDA 0x00051C03
  38884. #define GPIO_PF7_T3CCP1 0x00051C07
  38885. #define GPIO_PG0_I2C3SCL 0x00060003
  38886. #define GPIO_PG0_T4CCP0 0x00060007
  38887. #define GPIO_PG0_LPC0PD_N 0x0006000F
  38888. #define GPIO_PG1_I2C3SDA 0x00060403
  38889. #define GPIO_PG1_T4CCP1 0x00060407
  38890. #define GPIO_PG1_LPC0SCI_N 0x0006040F
  38891. #define GPIO_PG2_I2C4SCL 0x00060803
  38892. #define GPIO_PG2_T5CCP0 0x00060807
  38893. #define GPIO_PG2_LPC0CLKRUN_N 0x0006080F
  38894. #define GPIO_PG3_I2C4SDA 0x00060C03
  38895. #define GPIO_PG3_T5CCP1 0x00060C07
  38896. #define GPIO_PG4_U2RX 0x00061001
  38897. #define GPIO_PG4_I2C1SCL 0x00061003
  38898. #define GPIO_PG4_WT0CCP0 0x00061007
  38899. #define GPIO_PG5_U2TX 0x00061401
  38900. #define GPIO_PG5_I2C1SDA 0x00061403
  38901. #define GPIO_PG5_WT0CCP1 0x00061407
  38902. #define GPIO_PG6_I2C5SCL 0x00061803
  38903. #define GPIO_PG6_WT1CCP0 0x00061807
  38904. #define GPIO_PG7_I2C5SDA 0x00061C03
  38905. #define GPIO_PG7_WT1CCP1 0x00061C07
  38906. #define GPIO_PH0_SSI3CLK 0x00070002
  38907. #define GPIO_PH0_WT2CCP0 0x00070007
  38908. #define GPIO_PH1_SSI3FSS 0x00070402
  38909. #define GPIO_PH1_WT2CCP1 0x00070407
  38910. #define GPIO_PH2_SSI3RX 0x00070802
  38911. #define GPIO_PH2_WT5CCP0 0x00070807
  38912. #define GPIO_PH3_SSI3TX 0x00070C02
  38913. #define GPIO_PH3_WT5CCP1 0x00070C07
  38914. #define GPIO_PH4_SSI2CLK 0x00071002
  38915. #define GPIO_PH4_WT3CCP0 0x00071007
  38916. #define GPIO_PH5_SSI2FSS 0x00071402
  38917. #define GPIO_PH5_WT3CCP1 0x00071407
  38918. #define GPIO_PH6_SSI2RX 0x00071802
  38919. #define GPIO_PH6_WT4CCP0 0x00071807
  38920. #define GPIO_PH7_SSI2TX 0x00071C02
  38921. #define GPIO_PH7_WT4CCP1 0x00071C07
  38922. #define GPIO_PJ0_U4RX 0x00080001
  38923. #define GPIO_PJ0_T1CCP0 0x00080007
  38924. #define GPIO_PJ1_U4TX 0x00080401
  38925. #define GPIO_PJ1_T1CCP1 0x00080407
  38926. #define GPIO_PJ2_U5RX 0x00080801
  38927. #define GPIO_PJ2_T2CCP0 0x00080807
  38928. #define GPIO_PK0_SSI3CLK 0x00090002
  38929. #define GPIO_PK1_SSI3FSS 0x00090402
  38930. #define GPIO_PK2_SSI3RX 0x00090802
  38931. #define GPIO_PK3_SSI3TX 0x00090C02
  38932. #endif // PART_LM4F122C4QC
  38933. //*****************************************************************************
  38934. //
  38935. // LM4F122E5QC Port/Pin Mapping Definitions
  38936. //
  38937. //*****************************************************************************
  38938. #ifdef PART_LM4F122E5QC
  38939. #define GPIO_PA0_U0RX 0x00000001
  38940. #define GPIO_PA1_U0TX 0x00000401
  38941. #define GPIO_PA2_SSI0CLK 0x00000802
  38942. #define GPIO_PA3_SSI0FSS 0x00000C02
  38943. #define GPIO_PA4_SSI0RX 0x00001002
  38944. #define GPIO_PA5_SSI0TX 0x00001402
  38945. #define GPIO_PA6_I2C1SCL 0x00001803
  38946. #define GPIO_PA7_I2C1SDA 0x00001C03
  38947. #define GPIO_PB0_U1RX 0x00010001
  38948. #define GPIO_PB0_T2CCP0 0x00010007
  38949. #define GPIO_PB1_U1TX 0x00010401
  38950. #define GPIO_PB1_T2CCP1 0x00010407
  38951. #define GPIO_PB2_I2C0SCL 0x00010803
  38952. #define GPIO_PB2_T3CCP0 0x00010807
  38953. #define GPIO_PB3_I2C0SDA 0x00010C03
  38954. #define GPIO_PB3_T3CCP1 0x00010C07
  38955. #define GPIO_PB4_SSI2CLK 0x00011002
  38956. #define GPIO_PB4_CAN0RX 0x00011008
  38957. #define GPIO_PB4_T1CCP0 0x00011007
  38958. #define GPIO_PB5_SSI2FSS 0x00011402
  38959. #define GPIO_PB5_CAN0TX 0x00011408
  38960. #define GPIO_PB5_T1CCP1 0x00011407
  38961. #define GPIO_PC0_TCK 0x00020001
  38962. #define GPIO_PC0_SWCLK 0x00020001
  38963. #define GPIO_PC0_T4CCP0 0x00020007
  38964. #define GPIO_PC1_TMS 0x00020401
  38965. #define GPIO_PC1_SWDIO 0x00020401
  38966. #define GPIO_PC1_T4CCP1 0x00020407
  38967. #define GPIO_PC2_TDI 0x00020801
  38968. #define GPIO_PC2_T5CCP0 0x00020807
  38969. #define GPIO_PC3_SWO 0x00020C01
  38970. #define GPIO_PC3_TDO 0x00020C01
  38971. #define GPIO_PC3_T5CCP1 0x00020C07
  38972. #define GPIO_PC4_U4RX 0x00021001
  38973. #define GPIO_PC4_U1RX 0x00021002
  38974. #define GPIO_PC4_WT0CCP0 0x00021007
  38975. #define GPIO_PC4_U1RTS 0x00021008
  38976. #define GPIO_PC5_U4TX 0x00021401
  38977. #define GPIO_PC5_U1TX 0x00021402
  38978. #define GPIO_PC5_WT0CCP1 0x00021407
  38979. #define GPIO_PC5_U1CTS 0x00021408
  38980. #define GPIO_PC6_U3RX 0x00021801
  38981. #define GPIO_PC6_WT1CCP0 0x00021807
  38982. #define GPIO_PC7_U3TX 0x00021C01
  38983. #define GPIO_PC7_WT1CCP1 0x00021C07
  38984. #define GPIO_PD0_SSI3CLK 0x00030001
  38985. #define GPIO_PD0_SSI1CLK 0x00030002
  38986. #define GPIO_PD0_I2C3SCL 0x00030003
  38987. #define GPIO_PD0_WT2CCP0 0x00030007
  38988. #define GPIO_PD1_SSI3FSS 0x00030401
  38989. #define GPIO_PD1_SSI1FSS 0x00030402
  38990. #define GPIO_PD1_I2C3SDA 0x00030403
  38991. #define GPIO_PD1_WT2CCP1 0x00030407
  38992. #define GPIO_PD2_SSI3RX 0x00030801
  38993. #define GPIO_PD2_SSI1RX 0x00030802
  38994. #define GPIO_PD2_WT3CCP0 0x00030807
  38995. #define GPIO_PD3_SSI3TX 0x00030C01
  38996. #define GPIO_PD3_SSI1TX 0x00030C02
  38997. #define GPIO_PD3_WT3CCP1 0x00030C07
  38998. #define GPIO_PD4_U6RX 0x00031001
  38999. #define GPIO_PD4_WT4CCP0 0x00031007
  39000. #define GPIO_PD5_U6TX 0x00031401
  39001. #define GPIO_PD5_WT4CCP1 0x00031407
  39002. #define GPIO_PD6_U2RX 0x00031801
  39003. #define GPIO_PD6_WT5CCP0 0x00031807
  39004. #define GPIO_PD7_U2TX 0x00031C01
  39005. #define GPIO_PD7_WT5CCP1 0x00031C07
  39006. #define GPIO_PD7_NMI 0x00031C08
  39007. #define GPIO_PE0_U7RX 0x00040001
  39008. #define GPIO_PE1_U7TX 0x00040401
  39009. #define GPIO_PE4_U5RX 0x00041001
  39010. #define GPIO_PE4_I2C2SCL 0x00041003
  39011. #define GPIO_PE4_CAN0RX 0x00041008
  39012. #define GPIO_PE5_U5TX 0x00041401
  39013. #define GPIO_PE5_I2C2SDA 0x00041403
  39014. #define GPIO_PE5_CAN0TX 0x00041408
  39015. #define GPIO_PE7_U1RI 0x00041C01
  39016. #define GPIO_PF0_U1RTS 0x00050001
  39017. #define GPIO_PF0_SSI1RX 0x00050002
  39018. #define GPIO_PF0_CAN0RX 0x00050003
  39019. #define GPIO_PF0_T0CCP0 0x00050007
  39020. #define GPIO_PF0_NMI 0x00050008
  39021. #define GPIO_PF0_C0O 0x00050009
  39022. #define GPIO_PF0_TRD2 0x0005000E
  39023. #define GPIO_PF1_U1CTS 0x00050401
  39024. #define GPIO_PF1_SSI1TX 0x00050402
  39025. #define GPIO_PF1_T0CCP1 0x00050407
  39026. #define GPIO_PF1_C1O 0x00050409
  39027. #define GPIO_PF1_TRD1 0x0005040E
  39028. #define GPIO_PF2_U1DCD 0x00050801
  39029. #define GPIO_PF2_T1CCP0 0x00050807
  39030. #define GPIO_PF2_SSI1CLK 0x00050802
  39031. #define GPIO_PF2_C2O 0x00050809
  39032. #define GPIO_PF2_TRD0 0x0005080E
  39033. #define GPIO_PF3_U1DSR 0x00050C01
  39034. #define GPIO_PF3_CAN0TX 0x00050C03
  39035. #define GPIO_PF3_T1CCP1 0x00050C07
  39036. #define GPIO_PF3_SSI1FSS 0x00050C02
  39037. #define GPIO_PF3_TRCLK 0x00050C0E
  39038. #define GPIO_PF4_U1DTR 0x00051001
  39039. #define GPIO_PF4_T2CCP0 0x00051007
  39040. #define GPIO_PF4_TRD3 0x0005100E
  39041. #define GPIO_PF5_T2CCP1 0x00051407
  39042. #define GPIO_PF6_I2C2SCL 0x00051803
  39043. #define GPIO_PF6_T3CCP0 0x00051807
  39044. #define GPIO_PF7_I2C2SDA 0x00051C03
  39045. #define GPIO_PF7_T3CCP1 0x00051C07
  39046. #define GPIO_PG0_I2C3SCL 0x00060003
  39047. #define GPIO_PG0_T4CCP0 0x00060007
  39048. #define GPIO_PG0_LPC0PD_N 0x0006000F
  39049. #define GPIO_PG1_I2C3SDA 0x00060403
  39050. #define GPIO_PG1_T4CCP1 0x00060407
  39051. #define GPIO_PG1_LPC0SCI_N 0x0006040F
  39052. #define GPIO_PG2_I2C4SCL 0x00060803
  39053. #define GPIO_PG2_T5CCP0 0x00060807
  39054. #define GPIO_PG2_LPC0CLKRUN_N 0x0006080F
  39055. #define GPIO_PG3_I2C4SDA 0x00060C03
  39056. #define GPIO_PG3_T5CCP1 0x00060C07
  39057. #define GPIO_PG4_U2RX 0x00061001
  39058. #define GPIO_PG4_I2C1SCL 0x00061003
  39059. #define GPIO_PG4_WT0CCP0 0x00061007
  39060. #define GPIO_PG5_U2TX 0x00061401
  39061. #define GPIO_PG5_I2C1SDA 0x00061403
  39062. #define GPIO_PG5_WT0CCP1 0x00061407
  39063. #define GPIO_PG6_I2C5SCL 0x00061803
  39064. #define GPIO_PG6_WT1CCP0 0x00061807
  39065. #define GPIO_PG7_I2C5SDA 0x00061C03
  39066. #define GPIO_PG7_WT1CCP1 0x00061C07
  39067. #define GPIO_PH0_SSI3CLK 0x00070002
  39068. #define GPIO_PH0_WT2CCP0 0x00070007
  39069. #define GPIO_PH1_SSI3FSS 0x00070402
  39070. #define GPIO_PH1_WT2CCP1 0x00070407
  39071. #define GPIO_PH2_SSI3RX 0x00070802
  39072. #define GPIO_PH2_WT5CCP0 0x00070807
  39073. #define GPIO_PH3_SSI3TX 0x00070C02
  39074. #define GPIO_PH3_WT5CCP1 0x00070C07
  39075. #define GPIO_PH4_SSI2CLK 0x00071002
  39076. #define GPIO_PH4_WT3CCP0 0x00071007
  39077. #define GPIO_PH5_SSI2FSS 0x00071402
  39078. #define GPIO_PH5_WT3CCP1 0x00071407
  39079. #define GPIO_PH6_SSI2RX 0x00071802
  39080. #define GPIO_PH6_WT4CCP0 0x00071807
  39081. #define GPIO_PH7_SSI2TX 0x00071C02
  39082. #define GPIO_PH7_WT4CCP1 0x00071C07
  39083. #define GPIO_PJ0_U4RX 0x00080001
  39084. #define GPIO_PJ0_T1CCP0 0x00080007
  39085. #define GPIO_PJ1_U4TX 0x00080401
  39086. #define GPIO_PJ1_T1CCP1 0x00080407
  39087. #define GPIO_PJ2_U5RX 0x00080801
  39088. #define GPIO_PJ2_T2CCP0 0x00080807
  39089. #define GPIO_PK0_SSI3CLK 0x00090002
  39090. #define GPIO_PK1_SSI3FSS 0x00090402
  39091. #define GPIO_PK2_SSI3RX 0x00090802
  39092. #define GPIO_PK3_SSI3TX 0x00090C02
  39093. #endif // PART_LM4F122E5QC
  39094. //*****************************************************************************
  39095. //
  39096. // LM4F122H5QC Port/Pin Mapping Definitions
  39097. //
  39098. //*****************************************************************************
  39099. #ifdef PART_LM4F122H5QC
  39100. #define GPIO_PA0_U0RX 0x00000001
  39101. #define GPIO_PA1_U0TX 0x00000401
  39102. #define GPIO_PA2_SSI0CLK 0x00000802
  39103. #define GPIO_PA3_SSI0FSS 0x00000C02
  39104. #define GPIO_PA4_SSI0RX 0x00001002
  39105. #define GPIO_PA5_SSI0TX 0x00001402
  39106. #define GPIO_PA6_I2C1SCL 0x00001803
  39107. #define GPIO_PA7_I2C1SDA 0x00001C03
  39108. #define GPIO_PB0_U1RX 0x00010001
  39109. #define GPIO_PB0_T2CCP0 0x00010007
  39110. #define GPIO_PB1_U1TX 0x00010401
  39111. #define GPIO_PB1_T2CCP1 0x00010407
  39112. #define GPIO_PB2_I2C0SCL 0x00010803
  39113. #define GPIO_PB2_T3CCP0 0x00010807
  39114. #define GPIO_PB3_I2C0SDA 0x00010C03
  39115. #define GPIO_PB3_T3CCP1 0x00010C07
  39116. #define GPIO_PB4_SSI2CLK 0x00011002
  39117. #define GPIO_PB4_CAN0RX 0x00011008
  39118. #define GPIO_PB4_T1CCP0 0x00011007
  39119. #define GPIO_PB5_SSI2FSS 0x00011402
  39120. #define GPIO_PB5_CAN0TX 0x00011408
  39121. #define GPIO_PB5_T1CCP1 0x00011407
  39122. #define GPIO_PC0_TCK 0x00020001
  39123. #define GPIO_PC0_SWCLK 0x00020001
  39124. #define GPIO_PC0_T4CCP0 0x00020007
  39125. #define GPIO_PC1_TMS 0x00020401
  39126. #define GPIO_PC1_SWDIO 0x00020401
  39127. #define GPIO_PC1_T4CCP1 0x00020407
  39128. #define GPIO_PC2_TDI 0x00020801
  39129. #define GPIO_PC2_T5CCP0 0x00020807
  39130. #define GPIO_PC3_SWO 0x00020C01
  39131. #define GPIO_PC3_TDO 0x00020C01
  39132. #define GPIO_PC3_T5CCP1 0x00020C07
  39133. #define GPIO_PC4_U4RX 0x00021001
  39134. #define GPIO_PC4_U1RX 0x00021002
  39135. #define GPIO_PC4_WT0CCP0 0x00021007
  39136. #define GPIO_PC4_U1RTS 0x00021008
  39137. #define GPIO_PC5_U4TX 0x00021401
  39138. #define GPIO_PC5_U1TX 0x00021402
  39139. #define GPIO_PC5_WT0CCP1 0x00021407
  39140. #define GPIO_PC5_U1CTS 0x00021408
  39141. #define GPIO_PC6_U3RX 0x00021801
  39142. #define GPIO_PC6_WT1CCP0 0x00021807
  39143. #define GPIO_PC7_U3TX 0x00021C01
  39144. #define GPIO_PC7_WT1CCP1 0x00021C07
  39145. #define GPIO_PD0_SSI3CLK 0x00030001
  39146. #define GPIO_PD0_SSI1CLK 0x00030002
  39147. #define GPIO_PD0_I2C3SCL 0x00030003
  39148. #define GPIO_PD0_WT2CCP0 0x00030007
  39149. #define GPIO_PD1_SSI3FSS 0x00030401
  39150. #define GPIO_PD1_SSI1FSS 0x00030402
  39151. #define GPIO_PD1_I2C3SDA 0x00030403
  39152. #define GPIO_PD1_WT2CCP1 0x00030407
  39153. #define GPIO_PD2_SSI3RX 0x00030801
  39154. #define GPIO_PD2_SSI1RX 0x00030802
  39155. #define GPIO_PD2_WT3CCP0 0x00030807
  39156. #define GPIO_PD3_SSI3TX 0x00030C01
  39157. #define GPIO_PD3_SSI1TX 0x00030C02
  39158. #define GPIO_PD3_WT3CCP1 0x00030C07
  39159. #define GPIO_PD4_U6RX 0x00031001
  39160. #define GPIO_PD4_WT4CCP0 0x00031007
  39161. #define GPIO_PD5_U6TX 0x00031401
  39162. #define GPIO_PD5_WT4CCP1 0x00031407
  39163. #define GPIO_PD6_U2RX 0x00031801
  39164. #define GPIO_PD6_WT5CCP0 0x00031807
  39165. #define GPIO_PD7_U2TX 0x00031C01
  39166. #define GPIO_PD7_WT5CCP1 0x00031C07
  39167. #define GPIO_PD7_NMI 0x00031C08
  39168. #define GPIO_PE0_U7RX 0x00040001
  39169. #define GPIO_PE1_U7TX 0x00040401
  39170. #define GPIO_PE4_U5RX 0x00041001
  39171. #define GPIO_PE4_I2C2SCL 0x00041003
  39172. #define GPIO_PE4_CAN0RX 0x00041008
  39173. #define GPIO_PE5_U5TX 0x00041401
  39174. #define GPIO_PE5_I2C2SDA 0x00041403
  39175. #define GPIO_PE5_CAN0TX 0x00041408
  39176. #define GPIO_PE7_U1RI 0x00041C01
  39177. #define GPIO_PF0_U1RTS 0x00050001
  39178. #define GPIO_PF0_SSI1RX 0x00050002
  39179. #define GPIO_PF0_CAN0RX 0x00050003
  39180. #define GPIO_PF0_T0CCP0 0x00050007
  39181. #define GPIO_PF0_NMI 0x00050008
  39182. #define GPIO_PF0_C0O 0x00050009
  39183. #define GPIO_PF0_TRD2 0x0005000E
  39184. #define GPIO_PF1_U1CTS 0x00050401
  39185. #define GPIO_PF1_SSI1TX 0x00050402
  39186. #define GPIO_PF1_T0CCP1 0x00050407
  39187. #define GPIO_PF1_C1O 0x00050409
  39188. #define GPIO_PF1_TRD1 0x0005040E
  39189. #define GPIO_PF2_U1DCD 0x00050801
  39190. #define GPIO_PF2_T1CCP0 0x00050807
  39191. #define GPIO_PF2_SSI1CLK 0x00050802
  39192. #define GPIO_PF2_C2O 0x00050809
  39193. #define GPIO_PF2_TRD0 0x0005080E
  39194. #define GPIO_PF3_U1DSR 0x00050C01
  39195. #define GPIO_PF3_CAN0TX 0x00050C03
  39196. #define GPIO_PF3_T1CCP1 0x00050C07
  39197. #define GPIO_PF3_SSI1FSS 0x00050C02
  39198. #define GPIO_PF3_TRCLK 0x00050C0E
  39199. #define GPIO_PF4_U1DTR 0x00051001
  39200. #define GPIO_PF4_T2CCP0 0x00051007
  39201. #define GPIO_PF4_TRD3 0x0005100E
  39202. #define GPIO_PF5_T2CCP1 0x00051407
  39203. #define GPIO_PF6_I2C2SCL 0x00051803
  39204. #define GPIO_PF6_T3CCP0 0x00051807
  39205. #define GPIO_PF7_I2C2SDA 0x00051C03
  39206. #define GPIO_PF7_T3CCP1 0x00051C07
  39207. #define GPIO_PG0_I2C3SCL 0x00060003
  39208. #define GPIO_PG0_T4CCP0 0x00060007
  39209. #define GPIO_PG0_LPC0PD_N 0x0006000F
  39210. #define GPIO_PG1_I2C3SDA 0x00060403
  39211. #define GPIO_PG1_T4CCP1 0x00060407
  39212. #define GPIO_PG1_LPC0SCI_N 0x0006040F
  39213. #define GPIO_PG2_I2C4SCL 0x00060803
  39214. #define GPIO_PG2_T5CCP0 0x00060807
  39215. #define GPIO_PG2_LPC0CLKRUN_N 0x0006080F
  39216. #define GPIO_PG3_I2C4SDA 0x00060C03
  39217. #define GPIO_PG3_T5CCP1 0x00060C07
  39218. #define GPIO_PG4_U2RX 0x00061001
  39219. #define GPIO_PG4_I2C1SCL 0x00061003
  39220. #define GPIO_PG4_WT0CCP0 0x00061007
  39221. #define GPIO_PG5_U2TX 0x00061401
  39222. #define GPIO_PG5_I2C1SDA 0x00061403
  39223. #define GPIO_PG5_WT0CCP1 0x00061407
  39224. #define GPIO_PG6_I2C5SCL 0x00061803
  39225. #define GPIO_PG6_WT1CCP0 0x00061807
  39226. #define GPIO_PG7_I2C5SDA 0x00061C03
  39227. #define GPIO_PG7_WT1CCP1 0x00061C07
  39228. #define GPIO_PH0_SSI3CLK 0x00070002
  39229. #define GPIO_PH0_WT2CCP0 0x00070007
  39230. #define GPIO_PH1_SSI3FSS 0x00070402
  39231. #define GPIO_PH1_WT2CCP1 0x00070407
  39232. #define GPIO_PH2_SSI3RX 0x00070802
  39233. #define GPIO_PH2_WT5CCP0 0x00070807
  39234. #define GPIO_PH3_SSI3TX 0x00070C02
  39235. #define GPIO_PH3_WT5CCP1 0x00070C07
  39236. #define GPIO_PH4_SSI2CLK 0x00071002
  39237. #define GPIO_PH4_WT3CCP0 0x00071007
  39238. #define GPIO_PH5_SSI2FSS 0x00071402
  39239. #define GPIO_PH5_WT3CCP1 0x00071407
  39240. #define GPIO_PH6_SSI2RX 0x00071802
  39241. #define GPIO_PH6_WT4CCP0 0x00071807
  39242. #define GPIO_PH7_SSI2TX 0x00071C02
  39243. #define GPIO_PH7_WT4CCP1 0x00071C07
  39244. #define GPIO_PJ0_U4RX 0x00080001
  39245. #define GPIO_PJ0_T1CCP0 0x00080007
  39246. #define GPIO_PJ1_U4TX 0x00080401
  39247. #define GPIO_PJ1_T1CCP1 0x00080407
  39248. #define GPIO_PJ2_U5RX 0x00080801
  39249. #define GPIO_PJ2_T2CCP0 0x00080807
  39250. #define GPIO_PK0_SSI3CLK 0x00090002
  39251. #define GPIO_PK1_SSI3FSS 0x00090402
  39252. #define GPIO_PK2_SSI3RX 0x00090802
  39253. #define GPIO_PK3_SSI3TX 0x00090C02
  39254. #endif // PART_LM4F122H5QC
  39255. //*****************************************************************************
  39256. //
  39257. // LM4F122H5QD Port/Pin Mapping Definitions
  39258. //
  39259. //*****************************************************************************
  39260. #ifdef PART_LM4F122H5QD
  39261. #define GPIO_PA0_U0RX 0x00000001
  39262. #define GPIO_PA1_U0TX 0x00000401
  39263. #define GPIO_PA2_SSI0CLK 0x00000802
  39264. #define GPIO_PA3_SSI0FSS 0x00000C02
  39265. #define GPIO_PA4_SSI0RX 0x00001002
  39266. #define GPIO_PA5_SSI0TX 0x00001402
  39267. #define GPIO_PA6_I2C1SCL 0x00001803
  39268. #define GPIO_PA7_I2C1SDA 0x00001C03
  39269. #define GPIO_PB0_U1RX 0x00010001
  39270. #define GPIO_PB0_T2CCP0 0x00010007
  39271. #define GPIO_PB1_U1TX 0x00010401
  39272. #define GPIO_PB1_T2CCP1 0x00010407
  39273. #define GPIO_PB2_I2C0SCL 0x00010803
  39274. #define GPIO_PB2_T3CCP0 0x00010807
  39275. #define GPIO_PB3_I2C0SDA 0x00010C03
  39276. #define GPIO_PB3_T3CCP1 0x00010C07
  39277. #define GPIO_PB4_SSI2CLK 0x00011002
  39278. #define GPIO_PB4_CAN0RX 0x00011008
  39279. #define GPIO_PB4_T1CCP0 0x00011007
  39280. #define GPIO_PB5_SSI2FSS 0x00011402
  39281. #define GPIO_PB5_CAN0TX 0x00011408
  39282. #define GPIO_PB5_T1CCP1 0x00011407
  39283. #define GPIO_PC0_TCK 0x00020001
  39284. #define GPIO_PC0_SWCLK 0x00020001
  39285. #define GPIO_PC0_T4CCP0 0x00020007
  39286. #define GPIO_PC1_TMS 0x00020401
  39287. #define GPIO_PC1_SWDIO 0x00020401
  39288. #define GPIO_PC1_T4CCP1 0x00020407
  39289. #define GPIO_PC2_TDI 0x00020801
  39290. #define GPIO_PC2_T5CCP0 0x00020807
  39291. #define GPIO_PC3_SWO 0x00020C01
  39292. #define GPIO_PC3_TDO 0x00020C01
  39293. #define GPIO_PC3_T5CCP1 0x00020C07
  39294. #define GPIO_PC4_U4RX 0x00021001
  39295. #define GPIO_PC4_U1RX 0x00021002
  39296. #define GPIO_PC4_WT0CCP0 0x00021007
  39297. #define GPIO_PC4_U1RTS 0x00021008
  39298. #define GPIO_PC5_U4TX 0x00021401
  39299. #define GPIO_PC5_U1TX 0x00021402
  39300. #define GPIO_PC5_WT0CCP1 0x00021407
  39301. #define GPIO_PC5_U1CTS 0x00021408
  39302. #define GPIO_PC6_U3RX 0x00021801
  39303. #define GPIO_PC6_WT1CCP0 0x00021807
  39304. #define GPIO_PC7_U3TX 0x00021C01
  39305. #define GPIO_PC7_WT1CCP1 0x00021C07
  39306. #define GPIO_PD0_SSI3CLK 0x00030001
  39307. #define GPIO_PD0_SSI1CLK 0x00030002
  39308. #define GPIO_PD0_I2C3SCL 0x00030003
  39309. #define GPIO_PD0_WT2CCP0 0x00030007
  39310. #define GPIO_PD1_SSI3FSS 0x00030401
  39311. #define GPIO_PD1_SSI1FSS 0x00030402
  39312. #define GPIO_PD1_I2C3SDA 0x00030403
  39313. #define GPIO_PD1_WT2CCP1 0x00030407
  39314. #define GPIO_PD2_SSI3RX 0x00030801
  39315. #define GPIO_PD2_SSI1RX 0x00030802
  39316. #define GPIO_PD2_WT3CCP0 0x00030807
  39317. #define GPIO_PD3_SSI3TX 0x00030C01
  39318. #define GPIO_PD3_SSI1TX 0x00030C02
  39319. #define GPIO_PD3_WT3CCP1 0x00030C07
  39320. #define GPIO_PD4_U6RX 0x00031001
  39321. #define GPIO_PD4_WT4CCP0 0x00031007
  39322. #define GPIO_PD5_U6TX 0x00031401
  39323. #define GPIO_PD5_WT4CCP1 0x00031407
  39324. #define GPIO_PD6_U2RX 0x00031801
  39325. #define GPIO_PD6_WT5CCP0 0x00031807
  39326. #define GPIO_PD7_U2TX 0x00031C01
  39327. #define GPIO_PD7_WT5CCP1 0x00031C07
  39328. #define GPIO_PD7_NMI 0x00031C08
  39329. #define GPIO_PE0_U7RX 0x00040001
  39330. #define GPIO_PE1_U7TX 0x00040401
  39331. #define GPIO_PE4_U5RX 0x00041001
  39332. #define GPIO_PE4_I2C2SCL 0x00041003
  39333. #define GPIO_PE4_CAN0RX 0x00041008
  39334. #define GPIO_PE5_U5TX 0x00041401
  39335. #define GPIO_PE5_I2C2SDA 0x00041403
  39336. #define GPIO_PE5_CAN0TX 0x00041408
  39337. #define GPIO_PE7_U1RI 0x00041C01
  39338. #define GPIO_PF0_U1RTS 0x00050001
  39339. #define GPIO_PF0_SSI1RX 0x00050002
  39340. #define GPIO_PF0_CAN0RX 0x00050003
  39341. #define GPIO_PF0_T0CCP0 0x00050007
  39342. #define GPIO_PF0_NMI 0x00050008
  39343. #define GPIO_PF0_C0O 0x00050009
  39344. #define GPIO_PF0_TRD2 0x0005000E
  39345. #define GPIO_PF1_U1CTS 0x00050401
  39346. #define GPIO_PF1_SSI1TX 0x00050402
  39347. #define GPIO_PF1_T0CCP1 0x00050407
  39348. #define GPIO_PF1_C1O 0x00050409
  39349. #define GPIO_PF1_TRD1 0x0005040E
  39350. #define GPIO_PF2_U1DCD 0x00050801
  39351. #define GPIO_PF2_T1CCP0 0x00050807
  39352. #define GPIO_PF2_SSI1CLK 0x00050802
  39353. #define GPIO_PF2_C2O 0x00050809
  39354. #define GPIO_PF2_TRD0 0x0005080E
  39355. #define GPIO_PF3_U1DSR 0x00050C01
  39356. #define GPIO_PF3_CAN0TX 0x00050C03
  39357. #define GPIO_PF3_T1CCP1 0x00050C07
  39358. #define GPIO_PF3_SSI1FSS 0x00050C02
  39359. #define GPIO_PF3_TRCLK 0x00050C0E
  39360. #define GPIO_PF4_U1DTR 0x00051001
  39361. #define GPIO_PF4_T2CCP0 0x00051007
  39362. #define GPIO_PF4_TRD3 0x0005100E
  39363. #define GPIO_PF5_T2CCP1 0x00051407
  39364. #define GPIO_PF6_I2C2SCL 0x00051803
  39365. #define GPIO_PF6_T3CCP0 0x00051807
  39366. #define GPIO_PF7_I2C2SDA 0x00051C03
  39367. #define GPIO_PF7_T3CCP1 0x00051C07
  39368. #define GPIO_PG0_I2C3SCL 0x00060003
  39369. #define GPIO_PG0_T4CCP0 0x00060007
  39370. #define GPIO_PG1_I2C3SDA 0x00060403
  39371. #define GPIO_PG1_T4CCP1 0x00060407
  39372. #define GPIO_PG2_I2C4SCL 0x00060803
  39373. #define GPIO_PG2_T5CCP0 0x00060807
  39374. #define GPIO_PG3_I2C4SDA 0x00060C03
  39375. #define GPIO_PG3_T5CCP1 0x00060C07
  39376. #define GPIO_PG4_U2RX 0x00061001
  39377. #define GPIO_PG4_I2C1SCL 0x00061003
  39378. #define GPIO_PG4_WT0CCP0 0x00061007
  39379. #define GPIO_PG5_U2TX 0x00061401
  39380. #define GPIO_PG5_I2C1SDA 0x00061403
  39381. #define GPIO_PG5_WT0CCP1 0x00061407
  39382. #define GPIO_PG6_I2C5SCL 0x00061803
  39383. #define GPIO_PG6_WT1CCP0 0x00061807
  39384. #define GPIO_PG7_I2C5SDA 0x00061C03
  39385. #define GPIO_PG7_WT1CCP1 0x00061C07
  39386. #define GPIO_PH0_SSI3CLK 0x00070002
  39387. #define GPIO_PH0_WT2CCP0 0x00070007
  39388. #define GPIO_PH1_SSI3FSS 0x00070402
  39389. #define GPIO_PH1_WT2CCP1 0x00070407
  39390. #define GPIO_PH2_SSI3RX 0x00070802
  39391. #define GPIO_PH2_WT5CCP0 0x00070807
  39392. #define GPIO_PH3_SSI3TX 0x00070C02
  39393. #define GPIO_PH3_WT5CCP1 0x00070C07
  39394. #define GPIO_PH4_SSI2CLK 0x00071002
  39395. #define GPIO_PH4_WT3CCP0 0x00071007
  39396. #define GPIO_PH5_SSI2FSS 0x00071402
  39397. #define GPIO_PH5_WT3CCP1 0x00071407
  39398. #define GPIO_PH6_SSI2RX 0x00071802
  39399. #define GPIO_PH6_WT4CCP0 0x00071807
  39400. #define GPIO_PH7_SSI2TX 0x00071C02
  39401. #define GPIO_PH7_WT4CCP1 0x00071C07
  39402. #define GPIO_PJ0_U4RX 0x00080001
  39403. #define GPIO_PJ0_T1CCP0 0x00080007
  39404. #define GPIO_PJ1_U4TX 0x00080401
  39405. #define GPIO_PJ1_T1CCP1 0x00080407
  39406. #define GPIO_PJ2_U5RX 0x00080801
  39407. #define GPIO_PJ2_T2CCP0 0x00080807
  39408. #define GPIO_PJ3_U5TX 0x00080C01
  39409. #define GPIO_PJ3_T2CCP1 0x00080C07
  39410. #define GPIO_PJ4_U6RX 0x00081001
  39411. #define GPIO_PJ4_T3CCP0 0x00081007
  39412. #define GPIO_PJ5_U6TX 0x00081401
  39413. #define GPIO_PJ5_T3CCP1 0x00081407
  39414. #define GPIO_PK0_SSI3CLK 0x00090002
  39415. #define GPIO_PK1_SSI3FSS 0x00090402
  39416. #define GPIO_PK2_SSI3RX 0x00090802
  39417. #define GPIO_PK3_SSI3TX 0x00090C02
  39418. #define GPIO_PK4_U7RX 0x00091001
  39419. #define GPIO_PK4_RTCCLK 0x00091007
  39420. #define GPIO_PK4_C0O 0x00091008
  39421. #define GPIO_PK5_U7TX 0x00091401
  39422. #define GPIO_PK5_C1O 0x00091408
  39423. #define GPIO_PK6_WT1CCP0 0x00091807
  39424. #define GPIO_PK6_C2O 0x00091808
  39425. #define GPIO_PK7_WT1CCP1 0x00091C07
  39426. #define GPIO_PL0_T0CCP0 0x000A0007
  39427. #define GPIO_PL0_WT0CCP0 0x000A0008
  39428. #define GPIO_PL1_T0CCP1 0x000A0407
  39429. #define GPIO_PL1_WT0CCP1 0x000A0408
  39430. #define GPIO_PL2_T1CCP0 0x000A0807
  39431. #define GPIO_PL2_WT1CCP0 0x000A0808
  39432. #define GPIO_PL3_T1CCP1 0x000A0C07
  39433. #define GPIO_PL3_WT1CCP1 0x000A0C08
  39434. #define GPIO_PL4_T2CCP0 0x000A1007
  39435. #define GPIO_PL4_WT2CCP0 0x000A1008
  39436. #define GPIO_PL4_LPC0FRAME_N 0x000A100F
  39437. #define GPIO_PL5_T2CCP1 0x000A1407
  39438. #define GPIO_PL5_WT2CCP1 0x000A1408
  39439. #define GPIO_PL5_LPC0RESET_N 0x000A140F
  39440. #define GPIO_PL6_T3CCP0 0x000A1807
  39441. #define GPIO_PL6_WT3CCP0 0x000A1808
  39442. #define GPIO_PL7_T3CCP1 0x000A1C07
  39443. #define GPIO_PL7_WT3CCP1 0x000A1C08
  39444. #define GPIO_PM0_T4CCP0 0x000B0007
  39445. #define GPIO_PM0_WT4CCP0 0x000B0008
  39446. #define GPIO_PM0_LPC0PD_N 0x000B000F
  39447. #define GPIO_PM1_T4CCP1 0x000B0407
  39448. #define GPIO_PM1_WT4CCP1 0x000B0408
  39449. #define GPIO_PM1_LPC0SCI_N 0x000B040F
  39450. #define GPIO_PM2_T5CCP0 0x000B0807
  39451. #define GPIO_PM2_WT5CCP0 0x000B0808
  39452. #define GPIO_PM2_LPC0CLKRUN_N 0x000B080F
  39453. #define GPIO_PM3_T5CCP1 0x000B0C07
  39454. #define GPIO_PM3_WT5CCP1 0x000B0C08
  39455. #define GPIO_PM6_WT0CCP0 0x000B1807
  39456. #define GPIO_PM7_WT0CCP1 0x000B1C07
  39457. #define GPIO_PN0_CAN0RX 0x000C0001
  39458. #define GPIO_PN1_CAN0TX 0x000C0401
  39459. #define GPIO_PN2_WT2CCP0 0x000C0807
  39460. #define GPIO_PN3_WT2CCP1 0x000C0C07
  39461. #define GPIO_PN4_WT3CCP0 0x000C1007
  39462. #define GPIO_PN5_WT3CCP1 0x000C1407
  39463. #define GPIO_PN6_WT4CCP0 0x000C1807
  39464. #define GPIO_PN7_WT4CCP1 0x000C1C07
  39465. #define GPIO_PP0_T4CCP0 0x000D0007
  39466. #define GPIO_PP1_T4CCP1 0x000D0407
  39467. #define GPIO_PP2_T5CCP0 0x000D0807
  39468. #endif // PART_LM4F122H5QD
  39469. //*****************************************************************************
  39470. //
  39471. // LM4F130C4QR Port/Pin Mapping Definitions
  39472. //
  39473. //*****************************************************************************
  39474. #ifdef PART_LM4F130C4QR
  39475. #define GPIO_PA0_U0RX 0x00000001
  39476. #define GPIO_PA1_U0TX 0x00000401
  39477. #define GPIO_PA2_SSI0CLK 0x00000802
  39478. #define GPIO_PA3_SSI0FSS 0x00000C02
  39479. #define GPIO_PA4_SSI0RX 0x00001002
  39480. #define GPIO_PA5_SSI0TX 0x00001402
  39481. #define GPIO_PA6_I2C1SCL 0x00001803
  39482. #define GPIO_PA7_I2C1SDA 0x00001C03
  39483. #define GPIO_PB0_U1RX 0x00010001
  39484. #define GPIO_PB0_T2CCP0 0x00010007
  39485. #define GPIO_PB1_U1TX 0x00010401
  39486. #define GPIO_PB1_T2CCP1 0x00010407
  39487. #define GPIO_PB2_I2C0SCL 0x00010803
  39488. #define GPIO_PB2_T3CCP0 0x00010807
  39489. #define GPIO_PB3_I2C0SDA 0x00010C03
  39490. #define GPIO_PB3_T3CCP1 0x00010C07
  39491. #define GPIO_PB4_SSI2CLK 0x00011002
  39492. #define GPIO_PB4_CAN0RX 0x00011008
  39493. #define GPIO_PB4_T1CCP0 0x00011007
  39494. #define GPIO_PB5_SSI2FSS 0x00011402
  39495. #define GPIO_PB5_CAN0TX 0x00011408
  39496. #define GPIO_PB5_T1CCP1 0x00011407
  39497. #define GPIO_PB6_SSI2RX 0x00011802
  39498. #define GPIO_PB6_T0CCP0 0x00011807
  39499. #define GPIO_PB7_SSI2TX 0x00011C02
  39500. #define GPIO_PB7_T0CCP1 0x00011C07
  39501. #define GPIO_PC0_TCK 0x00020001
  39502. #define GPIO_PC0_SWCLK 0x00020001
  39503. #define GPIO_PC0_T4CCP0 0x00020007
  39504. #define GPIO_PC1_TMS 0x00020401
  39505. #define GPIO_PC1_SWDIO 0x00020401
  39506. #define GPIO_PC1_T4CCP1 0x00020407
  39507. #define GPIO_PC2_TDI 0x00020801
  39508. #define GPIO_PC2_T5CCP0 0x00020807
  39509. #define GPIO_PC3_SWO 0x00020C01
  39510. #define GPIO_PC3_TDO 0x00020C01
  39511. #define GPIO_PC3_T5CCP1 0x00020C07
  39512. #define GPIO_PC4_U4RX 0x00021001
  39513. #define GPIO_PC4_U1RX 0x00021002
  39514. #define GPIO_PC4_WT0CCP0 0x00021007
  39515. #define GPIO_PC4_U1RTS 0x00021008
  39516. #define GPIO_PC5_U4TX 0x00021401
  39517. #define GPIO_PC5_U1TX 0x00021402
  39518. #define GPIO_PC5_WT0CCP1 0x00021407
  39519. #define GPIO_PC5_U1CTS 0x00021408
  39520. #define GPIO_PC6_U3RX 0x00021801
  39521. #define GPIO_PC6_WT1CCP0 0x00021807
  39522. #define GPIO_PC6_USB0EPEN 0x00021808
  39523. #define GPIO_PC7_U3TX 0x00021C01
  39524. #define GPIO_PC7_USB0PFLT 0x00021C08
  39525. #define GPIO_PC7_WT1CCP1 0x00021C07
  39526. #define GPIO_PD0_SSI3CLK 0x00030001
  39527. #define GPIO_PD0_SSI1CLK 0x00030002
  39528. #define GPIO_PD0_I2C3SCL 0x00030003
  39529. #define GPIO_PD0_WT2CCP0 0x00030007
  39530. #define GPIO_PD1_SSI3FSS 0x00030401
  39531. #define GPIO_PD1_SSI1FSS 0x00030402
  39532. #define GPIO_PD1_I2C3SDA 0x00030403
  39533. #define GPIO_PD1_WT2CCP1 0x00030407
  39534. #define GPIO_PD2_SSI3RX 0x00030801
  39535. #define GPIO_PD2_SSI1RX 0x00030802
  39536. #define GPIO_PD2_WT3CCP0 0x00030807
  39537. #define GPIO_PD2_USB0EPEN 0x00030808
  39538. #define GPIO_PD3_SSI3TX 0x00030C01
  39539. #define GPIO_PD3_SSI1TX 0x00030C02
  39540. #define GPIO_PD3_WT3CCP1 0x00030C07
  39541. #define GPIO_PD3_USB0PFLT 0x00030C08
  39542. #define GPIO_PD4_U6RX 0x00031001
  39543. #define GPIO_PD4_WT4CCP0 0x00031007
  39544. #define GPIO_PD5_U6TX 0x00031401
  39545. #define GPIO_PD5_WT4CCP1 0x00031407
  39546. #define GPIO_PD6_U2RX 0x00031801
  39547. #define GPIO_PD6_WT5CCP0 0x00031807
  39548. #define GPIO_PD7_U2TX 0x00031C01
  39549. #define GPIO_PD7_WT5CCP1 0x00031C07
  39550. #define GPIO_PD7_NMI 0x00031C08
  39551. #define GPIO_PE0_U7RX 0x00040001
  39552. #define GPIO_PE1_U7TX 0x00040401
  39553. #define GPIO_PE4_U5RX 0x00041001
  39554. #define GPIO_PE4_I2C2SCL 0x00041003
  39555. #define GPIO_PE4_CAN0RX 0x00041008
  39556. #define GPIO_PE5_U5TX 0x00041401
  39557. #define GPIO_PE5_I2C2SDA 0x00041403
  39558. #define GPIO_PE5_CAN0TX 0x00041408
  39559. #define GPIO_PF0_U1RTS 0x00050001
  39560. #define GPIO_PF0_SSI1RX 0x00050002
  39561. #define GPIO_PF0_CAN0RX 0x00050003
  39562. #define GPIO_PF0_T0CCP0 0x00050007
  39563. #define GPIO_PF0_NMI 0x00050008
  39564. #define GPIO_PF0_C0O 0x00050009
  39565. #define GPIO_PF0_TRD2 0x0005000E
  39566. #define GPIO_PF1_U1CTS 0x00050401
  39567. #define GPIO_PF1_SSI1TX 0x00050402
  39568. #define GPIO_PF1_T0CCP1 0x00050407
  39569. #define GPIO_PF1_C1O 0x00050409
  39570. #define GPIO_PF1_TRD1 0x0005040E
  39571. #define GPIO_PF2_T1CCP0 0x00050807
  39572. #define GPIO_PF2_SSI1CLK 0x00050802
  39573. #define GPIO_PF2_TRD0 0x0005080E
  39574. #define GPIO_PF3_CAN0TX 0x00050C03
  39575. #define GPIO_PF3_T1CCP1 0x00050C07
  39576. #define GPIO_PF3_SSI1FSS 0x00050C02
  39577. #define GPIO_PF3_TRCLK 0x00050C0E
  39578. #define GPIO_PF4_T2CCP0 0x00051007
  39579. #define GPIO_PF4_USB0EPEN 0x00051008
  39580. #endif // PART_LM4F130C4QR
  39581. //*****************************************************************************
  39582. //
  39583. // LM4F130E5QR Port/Pin Mapping Definitions
  39584. //
  39585. //*****************************************************************************
  39586. #ifdef PART_LM4F130E5QR
  39587. #define GPIO_PA0_U0RX 0x00000001
  39588. #define GPIO_PA1_U0TX 0x00000401
  39589. #define GPIO_PA2_SSI0CLK 0x00000802
  39590. #define GPIO_PA3_SSI0FSS 0x00000C02
  39591. #define GPIO_PA4_SSI0RX 0x00001002
  39592. #define GPIO_PA5_SSI0TX 0x00001402
  39593. #define GPIO_PA6_I2C1SCL 0x00001803
  39594. #define GPIO_PA7_I2C1SDA 0x00001C03
  39595. #define GPIO_PB0_U1RX 0x00010001
  39596. #define GPIO_PB0_T2CCP0 0x00010007
  39597. #define GPIO_PB1_U1TX 0x00010401
  39598. #define GPIO_PB1_T2CCP1 0x00010407
  39599. #define GPIO_PB2_I2C0SCL 0x00010803
  39600. #define GPIO_PB2_T3CCP0 0x00010807
  39601. #define GPIO_PB3_I2C0SDA 0x00010C03
  39602. #define GPIO_PB3_T3CCP1 0x00010C07
  39603. #define GPIO_PB4_SSI2CLK 0x00011002
  39604. #define GPIO_PB4_CAN0RX 0x00011008
  39605. #define GPIO_PB4_T1CCP0 0x00011007
  39606. #define GPIO_PB5_SSI2FSS 0x00011402
  39607. #define GPIO_PB5_CAN0TX 0x00011408
  39608. #define GPIO_PB5_T1CCP1 0x00011407
  39609. #define GPIO_PB6_SSI2RX 0x00011802
  39610. #define GPIO_PB6_T0CCP0 0x00011807
  39611. #define GPIO_PB7_SSI2TX 0x00011C02
  39612. #define GPIO_PB7_T0CCP1 0x00011C07
  39613. #define GPIO_PC0_TCK 0x00020001
  39614. #define GPIO_PC0_SWCLK 0x00020001
  39615. #define GPIO_PC0_T4CCP0 0x00020007
  39616. #define GPIO_PC1_TMS 0x00020401
  39617. #define GPIO_PC1_SWDIO 0x00020401
  39618. #define GPIO_PC1_T4CCP1 0x00020407
  39619. #define GPIO_PC2_TDI 0x00020801
  39620. #define GPIO_PC2_T5CCP0 0x00020807
  39621. #define GPIO_PC3_SWO 0x00020C01
  39622. #define GPIO_PC3_TDO 0x00020C01
  39623. #define GPIO_PC3_T5CCP1 0x00020C07
  39624. #define GPIO_PC4_U4RX 0x00021001
  39625. #define GPIO_PC4_U1RX 0x00021002
  39626. #define GPIO_PC4_WT0CCP0 0x00021007
  39627. #define GPIO_PC4_U1RTS 0x00021008
  39628. #define GPIO_PC5_U4TX 0x00021401
  39629. #define GPIO_PC5_U1TX 0x00021402
  39630. #define GPIO_PC5_WT0CCP1 0x00021407
  39631. #define GPIO_PC5_U1CTS 0x00021408
  39632. #define GPIO_PC6_U3RX 0x00021801
  39633. #define GPIO_PC6_WT1CCP0 0x00021807
  39634. #define GPIO_PC6_USB0EPEN 0x00021808
  39635. #define GPIO_PC7_U3TX 0x00021C01
  39636. #define GPIO_PC7_USB0PFLT 0x00021C08
  39637. #define GPIO_PC7_WT1CCP1 0x00021C07
  39638. #define GPIO_PD0_SSI3CLK 0x00030001
  39639. #define GPIO_PD0_SSI1CLK 0x00030002
  39640. #define GPIO_PD0_I2C3SCL 0x00030003
  39641. #define GPIO_PD0_WT2CCP0 0x00030007
  39642. #define GPIO_PD1_SSI3FSS 0x00030401
  39643. #define GPIO_PD1_SSI1FSS 0x00030402
  39644. #define GPIO_PD1_I2C3SDA 0x00030403
  39645. #define GPIO_PD1_WT2CCP1 0x00030407
  39646. #define GPIO_PD2_SSI3RX 0x00030801
  39647. #define GPIO_PD2_SSI1RX 0x00030802
  39648. #define GPIO_PD2_WT3CCP0 0x00030807
  39649. #define GPIO_PD2_USB0EPEN 0x00030808
  39650. #define GPIO_PD3_SSI3TX 0x00030C01
  39651. #define GPIO_PD3_SSI1TX 0x00030C02
  39652. #define GPIO_PD3_WT3CCP1 0x00030C07
  39653. #define GPIO_PD3_USB0PFLT 0x00030C08
  39654. #define GPIO_PD4_U6RX 0x00031001
  39655. #define GPIO_PD4_WT4CCP0 0x00031007
  39656. #define GPIO_PD5_U6TX 0x00031401
  39657. #define GPIO_PD5_WT4CCP1 0x00031407
  39658. #define GPIO_PD6_U2RX 0x00031801
  39659. #define GPIO_PD6_WT5CCP0 0x00031807
  39660. #define GPIO_PD7_U2TX 0x00031C01
  39661. #define GPIO_PD7_WT5CCP1 0x00031C07
  39662. #define GPIO_PD7_NMI 0x00031C08
  39663. #define GPIO_PE0_U7RX 0x00040001
  39664. #define GPIO_PE1_U7TX 0x00040401
  39665. #define GPIO_PE4_U5RX 0x00041001
  39666. #define GPIO_PE4_I2C2SCL 0x00041003
  39667. #define GPIO_PE4_CAN0RX 0x00041008
  39668. #define GPIO_PE5_U5TX 0x00041401
  39669. #define GPIO_PE5_I2C2SDA 0x00041403
  39670. #define GPIO_PE5_CAN0TX 0x00041408
  39671. #define GPIO_PF0_U1RTS 0x00050001
  39672. #define GPIO_PF0_SSI1RX 0x00050002
  39673. #define GPIO_PF0_CAN0RX 0x00050003
  39674. #define GPIO_PF0_T0CCP0 0x00050007
  39675. #define GPIO_PF0_NMI 0x00050008
  39676. #define GPIO_PF0_C0O 0x00050009
  39677. #define GPIO_PF0_TRD2 0x0005000E
  39678. #define GPIO_PF1_U1CTS 0x00050401
  39679. #define GPIO_PF1_SSI1TX 0x00050402
  39680. #define GPIO_PF1_T0CCP1 0x00050407
  39681. #define GPIO_PF1_C1O 0x00050409
  39682. #define GPIO_PF1_TRD1 0x0005040E
  39683. #define GPIO_PF2_T1CCP0 0x00050807
  39684. #define GPIO_PF2_SSI1CLK 0x00050802
  39685. #define GPIO_PF2_TRD0 0x0005080E
  39686. #define GPIO_PF3_CAN0TX 0x00050C03
  39687. #define GPIO_PF3_T1CCP1 0x00050C07
  39688. #define GPIO_PF3_SSI1FSS 0x00050C02
  39689. #define GPIO_PF3_TRCLK 0x00050C0E
  39690. #define GPIO_PF4_T2CCP0 0x00051007
  39691. #define GPIO_PF4_USB0EPEN 0x00051008
  39692. #endif // PART_LM4F130E5QR
  39693. //*****************************************************************************
  39694. //
  39695. // LM4F130H5QR Port/Pin Mapping Definitions
  39696. //
  39697. //*****************************************************************************
  39698. #ifdef PART_LM4F130H5QR
  39699. #define GPIO_PA0_U0RX 0x00000001
  39700. #define GPIO_PA1_U0TX 0x00000401
  39701. #define GPIO_PA2_SSI0CLK 0x00000802
  39702. #define GPIO_PA3_SSI0FSS 0x00000C02
  39703. #define GPIO_PA4_SSI0RX 0x00001002
  39704. #define GPIO_PA5_SSI0TX 0x00001402
  39705. #define GPIO_PA6_I2C1SCL 0x00001803
  39706. #define GPIO_PA7_I2C1SDA 0x00001C03
  39707. #define GPIO_PB0_U1RX 0x00010001
  39708. #define GPIO_PB0_T2CCP0 0x00010007
  39709. #define GPIO_PB1_U1TX 0x00010401
  39710. #define GPIO_PB1_T2CCP1 0x00010407
  39711. #define GPIO_PB2_I2C0SCL 0x00010803
  39712. #define GPIO_PB2_T3CCP0 0x00010807
  39713. #define GPIO_PB3_I2C0SDA 0x00010C03
  39714. #define GPIO_PB3_T3CCP1 0x00010C07
  39715. #define GPIO_PB4_SSI2CLK 0x00011002
  39716. #define GPIO_PB4_CAN0RX 0x00011008
  39717. #define GPIO_PB4_T1CCP0 0x00011007
  39718. #define GPIO_PB5_SSI2FSS 0x00011402
  39719. #define GPIO_PB5_CAN0TX 0x00011408
  39720. #define GPIO_PB5_T1CCP1 0x00011407
  39721. #define GPIO_PB6_SSI2RX 0x00011802
  39722. #define GPIO_PB6_T0CCP0 0x00011807
  39723. #define GPIO_PB7_SSI2TX 0x00011C02
  39724. #define GPIO_PB7_T0CCP1 0x00011C07
  39725. #define GPIO_PC0_TCK 0x00020001
  39726. #define GPIO_PC0_SWCLK 0x00020001
  39727. #define GPIO_PC0_T4CCP0 0x00020007
  39728. #define GPIO_PC1_TMS 0x00020401
  39729. #define GPIO_PC1_SWDIO 0x00020401
  39730. #define GPIO_PC1_T4CCP1 0x00020407
  39731. #define GPIO_PC2_TDI 0x00020801
  39732. #define GPIO_PC2_T5CCP0 0x00020807
  39733. #define GPIO_PC3_SWO 0x00020C01
  39734. #define GPIO_PC3_TDO 0x00020C01
  39735. #define GPIO_PC3_T5CCP1 0x00020C07
  39736. #define GPIO_PC4_U4RX 0x00021001
  39737. #define GPIO_PC4_U1RX 0x00021002
  39738. #define GPIO_PC4_WT0CCP0 0x00021007
  39739. #define GPIO_PC4_U1RTS 0x00021008
  39740. #define GPIO_PC5_U4TX 0x00021401
  39741. #define GPIO_PC5_U1TX 0x00021402
  39742. #define GPIO_PC5_WT0CCP1 0x00021407
  39743. #define GPIO_PC5_U1CTS 0x00021408
  39744. #define GPIO_PC6_U3RX 0x00021801
  39745. #define GPIO_PC6_WT1CCP0 0x00021807
  39746. #define GPIO_PC6_USB0EPEN 0x00021808
  39747. #define GPIO_PC7_U3TX 0x00021C01
  39748. #define GPIO_PC7_USB0PFLT 0x00021C08
  39749. #define GPIO_PC7_WT1CCP1 0x00021C07
  39750. #define GPIO_PD0_SSI3CLK 0x00030001
  39751. #define GPIO_PD0_SSI1CLK 0x00030002
  39752. #define GPIO_PD0_I2C3SCL 0x00030003
  39753. #define GPIO_PD0_WT2CCP0 0x00030007
  39754. #define GPIO_PD1_SSI3FSS 0x00030401
  39755. #define GPIO_PD1_SSI1FSS 0x00030402
  39756. #define GPIO_PD1_I2C3SDA 0x00030403
  39757. #define GPIO_PD1_WT2CCP1 0x00030407
  39758. #define GPIO_PD2_SSI3RX 0x00030801
  39759. #define GPIO_PD2_SSI1RX 0x00030802
  39760. #define GPIO_PD2_WT3CCP0 0x00030807
  39761. #define GPIO_PD2_USB0EPEN 0x00030808
  39762. #define GPIO_PD3_SSI3TX 0x00030C01
  39763. #define GPIO_PD3_SSI1TX 0x00030C02
  39764. #define GPIO_PD3_WT3CCP1 0x00030C07
  39765. #define GPIO_PD3_USB0PFLT 0x00030C08
  39766. #define GPIO_PD4_U6RX 0x00031001
  39767. #define GPIO_PD4_WT4CCP0 0x00031007
  39768. #define GPIO_PD5_U6TX 0x00031401
  39769. #define GPIO_PD5_WT4CCP1 0x00031407
  39770. #define GPIO_PD6_U2RX 0x00031801
  39771. #define GPIO_PD6_WT5CCP0 0x00031807
  39772. #define GPIO_PD7_U2TX 0x00031C01
  39773. #define GPIO_PD7_WT5CCP1 0x00031C07
  39774. #define GPIO_PD7_NMI 0x00031C08
  39775. #define GPIO_PE0_U7RX 0x00040001
  39776. #define GPIO_PE1_U7TX 0x00040401
  39777. #define GPIO_PE4_U5RX 0x00041001
  39778. #define GPIO_PE4_I2C2SCL 0x00041003
  39779. #define GPIO_PE4_CAN0RX 0x00041008
  39780. #define GPIO_PE5_U5TX 0x00041401
  39781. #define GPIO_PE5_I2C2SDA 0x00041403
  39782. #define GPIO_PE5_CAN0TX 0x00041408
  39783. #define GPIO_PF0_U1RTS 0x00050001
  39784. #define GPIO_PF0_SSI1RX 0x00050002
  39785. #define GPIO_PF0_CAN0RX 0x00050003
  39786. #define GPIO_PF0_T0CCP0 0x00050007
  39787. #define GPIO_PF0_NMI 0x00050008
  39788. #define GPIO_PF0_C0O 0x00050009
  39789. #define GPIO_PF0_TRD2 0x0005000E
  39790. #define GPIO_PF1_U1CTS 0x00050401
  39791. #define GPIO_PF1_SSI1TX 0x00050402
  39792. #define GPIO_PF1_T0CCP1 0x00050407
  39793. #define GPIO_PF1_C1O 0x00050409
  39794. #define GPIO_PF1_TRD1 0x0005040E
  39795. #define GPIO_PF2_T1CCP0 0x00050807
  39796. #define GPIO_PF2_SSI1CLK 0x00050802
  39797. #define GPIO_PF2_TRD0 0x0005080E
  39798. #define GPIO_PF3_CAN0TX 0x00050C03
  39799. #define GPIO_PF3_T1CCP1 0x00050C07
  39800. #define GPIO_PF3_SSI1FSS 0x00050C02
  39801. #define GPIO_PF3_TRCLK 0x00050C0E
  39802. #define GPIO_PF4_T2CCP0 0x00051007
  39803. #define GPIO_PF4_USB0EPEN 0x00051008
  39804. #endif // PART_LM4F130H5QR
  39805. //*****************************************************************************
  39806. //
  39807. // LM4F131C4QR Port/Pin Mapping Definitions
  39808. //
  39809. //*****************************************************************************
  39810. #ifdef PART_LM4F131C4QR
  39811. #define GPIO_PA0_U0RX 0x00000001
  39812. #define GPIO_PA1_U0TX 0x00000401
  39813. #define GPIO_PA2_SSI0CLK 0x00000802
  39814. #define GPIO_PA3_SSI0FSS 0x00000C02
  39815. #define GPIO_PA4_SSI0RX 0x00001002
  39816. #define GPIO_PA5_SSI0TX 0x00001402
  39817. #define GPIO_PA6_I2C1SCL 0x00001803
  39818. #define GPIO_PA7_I2C1SDA 0x00001C03
  39819. #define GPIO_PB0_U1RX 0x00010001
  39820. #define GPIO_PB0_T2CCP0 0x00010007
  39821. #define GPIO_PB1_U1TX 0x00010401
  39822. #define GPIO_PB1_T2CCP1 0x00010407
  39823. #define GPIO_PB2_I2C0SCL 0x00010803
  39824. #define GPIO_PB2_T3CCP0 0x00010807
  39825. #define GPIO_PB3_I2C0SDA 0x00010C03
  39826. #define GPIO_PB3_T3CCP1 0x00010C07
  39827. #define GPIO_PB4_SSI2CLK 0x00011002
  39828. #define GPIO_PB4_CAN0RX 0x00011008
  39829. #define GPIO_PB4_T1CCP0 0x00011007
  39830. #define GPIO_PB5_SSI2FSS 0x00011402
  39831. #define GPIO_PB5_CAN0TX 0x00011408
  39832. #define GPIO_PB5_T1CCP1 0x00011407
  39833. #define GPIO_PB6_SSI2RX 0x00011802
  39834. #define GPIO_PB6_I2C5SCL 0x00011803
  39835. #define GPIO_PB6_T0CCP0 0x00011807
  39836. #define GPIO_PB7_SSI2TX 0x00011C02
  39837. #define GPIO_PB7_I2C5SDA 0x00011C03
  39838. #define GPIO_PB7_T0CCP1 0x00011C07
  39839. #define GPIO_PC0_TCK 0x00020001
  39840. #define GPIO_PC0_SWCLK 0x00020001
  39841. #define GPIO_PC0_T4CCP0 0x00020007
  39842. #define GPIO_PC1_TMS 0x00020401
  39843. #define GPIO_PC1_SWDIO 0x00020401
  39844. #define GPIO_PC1_T4CCP1 0x00020407
  39845. #define GPIO_PC2_TDI 0x00020801
  39846. #define GPIO_PC2_T5CCP0 0x00020807
  39847. #define GPIO_PC3_SWO 0x00020C01
  39848. #define GPIO_PC3_TDO 0x00020C01
  39849. #define GPIO_PC3_T5CCP1 0x00020C07
  39850. #define GPIO_PC4_U4RX 0x00021001
  39851. #define GPIO_PC4_U1RX 0x00021002
  39852. #define GPIO_PC4_WT0CCP0 0x00021007
  39853. #define GPIO_PC4_U1RTS 0x00021008
  39854. #define GPIO_PC5_U4TX 0x00021401
  39855. #define GPIO_PC5_U1TX 0x00021402
  39856. #define GPIO_PC5_WT0CCP1 0x00021407
  39857. #define GPIO_PC5_U1CTS 0x00021408
  39858. #define GPIO_PC6_U3RX 0x00021801
  39859. #define GPIO_PC6_WT1CCP0 0x00021807
  39860. #define GPIO_PC6_USB0EPEN 0x00021808
  39861. #define GPIO_PC7_U3TX 0x00021C01
  39862. #define GPIO_PC7_USB0PFLT 0x00021C08
  39863. #define GPIO_PC7_WT1CCP1 0x00021C07
  39864. #define GPIO_PD0_SSI3CLK 0x00030001
  39865. #define GPIO_PD0_SSI1CLK 0x00030002
  39866. #define GPIO_PD0_I2C3SCL 0x00030003
  39867. #define GPIO_PD0_WT2CCP0 0x00030007
  39868. #define GPIO_PD1_SSI3FSS 0x00030401
  39869. #define GPIO_PD1_SSI1FSS 0x00030402
  39870. #define GPIO_PD1_I2C3SDA 0x00030403
  39871. #define GPIO_PD1_WT2CCP1 0x00030407
  39872. #define GPIO_PD2_SSI3RX 0x00030801
  39873. #define GPIO_PD2_SSI1RX 0x00030802
  39874. #define GPIO_PD2_WT3CCP0 0x00030807
  39875. #define GPIO_PD2_USB0EPEN 0x00030808
  39876. #define GPIO_PD3_SSI3TX 0x00030C01
  39877. #define GPIO_PD3_SSI1TX 0x00030C02
  39878. #define GPIO_PD3_WT3CCP1 0x00030C07
  39879. #define GPIO_PD3_USB0PFLT 0x00030C08
  39880. #define GPIO_PD4_U6RX 0x00031001
  39881. #define GPIO_PD4_WT4CCP0 0x00031007
  39882. #define GPIO_PD5_U6TX 0x00031401
  39883. #define GPIO_PD5_WT4CCP1 0x00031407
  39884. #define GPIO_PD6_U2RX 0x00031801
  39885. #define GPIO_PD6_WT5CCP0 0x00031807
  39886. #define GPIO_PD7_U2TX 0x00031C01
  39887. #define GPIO_PD7_WT5CCP1 0x00031C07
  39888. #define GPIO_PD7_NMI 0x00031C08
  39889. #define GPIO_PE0_U7RX 0x00040001
  39890. #define GPIO_PE1_U7TX 0x00040401
  39891. #define GPIO_PE4_U5RX 0x00041001
  39892. #define GPIO_PE4_I2C2SCL 0x00041003
  39893. #define GPIO_PE4_CAN0RX 0x00041008
  39894. #define GPIO_PE5_U5TX 0x00041401
  39895. #define GPIO_PE5_I2C2SDA 0x00041403
  39896. #define GPIO_PE5_CAN0TX 0x00041408
  39897. #define GPIO_PF0_U1RTS 0x00050001
  39898. #define GPIO_PF0_SSI1RX 0x00050002
  39899. #define GPIO_PF0_CAN0RX 0x00050003
  39900. #define GPIO_PF0_T0CCP0 0x00050007
  39901. #define GPIO_PF0_NMI 0x00050008
  39902. #define GPIO_PF0_C0O 0x00050009
  39903. #define GPIO_PF0_TRD2 0x0005000E
  39904. #define GPIO_PF1_U1CTS 0x00050401
  39905. #define GPIO_PF1_SSI1TX 0x00050402
  39906. #define GPIO_PF1_T0CCP1 0x00050407
  39907. #define GPIO_PF1_C1O 0x00050409
  39908. #define GPIO_PF1_TRD1 0x0005040E
  39909. #define GPIO_PF2_T1CCP0 0x00050807
  39910. #define GPIO_PF2_SSI1CLK 0x00050802
  39911. #define GPIO_PF2_TRD0 0x0005080E
  39912. #define GPIO_PF3_CAN0TX 0x00050C03
  39913. #define GPIO_PF3_T1CCP1 0x00050C07
  39914. #define GPIO_PF3_SSI1FSS 0x00050C02
  39915. #define GPIO_PF3_TRCLK 0x00050C0E
  39916. #define GPIO_PF4_T2CCP0 0x00051007
  39917. #define GPIO_PF4_USB0EPEN 0x00051008
  39918. #define GPIO_PG0_I2C3SCL 0x00060003
  39919. #define GPIO_PG0_T4CCP0 0x00060007
  39920. #define GPIO_PG1_I2C3SDA 0x00060403
  39921. #define GPIO_PG1_T4CCP1 0x00060407
  39922. #define GPIO_PG2_I2C4SCL 0x00060803
  39923. #define GPIO_PG2_T5CCP0 0x00060807
  39924. #define GPIO_PG3_I2C4SDA 0x00060C03
  39925. #define GPIO_PG3_T5CCP1 0x00060C07
  39926. #define GPIO_PG4_U2RX 0x00061001
  39927. #define GPIO_PG4_I2C1SCL 0x00061003
  39928. #define GPIO_PG4_WT0CCP0 0x00061007
  39929. #define GPIO_PG4_USB0EPEN 0x00061008
  39930. #define GPIO_PG5_U2TX 0x00061401
  39931. #define GPIO_PG5_I2C1SDA 0x00061403
  39932. #define GPIO_PG5_WT0CCP1 0x00061407
  39933. #define GPIO_PG5_USB0PFLT 0x00061408
  39934. #endif // PART_LM4F131C4QR
  39935. //*****************************************************************************
  39936. //
  39937. // LM4F131E5QR Port/Pin Mapping Definitions
  39938. //
  39939. //*****************************************************************************
  39940. #ifdef PART_LM4F131E5QR
  39941. #define GPIO_PA0_U0RX 0x00000001
  39942. #define GPIO_PA1_U0TX 0x00000401
  39943. #define GPIO_PA2_SSI0CLK 0x00000802
  39944. #define GPIO_PA3_SSI0FSS 0x00000C02
  39945. #define GPIO_PA4_SSI0RX 0x00001002
  39946. #define GPIO_PA5_SSI0TX 0x00001402
  39947. #define GPIO_PA6_I2C1SCL 0x00001803
  39948. #define GPIO_PA7_I2C1SDA 0x00001C03
  39949. #define GPIO_PB0_U1RX 0x00010001
  39950. #define GPIO_PB0_T2CCP0 0x00010007
  39951. #define GPIO_PB1_U1TX 0x00010401
  39952. #define GPIO_PB1_T2CCP1 0x00010407
  39953. #define GPIO_PB2_I2C0SCL 0x00010803
  39954. #define GPIO_PB2_T3CCP0 0x00010807
  39955. #define GPIO_PB3_I2C0SDA 0x00010C03
  39956. #define GPIO_PB3_T3CCP1 0x00010C07
  39957. #define GPIO_PB4_SSI2CLK 0x00011002
  39958. #define GPIO_PB4_CAN0RX 0x00011008
  39959. #define GPIO_PB4_T1CCP0 0x00011007
  39960. #define GPIO_PB5_SSI2FSS 0x00011402
  39961. #define GPIO_PB5_CAN0TX 0x00011408
  39962. #define GPIO_PB5_T1CCP1 0x00011407
  39963. #define GPIO_PB6_SSI2RX 0x00011802
  39964. #define GPIO_PB6_I2C5SCL 0x00011803
  39965. #define GPIO_PB6_T0CCP0 0x00011807
  39966. #define GPIO_PB7_SSI2TX 0x00011C02
  39967. #define GPIO_PB7_I2C5SDA 0x00011C03
  39968. #define GPIO_PB7_T0CCP1 0x00011C07
  39969. #define GPIO_PC0_TCK 0x00020001
  39970. #define GPIO_PC0_SWCLK 0x00020001
  39971. #define GPIO_PC0_T4CCP0 0x00020007
  39972. #define GPIO_PC1_TMS 0x00020401
  39973. #define GPIO_PC1_SWDIO 0x00020401
  39974. #define GPIO_PC1_T4CCP1 0x00020407
  39975. #define GPIO_PC2_TDI 0x00020801
  39976. #define GPIO_PC2_T5CCP0 0x00020807
  39977. #define GPIO_PC3_SWO 0x00020C01
  39978. #define GPIO_PC3_TDO 0x00020C01
  39979. #define GPIO_PC3_T5CCP1 0x00020C07
  39980. #define GPIO_PC4_U4RX 0x00021001
  39981. #define GPIO_PC4_U1RX 0x00021002
  39982. #define GPIO_PC4_WT0CCP0 0x00021007
  39983. #define GPIO_PC4_U1RTS 0x00021008
  39984. #define GPIO_PC5_U4TX 0x00021401
  39985. #define GPIO_PC5_U1TX 0x00021402
  39986. #define GPIO_PC5_WT0CCP1 0x00021407
  39987. #define GPIO_PC5_U1CTS 0x00021408
  39988. #define GPIO_PC6_U3RX 0x00021801
  39989. #define GPIO_PC6_WT1CCP0 0x00021807
  39990. #define GPIO_PC6_USB0EPEN 0x00021808
  39991. #define GPIO_PC7_U3TX 0x00021C01
  39992. #define GPIO_PC7_USB0PFLT 0x00021C08
  39993. #define GPIO_PC7_WT1CCP1 0x00021C07
  39994. #define GPIO_PD0_SSI3CLK 0x00030001
  39995. #define GPIO_PD0_SSI1CLK 0x00030002
  39996. #define GPIO_PD0_I2C3SCL 0x00030003
  39997. #define GPIO_PD0_WT2CCP0 0x00030007
  39998. #define GPIO_PD1_SSI3FSS 0x00030401
  39999. #define GPIO_PD1_SSI1FSS 0x00030402
  40000. #define GPIO_PD1_I2C3SDA 0x00030403
  40001. #define GPIO_PD1_WT2CCP1 0x00030407
  40002. #define GPIO_PD2_SSI3RX 0x00030801
  40003. #define GPIO_PD2_SSI1RX 0x00030802
  40004. #define GPIO_PD2_WT3CCP0 0x00030807
  40005. #define GPIO_PD2_USB0EPEN 0x00030808
  40006. #define GPIO_PD3_SSI3TX 0x00030C01
  40007. #define GPIO_PD3_SSI1TX 0x00030C02
  40008. #define GPIO_PD3_WT3CCP1 0x00030C07
  40009. #define GPIO_PD3_USB0PFLT 0x00030C08
  40010. #define GPIO_PD4_U6RX 0x00031001
  40011. #define GPIO_PD4_WT4CCP0 0x00031007
  40012. #define GPIO_PD5_U6TX 0x00031401
  40013. #define GPIO_PD5_WT4CCP1 0x00031407
  40014. #define GPIO_PD6_U2RX 0x00031801
  40015. #define GPIO_PD6_WT5CCP0 0x00031807
  40016. #define GPIO_PD7_U2TX 0x00031C01
  40017. #define GPIO_PD7_WT5CCP1 0x00031C07
  40018. #define GPIO_PD7_NMI 0x00031C08
  40019. #define GPIO_PE0_U7RX 0x00040001
  40020. #define GPIO_PE1_U7TX 0x00040401
  40021. #define GPIO_PE4_U5RX 0x00041001
  40022. #define GPIO_PE4_I2C2SCL 0x00041003
  40023. #define GPIO_PE4_CAN0RX 0x00041008
  40024. #define GPIO_PE5_U5TX 0x00041401
  40025. #define GPIO_PE5_I2C2SDA 0x00041403
  40026. #define GPIO_PE5_CAN0TX 0x00041408
  40027. #define GPIO_PF0_U1RTS 0x00050001
  40028. #define GPIO_PF0_SSI1RX 0x00050002
  40029. #define GPIO_PF0_CAN0RX 0x00050003
  40030. #define GPIO_PF0_T0CCP0 0x00050007
  40031. #define GPIO_PF0_NMI 0x00050008
  40032. #define GPIO_PF0_C0O 0x00050009
  40033. #define GPIO_PF0_TRD2 0x0005000E
  40034. #define GPIO_PF1_U1CTS 0x00050401
  40035. #define GPIO_PF1_SSI1TX 0x00050402
  40036. #define GPIO_PF1_T0CCP1 0x00050407
  40037. #define GPIO_PF1_C1O 0x00050409
  40038. #define GPIO_PF1_TRD1 0x0005040E
  40039. #define GPIO_PF2_T1CCP0 0x00050807
  40040. #define GPIO_PF2_SSI1CLK 0x00050802
  40041. #define GPIO_PF2_TRD0 0x0005080E
  40042. #define GPIO_PF3_CAN0TX 0x00050C03
  40043. #define GPIO_PF3_T1CCP1 0x00050C07
  40044. #define GPIO_PF3_SSI1FSS 0x00050C02
  40045. #define GPIO_PF3_TRCLK 0x00050C0E
  40046. #define GPIO_PF4_T2CCP0 0x00051007
  40047. #define GPIO_PF4_USB0EPEN 0x00051008
  40048. #define GPIO_PG0_I2C3SCL 0x00060003
  40049. #define GPIO_PG0_T4CCP0 0x00060007
  40050. #define GPIO_PG1_I2C3SDA 0x00060403
  40051. #define GPIO_PG1_T4CCP1 0x00060407
  40052. #define GPIO_PG2_I2C4SCL 0x00060803
  40053. #define GPIO_PG2_T5CCP0 0x00060807
  40054. #define GPIO_PG3_I2C4SDA 0x00060C03
  40055. #define GPIO_PG3_T5CCP1 0x00060C07
  40056. #define GPIO_PG4_U2RX 0x00061001
  40057. #define GPIO_PG4_I2C1SCL 0x00061003
  40058. #define GPIO_PG4_WT0CCP0 0x00061007
  40059. #define GPIO_PG4_USB0EPEN 0x00061008
  40060. #define GPIO_PG5_U2TX 0x00061401
  40061. #define GPIO_PG5_I2C1SDA 0x00061403
  40062. #define GPIO_PG5_WT0CCP1 0x00061407
  40063. #define GPIO_PG5_USB0PFLT 0x00061408
  40064. #endif // PART_LM4F131E5QR
  40065. //*****************************************************************************
  40066. //
  40067. // LM4F131H5QR Port/Pin Mapping Definitions
  40068. //
  40069. //*****************************************************************************
  40070. #ifdef PART_LM4F131H5QR
  40071. #define GPIO_PA0_U0RX 0x00000001
  40072. #define GPIO_PA1_U0TX 0x00000401
  40073. #define GPIO_PA2_SSI0CLK 0x00000802
  40074. #define GPIO_PA3_SSI0FSS 0x00000C02
  40075. #define GPIO_PA4_SSI0RX 0x00001002
  40076. #define GPIO_PA5_SSI0TX 0x00001402
  40077. #define GPIO_PA6_I2C1SCL 0x00001803
  40078. #define GPIO_PA7_I2C1SDA 0x00001C03
  40079. #define GPIO_PB0_U1RX 0x00010001
  40080. #define GPIO_PB0_T2CCP0 0x00010007
  40081. #define GPIO_PB1_U1TX 0x00010401
  40082. #define GPIO_PB1_T2CCP1 0x00010407
  40083. #define GPIO_PB2_I2C0SCL 0x00010803
  40084. #define GPIO_PB2_T3CCP0 0x00010807
  40085. #define GPIO_PB3_I2C0SDA 0x00010C03
  40086. #define GPIO_PB3_T3CCP1 0x00010C07
  40087. #define GPIO_PB4_SSI2CLK 0x00011002
  40088. #define GPIO_PB4_CAN0RX 0x00011008
  40089. #define GPIO_PB4_T1CCP0 0x00011007
  40090. #define GPIO_PB5_SSI2FSS 0x00011402
  40091. #define GPIO_PB5_CAN0TX 0x00011408
  40092. #define GPIO_PB5_T1CCP1 0x00011407
  40093. #define GPIO_PB6_SSI2RX 0x00011802
  40094. #define GPIO_PB6_I2C5SCL 0x00011803
  40095. #define GPIO_PB6_T0CCP0 0x00011807
  40096. #define GPIO_PB7_SSI2TX 0x00011C02
  40097. #define GPIO_PB7_I2C5SDA 0x00011C03
  40098. #define GPIO_PB7_T0CCP1 0x00011C07
  40099. #define GPIO_PC0_TCK 0x00020001
  40100. #define GPIO_PC0_SWCLK 0x00020001
  40101. #define GPIO_PC0_T4CCP0 0x00020007
  40102. #define GPIO_PC1_TMS 0x00020401
  40103. #define GPIO_PC1_SWDIO 0x00020401
  40104. #define GPIO_PC1_T4CCP1 0x00020407
  40105. #define GPIO_PC2_TDI 0x00020801
  40106. #define GPIO_PC2_T5CCP0 0x00020807
  40107. #define GPIO_PC3_SWO 0x00020C01
  40108. #define GPIO_PC3_TDO 0x00020C01
  40109. #define GPIO_PC3_T5CCP1 0x00020C07
  40110. #define GPIO_PC4_U4RX 0x00021001
  40111. #define GPIO_PC4_U1RX 0x00021002
  40112. #define GPIO_PC4_WT0CCP0 0x00021007
  40113. #define GPIO_PC4_U1RTS 0x00021008
  40114. #define GPIO_PC5_U4TX 0x00021401
  40115. #define GPIO_PC5_U1TX 0x00021402
  40116. #define GPIO_PC5_WT0CCP1 0x00021407
  40117. #define GPIO_PC5_U1CTS 0x00021408
  40118. #define GPIO_PC6_U3RX 0x00021801
  40119. #define GPIO_PC6_WT1CCP0 0x00021807
  40120. #define GPIO_PC6_USB0EPEN 0x00021808
  40121. #define GPIO_PC7_U3TX 0x00021C01
  40122. #define GPIO_PC7_USB0PFLT 0x00021C08
  40123. #define GPIO_PC7_WT1CCP1 0x00021C07
  40124. #define GPIO_PD0_SSI3CLK 0x00030001
  40125. #define GPIO_PD0_SSI1CLK 0x00030002
  40126. #define GPIO_PD0_I2C3SCL 0x00030003
  40127. #define GPIO_PD0_WT2CCP0 0x00030007
  40128. #define GPIO_PD1_SSI3FSS 0x00030401
  40129. #define GPIO_PD1_SSI1FSS 0x00030402
  40130. #define GPIO_PD1_I2C3SDA 0x00030403
  40131. #define GPIO_PD1_WT2CCP1 0x00030407
  40132. #define GPIO_PD2_SSI3RX 0x00030801
  40133. #define GPIO_PD2_SSI1RX 0x00030802
  40134. #define GPIO_PD2_WT3CCP0 0x00030807
  40135. #define GPIO_PD2_USB0EPEN 0x00030808
  40136. #define GPIO_PD3_SSI3TX 0x00030C01
  40137. #define GPIO_PD3_SSI1TX 0x00030C02
  40138. #define GPIO_PD3_WT3CCP1 0x00030C07
  40139. #define GPIO_PD3_USB0PFLT 0x00030C08
  40140. #define GPIO_PD4_U6RX 0x00031001
  40141. #define GPIO_PD4_WT4CCP0 0x00031007
  40142. #define GPIO_PD5_U6TX 0x00031401
  40143. #define GPIO_PD5_WT4CCP1 0x00031407
  40144. #define GPIO_PD6_U2RX 0x00031801
  40145. #define GPIO_PD6_WT5CCP0 0x00031807
  40146. #define GPIO_PD7_U2TX 0x00031C01
  40147. #define GPIO_PD7_WT5CCP1 0x00031C07
  40148. #define GPIO_PD7_NMI 0x00031C08
  40149. #define GPIO_PE0_U7RX 0x00040001
  40150. #define GPIO_PE1_U7TX 0x00040401
  40151. #define GPIO_PE4_U5RX 0x00041001
  40152. #define GPIO_PE4_I2C2SCL 0x00041003
  40153. #define GPIO_PE4_CAN0RX 0x00041008
  40154. #define GPIO_PE5_U5TX 0x00041401
  40155. #define GPIO_PE5_I2C2SDA 0x00041403
  40156. #define GPIO_PE5_CAN0TX 0x00041408
  40157. #define GPIO_PF0_U1RTS 0x00050001
  40158. #define GPIO_PF0_SSI1RX 0x00050002
  40159. #define GPIO_PF0_CAN0RX 0x00050003
  40160. #define GPIO_PF0_T0CCP0 0x00050007
  40161. #define GPIO_PF0_NMI 0x00050008
  40162. #define GPIO_PF0_C0O 0x00050009
  40163. #define GPIO_PF0_TRD2 0x0005000E
  40164. #define GPIO_PF1_U1CTS 0x00050401
  40165. #define GPIO_PF1_SSI1TX 0x00050402
  40166. #define GPIO_PF1_T0CCP1 0x00050407
  40167. #define GPIO_PF1_C1O 0x00050409
  40168. #define GPIO_PF1_TRD1 0x0005040E
  40169. #define GPIO_PF2_T1CCP0 0x00050807
  40170. #define GPIO_PF2_SSI1CLK 0x00050802
  40171. #define GPIO_PF2_TRD0 0x0005080E
  40172. #define GPIO_PF3_CAN0TX 0x00050C03
  40173. #define GPIO_PF3_T1CCP1 0x00050C07
  40174. #define GPIO_PF3_SSI1FSS 0x00050C02
  40175. #define GPIO_PF3_TRCLK 0x00050C0E
  40176. #define GPIO_PF4_T2CCP0 0x00051007
  40177. #define GPIO_PF4_USB0EPEN 0x00051008
  40178. #define GPIO_PG0_I2C3SCL 0x00060003
  40179. #define GPIO_PG0_T4CCP0 0x00060007
  40180. #define GPIO_PG1_I2C3SDA 0x00060403
  40181. #define GPIO_PG1_T4CCP1 0x00060407
  40182. #define GPIO_PG2_I2C4SCL 0x00060803
  40183. #define GPIO_PG2_T5CCP0 0x00060807
  40184. #define GPIO_PG3_I2C4SDA 0x00060C03
  40185. #define GPIO_PG3_T5CCP1 0x00060C07
  40186. #define GPIO_PG4_U2RX 0x00061001
  40187. #define GPIO_PG4_I2C1SCL 0x00061003
  40188. #define GPIO_PG4_WT0CCP0 0x00061007
  40189. #define GPIO_PG4_USB0EPEN 0x00061008
  40190. #define GPIO_PG5_U2TX 0x00061401
  40191. #define GPIO_PG5_I2C1SDA 0x00061403
  40192. #define GPIO_PG5_WT0CCP1 0x00061407
  40193. #define GPIO_PG5_USB0PFLT 0x00061408
  40194. #endif // PART_LM4F131H5QR
  40195. //*****************************************************************************
  40196. //
  40197. // LM4F132C4QC Port/Pin Mapping Definitions
  40198. //
  40199. //*****************************************************************************
  40200. #ifdef PART_LM4F132C4QC
  40201. #define GPIO_PA0_U0RX 0x00000001
  40202. #define GPIO_PA1_U0TX 0x00000401
  40203. #define GPIO_PA2_SSI0CLK 0x00000802
  40204. #define GPIO_PA3_SSI0FSS 0x00000C02
  40205. #define GPIO_PA4_SSI0RX 0x00001002
  40206. #define GPIO_PA5_SSI0TX 0x00001402
  40207. #define GPIO_PA6_I2C1SCL 0x00001803
  40208. #define GPIO_PA7_I2C1SDA 0x00001C03
  40209. #define GPIO_PB0_U1RX 0x00010001
  40210. #define GPIO_PB0_T2CCP0 0x00010007
  40211. #define GPIO_PB1_U1TX 0x00010401
  40212. #define GPIO_PB1_T2CCP1 0x00010407
  40213. #define GPIO_PB2_I2C0SCL 0x00010803
  40214. #define GPIO_PB2_T3CCP0 0x00010807
  40215. #define GPIO_PB3_I2C0SDA 0x00010C03
  40216. #define GPIO_PB3_T3CCP1 0x00010C07
  40217. #define GPIO_PB4_SSI2CLK 0x00011002
  40218. #define GPIO_PB4_CAN0RX 0x00011008
  40219. #define GPIO_PB4_T1CCP0 0x00011007
  40220. #define GPIO_PB5_SSI2FSS 0x00011402
  40221. #define GPIO_PB5_CAN0TX 0x00011408
  40222. #define GPIO_PB5_T1CCP1 0x00011407
  40223. #define GPIO_PC0_TCK 0x00020001
  40224. #define GPIO_PC0_SWCLK 0x00020001
  40225. #define GPIO_PC0_T4CCP0 0x00020007
  40226. #define GPIO_PC1_TMS 0x00020401
  40227. #define GPIO_PC1_SWDIO 0x00020401
  40228. #define GPIO_PC1_T4CCP1 0x00020407
  40229. #define GPIO_PC2_TDI 0x00020801
  40230. #define GPIO_PC2_T5CCP0 0x00020807
  40231. #define GPIO_PC3_SWO 0x00020C01
  40232. #define GPIO_PC3_TDO 0x00020C01
  40233. #define GPIO_PC3_T5CCP1 0x00020C07
  40234. #define GPIO_PC4_U4RX 0x00021001
  40235. #define GPIO_PC4_U1RX 0x00021002
  40236. #define GPIO_PC4_WT0CCP0 0x00021007
  40237. #define GPIO_PC4_U1RTS 0x00021008
  40238. #define GPIO_PC5_U4TX 0x00021401
  40239. #define GPIO_PC5_U1TX 0x00021402
  40240. #define GPIO_PC5_WT0CCP1 0x00021407
  40241. #define GPIO_PC5_U1CTS 0x00021408
  40242. #define GPIO_PC6_U3RX 0x00021801
  40243. #define GPIO_PC6_WT1CCP0 0x00021807
  40244. #define GPIO_PC6_USB0EPEN 0x00021808
  40245. #define GPIO_PC7_U3TX 0x00021C01
  40246. #define GPIO_PC7_USB0PFLT 0x00021C08
  40247. #define GPIO_PC7_WT1CCP1 0x00021C07
  40248. #define GPIO_PD0_SSI3CLK 0x00030001
  40249. #define GPIO_PD0_SSI1CLK 0x00030002
  40250. #define GPIO_PD0_I2C3SCL 0x00030003
  40251. #define GPIO_PD0_WT2CCP0 0x00030007
  40252. #define GPIO_PD1_SSI3FSS 0x00030401
  40253. #define GPIO_PD1_SSI1FSS 0x00030402
  40254. #define GPIO_PD1_I2C3SDA 0x00030403
  40255. #define GPIO_PD1_WT2CCP1 0x00030407
  40256. #define GPIO_PD2_SSI3RX 0x00030801
  40257. #define GPIO_PD2_SSI1RX 0x00030802
  40258. #define GPIO_PD2_WT3CCP0 0x00030807
  40259. #define GPIO_PD2_USB0EPEN 0x00030808
  40260. #define GPIO_PD3_SSI3TX 0x00030C01
  40261. #define GPIO_PD3_SSI1TX 0x00030C02
  40262. #define GPIO_PD3_WT3CCP1 0x00030C07
  40263. #define GPIO_PD3_USB0PFLT 0x00030C08
  40264. #define GPIO_PD4_U6RX 0x00031001
  40265. #define GPIO_PD4_WT4CCP0 0x00031007
  40266. #define GPIO_PD5_U6TX 0x00031401
  40267. #define GPIO_PD5_WT4CCP1 0x00031407
  40268. #define GPIO_PD6_U2RX 0x00031801
  40269. #define GPIO_PD6_WT5CCP0 0x00031807
  40270. #define GPIO_PD7_U2TX 0x00031C01
  40271. #define GPIO_PD7_WT5CCP1 0x00031C07
  40272. #define GPIO_PD7_NMI 0x00031C08
  40273. #define GPIO_PE0_U7RX 0x00040001
  40274. #define GPIO_PE1_U7TX 0x00040401
  40275. #define GPIO_PE4_U5RX 0x00041001
  40276. #define GPIO_PE4_I2C2SCL 0x00041003
  40277. #define GPIO_PE4_CAN0RX 0x00041008
  40278. #define GPIO_PE5_U5TX 0x00041401
  40279. #define GPIO_PE5_I2C2SDA 0x00041403
  40280. #define GPIO_PE5_CAN0TX 0x00041408
  40281. #define GPIO_PE7_U1RI 0x00041C01
  40282. #define GPIO_PF0_U1RTS 0x00050001
  40283. #define GPIO_PF0_SSI1RX 0x00050002
  40284. #define GPIO_PF0_CAN0RX 0x00050003
  40285. #define GPIO_PF0_T0CCP0 0x00050007
  40286. #define GPIO_PF0_NMI 0x00050008
  40287. #define GPIO_PF0_C0O 0x00050009
  40288. #define GPIO_PF0_TRD2 0x0005000E
  40289. #define GPIO_PF1_U1CTS 0x00050401
  40290. #define GPIO_PF1_SSI1TX 0x00050402
  40291. #define GPIO_PF1_T0CCP1 0x00050407
  40292. #define GPIO_PF1_C1O 0x00050409
  40293. #define GPIO_PF1_TRD1 0x0005040E
  40294. #define GPIO_PF2_U1DCD 0x00050801
  40295. #define GPIO_PF2_T1CCP0 0x00050807
  40296. #define GPIO_PF2_SSI1CLK 0x00050802
  40297. #define GPIO_PF2_C2O 0x00050809
  40298. #define GPIO_PF2_TRD0 0x0005080E
  40299. #define GPIO_PF3_U1DSR 0x00050C01
  40300. #define GPIO_PF3_CAN0TX 0x00050C03
  40301. #define GPIO_PF3_T1CCP1 0x00050C07
  40302. #define GPIO_PF3_SSI1FSS 0x00050C02
  40303. #define GPIO_PF3_TRCLK 0x00050C0E
  40304. #define GPIO_PF4_U1DTR 0x00051001
  40305. #define GPIO_PF4_T2CCP0 0x00051007
  40306. #define GPIO_PF4_USB0EPEN 0x00051008
  40307. #define GPIO_PF4_TRD3 0x0005100E
  40308. #define GPIO_PF5_T2CCP1 0x00051407
  40309. #define GPIO_PF5_USB0PFLT 0x00051408
  40310. #define GPIO_PF6_I2C2SCL 0x00051803
  40311. #define GPIO_PF6_T3CCP0 0x00051807
  40312. #define GPIO_PF7_I2C2SDA 0x00051C03
  40313. #define GPIO_PF7_T3CCP1 0x00051C07
  40314. #define GPIO_PG0_I2C3SCL 0x00060003
  40315. #define GPIO_PG0_T4CCP0 0x00060007
  40316. #define GPIO_PG0_LPC0PD_N 0x0006000F
  40317. #define GPIO_PG1_I2C3SDA 0x00060403
  40318. #define GPIO_PG1_T4CCP1 0x00060407
  40319. #define GPIO_PG1_LPC0SCI_N 0x0006040F
  40320. #define GPIO_PG2_I2C4SCL 0x00060803
  40321. #define GPIO_PG2_T5CCP0 0x00060807
  40322. #define GPIO_PG2_LPC0CLKRUN_N 0x0006080F
  40323. #define GPIO_PG3_I2C4SDA 0x00060C03
  40324. #define GPIO_PG3_T5CCP1 0x00060C07
  40325. #define GPIO_PG4_U2RX 0x00061001
  40326. #define GPIO_PG4_I2C1SCL 0x00061003
  40327. #define GPIO_PG4_WT0CCP0 0x00061007
  40328. #define GPIO_PG4_USB0EPEN 0x00061008
  40329. #define GPIO_PG5_U2TX 0x00061401
  40330. #define GPIO_PG5_I2C1SDA 0x00061403
  40331. #define GPIO_PG5_WT0CCP1 0x00061407
  40332. #define GPIO_PG5_USB0PFLT 0x00061408
  40333. #define GPIO_PG6_I2C5SCL 0x00061803
  40334. #define GPIO_PG6_WT1CCP0 0x00061807
  40335. #define GPIO_PG7_I2C5SDA 0x00061C03
  40336. #define GPIO_PG7_WT1CCP1 0x00061C07
  40337. #define GPIO_PH0_SSI3CLK 0x00070002
  40338. #define GPIO_PH0_WT2CCP0 0x00070007
  40339. #define GPIO_PH1_SSI3FSS 0x00070402
  40340. #define GPIO_PH1_WT2CCP1 0x00070407
  40341. #define GPIO_PH2_SSI3RX 0x00070802
  40342. #define GPIO_PH2_WT5CCP0 0x00070807
  40343. #define GPIO_PH3_SSI3TX 0x00070C02
  40344. #define GPIO_PH3_WT5CCP1 0x00070C07
  40345. #define GPIO_PH4_SSI2CLK 0x00071002
  40346. #define GPIO_PH4_WT3CCP0 0x00071007
  40347. #define GPIO_PH5_SSI2FSS 0x00071402
  40348. #define GPIO_PH5_WT3CCP1 0x00071407
  40349. #define GPIO_PH6_SSI2RX 0x00071802
  40350. #define GPIO_PH6_WT4CCP0 0x00071807
  40351. #define GPIO_PH7_SSI2TX 0x00071C02
  40352. #define GPIO_PH7_WT4CCP1 0x00071C07
  40353. #define GPIO_PJ0_U4RX 0x00080001
  40354. #define GPIO_PJ0_T1CCP0 0x00080007
  40355. #define GPIO_PJ1_U4TX 0x00080401
  40356. #define GPIO_PJ1_T1CCP1 0x00080407
  40357. #define GPIO_PJ2_U5RX 0x00080801
  40358. #define GPIO_PJ2_T2CCP0 0x00080807
  40359. #define GPIO_PK0_SSI3CLK 0x00090002
  40360. #define GPIO_PK1_SSI3FSS 0x00090402
  40361. #define GPIO_PK2_SSI3RX 0x00090802
  40362. #define GPIO_PK3_SSI3TX 0x00090C02
  40363. #endif // PART_LM4F132C4QC
  40364. //*****************************************************************************
  40365. //
  40366. // LM4F132E5QC Port/Pin Mapping Definitions
  40367. //
  40368. //*****************************************************************************
  40369. #ifdef PART_LM4F132E5QC
  40370. #define GPIO_PA0_U0RX 0x00000001
  40371. #define GPIO_PA1_U0TX 0x00000401
  40372. #define GPIO_PA2_SSI0CLK 0x00000802
  40373. #define GPIO_PA3_SSI0FSS 0x00000C02
  40374. #define GPIO_PA4_SSI0RX 0x00001002
  40375. #define GPIO_PA5_SSI0TX 0x00001402
  40376. #define GPIO_PA6_I2C1SCL 0x00001803
  40377. #define GPIO_PA7_I2C1SDA 0x00001C03
  40378. #define GPIO_PB0_U1RX 0x00010001
  40379. #define GPIO_PB0_T2CCP0 0x00010007
  40380. #define GPIO_PB1_U1TX 0x00010401
  40381. #define GPIO_PB1_T2CCP1 0x00010407
  40382. #define GPIO_PB2_I2C0SCL 0x00010803
  40383. #define GPIO_PB2_T3CCP0 0x00010807
  40384. #define GPIO_PB3_I2C0SDA 0x00010C03
  40385. #define GPIO_PB3_T3CCP1 0x00010C07
  40386. #define GPIO_PB4_SSI2CLK 0x00011002
  40387. #define GPIO_PB4_CAN0RX 0x00011008
  40388. #define GPIO_PB4_T1CCP0 0x00011007
  40389. #define GPIO_PB5_SSI2FSS 0x00011402
  40390. #define GPIO_PB5_CAN0TX 0x00011408
  40391. #define GPIO_PB5_T1CCP1 0x00011407
  40392. #define GPIO_PC0_TCK 0x00020001
  40393. #define GPIO_PC0_SWCLK 0x00020001
  40394. #define GPIO_PC0_T4CCP0 0x00020007
  40395. #define GPIO_PC1_TMS 0x00020401
  40396. #define GPIO_PC1_SWDIO 0x00020401
  40397. #define GPIO_PC1_T4CCP1 0x00020407
  40398. #define GPIO_PC2_TDI 0x00020801
  40399. #define GPIO_PC2_T5CCP0 0x00020807
  40400. #define GPIO_PC3_SWO 0x00020C01
  40401. #define GPIO_PC3_TDO 0x00020C01
  40402. #define GPIO_PC3_T5CCP1 0x00020C07
  40403. #define GPIO_PC4_U4RX 0x00021001
  40404. #define GPIO_PC4_U1RX 0x00021002
  40405. #define GPIO_PC4_WT0CCP0 0x00021007
  40406. #define GPIO_PC4_U1RTS 0x00021008
  40407. #define GPIO_PC5_U4TX 0x00021401
  40408. #define GPIO_PC5_U1TX 0x00021402
  40409. #define GPIO_PC5_WT0CCP1 0x00021407
  40410. #define GPIO_PC5_U1CTS 0x00021408
  40411. #define GPIO_PC6_U3RX 0x00021801
  40412. #define GPIO_PC6_WT1CCP0 0x00021807
  40413. #define GPIO_PC6_USB0EPEN 0x00021808
  40414. #define GPIO_PC7_U3TX 0x00021C01
  40415. #define GPIO_PC7_USB0PFLT 0x00021C08
  40416. #define GPIO_PC7_WT1CCP1 0x00021C07
  40417. #define GPIO_PD0_SSI3CLK 0x00030001
  40418. #define GPIO_PD0_SSI1CLK 0x00030002
  40419. #define GPIO_PD0_I2C3SCL 0x00030003
  40420. #define GPIO_PD0_WT2CCP0 0x00030007
  40421. #define GPIO_PD1_SSI3FSS 0x00030401
  40422. #define GPIO_PD1_SSI1FSS 0x00030402
  40423. #define GPIO_PD1_I2C3SDA 0x00030403
  40424. #define GPIO_PD1_WT2CCP1 0x00030407
  40425. #define GPIO_PD2_SSI3RX 0x00030801
  40426. #define GPIO_PD2_SSI1RX 0x00030802
  40427. #define GPIO_PD2_WT3CCP0 0x00030807
  40428. #define GPIO_PD2_USB0EPEN 0x00030808
  40429. #define GPIO_PD3_SSI3TX 0x00030C01
  40430. #define GPIO_PD3_SSI1TX 0x00030C02
  40431. #define GPIO_PD3_WT3CCP1 0x00030C07
  40432. #define GPIO_PD3_USB0PFLT 0x00030C08
  40433. #define GPIO_PD4_U6RX 0x00031001
  40434. #define GPIO_PD4_WT4CCP0 0x00031007
  40435. #define GPIO_PD5_U6TX 0x00031401
  40436. #define GPIO_PD5_WT4CCP1 0x00031407
  40437. #define GPIO_PD6_U2RX 0x00031801
  40438. #define GPIO_PD6_WT5CCP0 0x00031807
  40439. #define GPIO_PD7_U2TX 0x00031C01
  40440. #define GPIO_PD7_WT5CCP1 0x00031C07
  40441. #define GPIO_PD7_NMI 0x00031C08
  40442. #define GPIO_PE0_U7RX 0x00040001
  40443. #define GPIO_PE1_U7TX 0x00040401
  40444. #define GPIO_PE4_U5RX 0x00041001
  40445. #define GPIO_PE4_I2C2SCL 0x00041003
  40446. #define GPIO_PE4_CAN0RX 0x00041008
  40447. #define GPIO_PE5_U5TX 0x00041401
  40448. #define GPIO_PE5_I2C2SDA 0x00041403
  40449. #define GPIO_PE5_CAN0TX 0x00041408
  40450. #define GPIO_PE7_U1RI 0x00041C01
  40451. #define GPIO_PF0_U1RTS 0x00050001
  40452. #define GPIO_PF0_SSI1RX 0x00050002
  40453. #define GPIO_PF0_CAN0RX 0x00050003
  40454. #define GPIO_PF0_T0CCP0 0x00050007
  40455. #define GPIO_PF0_NMI 0x00050008
  40456. #define GPIO_PF0_C0O 0x00050009
  40457. #define GPIO_PF0_TRD2 0x0005000E
  40458. #define GPIO_PF1_U1CTS 0x00050401
  40459. #define GPIO_PF1_SSI1TX 0x00050402
  40460. #define GPIO_PF1_T0CCP1 0x00050407
  40461. #define GPIO_PF1_C1O 0x00050409
  40462. #define GPIO_PF1_TRD1 0x0005040E
  40463. #define GPIO_PF2_U1DCD 0x00050801
  40464. #define GPIO_PF2_T1CCP0 0x00050807
  40465. #define GPIO_PF2_SSI1CLK 0x00050802
  40466. #define GPIO_PF2_C2O 0x00050809
  40467. #define GPIO_PF2_TRD0 0x0005080E
  40468. #define GPIO_PF3_U1DSR 0x00050C01
  40469. #define GPIO_PF3_CAN0TX 0x00050C03
  40470. #define GPIO_PF3_T1CCP1 0x00050C07
  40471. #define GPIO_PF3_SSI1FSS 0x00050C02
  40472. #define GPIO_PF3_TRCLK 0x00050C0E
  40473. #define GPIO_PF4_U1DTR 0x00051001
  40474. #define GPIO_PF4_T2CCP0 0x00051007
  40475. #define GPIO_PF4_USB0EPEN 0x00051008
  40476. #define GPIO_PF4_TRD3 0x0005100E
  40477. #define GPIO_PF5_T2CCP1 0x00051407
  40478. #define GPIO_PF5_USB0PFLT 0x00051408
  40479. #define GPIO_PF6_I2C2SCL 0x00051803
  40480. #define GPIO_PF6_T3CCP0 0x00051807
  40481. #define GPIO_PF7_I2C2SDA 0x00051C03
  40482. #define GPIO_PF7_T3CCP1 0x00051C07
  40483. #define GPIO_PG0_I2C3SCL 0x00060003
  40484. #define GPIO_PG0_T4CCP0 0x00060007
  40485. #define GPIO_PG0_LPC0PD_N 0x0006000F
  40486. #define GPIO_PG1_I2C3SDA 0x00060403
  40487. #define GPIO_PG1_T4CCP1 0x00060407
  40488. #define GPIO_PG1_LPC0SCI_N 0x0006040F
  40489. #define GPIO_PG2_I2C4SCL 0x00060803
  40490. #define GPIO_PG2_T5CCP0 0x00060807
  40491. #define GPIO_PG2_LPC0CLKRUN_N 0x0006080F
  40492. #define GPIO_PG3_I2C4SDA 0x00060C03
  40493. #define GPIO_PG3_T5CCP1 0x00060C07
  40494. #define GPIO_PG4_U2RX 0x00061001
  40495. #define GPIO_PG4_I2C1SCL 0x00061003
  40496. #define GPIO_PG4_WT0CCP0 0x00061007
  40497. #define GPIO_PG4_USB0EPEN 0x00061008
  40498. #define GPIO_PG5_U2TX 0x00061401
  40499. #define GPIO_PG5_I2C1SDA 0x00061403
  40500. #define GPIO_PG5_WT0CCP1 0x00061407
  40501. #define GPIO_PG5_USB0PFLT 0x00061408
  40502. #define GPIO_PG6_I2C5SCL 0x00061803
  40503. #define GPIO_PG6_WT1CCP0 0x00061807
  40504. #define GPIO_PG7_I2C5SDA 0x00061C03
  40505. #define GPIO_PG7_WT1CCP1 0x00061C07
  40506. #define GPIO_PH0_SSI3CLK 0x00070002
  40507. #define GPIO_PH0_WT2CCP0 0x00070007
  40508. #define GPIO_PH1_SSI3FSS 0x00070402
  40509. #define GPIO_PH1_WT2CCP1 0x00070407
  40510. #define GPIO_PH2_SSI3RX 0x00070802
  40511. #define GPIO_PH2_WT5CCP0 0x00070807
  40512. #define GPIO_PH3_SSI3TX 0x00070C02
  40513. #define GPIO_PH3_WT5CCP1 0x00070C07
  40514. #define GPIO_PH4_SSI2CLK 0x00071002
  40515. #define GPIO_PH4_WT3CCP0 0x00071007
  40516. #define GPIO_PH5_SSI2FSS 0x00071402
  40517. #define GPIO_PH5_WT3CCP1 0x00071407
  40518. #define GPIO_PH6_SSI2RX 0x00071802
  40519. #define GPIO_PH6_WT4CCP0 0x00071807
  40520. #define GPIO_PH7_SSI2TX 0x00071C02
  40521. #define GPIO_PH7_WT4CCP1 0x00071C07
  40522. #define GPIO_PJ0_U4RX 0x00080001
  40523. #define GPIO_PJ0_T1CCP0 0x00080007
  40524. #define GPIO_PJ1_U4TX 0x00080401
  40525. #define GPIO_PJ1_T1CCP1 0x00080407
  40526. #define GPIO_PJ2_U5RX 0x00080801
  40527. #define GPIO_PJ2_T2CCP0 0x00080807
  40528. #define GPIO_PK0_SSI3CLK 0x00090002
  40529. #define GPIO_PK1_SSI3FSS 0x00090402
  40530. #define GPIO_PK2_SSI3RX 0x00090802
  40531. #define GPIO_PK3_SSI3TX 0x00090C02
  40532. #endif // PART_LM4F132E5QC
  40533. //*****************************************************************************
  40534. //
  40535. // LM4F132H5QC Port/Pin Mapping Definitions
  40536. //
  40537. //*****************************************************************************
  40538. #ifdef PART_LM4F132H5QC
  40539. #define GPIO_PA0_U0RX 0x00000001
  40540. #define GPIO_PA1_U0TX 0x00000401
  40541. #define GPIO_PA2_SSI0CLK 0x00000802
  40542. #define GPIO_PA3_SSI0FSS 0x00000C02
  40543. #define GPIO_PA4_SSI0RX 0x00001002
  40544. #define GPIO_PA5_SSI0TX 0x00001402
  40545. #define GPIO_PA6_I2C1SCL 0x00001803
  40546. #define GPIO_PA7_I2C1SDA 0x00001C03
  40547. #define GPIO_PB0_U1RX 0x00010001
  40548. #define GPIO_PB0_T2CCP0 0x00010007
  40549. #define GPIO_PB1_U1TX 0x00010401
  40550. #define GPIO_PB1_T2CCP1 0x00010407
  40551. #define GPIO_PB2_I2C0SCL 0x00010803
  40552. #define GPIO_PB2_T3CCP0 0x00010807
  40553. #define GPIO_PB3_I2C0SDA 0x00010C03
  40554. #define GPIO_PB3_T3CCP1 0x00010C07
  40555. #define GPIO_PB4_SSI2CLK 0x00011002
  40556. #define GPIO_PB4_CAN0RX 0x00011008
  40557. #define GPIO_PB4_T1CCP0 0x00011007
  40558. #define GPIO_PB5_SSI2FSS 0x00011402
  40559. #define GPIO_PB5_CAN0TX 0x00011408
  40560. #define GPIO_PB5_T1CCP1 0x00011407
  40561. #define GPIO_PC0_TCK 0x00020001
  40562. #define GPIO_PC0_SWCLK 0x00020001
  40563. #define GPIO_PC0_T4CCP0 0x00020007
  40564. #define GPIO_PC1_TMS 0x00020401
  40565. #define GPIO_PC1_SWDIO 0x00020401
  40566. #define GPIO_PC1_T4CCP1 0x00020407
  40567. #define GPIO_PC2_TDI 0x00020801
  40568. #define GPIO_PC2_T5CCP0 0x00020807
  40569. #define GPIO_PC3_SWO 0x00020C01
  40570. #define GPIO_PC3_TDO 0x00020C01
  40571. #define GPIO_PC3_T5CCP1 0x00020C07
  40572. #define GPIO_PC4_U4RX 0x00021001
  40573. #define GPIO_PC4_U1RX 0x00021002
  40574. #define GPIO_PC4_WT0CCP0 0x00021007
  40575. #define GPIO_PC4_U1RTS 0x00021008
  40576. #define GPIO_PC5_U4TX 0x00021401
  40577. #define GPIO_PC5_U1TX 0x00021402
  40578. #define GPIO_PC5_WT0CCP1 0x00021407
  40579. #define GPIO_PC5_U1CTS 0x00021408
  40580. #define GPIO_PC6_U3RX 0x00021801
  40581. #define GPIO_PC6_WT1CCP0 0x00021807
  40582. #define GPIO_PC6_USB0EPEN 0x00021808
  40583. #define GPIO_PC7_U3TX 0x00021C01
  40584. #define GPIO_PC7_USB0PFLT 0x00021C08
  40585. #define GPIO_PC7_WT1CCP1 0x00021C07
  40586. #define GPIO_PD0_SSI3CLK 0x00030001
  40587. #define GPIO_PD0_SSI1CLK 0x00030002
  40588. #define GPIO_PD0_I2C3SCL 0x00030003
  40589. #define GPIO_PD0_WT2CCP0 0x00030007
  40590. #define GPIO_PD1_SSI3FSS 0x00030401
  40591. #define GPIO_PD1_SSI1FSS 0x00030402
  40592. #define GPIO_PD1_I2C3SDA 0x00030403
  40593. #define GPIO_PD1_WT2CCP1 0x00030407
  40594. #define GPIO_PD2_SSI3RX 0x00030801
  40595. #define GPIO_PD2_SSI1RX 0x00030802
  40596. #define GPIO_PD2_WT3CCP0 0x00030807
  40597. #define GPIO_PD2_USB0EPEN 0x00030808
  40598. #define GPIO_PD3_SSI3TX 0x00030C01
  40599. #define GPIO_PD3_SSI1TX 0x00030C02
  40600. #define GPIO_PD3_WT3CCP1 0x00030C07
  40601. #define GPIO_PD3_USB0PFLT 0x00030C08
  40602. #define GPIO_PD4_U6RX 0x00031001
  40603. #define GPIO_PD4_WT4CCP0 0x00031007
  40604. #define GPIO_PD5_U6TX 0x00031401
  40605. #define GPIO_PD5_WT4CCP1 0x00031407
  40606. #define GPIO_PD6_U2RX 0x00031801
  40607. #define GPIO_PD6_WT5CCP0 0x00031807
  40608. #define GPIO_PD7_U2TX 0x00031C01
  40609. #define GPIO_PD7_WT5CCP1 0x00031C07
  40610. #define GPIO_PD7_NMI 0x00031C08
  40611. #define GPIO_PE0_U7RX 0x00040001
  40612. #define GPIO_PE1_U7TX 0x00040401
  40613. #define GPIO_PE4_U5RX 0x00041001
  40614. #define GPIO_PE4_I2C2SCL 0x00041003
  40615. #define GPIO_PE4_CAN0RX 0x00041008
  40616. #define GPIO_PE5_U5TX 0x00041401
  40617. #define GPIO_PE5_I2C2SDA 0x00041403
  40618. #define GPIO_PE5_CAN0TX 0x00041408
  40619. #define GPIO_PE7_U1RI 0x00041C01
  40620. #define GPIO_PF0_U1RTS 0x00050001
  40621. #define GPIO_PF0_SSI1RX 0x00050002
  40622. #define GPIO_PF0_CAN0RX 0x00050003
  40623. #define GPIO_PF0_T0CCP0 0x00050007
  40624. #define GPIO_PF0_NMI 0x00050008
  40625. #define GPIO_PF0_C0O 0x00050009
  40626. #define GPIO_PF0_TRD2 0x0005000E
  40627. #define GPIO_PF1_U1CTS 0x00050401
  40628. #define GPIO_PF1_SSI1TX 0x00050402
  40629. #define GPIO_PF1_T0CCP1 0x00050407
  40630. #define GPIO_PF1_C1O 0x00050409
  40631. #define GPIO_PF1_TRD1 0x0005040E
  40632. #define GPIO_PF2_U1DCD 0x00050801
  40633. #define GPIO_PF2_T1CCP0 0x00050807
  40634. #define GPIO_PF2_SSI1CLK 0x00050802
  40635. #define GPIO_PF2_C2O 0x00050809
  40636. #define GPIO_PF2_TRD0 0x0005080E
  40637. #define GPIO_PF3_U1DSR 0x00050C01
  40638. #define GPIO_PF3_CAN0TX 0x00050C03
  40639. #define GPIO_PF3_T1CCP1 0x00050C07
  40640. #define GPIO_PF3_SSI1FSS 0x00050C02
  40641. #define GPIO_PF3_TRCLK 0x00050C0E
  40642. #define GPIO_PF4_U1DTR 0x00051001
  40643. #define GPIO_PF4_T2CCP0 0x00051007
  40644. #define GPIO_PF4_USB0EPEN 0x00051008
  40645. #define GPIO_PF4_TRD3 0x0005100E
  40646. #define GPIO_PF5_T2CCP1 0x00051407
  40647. #define GPIO_PF5_USB0PFLT 0x00051408
  40648. #define GPIO_PF6_I2C2SCL 0x00051803
  40649. #define GPIO_PF6_T3CCP0 0x00051807
  40650. #define GPIO_PF7_I2C2SDA 0x00051C03
  40651. #define GPIO_PF7_T3CCP1 0x00051C07
  40652. #define GPIO_PG0_I2C3SCL 0x00060003
  40653. #define GPIO_PG0_T4CCP0 0x00060007
  40654. #define GPIO_PG0_LPC0PD_N 0x0006000F
  40655. #define GPIO_PG1_I2C3SDA 0x00060403
  40656. #define GPIO_PG1_T4CCP1 0x00060407
  40657. #define GPIO_PG1_LPC0SCI_N 0x0006040F
  40658. #define GPIO_PG2_I2C4SCL 0x00060803
  40659. #define GPIO_PG2_T5CCP0 0x00060807
  40660. #define GPIO_PG2_LPC0CLKRUN_N 0x0006080F
  40661. #define GPIO_PG3_I2C4SDA 0x00060C03
  40662. #define GPIO_PG3_T5CCP1 0x00060C07
  40663. #define GPIO_PG4_U2RX 0x00061001
  40664. #define GPIO_PG4_I2C1SCL 0x00061003
  40665. #define GPIO_PG4_WT0CCP0 0x00061007
  40666. #define GPIO_PG4_USB0EPEN 0x00061008
  40667. #define GPIO_PG5_U2TX 0x00061401
  40668. #define GPIO_PG5_I2C1SDA 0x00061403
  40669. #define GPIO_PG5_WT0CCP1 0x00061407
  40670. #define GPIO_PG5_USB0PFLT 0x00061408
  40671. #define GPIO_PG6_I2C5SCL 0x00061803
  40672. #define GPIO_PG6_WT1CCP0 0x00061807
  40673. #define GPIO_PG7_I2C5SDA 0x00061C03
  40674. #define GPIO_PG7_WT1CCP1 0x00061C07
  40675. #define GPIO_PH0_SSI3CLK 0x00070002
  40676. #define GPIO_PH0_WT2CCP0 0x00070007
  40677. #define GPIO_PH1_SSI3FSS 0x00070402
  40678. #define GPIO_PH1_WT2CCP1 0x00070407
  40679. #define GPIO_PH2_SSI3RX 0x00070802
  40680. #define GPIO_PH2_WT5CCP0 0x00070807
  40681. #define GPIO_PH3_SSI3TX 0x00070C02
  40682. #define GPIO_PH3_WT5CCP1 0x00070C07
  40683. #define GPIO_PH4_SSI2CLK 0x00071002
  40684. #define GPIO_PH4_WT3CCP0 0x00071007
  40685. #define GPIO_PH5_SSI2FSS 0x00071402
  40686. #define GPIO_PH5_WT3CCP1 0x00071407
  40687. #define GPIO_PH6_SSI2RX 0x00071802
  40688. #define GPIO_PH6_WT4CCP0 0x00071807
  40689. #define GPIO_PH7_SSI2TX 0x00071C02
  40690. #define GPIO_PH7_WT4CCP1 0x00071C07
  40691. #define GPIO_PJ0_U4RX 0x00080001
  40692. #define GPIO_PJ0_T1CCP0 0x00080007
  40693. #define GPIO_PJ1_U4TX 0x00080401
  40694. #define GPIO_PJ1_T1CCP1 0x00080407
  40695. #define GPIO_PJ2_U5RX 0x00080801
  40696. #define GPIO_PJ2_T2CCP0 0x00080807
  40697. #define GPIO_PK0_SSI3CLK 0x00090002
  40698. #define GPIO_PK1_SSI3FSS 0x00090402
  40699. #define GPIO_PK2_SSI3RX 0x00090802
  40700. #define GPIO_PK3_SSI3TX 0x00090C02
  40701. #endif // PART_LM4F132H5QC
  40702. //*****************************************************************************
  40703. //
  40704. // LM4F132H5QD Port/Pin Mapping Definitions
  40705. //
  40706. //*****************************************************************************
  40707. #ifdef PART_LM4F132H5QD
  40708. #define GPIO_PA0_U0RX 0x00000001
  40709. #define GPIO_PA1_U0TX 0x00000401
  40710. #define GPIO_PA2_SSI0CLK 0x00000802
  40711. #define GPIO_PA3_SSI0FSS 0x00000C02
  40712. #define GPIO_PA4_SSI0RX 0x00001002
  40713. #define GPIO_PA5_SSI0TX 0x00001402
  40714. #define GPIO_PA6_I2C1SCL 0x00001803
  40715. #define GPIO_PA7_I2C1SDA 0x00001C03
  40716. #define GPIO_PB0_U1RX 0x00010001
  40717. #define GPIO_PB0_T2CCP0 0x00010007
  40718. #define GPIO_PB1_U1TX 0x00010401
  40719. #define GPIO_PB1_T2CCP1 0x00010407
  40720. #define GPIO_PB2_I2C0SCL 0x00010803
  40721. #define GPIO_PB2_T3CCP0 0x00010807
  40722. #define GPIO_PB3_I2C0SDA 0x00010C03
  40723. #define GPIO_PB3_T3CCP1 0x00010C07
  40724. #define GPIO_PB4_SSI2CLK 0x00011002
  40725. #define GPIO_PB4_CAN0RX 0x00011008
  40726. #define GPIO_PB4_T1CCP0 0x00011007
  40727. #define GPIO_PB5_SSI2FSS 0x00011402
  40728. #define GPIO_PB5_CAN0TX 0x00011408
  40729. #define GPIO_PB5_T1CCP1 0x00011407
  40730. #define GPIO_PC0_TCK 0x00020001
  40731. #define GPIO_PC0_SWCLK 0x00020001
  40732. #define GPIO_PC0_T4CCP0 0x00020007
  40733. #define GPIO_PC1_TMS 0x00020401
  40734. #define GPIO_PC1_SWDIO 0x00020401
  40735. #define GPIO_PC1_T4CCP1 0x00020407
  40736. #define GPIO_PC2_TDI 0x00020801
  40737. #define GPIO_PC2_T5CCP0 0x00020807
  40738. #define GPIO_PC3_SWO 0x00020C01
  40739. #define GPIO_PC3_TDO 0x00020C01
  40740. #define GPIO_PC3_T5CCP1 0x00020C07
  40741. #define GPIO_PC4_U4RX 0x00021001
  40742. #define GPIO_PC4_U1RX 0x00021002
  40743. #define GPIO_PC4_WT0CCP0 0x00021007
  40744. #define GPIO_PC4_U1RTS 0x00021008
  40745. #define GPIO_PC5_U4TX 0x00021401
  40746. #define GPIO_PC5_U1TX 0x00021402
  40747. #define GPIO_PC5_WT0CCP1 0x00021407
  40748. #define GPIO_PC5_U1CTS 0x00021408
  40749. #define GPIO_PC6_U3RX 0x00021801
  40750. #define GPIO_PC6_WT1CCP0 0x00021807
  40751. #define GPIO_PC6_USB0EPEN 0x00021808
  40752. #define GPIO_PC7_U3TX 0x00021C01
  40753. #define GPIO_PC7_USB0PFLT 0x00021C08
  40754. #define GPIO_PC7_WT1CCP1 0x00021C07
  40755. #define GPIO_PD0_SSI3CLK 0x00030001
  40756. #define GPIO_PD0_SSI1CLK 0x00030002
  40757. #define GPIO_PD0_I2C3SCL 0x00030003
  40758. #define GPIO_PD0_WT2CCP0 0x00030007
  40759. #define GPIO_PD1_SSI3FSS 0x00030401
  40760. #define GPIO_PD1_SSI1FSS 0x00030402
  40761. #define GPIO_PD1_I2C3SDA 0x00030403
  40762. #define GPIO_PD1_WT2CCP1 0x00030407
  40763. #define GPIO_PD2_SSI3RX 0x00030801
  40764. #define GPIO_PD2_SSI1RX 0x00030802
  40765. #define GPIO_PD2_WT3CCP0 0x00030807
  40766. #define GPIO_PD2_USB0EPEN 0x00030808
  40767. #define GPIO_PD3_SSI3TX 0x00030C01
  40768. #define GPIO_PD3_SSI1TX 0x00030C02
  40769. #define GPIO_PD3_WT3CCP1 0x00030C07
  40770. #define GPIO_PD3_USB0PFLT 0x00030C08
  40771. #define GPIO_PD4_U6RX 0x00031001
  40772. #define GPIO_PD4_WT4CCP0 0x00031007
  40773. #define GPIO_PD5_U6TX 0x00031401
  40774. #define GPIO_PD5_WT4CCP1 0x00031407
  40775. #define GPIO_PD6_U2RX 0x00031801
  40776. #define GPIO_PD6_WT5CCP0 0x00031807
  40777. #define GPIO_PD7_U2TX 0x00031C01
  40778. #define GPIO_PD7_WT5CCP1 0x00031C07
  40779. #define GPIO_PD7_NMI 0x00031C08
  40780. #define GPIO_PE0_U7RX 0x00040001
  40781. #define GPIO_PE1_U7TX 0x00040401
  40782. #define GPIO_PE4_U5RX 0x00041001
  40783. #define GPIO_PE4_I2C2SCL 0x00041003
  40784. #define GPIO_PE4_CAN0RX 0x00041008
  40785. #define GPIO_PE5_U5TX 0x00041401
  40786. #define GPIO_PE5_I2C2SDA 0x00041403
  40787. #define GPIO_PE5_CAN0TX 0x00041408
  40788. #define GPIO_PE7_U1RI 0x00041C01
  40789. #define GPIO_PF0_U1RTS 0x00050001
  40790. #define GPIO_PF0_SSI1RX 0x00050002
  40791. #define GPIO_PF0_CAN0RX 0x00050003
  40792. #define GPIO_PF0_T0CCP0 0x00050007
  40793. #define GPIO_PF0_NMI 0x00050008
  40794. #define GPIO_PF0_C0O 0x00050009
  40795. #define GPIO_PF0_TRD2 0x0005000E
  40796. #define GPIO_PF1_U1CTS 0x00050401
  40797. #define GPIO_PF1_SSI1TX 0x00050402
  40798. #define GPIO_PF1_T0CCP1 0x00050407
  40799. #define GPIO_PF1_C1O 0x00050409
  40800. #define GPIO_PF1_TRD1 0x0005040E
  40801. #define GPIO_PF2_U1DCD 0x00050801
  40802. #define GPIO_PF2_T1CCP0 0x00050807
  40803. #define GPIO_PF2_SSI1CLK 0x00050802
  40804. #define GPIO_PF2_C2O 0x00050809
  40805. #define GPIO_PF2_TRD0 0x0005080E
  40806. #define GPIO_PF3_U1DSR 0x00050C01
  40807. #define GPIO_PF3_CAN0TX 0x00050C03
  40808. #define GPIO_PF3_T1CCP1 0x00050C07
  40809. #define GPIO_PF3_SSI1FSS 0x00050C02
  40810. #define GPIO_PF3_TRCLK 0x00050C0E
  40811. #define GPIO_PF4_U1DTR 0x00051001
  40812. #define GPIO_PF4_T2CCP0 0x00051007
  40813. #define GPIO_PF4_USB0EPEN 0x00051008
  40814. #define GPIO_PF4_TRD3 0x0005100E
  40815. #define GPIO_PF5_T2CCP1 0x00051407
  40816. #define GPIO_PF5_USB0PFLT 0x00051408
  40817. #define GPIO_PF6_I2C2SCL 0x00051803
  40818. #define GPIO_PF6_T3CCP0 0x00051807
  40819. #define GPIO_PF7_I2C2SDA 0x00051C03
  40820. #define GPIO_PF7_T3CCP1 0x00051C07
  40821. #define GPIO_PG0_I2C3SCL 0x00060003
  40822. #define GPIO_PG0_T4CCP0 0x00060007
  40823. #define GPIO_PG1_I2C3SDA 0x00060403
  40824. #define GPIO_PG1_T4CCP1 0x00060407
  40825. #define GPIO_PG2_I2C4SCL 0x00060803
  40826. #define GPIO_PG2_T5CCP0 0x00060807
  40827. #define GPIO_PG3_I2C4SDA 0x00060C03
  40828. #define GPIO_PG3_T5CCP1 0x00060C07
  40829. #define GPIO_PG4_U2RX 0x00061001
  40830. #define GPIO_PG4_I2C1SCL 0x00061003
  40831. #define GPIO_PG4_WT0CCP0 0x00061007
  40832. #define GPIO_PG4_USB0EPEN 0x00061008
  40833. #define GPIO_PG5_U2TX 0x00061401
  40834. #define GPIO_PG5_I2C1SDA 0x00061403
  40835. #define GPIO_PG5_WT0CCP1 0x00061407
  40836. #define GPIO_PG5_USB0PFLT 0x00061408
  40837. #define GPIO_PG6_I2C5SCL 0x00061803
  40838. #define GPIO_PG6_WT1CCP0 0x00061807
  40839. #define GPIO_PG7_I2C5SDA 0x00061C03
  40840. #define GPIO_PG7_WT1CCP1 0x00061C07
  40841. #define GPIO_PH0_SSI3CLK 0x00070002
  40842. #define GPIO_PH0_WT2CCP0 0x00070007
  40843. #define GPIO_PH1_SSI3FSS 0x00070402
  40844. #define GPIO_PH1_WT2CCP1 0x00070407
  40845. #define GPIO_PH2_SSI3RX 0x00070802
  40846. #define GPIO_PH2_WT5CCP0 0x00070807
  40847. #define GPIO_PH3_SSI3TX 0x00070C02
  40848. #define GPIO_PH3_WT5CCP1 0x00070C07
  40849. #define GPIO_PH4_SSI2CLK 0x00071002
  40850. #define GPIO_PH4_WT3CCP0 0x00071007
  40851. #define GPIO_PH5_SSI2FSS 0x00071402
  40852. #define GPIO_PH5_WT3CCP1 0x00071407
  40853. #define GPIO_PH6_SSI2RX 0x00071802
  40854. #define GPIO_PH6_WT4CCP0 0x00071807
  40855. #define GPIO_PH7_SSI2TX 0x00071C02
  40856. #define GPIO_PH7_WT4CCP1 0x00071C07
  40857. #define GPIO_PJ0_U4RX 0x00080001
  40858. #define GPIO_PJ0_T1CCP0 0x00080007
  40859. #define GPIO_PJ1_U4TX 0x00080401
  40860. #define GPIO_PJ1_T1CCP1 0x00080407
  40861. #define GPIO_PJ2_U5RX 0x00080801
  40862. #define GPIO_PJ2_T2CCP0 0x00080807
  40863. #define GPIO_PJ3_U5TX 0x00080C01
  40864. #define GPIO_PJ3_T2CCP1 0x00080C07
  40865. #define GPIO_PJ4_U6RX 0x00081001
  40866. #define GPIO_PJ4_T3CCP0 0x00081007
  40867. #define GPIO_PJ5_U6TX 0x00081401
  40868. #define GPIO_PJ5_T3CCP1 0x00081407
  40869. #define GPIO_PK0_SSI3CLK 0x00090002
  40870. #define GPIO_PK1_SSI3FSS 0x00090402
  40871. #define GPIO_PK2_SSI3RX 0x00090802
  40872. #define GPIO_PK3_SSI3TX 0x00090C02
  40873. #define GPIO_PK4_U7RX 0x00091001
  40874. #define GPIO_PK4_RTCCLK 0x00091007
  40875. #define GPIO_PK4_C0O 0x00091008
  40876. #define GPIO_PK5_U7TX 0x00091401
  40877. #define GPIO_PK5_C1O 0x00091408
  40878. #define GPIO_PK6_WT1CCP0 0x00091807
  40879. #define GPIO_PK6_C2O 0x00091808
  40880. #define GPIO_PK7_WT1CCP1 0x00091C07
  40881. #define GPIO_PL0_T0CCP0 0x000A0007
  40882. #define GPIO_PL0_WT0CCP0 0x000A0008
  40883. #define GPIO_PL1_T0CCP1 0x000A0407
  40884. #define GPIO_PL1_WT0CCP1 0x000A0408
  40885. #define GPIO_PL2_T1CCP0 0x000A0807
  40886. #define GPIO_PL2_WT1CCP0 0x000A0808
  40887. #define GPIO_PL3_T1CCP1 0x000A0C07
  40888. #define GPIO_PL3_WT1CCP1 0x000A0C08
  40889. #define GPIO_PL4_T2CCP0 0x000A1007
  40890. #define GPIO_PL4_WT2CCP0 0x000A1008
  40891. #define GPIO_PL4_LPC0FRAME_N 0x000A100F
  40892. #define GPIO_PL5_T2CCP1 0x000A1407
  40893. #define GPIO_PL5_WT2CCP1 0x000A1408
  40894. #define GPIO_PL5_LPC0RESET_N 0x000A140F
  40895. #define GPIO_PL6_T3CCP0 0x000A1807
  40896. #define GPIO_PL6_WT3CCP0 0x000A1808
  40897. #define GPIO_PL7_T3CCP1 0x000A1C07
  40898. #define GPIO_PL7_WT3CCP1 0x000A1C08
  40899. #define GPIO_PM0_T4CCP0 0x000B0007
  40900. #define GPIO_PM0_WT4CCP0 0x000B0008
  40901. #define GPIO_PM0_LPC0PD_N 0x000B000F
  40902. #define GPIO_PM1_T4CCP1 0x000B0407
  40903. #define GPIO_PM1_WT4CCP1 0x000B0408
  40904. #define GPIO_PM1_LPC0SCI_N 0x000B040F
  40905. #define GPIO_PM2_T5CCP0 0x000B0807
  40906. #define GPIO_PM2_WT5CCP0 0x000B0808
  40907. #define GPIO_PM2_LPC0CLKRUN_N 0x000B080F
  40908. #define GPIO_PM3_T5CCP1 0x000B0C07
  40909. #define GPIO_PM3_WT5CCP1 0x000B0C08
  40910. #define GPIO_PM6_WT0CCP0 0x000B1807
  40911. #define GPIO_PM7_WT0CCP1 0x000B1C07
  40912. #define GPIO_PN0_CAN0RX 0x000C0001
  40913. #define GPIO_PN1_CAN0TX 0x000C0401
  40914. #define GPIO_PN2_WT2CCP0 0x000C0807
  40915. #define GPIO_PN3_WT2CCP1 0x000C0C07
  40916. #define GPIO_PN4_WT3CCP0 0x000C1007
  40917. #define GPIO_PN5_WT3CCP1 0x000C1407
  40918. #define GPIO_PN6_WT4CCP0 0x000C1807
  40919. #define GPIO_PN7_WT4CCP1 0x000C1C07
  40920. #define GPIO_PP0_T4CCP0 0x000D0007
  40921. #define GPIO_PP1_T4CCP1 0x000D0407
  40922. #define GPIO_PP2_T5CCP0 0x000D0807
  40923. #endif // PART_LM4F132H5QD
  40924. //*****************************************************************************
  40925. //
  40926. // LM4F230E5QR Port/Pin Mapping Definitions
  40927. //
  40928. //*****************************************************************************
  40929. #ifdef PART_LM4F230E5QR
  40930. #define GPIO_PA0_U0RX 0x00000001
  40931. #define GPIO_PA0_CAN1RX 0x00000008
  40932. #define GPIO_PA1_U0TX 0x00000401
  40933. #define GPIO_PA1_CAN1TX 0x00000408
  40934. #define GPIO_PA2_SSI0CLK 0x00000802
  40935. #define GPIO_PA3_SSI0FSS 0x00000C02
  40936. #define GPIO_PA4_SSI0RX 0x00001002
  40937. #define GPIO_PA5_SSI0TX 0x00001402
  40938. #define GPIO_PA6_I2C1SCL 0x00001803
  40939. #define GPIO_PA6_M1PWM2 0x00001805
  40940. #define GPIO_PA7_I2C1SDA 0x00001C03
  40941. #define GPIO_PA7_M1PWM3 0x00001C05
  40942. #define GPIO_PB0_U1RX 0x00010001
  40943. #define GPIO_PB0_T2CCP0 0x00010007
  40944. #define GPIO_PB1_U1TX 0x00010401
  40945. #define GPIO_PB1_T2CCP1 0x00010407
  40946. #define GPIO_PB2_I2C0SCL 0x00010803
  40947. #define GPIO_PB2_T3CCP0 0x00010807
  40948. #define GPIO_PB3_I2C0SDA 0x00010C03
  40949. #define GPIO_PB3_T3CCP1 0x00010C07
  40950. #define GPIO_PB4_SSI2CLK 0x00011002
  40951. #define GPIO_PB4_M0PWM2 0x00011004
  40952. #define GPIO_PB4_CAN0RX 0x00011008
  40953. #define GPIO_PB4_T1CCP0 0x00011007
  40954. #define GPIO_PB5_SSI2FSS 0x00011402
  40955. #define GPIO_PB5_M0PWM3 0x00011404
  40956. #define GPIO_PB5_CAN0TX 0x00011408
  40957. #define GPIO_PB5_T1CCP1 0x00011407
  40958. #define GPIO_PB6_SSI2RX 0x00011802
  40959. #define GPIO_PB6_M0PWM0 0x00011804
  40960. #define GPIO_PB6_T0CCP0 0x00011807
  40961. #define GPIO_PB7_SSI2TX 0x00011C02
  40962. #define GPIO_PB7_M0PWM1 0x00011C04
  40963. #define GPIO_PB7_T0CCP1 0x00011C07
  40964. #define GPIO_PC0_TCK 0x00020001
  40965. #define GPIO_PC0_SWCLK 0x00020001
  40966. #define GPIO_PC0_T4CCP0 0x00020007
  40967. #define GPIO_PC1_TMS 0x00020401
  40968. #define GPIO_PC1_SWDIO 0x00020401
  40969. #define GPIO_PC1_T4CCP1 0x00020407
  40970. #define GPIO_PC2_TDI 0x00020801
  40971. #define GPIO_PC2_T5CCP0 0x00020807
  40972. #define GPIO_PC3_SWO 0x00020C01
  40973. #define GPIO_PC3_TDO 0x00020C01
  40974. #define GPIO_PC3_T5CCP1 0x00020C07
  40975. #define GPIO_PC4_U4RX 0x00021001
  40976. #define GPIO_PC4_U1RX 0x00021002
  40977. #define GPIO_PC4_M0PWM6 0x00021004
  40978. #define GPIO_PC4_IDX1 0x00021006
  40979. #define GPIO_PC4_WT0CCP0 0x00021007
  40980. #define GPIO_PC4_U1RTS 0x00021008
  40981. #define GPIO_PC5_U4TX 0x00021401
  40982. #define GPIO_PC5_U1TX 0x00021402
  40983. #define GPIO_PC5_M0PWM7 0x00021404
  40984. #define GPIO_PC5_PHA1 0x00021406
  40985. #define GPIO_PC5_WT0CCP1 0x00021407
  40986. #define GPIO_PC5_U1CTS 0x00021408
  40987. #define GPIO_PC6_U3RX 0x00021801
  40988. #define GPIO_PC6_PHB1 0x00021806
  40989. #define GPIO_PC6_WT1CCP0 0x00021807
  40990. #define GPIO_PC6_USB0EPEN 0x00021808
  40991. #define GPIO_PC7_U3TX 0x00021C01
  40992. #define GPIO_PC7_USB0PFLT 0x00021C08
  40993. #define GPIO_PC7_WT1CCP1 0x00021C07
  40994. #define GPIO_PD0_SSI3CLK 0x00030001
  40995. #define GPIO_PD0_SSI1CLK 0x00030002
  40996. #define GPIO_PD0_I2C3SCL 0x00030003
  40997. #define GPIO_PD0_M0PWM6 0x00030004
  40998. #define GPIO_PD0_M1PWM0 0x00030005
  40999. #define GPIO_PD0_WT2CCP0 0x00030007
  41000. #define GPIO_PD1_SSI3FSS 0x00030401
  41001. #define GPIO_PD1_SSI1FSS 0x00030402
  41002. #define GPIO_PD1_I2C3SDA 0x00030403
  41003. #define GPIO_PD1_M0PWM7 0x00030404
  41004. #define GPIO_PD1_M1PWM1 0x00030405
  41005. #define GPIO_PD1_WT2CCP1 0x00030407
  41006. #define GPIO_PD2_SSI3RX 0x00030801
  41007. #define GPIO_PD2_SSI1RX 0x00030802
  41008. #define GPIO_PD2_M0FAULT0 0x00030804
  41009. #define GPIO_PD2_WT3CCP0 0x00030807
  41010. #define GPIO_PD2_USB0EPEN 0x00030808
  41011. #define GPIO_PD3_SSI3TX 0x00030C01
  41012. #define GPIO_PD3_SSI1TX 0x00030C02
  41013. #define GPIO_PD3_IDX0 0x00030C06
  41014. #define GPIO_PD3_WT3CCP1 0x00030C07
  41015. #define GPIO_PD3_USB0PFLT 0x00030C08
  41016. #define GPIO_PD4_U6RX 0x00031001
  41017. #define GPIO_PD4_WT4CCP0 0x00031007
  41018. #define GPIO_PD5_U6TX 0x00031401
  41019. #define GPIO_PD5_WT4CCP1 0x00031407
  41020. #define GPIO_PD6_U2RX 0x00031801
  41021. #define GPIO_PD6_M0FAULT0 0x00031804
  41022. #define GPIO_PD6_PHA0 0x00031806
  41023. #define GPIO_PD6_WT5CCP0 0x00031807
  41024. #define GPIO_PD7_U2TX 0x00031C01
  41025. #define GPIO_PD7_PHB0 0x00031C06
  41026. #define GPIO_PD7_WT5CCP1 0x00031C07
  41027. #define GPIO_PD7_NMI 0x00031C08
  41028. #define GPIO_PE0_U7RX 0x00040001
  41029. #define GPIO_PE1_U7TX 0x00040401
  41030. #define GPIO_PE4_U5RX 0x00041001
  41031. #define GPIO_PE4_I2C2SCL 0x00041003
  41032. #define GPIO_PE4_M0PWM4 0x00041004
  41033. #define GPIO_PE4_M1PWM2 0x00041005
  41034. #define GPIO_PE4_CAN0RX 0x00041008
  41035. #define GPIO_PE5_U5TX 0x00041401
  41036. #define GPIO_PE5_I2C2SDA 0x00041403
  41037. #define GPIO_PE5_M0PWM5 0x00041404
  41038. #define GPIO_PE5_M1PWM3 0x00041405
  41039. #define GPIO_PE5_CAN0TX 0x00041408
  41040. #define GPIO_PF0_U1RTS 0x00050001
  41041. #define GPIO_PF0_SSI1RX 0x00050002
  41042. #define GPIO_PF0_CAN0RX 0x00050003
  41043. #define GPIO_PF0_M1PWM4 0x00050005
  41044. #define GPIO_PF0_PHA0 0x00050006
  41045. #define GPIO_PF0_T0CCP0 0x00050007
  41046. #define GPIO_PF0_NMI 0x00050008
  41047. #define GPIO_PF0_C0O 0x00050009
  41048. #define GPIO_PF0_TRD2 0x0005000E
  41049. #define GPIO_PF1_U1CTS 0x00050401
  41050. #define GPIO_PF1_SSI1TX 0x00050402
  41051. #define GPIO_PF1_M1PWM5 0x00050405
  41052. #define GPIO_PF1_PHB0 0x00050406
  41053. #define GPIO_PF1_T0CCP1 0x00050407
  41054. #define GPIO_PF1_C1O 0x00050409
  41055. #define GPIO_PF1_TRD1 0x0005040E
  41056. #define GPIO_PF2_M0FAULT0 0x00050804
  41057. #define GPIO_PF2_M1PWM6 0x00050805
  41058. #define GPIO_PF2_T1CCP0 0x00050807
  41059. #define GPIO_PF2_SSI1CLK 0x00050802
  41060. #define GPIO_PF2_TRD0 0x0005080E
  41061. #define GPIO_PF3_CAN0TX 0x00050C03
  41062. #define GPIO_PF3_M1PWM7 0x00050C05
  41063. #define GPIO_PF3_T1CCP1 0x00050C07
  41064. #define GPIO_PF3_SSI1FSS 0x00050C02
  41065. #define GPIO_PF3_TRCLK 0x00050C0E
  41066. #define GPIO_PF4_M1FAULT0 0x00051005
  41067. #define GPIO_PF4_IDX0 0x00051006
  41068. #define GPIO_PF4_T2CCP0 0x00051007
  41069. #define GPIO_PF4_USB0EPEN 0x00051008
  41070. #endif // PART_LM4F230E5QR
  41071. //*****************************************************************************
  41072. //
  41073. // LM4F230H5QR Port/Pin Mapping Definitions
  41074. //
  41075. //*****************************************************************************
  41076. #ifdef PART_LM4F230H5QR
  41077. #define GPIO_PA0_U0RX 0x00000001
  41078. #define GPIO_PA0_CAN1RX 0x00000008
  41079. #define GPIO_PA1_U0TX 0x00000401
  41080. #define GPIO_PA1_CAN1TX 0x00000408
  41081. #define GPIO_PA2_SSI0CLK 0x00000802
  41082. #define GPIO_PA3_SSI0FSS 0x00000C02
  41083. #define GPIO_PA4_SSI0RX 0x00001002
  41084. #define GPIO_PA5_SSI0TX 0x00001402
  41085. #define GPIO_PA6_I2C1SCL 0x00001803
  41086. #define GPIO_PA6_M1PWM2 0x00001805
  41087. #define GPIO_PA7_I2C1SDA 0x00001C03
  41088. #define GPIO_PA7_M1PWM3 0x00001C05
  41089. #define GPIO_PB0_U1RX 0x00010001
  41090. #define GPIO_PB0_T2CCP0 0x00010007
  41091. #define GPIO_PB1_U1TX 0x00010401
  41092. #define GPIO_PB1_T2CCP1 0x00010407
  41093. #define GPIO_PB2_I2C0SCL 0x00010803
  41094. #define GPIO_PB2_T3CCP0 0x00010807
  41095. #define GPIO_PB3_I2C0SDA 0x00010C03
  41096. #define GPIO_PB3_T3CCP1 0x00010C07
  41097. #define GPIO_PB4_SSI2CLK 0x00011002
  41098. #define GPIO_PB4_M0PWM2 0x00011004
  41099. #define GPIO_PB4_CAN0RX 0x00011008
  41100. #define GPIO_PB4_T1CCP0 0x00011007
  41101. #define GPIO_PB5_SSI2FSS 0x00011402
  41102. #define GPIO_PB5_M0PWM3 0x00011404
  41103. #define GPIO_PB5_CAN0TX 0x00011408
  41104. #define GPIO_PB5_T1CCP1 0x00011407
  41105. #define GPIO_PB6_SSI2RX 0x00011802
  41106. #define GPIO_PB6_M0PWM0 0x00011804
  41107. #define GPIO_PB6_T0CCP0 0x00011807
  41108. #define GPIO_PB7_SSI2TX 0x00011C02
  41109. #define GPIO_PB7_M0PWM1 0x00011C04
  41110. #define GPIO_PB7_T0CCP1 0x00011C07
  41111. #define GPIO_PC0_TCK 0x00020001
  41112. #define GPIO_PC0_SWCLK 0x00020001
  41113. #define GPIO_PC0_T4CCP0 0x00020007
  41114. #define GPIO_PC1_TMS 0x00020401
  41115. #define GPIO_PC1_SWDIO 0x00020401
  41116. #define GPIO_PC1_T4CCP1 0x00020407
  41117. #define GPIO_PC2_TDI 0x00020801
  41118. #define GPIO_PC2_T5CCP0 0x00020807
  41119. #define GPIO_PC3_SWO 0x00020C01
  41120. #define GPIO_PC3_TDO 0x00020C01
  41121. #define GPIO_PC3_T5CCP1 0x00020C07
  41122. #define GPIO_PC4_U4RX 0x00021001
  41123. #define GPIO_PC4_U1RX 0x00021002
  41124. #define GPIO_PC4_M0PWM6 0x00021004
  41125. #define GPIO_PC4_IDX1 0x00021006
  41126. #define GPIO_PC4_WT0CCP0 0x00021007
  41127. #define GPIO_PC4_U1RTS 0x00021008
  41128. #define GPIO_PC5_U4TX 0x00021401
  41129. #define GPIO_PC5_U1TX 0x00021402
  41130. #define GPIO_PC5_M0PWM7 0x00021404
  41131. #define GPIO_PC5_PHA1 0x00021406
  41132. #define GPIO_PC5_WT0CCP1 0x00021407
  41133. #define GPIO_PC5_U1CTS 0x00021408
  41134. #define GPIO_PC6_U3RX 0x00021801
  41135. #define GPIO_PC6_PHB1 0x00021806
  41136. #define GPIO_PC6_WT1CCP0 0x00021807
  41137. #define GPIO_PC6_USB0EPEN 0x00021808
  41138. #define GPIO_PC7_U3TX 0x00021C01
  41139. #define GPIO_PC7_USB0PFLT 0x00021C08
  41140. #define GPIO_PC7_WT1CCP1 0x00021C07
  41141. #define GPIO_PD0_SSI3CLK 0x00030001
  41142. #define GPIO_PD0_SSI1CLK 0x00030002
  41143. #define GPIO_PD0_I2C3SCL 0x00030003
  41144. #define GPIO_PD0_M0PWM6 0x00030004
  41145. #define GPIO_PD0_M1PWM0 0x00030005
  41146. #define GPIO_PD0_WT2CCP0 0x00030007
  41147. #define GPIO_PD1_SSI3FSS 0x00030401
  41148. #define GPIO_PD1_SSI1FSS 0x00030402
  41149. #define GPIO_PD1_I2C3SDA 0x00030403
  41150. #define GPIO_PD1_M0PWM7 0x00030404
  41151. #define GPIO_PD1_M1PWM1 0x00030405
  41152. #define GPIO_PD1_WT2CCP1 0x00030407
  41153. #define GPIO_PD2_SSI3RX 0x00030801
  41154. #define GPIO_PD2_SSI1RX 0x00030802
  41155. #define GPIO_PD2_M0FAULT0 0x00030804
  41156. #define GPIO_PD2_WT3CCP0 0x00030807
  41157. #define GPIO_PD2_USB0EPEN 0x00030808
  41158. #define GPIO_PD3_SSI3TX 0x00030C01
  41159. #define GPIO_PD3_SSI1TX 0x00030C02
  41160. #define GPIO_PD3_IDX0 0x00030C06
  41161. #define GPIO_PD3_WT3CCP1 0x00030C07
  41162. #define GPIO_PD3_USB0PFLT 0x00030C08
  41163. #define GPIO_PD4_U6RX 0x00031001
  41164. #define GPIO_PD4_WT4CCP0 0x00031007
  41165. #define GPIO_PD5_U6TX 0x00031401
  41166. #define GPIO_PD5_WT4CCP1 0x00031407
  41167. #define GPIO_PD6_U2RX 0x00031801
  41168. #define GPIO_PD6_M0FAULT0 0x00031804
  41169. #define GPIO_PD6_PHA0 0x00031806
  41170. #define GPIO_PD6_WT5CCP0 0x00031807
  41171. #define GPIO_PD7_U2TX 0x00031C01
  41172. #define GPIO_PD7_PHB0 0x00031C06
  41173. #define GPIO_PD7_WT5CCP1 0x00031C07
  41174. #define GPIO_PD7_NMI 0x00031C08
  41175. #define GPIO_PE0_U7RX 0x00040001
  41176. #define GPIO_PE1_U7TX 0x00040401
  41177. #define GPIO_PE4_U5RX 0x00041001
  41178. #define GPIO_PE4_I2C2SCL 0x00041003
  41179. #define GPIO_PE4_M0PWM4 0x00041004
  41180. #define GPIO_PE4_M1PWM2 0x00041005
  41181. #define GPIO_PE4_CAN0RX 0x00041008
  41182. #define GPIO_PE5_U5TX 0x00041401
  41183. #define GPIO_PE5_I2C2SDA 0x00041403
  41184. #define GPIO_PE5_M0PWM5 0x00041404
  41185. #define GPIO_PE5_M1PWM3 0x00041405
  41186. #define GPIO_PE5_CAN0TX 0x00041408
  41187. #define GPIO_PF0_U1RTS 0x00050001
  41188. #define GPIO_PF0_SSI1RX 0x00050002
  41189. #define GPIO_PF0_CAN0RX 0x00050003
  41190. #define GPIO_PF0_M1PWM4 0x00050005
  41191. #define GPIO_PF0_PHA0 0x00050006
  41192. #define GPIO_PF0_T0CCP0 0x00050007
  41193. #define GPIO_PF0_NMI 0x00050008
  41194. #define GPIO_PF0_C0O 0x00050009
  41195. #define GPIO_PF0_TRD2 0x0005000E
  41196. #define GPIO_PF1_U1CTS 0x00050401
  41197. #define GPIO_PF1_SSI1TX 0x00050402
  41198. #define GPIO_PF1_M1PWM5 0x00050405
  41199. #define GPIO_PF1_PHB0 0x00050406
  41200. #define GPIO_PF1_T0CCP1 0x00050407
  41201. #define GPIO_PF1_C1O 0x00050409
  41202. #define GPIO_PF1_TRD1 0x0005040E
  41203. #define GPIO_PF2_M0FAULT0 0x00050804
  41204. #define GPIO_PF2_M1PWM6 0x00050805
  41205. #define GPIO_PF2_T1CCP0 0x00050807
  41206. #define GPIO_PF2_SSI1CLK 0x00050802
  41207. #define GPIO_PF2_TRD0 0x0005080E
  41208. #define GPIO_PF3_CAN0TX 0x00050C03
  41209. #define GPIO_PF3_M1PWM7 0x00050C05
  41210. #define GPIO_PF3_T1CCP1 0x00050C07
  41211. #define GPIO_PF3_SSI1FSS 0x00050C02
  41212. #define GPIO_PF3_TRCLK 0x00050C0E
  41213. #define GPIO_PF4_M1FAULT0 0x00051005
  41214. #define GPIO_PF4_IDX0 0x00051006
  41215. #define GPIO_PF4_T2CCP0 0x00051007
  41216. #define GPIO_PF4_USB0EPEN 0x00051008
  41217. #endif // PART_LM4F230H5QR
  41218. //*****************************************************************************
  41219. //
  41220. // LM4F231E5QR Port/Pin Mapping Definitions
  41221. //
  41222. //*****************************************************************************
  41223. #ifdef PART_LM4F231E5QR
  41224. #define GPIO_PA0_U0RX 0x00000001
  41225. #define GPIO_PA0_CAN1RX 0x00000008
  41226. #define GPIO_PA1_U0TX 0x00000401
  41227. #define GPIO_PA1_CAN1TX 0x00000408
  41228. #define GPIO_PA2_SSI0CLK 0x00000802
  41229. #define GPIO_PA3_SSI0FSS 0x00000C02
  41230. #define GPIO_PA4_SSI0RX 0x00001002
  41231. #define GPIO_PA5_SSI0TX 0x00001402
  41232. #define GPIO_PA6_I2C1SCL 0x00001803
  41233. #define GPIO_PA6_M1PWM2 0x00001805
  41234. #define GPIO_PA7_I2C1SDA 0x00001C03
  41235. #define GPIO_PA7_M1PWM3 0x00001C05
  41236. #define GPIO_PB0_U1RX 0x00010001
  41237. #define GPIO_PB0_T2CCP0 0x00010007
  41238. #define GPIO_PB1_U1TX 0x00010401
  41239. #define GPIO_PB1_T2CCP1 0x00010407
  41240. #define GPIO_PB2_I2C0SCL 0x00010803
  41241. #define GPIO_PB2_T3CCP0 0x00010807
  41242. #define GPIO_PB3_I2C0SDA 0x00010C03
  41243. #define GPIO_PB3_T3CCP1 0x00010C07
  41244. #define GPIO_PB4_SSI2CLK 0x00011002
  41245. #define GPIO_PB4_M0PWM2 0x00011004
  41246. #define GPIO_PB4_CAN0RX 0x00011008
  41247. #define GPIO_PB4_T1CCP0 0x00011007
  41248. #define GPIO_PB5_SSI2FSS 0x00011402
  41249. #define GPIO_PB5_M0PWM3 0x00011404
  41250. #define GPIO_PB5_CAN0TX 0x00011408
  41251. #define GPIO_PB5_T1CCP1 0x00011407
  41252. #define GPIO_PB6_SSI2RX 0x00011802
  41253. #define GPIO_PB6_I2C5SCL 0x00011803
  41254. #define GPIO_PB6_M0PWM0 0x00011804
  41255. #define GPIO_PB6_T0CCP0 0x00011807
  41256. #define GPIO_PB7_SSI2TX 0x00011C02
  41257. #define GPIO_PB7_I2C5SDA 0x00011C03
  41258. #define GPIO_PB7_M0PWM1 0x00011C04
  41259. #define GPIO_PB7_T0CCP1 0x00011C07
  41260. #define GPIO_PC0_TCK 0x00020001
  41261. #define GPIO_PC0_SWCLK 0x00020001
  41262. #define GPIO_PC0_T4CCP0 0x00020007
  41263. #define GPIO_PC1_TMS 0x00020401
  41264. #define GPIO_PC1_SWDIO 0x00020401
  41265. #define GPIO_PC1_T4CCP1 0x00020407
  41266. #define GPIO_PC2_TDI 0x00020801
  41267. #define GPIO_PC2_T5CCP0 0x00020807
  41268. #define GPIO_PC3_SWO 0x00020C01
  41269. #define GPIO_PC3_TDO 0x00020C01
  41270. #define GPIO_PC3_T5CCP1 0x00020C07
  41271. #define GPIO_PC4_U4RX 0x00021001
  41272. #define GPIO_PC4_U1RX 0x00021002
  41273. #define GPIO_PC4_M0PWM6 0x00021004
  41274. #define GPIO_PC4_IDX1 0x00021006
  41275. #define GPIO_PC4_WT0CCP0 0x00021007
  41276. #define GPIO_PC4_U1RTS 0x00021008
  41277. #define GPIO_PC5_U4TX 0x00021401
  41278. #define GPIO_PC5_U1TX 0x00021402
  41279. #define GPIO_PC5_M0PWM7 0x00021404
  41280. #define GPIO_PC5_PHA1 0x00021406
  41281. #define GPIO_PC5_WT0CCP1 0x00021407
  41282. #define GPIO_PC5_U1CTS 0x00021408
  41283. #define GPIO_PC6_U3RX 0x00021801
  41284. #define GPIO_PC6_PHB1 0x00021806
  41285. #define GPIO_PC6_WT1CCP0 0x00021807
  41286. #define GPIO_PC6_USB0EPEN 0x00021808
  41287. #define GPIO_PC7_U3TX 0x00021C01
  41288. #define GPIO_PC7_USB0PFLT 0x00021C08
  41289. #define GPIO_PC7_WT1CCP1 0x00021C07
  41290. #define GPIO_PD0_SSI3CLK 0x00030001
  41291. #define GPIO_PD0_SSI1CLK 0x00030002
  41292. #define GPIO_PD0_I2C3SCL 0x00030003
  41293. #define GPIO_PD0_M0PWM6 0x00030004
  41294. #define GPIO_PD0_M1PWM0 0x00030005
  41295. #define GPIO_PD0_WT2CCP0 0x00030007
  41296. #define GPIO_PD1_SSI3FSS 0x00030401
  41297. #define GPIO_PD1_SSI1FSS 0x00030402
  41298. #define GPIO_PD1_I2C3SDA 0x00030403
  41299. #define GPIO_PD1_M0PWM7 0x00030404
  41300. #define GPIO_PD1_M1PWM1 0x00030405
  41301. #define GPIO_PD1_WT2CCP1 0x00030407
  41302. #define GPIO_PD2_SSI3RX 0x00030801
  41303. #define GPIO_PD2_SSI1RX 0x00030802
  41304. #define GPIO_PD2_M0FAULT0 0x00030804
  41305. #define GPIO_PD2_WT3CCP0 0x00030807
  41306. #define GPIO_PD2_USB0EPEN 0x00030808
  41307. #define GPIO_PD3_SSI3TX 0x00030C01
  41308. #define GPIO_PD3_SSI1TX 0x00030C02
  41309. #define GPIO_PD3_IDX0 0x00030C06
  41310. #define GPIO_PD3_WT3CCP1 0x00030C07
  41311. #define GPIO_PD3_USB0PFLT 0x00030C08
  41312. #define GPIO_PD4_U6RX 0x00031001
  41313. #define GPIO_PD4_WT4CCP0 0x00031007
  41314. #define GPIO_PD5_U6TX 0x00031401
  41315. #define GPIO_PD5_WT4CCP1 0x00031407
  41316. #define GPIO_PD6_U2RX 0x00031801
  41317. #define GPIO_PD6_M0FAULT0 0x00031804
  41318. #define GPIO_PD6_PHA0 0x00031806
  41319. #define GPIO_PD6_WT5CCP0 0x00031807
  41320. #define GPIO_PD7_U2TX 0x00031C01
  41321. #define GPIO_PD7_M0FAULT1 0x00031C04
  41322. #define GPIO_PD7_PHB0 0x00031C06
  41323. #define GPIO_PD7_WT5CCP1 0x00031C07
  41324. #define GPIO_PD7_NMI 0x00031C08
  41325. #define GPIO_PE0_U7RX 0x00040001
  41326. #define GPIO_PE1_U7TX 0x00040401
  41327. #define GPIO_PE4_U5RX 0x00041001
  41328. #define GPIO_PE4_I2C2SCL 0x00041003
  41329. #define GPIO_PE4_M0PWM4 0x00041004
  41330. #define GPIO_PE4_M1PWM2 0x00041005
  41331. #define GPIO_PE4_CAN0RX 0x00041008
  41332. #define GPIO_PE5_U5TX 0x00041401
  41333. #define GPIO_PE5_I2C2SDA 0x00041403
  41334. #define GPIO_PE5_M0PWM5 0x00041404
  41335. #define GPIO_PE5_M1PWM3 0x00041405
  41336. #define GPIO_PE5_CAN0TX 0x00041408
  41337. #define GPIO_PF0_U1RTS 0x00050001
  41338. #define GPIO_PF0_SSI1RX 0x00050002
  41339. #define GPIO_PF0_CAN0RX 0x00050003
  41340. #define GPIO_PF0_M1PWM4 0x00050005
  41341. #define GPIO_PF0_PHA0 0x00050006
  41342. #define GPIO_PF0_T0CCP0 0x00050007
  41343. #define GPIO_PF0_NMI 0x00050008
  41344. #define GPIO_PF0_C0O 0x00050009
  41345. #define GPIO_PF0_TRD2 0x0005000E
  41346. #define GPIO_PF1_U1CTS 0x00050401
  41347. #define GPIO_PF1_SSI1TX 0x00050402
  41348. #define GPIO_PF1_M1PWM5 0x00050405
  41349. #define GPIO_PF1_PHB0 0x00050406
  41350. #define GPIO_PF1_T0CCP1 0x00050407
  41351. #define GPIO_PF1_C1O 0x00050409
  41352. #define GPIO_PF1_TRD1 0x0005040E
  41353. #define GPIO_PF2_M0FAULT0 0x00050804
  41354. #define GPIO_PF2_M1PWM6 0x00050805
  41355. #define GPIO_PF2_T1CCP0 0x00050807
  41356. #define GPIO_PF2_SSI1CLK 0x00050802
  41357. #define GPIO_PF2_TRD0 0x0005080E
  41358. #define GPIO_PF3_CAN0TX 0x00050C03
  41359. #define GPIO_PF3_M0FAULT1 0x00050C04
  41360. #define GPIO_PF3_M1PWM7 0x00050C05
  41361. #define GPIO_PF3_T1CCP1 0x00050C07
  41362. #define GPIO_PF3_SSI1FSS 0x00050C02
  41363. #define GPIO_PF3_TRCLK 0x00050C0E
  41364. #define GPIO_PF4_M0FAULT2 0x00051004
  41365. #define GPIO_PF4_M1FAULT0 0x00051005
  41366. #define GPIO_PF4_IDX0 0x00051006
  41367. #define GPIO_PF4_T2CCP0 0x00051007
  41368. #define GPIO_PF4_USB0EPEN 0x00051008
  41369. #define GPIO_PG0_I2C3SCL 0x00060003
  41370. #define GPIO_PG0_M1FAULT1 0x00060005
  41371. #define GPIO_PG0_PHA1 0x00060006
  41372. #define GPIO_PG0_T4CCP0 0x00060007
  41373. #define GPIO_PG1_I2C3SDA 0x00060403
  41374. #define GPIO_PG1_M1FAULT2 0x00060405
  41375. #define GPIO_PG1_PHB1 0x00060406
  41376. #define GPIO_PG1_T4CCP1 0x00060407
  41377. #define GPIO_PG2_I2C4SCL 0x00060803
  41378. #define GPIO_PG2_M0FAULT1 0x00060804
  41379. #define GPIO_PG2_M1PWM0 0x00060805
  41380. #define GPIO_PG2_T5CCP0 0x00060807
  41381. #define GPIO_PG3_I2C4SDA 0x00060C03
  41382. #define GPIO_PG3_M0FAULT2 0x00060C04
  41383. #define GPIO_PG3_M1PWM1 0x00060C05
  41384. #define GPIO_PG3_PHA1 0x00060C06
  41385. #define GPIO_PG3_T5CCP1 0x00060C07
  41386. #define GPIO_PG4_U2RX 0x00061001
  41387. #define GPIO_PG4_I2C1SCL 0x00061003
  41388. #define GPIO_PG4_M0PWM4 0x00061004
  41389. #define GPIO_PG4_M1PWM2 0x00061005
  41390. #define GPIO_PG4_PHB1 0x00061006
  41391. #define GPIO_PG4_WT0CCP0 0x00061007
  41392. #define GPIO_PG4_USB0EPEN 0x00061008
  41393. #define GPIO_PG5_U2TX 0x00061401
  41394. #define GPIO_PG5_I2C1SDA 0x00061403
  41395. #define GPIO_PG5_M0PWM5 0x00061404
  41396. #define GPIO_PG5_M1PWM3 0x00061405
  41397. #define GPIO_PG5_IDX1 0x00061406
  41398. #define GPIO_PG5_WT0CCP1 0x00061407
  41399. #define GPIO_PG5_USB0PFLT 0x00061408
  41400. #endif // PART_LM4F231E5QR
  41401. //*****************************************************************************
  41402. //
  41403. // LM4F231H5QR Port/Pin Mapping Definitions
  41404. //
  41405. //*****************************************************************************
  41406. #ifdef PART_LM4F231H5QR
  41407. #define GPIO_PA0_U0RX 0x00000001
  41408. #define GPIO_PA0_CAN1RX 0x00000008
  41409. #define GPIO_PA1_U0TX 0x00000401
  41410. #define GPIO_PA1_CAN1TX 0x00000408
  41411. #define GPIO_PA2_SSI0CLK 0x00000802
  41412. #define GPIO_PA3_SSI0FSS 0x00000C02
  41413. #define GPIO_PA4_SSI0RX 0x00001002
  41414. #define GPIO_PA5_SSI0TX 0x00001402
  41415. #define GPIO_PA6_I2C1SCL 0x00001803
  41416. #define GPIO_PA6_M1PWM2 0x00001805
  41417. #define GPIO_PA7_I2C1SDA 0x00001C03
  41418. #define GPIO_PA7_M1PWM3 0x00001C05
  41419. #define GPIO_PB0_U1RX 0x00010001
  41420. #define GPIO_PB0_T2CCP0 0x00010007
  41421. #define GPIO_PB1_U1TX 0x00010401
  41422. #define GPIO_PB1_T2CCP1 0x00010407
  41423. #define GPIO_PB2_I2C0SCL 0x00010803
  41424. #define GPIO_PB2_T3CCP0 0x00010807
  41425. #define GPIO_PB3_I2C0SDA 0x00010C03
  41426. #define GPIO_PB3_T3CCP1 0x00010C07
  41427. #define GPIO_PB4_SSI2CLK 0x00011002
  41428. #define GPIO_PB4_M0PWM2 0x00011004
  41429. #define GPIO_PB4_CAN0RX 0x00011008
  41430. #define GPIO_PB4_T1CCP0 0x00011007
  41431. #define GPIO_PB5_SSI2FSS 0x00011402
  41432. #define GPIO_PB5_M0PWM3 0x00011404
  41433. #define GPIO_PB5_CAN0TX 0x00011408
  41434. #define GPIO_PB5_T1CCP1 0x00011407
  41435. #define GPIO_PB6_SSI2RX 0x00011802
  41436. #define GPIO_PB6_I2C5SCL 0x00011803
  41437. #define GPIO_PB6_M0PWM0 0x00011804
  41438. #define GPIO_PB6_T0CCP0 0x00011807
  41439. #define GPIO_PB7_SSI2TX 0x00011C02
  41440. #define GPIO_PB7_I2C5SDA 0x00011C03
  41441. #define GPIO_PB7_M0PWM1 0x00011C04
  41442. #define GPIO_PB7_T0CCP1 0x00011C07
  41443. #define GPIO_PC0_TCK 0x00020001
  41444. #define GPIO_PC0_SWCLK 0x00020001
  41445. #define GPIO_PC0_T4CCP0 0x00020007
  41446. #define GPIO_PC1_TMS 0x00020401
  41447. #define GPIO_PC1_SWDIO 0x00020401
  41448. #define GPIO_PC1_T4CCP1 0x00020407
  41449. #define GPIO_PC2_TDI 0x00020801
  41450. #define GPIO_PC2_T5CCP0 0x00020807
  41451. #define GPIO_PC3_SWO 0x00020C01
  41452. #define GPIO_PC3_TDO 0x00020C01
  41453. #define GPIO_PC3_T5CCP1 0x00020C07
  41454. #define GPIO_PC4_U4RX 0x00021001
  41455. #define GPIO_PC4_U1RX 0x00021002
  41456. #define GPIO_PC4_M0PWM6 0x00021004
  41457. #define GPIO_PC4_IDX1 0x00021006
  41458. #define GPIO_PC4_WT0CCP0 0x00021007
  41459. #define GPIO_PC4_U1RTS 0x00021008
  41460. #define GPIO_PC5_U4TX 0x00021401
  41461. #define GPIO_PC5_U1TX 0x00021402
  41462. #define GPIO_PC5_M0PWM7 0x00021404
  41463. #define GPIO_PC5_PHA1 0x00021406
  41464. #define GPIO_PC5_WT0CCP1 0x00021407
  41465. #define GPIO_PC5_U1CTS 0x00021408
  41466. #define GPIO_PC6_U3RX 0x00021801
  41467. #define GPIO_PC6_PHB1 0x00021806
  41468. #define GPIO_PC6_WT1CCP0 0x00021807
  41469. #define GPIO_PC6_USB0EPEN 0x00021808
  41470. #define GPIO_PC7_U3TX 0x00021C01
  41471. #define GPIO_PC7_USB0PFLT 0x00021C08
  41472. #define GPIO_PC7_WT1CCP1 0x00021C07
  41473. #define GPIO_PD0_SSI3CLK 0x00030001
  41474. #define GPIO_PD0_SSI1CLK 0x00030002
  41475. #define GPIO_PD0_I2C3SCL 0x00030003
  41476. #define GPIO_PD0_M0PWM6 0x00030004
  41477. #define GPIO_PD0_M1PWM0 0x00030005
  41478. #define GPIO_PD0_WT2CCP0 0x00030007
  41479. #define GPIO_PD1_SSI3FSS 0x00030401
  41480. #define GPIO_PD1_SSI1FSS 0x00030402
  41481. #define GPIO_PD1_I2C3SDA 0x00030403
  41482. #define GPIO_PD1_M0PWM7 0x00030404
  41483. #define GPIO_PD1_M1PWM1 0x00030405
  41484. #define GPIO_PD1_WT2CCP1 0x00030407
  41485. #define GPIO_PD2_SSI3RX 0x00030801
  41486. #define GPIO_PD2_SSI1RX 0x00030802
  41487. #define GPIO_PD2_M0FAULT0 0x00030804
  41488. #define GPIO_PD2_WT3CCP0 0x00030807
  41489. #define GPIO_PD2_USB0EPEN 0x00030808
  41490. #define GPIO_PD3_SSI3TX 0x00030C01
  41491. #define GPIO_PD3_SSI1TX 0x00030C02
  41492. #define GPIO_PD3_IDX0 0x00030C06
  41493. #define GPIO_PD3_WT3CCP1 0x00030C07
  41494. #define GPIO_PD3_USB0PFLT 0x00030C08
  41495. #define GPIO_PD4_U6RX 0x00031001
  41496. #define GPIO_PD4_WT4CCP0 0x00031007
  41497. #define GPIO_PD5_U6TX 0x00031401
  41498. #define GPIO_PD5_WT4CCP1 0x00031407
  41499. #define GPIO_PD6_U2RX 0x00031801
  41500. #define GPIO_PD6_M0FAULT0 0x00031804
  41501. #define GPIO_PD6_PHA0 0x00031806
  41502. #define GPIO_PD6_WT5CCP0 0x00031807
  41503. #define GPIO_PD7_U2TX 0x00031C01
  41504. #define GPIO_PD7_M0FAULT1 0x00031C04
  41505. #define GPIO_PD7_PHB0 0x00031C06
  41506. #define GPIO_PD7_WT5CCP1 0x00031C07
  41507. #define GPIO_PD7_NMI 0x00031C08
  41508. #define GPIO_PE0_U7RX 0x00040001
  41509. #define GPIO_PE1_U7TX 0x00040401
  41510. #define GPIO_PE4_U5RX 0x00041001
  41511. #define GPIO_PE4_I2C2SCL 0x00041003
  41512. #define GPIO_PE4_M0PWM4 0x00041004
  41513. #define GPIO_PE4_M1PWM2 0x00041005
  41514. #define GPIO_PE4_CAN0RX 0x00041008
  41515. #define GPIO_PE5_U5TX 0x00041401
  41516. #define GPIO_PE5_I2C2SDA 0x00041403
  41517. #define GPIO_PE5_M0PWM5 0x00041404
  41518. #define GPIO_PE5_M1PWM3 0x00041405
  41519. #define GPIO_PE5_CAN0TX 0x00041408
  41520. #define GPIO_PF0_U1RTS 0x00050001
  41521. #define GPIO_PF0_SSI1RX 0x00050002
  41522. #define GPIO_PF0_CAN0RX 0x00050003
  41523. #define GPIO_PF0_M1PWM4 0x00050005
  41524. #define GPIO_PF0_PHA0 0x00050006
  41525. #define GPIO_PF0_T0CCP0 0x00050007
  41526. #define GPIO_PF0_NMI 0x00050008
  41527. #define GPIO_PF0_C0O 0x00050009
  41528. #define GPIO_PF0_TRD2 0x0005000E
  41529. #define GPIO_PF1_U1CTS 0x00050401
  41530. #define GPIO_PF1_SSI1TX 0x00050402
  41531. #define GPIO_PF1_M1PWM5 0x00050405
  41532. #define GPIO_PF1_PHB0 0x00050406
  41533. #define GPIO_PF1_T0CCP1 0x00050407
  41534. #define GPIO_PF1_C1O 0x00050409
  41535. #define GPIO_PF1_TRD1 0x0005040E
  41536. #define GPIO_PF2_M0FAULT0 0x00050804
  41537. #define GPIO_PF2_M1PWM6 0x00050805
  41538. #define GPIO_PF2_T1CCP0 0x00050807
  41539. #define GPIO_PF2_SSI1CLK 0x00050802
  41540. #define GPIO_PF2_TRD0 0x0005080E
  41541. #define GPIO_PF3_CAN0TX 0x00050C03
  41542. #define GPIO_PF3_M0FAULT1 0x00050C04
  41543. #define GPIO_PF3_M1PWM7 0x00050C05
  41544. #define GPIO_PF3_T1CCP1 0x00050C07
  41545. #define GPIO_PF3_SSI1FSS 0x00050C02
  41546. #define GPIO_PF3_TRCLK 0x00050C0E
  41547. #define GPIO_PF4_M0FAULT2 0x00051004
  41548. #define GPIO_PF4_M1FAULT0 0x00051005
  41549. #define GPIO_PF4_IDX0 0x00051006
  41550. #define GPIO_PF4_T2CCP0 0x00051007
  41551. #define GPIO_PF4_USB0EPEN 0x00051008
  41552. #define GPIO_PG0_I2C3SCL 0x00060003
  41553. #define GPIO_PG0_M1FAULT1 0x00060005
  41554. #define GPIO_PG0_PHA1 0x00060006
  41555. #define GPIO_PG0_T4CCP0 0x00060007
  41556. #define GPIO_PG1_I2C3SDA 0x00060403
  41557. #define GPIO_PG1_M1FAULT2 0x00060405
  41558. #define GPIO_PG1_PHB1 0x00060406
  41559. #define GPIO_PG1_T4CCP1 0x00060407
  41560. #define GPIO_PG2_I2C4SCL 0x00060803
  41561. #define GPIO_PG2_M0FAULT1 0x00060804
  41562. #define GPIO_PG2_M1PWM0 0x00060805
  41563. #define GPIO_PG2_T5CCP0 0x00060807
  41564. #define GPIO_PG3_I2C4SDA 0x00060C03
  41565. #define GPIO_PG3_M0FAULT2 0x00060C04
  41566. #define GPIO_PG3_M1PWM1 0x00060C05
  41567. #define GPIO_PG3_PHA1 0x00060C06
  41568. #define GPIO_PG3_T5CCP1 0x00060C07
  41569. #define GPIO_PG4_U2RX 0x00061001
  41570. #define GPIO_PG4_I2C1SCL 0x00061003
  41571. #define GPIO_PG4_M0PWM4 0x00061004
  41572. #define GPIO_PG4_M1PWM2 0x00061005
  41573. #define GPIO_PG4_PHB1 0x00061006
  41574. #define GPIO_PG4_WT0CCP0 0x00061007
  41575. #define GPIO_PG4_USB0EPEN 0x00061008
  41576. #define GPIO_PG5_U2TX 0x00061401
  41577. #define GPIO_PG5_I2C1SDA 0x00061403
  41578. #define GPIO_PG5_M0PWM5 0x00061404
  41579. #define GPIO_PG5_M1PWM3 0x00061405
  41580. #define GPIO_PG5_IDX1 0x00061406
  41581. #define GPIO_PG5_WT0CCP1 0x00061407
  41582. #define GPIO_PG5_USB0PFLT 0x00061408
  41583. #endif // PART_LM4F231H5QR
  41584. //*****************************************************************************
  41585. //
  41586. // LM4F232E5QC Port/Pin Mapping Definitions
  41587. //
  41588. //*****************************************************************************
  41589. #ifdef PART_LM4F232E5QC
  41590. #define GPIO_PA0_U0RX 0x00000001
  41591. #define GPIO_PA0_CAN1RX 0x00000008
  41592. #define GPIO_PA1_U0TX 0x00000401
  41593. #define GPIO_PA1_CAN1TX 0x00000408
  41594. #define GPIO_PA2_SSI0CLK 0x00000802
  41595. #define GPIO_PA3_SSI0FSS 0x00000C02
  41596. #define GPIO_PA4_SSI0RX 0x00001002
  41597. #define GPIO_PA5_SSI0TX 0x00001402
  41598. #define GPIO_PA6_I2C1SCL 0x00001803
  41599. #define GPIO_PA6_M1PWM2 0x00001805
  41600. #define GPIO_PA7_I2C1SDA 0x00001C03
  41601. #define GPIO_PA7_M1PWM3 0x00001C05
  41602. #define GPIO_PB0_U1RX 0x00010001
  41603. #define GPIO_PB0_T2CCP0 0x00010007
  41604. #define GPIO_PB1_U1TX 0x00010401
  41605. #define GPIO_PB1_T2CCP1 0x00010407
  41606. #define GPIO_PB2_I2C0SCL 0x00010803
  41607. #define GPIO_PB2_T3CCP0 0x00010807
  41608. #define GPIO_PB3_I2C0SDA 0x00010C03
  41609. #define GPIO_PB3_T3CCP1 0x00010C07
  41610. #define GPIO_PB4_SSI2CLK 0x00011002
  41611. #define GPIO_PB4_M0PWM2 0x00011004
  41612. #define GPIO_PB4_CAN0RX 0x00011008
  41613. #define GPIO_PB4_T1CCP0 0x00011007
  41614. #define GPIO_PB5_SSI2FSS 0x00011402
  41615. #define GPIO_PB5_M0PWM3 0x00011404
  41616. #define GPIO_PB5_CAN0TX 0x00011408
  41617. #define GPIO_PB5_T1CCP1 0x00011407
  41618. #define GPIO_PC0_TCK 0x00020001
  41619. #define GPIO_PC0_SWCLK 0x00020001
  41620. #define GPIO_PC0_T4CCP0 0x00020007
  41621. #define GPIO_PC1_TMS 0x00020401
  41622. #define GPIO_PC1_SWDIO 0x00020401
  41623. #define GPIO_PC1_T4CCP1 0x00020407
  41624. #define GPIO_PC2_TDI 0x00020801
  41625. #define GPIO_PC2_T5CCP0 0x00020807
  41626. #define GPIO_PC3_SWO 0x00020C01
  41627. #define GPIO_PC3_TDO 0x00020C01
  41628. #define GPIO_PC3_T5CCP1 0x00020C07
  41629. #define GPIO_PC4_U4RX 0x00021001
  41630. #define GPIO_PC4_U1RX 0x00021002
  41631. #define GPIO_PC4_M0PWM6 0x00021004
  41632. #define GPIO_PC4_IDX1 0x00021006
  41633. #define GPIO_PC4_WT0CCP0 0x00021007
  41634. #define GPIO_PC4_U1RTS 0x00021008
  41635. #define GPIO_PC5_U4TX 0x00021401
  41636. #define GPIO_PC5_U1TX 0x00021402
  41637. #define GPIO_PC5_M0PWM7 0x00021404
  41638. #define GPIO_PC5_PHA1 0x00021406
  41639. #define GPIO_PC5_WT0CCP1 0x00021407
  41640. #define GPIO_PC5_U1CTS 0x00021408
  41641. #define GPIO_PC6_U3RX 0x00021801
  41642. #define GPIO_PC6_PHB1 0x00021806
  41643. #define GPIO_PC6_WT1CCP0 0x00021807
  41644. #define GPIO_PC6_USB0EPEN 0x00021808
  41645. #define GPIO_PC7_U3TX 0x00021C01
  41646. #define GPIO_PC7_USB0PFLT 0x00021C08
  41647. #define GPIO_PC7_WT1CCP1 0x00021C07
  41648. #define GPIO_PD0_SSI3CLK 0x00030001
  41649. #define GPIO_PD0_SSI1CLK 0x00030002
  41650. #define GPIO_PD0_I2C3SCL 0x00030003
  41651. #define GPIO_PD0_M0PWM6 0x00030004
  41652. #define GPIO_PD0_M1PWM0 0x00030005
  41653. #define GPIO_PD0_WT2CCP0 0x00030007
  41654. #define GPIO_PD1_SSI3FSS 0x00030401
  41655. #define GPIO_PD1_SSI1FSS 0x00030402
  41656. #define GPIO_PD1_I2C3SDA 0x00030403
  41657. #define GPIO_PD1_M0PWM7 0x00030404
  41658. #define GPIO_PD1_M1PWM1 0x00030405
  41659. #define GPIO_PD1_WT2CCP1 0x00030407
  41660. #define GPIO_PD2_SSI3RX 0x00030801
  41661. #define GPIO_PD2_SSI1RX 0x00030802
  41662. #define GPIO_PD2_M0FAULT0 0x00030804
  41663. #define GPIO_PD2_WT3CCP0 0x00030807
  41664. #define GPIO_PD2_USB0EPEN 0x00030808
  41665. #define GPIO_PD3_SSI3TX 0x00030C01
  41666. #define GPIO_PD3_SSI1TX 0x00030C02
  41667. #define GPIO_PD3_IDX0 0x00030C06
  41668. #define GPIO_PD3_WT3CCP1 0x00030C07
  41669. #define GPIO_PD3_USB0PFLT 0x00030C08
  41670. #define GPIO_PD4_U6RX 0x00031001
  41671. #define GPIO_PD4_WT4CCP0 0x00031007
  41672. #define GPIO_PD5_U6TX 0x00031401
  41673. #define GPIO_PD5_WT4CCP1 0x00031407
  41674. #define GPIO_PD6_U2RX 0x00031801
  41675. #define GPIO_PD6_M0FAULT0 0x00031804
  41676. #define GPIO_PD6_PHA0 0x00031806
  41677. #define GPIO_PD6_WT5CCP0 0x00031807
  41678. #define GPIO_PD7_U2TX 0x00031C01
  41679. #define GPIO_PD7_M0FAULT1 0x00031C04
  41680. #define GPIO_PD7_PHB0 0x00031C06
  41681. #define GPIO_PD7_WT5CCP1 0x00031C07
  41682. #define GPIO_PD7_NMI 0x00031C08
  41683. #define GPIO_PE0_U7RX 0x00040001
  41684. #define GPIO_PE1_U7TX 0x00040401
  41685. #define GPIO_PE4_U5RX 0x00041001
  41686. #define GPIO_PE4_I2C2SCL 0x00041003
  41687. #define GPIO_PE4_M0PWM4 0x00041004
  41688. #define GPIO_PE4_M1PWM2 0x00041005
  41689. #define GPIO_PE4_CAN0RX 0x00041008
  41690. #define GPIO_PE5_U5TX 0x00041401
  41691. #define GPIO_PE5_I2C2SDA 0x00041403
  41692. #define GPIO_PE5_M0PWM5 0x00041404
  41693. #define GPIO_PE5_M1PWM3 0x00041405
  41694. #define GPIO_PE5_CAN0TX 0x00041408
  41695. #define GPIO_PE6_CAN1RX 0x00041808
  41696. #define GPIO_PE7_U1RI 0x00041C01
  41697. #define GPIO_PE7_CAN1TX 0x00041C08
  41698. #define GPIO_PF0_U1RTS 0x00050001
  41699. #define GPIO_PF0_SSI1RX 0x00050002
  41700. #define GPIO_PF0_CAN0RX 0x00050003
  41701. #define GPIO_PF0_M1PWM4 0x00050005
  41702. #define GPIO_PF0_PHA0 0x00050006
  41703. #define GPIO_PF0_T0CCP0 0x00050007
  41704. #define GPIO_PF0_NMI 0x00050008
  41705. #define GPIO_PF0_C0O 0x00050009
  41706. #define GPIO_PF0_TRD2 0x0005000E
  41707. #define GPIO_PF1_U1CTS 0x00050401
  41708. #define GPIO_PF1_SSI1TX 0x00050402
  41709. #define GPIO_PF1_M1PWM5 0x00050405
  41710. #define GPIO_PF1_PHB0 0x00050406
  41711. #define GPIO_PF1_T0CCP1 0x00050407
  41712. #define GPIO_PF1_C1O 0x00050409
  41713. #define GPIO_PF1_TRD1 0x0005040E
  41714. #define GPIO_PF2_U1DCD 0x00050801
  41715. #define GPIO_PF2_M0FAULT0 0x00050804
  41716. #define GPIO_PF2_M1PWM6 0x00050805
  41717. #define GPIO_PF2_T1CCP0 0x00050807
  41718. #define GPIO_PF2_SSI1CLK 0x00050802
  41719. #define GPIO_PF2_C2O 0x00050809
  41720. #define GPIO_PF2_TRD0 0x0005080E
  41721. #define GPIO_PF3_U1DSR 0x00050C01
  41722. #define GPIO_PF3_CAN0TX 0x00050C03
  41723. #define GPIO_PF3_M0FAULT1 0x00050C04
  41724. #define GPIO_PF3_M1PWM7 0x00050C05
  41725. #define GPIO_PF3_T1CCP1 0x00050C07
  41726. #define GPIO_PF3_SSI1FSS 0x00050C02
  41727. #define GPIO_PF3_TRCLK 0x00050C0E
  41728. #define GPIO_PF4_U1DTR 0x00051001
  41729. #define GPIO_PF4_M0FAULT2 0x00051004
  41730. #define GPIO_PF4_M1FAULT0 0x00051005
  41731. #define GPIO_PF4_IDX0 0x00051006
  41732. #define GPIO_PF4_T2CCP0 0x00051007
  41733. #define GPIO_PF4_USB0EPEN 0x00051008
  41734. #define GPIO_PF4_TRD3 0x0005100E
  41735. #define GPIO_PF5_M0FAULT3 0x00051404
  41736. #define GPIO_PF5_T2CCP1 0x00051407
  41737. #define GPIO_PF5_USB0PFLT 0x00051408
  41738. #define GPIO_PF6_I2C2SCL 0x00051803
  41739. #define GPIO_PF6_T3CCP0 0x00051807
  41740. #define GPIO_PF7_I2C2SDA 0x00051C03
  41741. #define GPIO_PF7_M1FAULT0 0x00051C05
  41742. #define GPIO_PF7_T3CCP1 0x00051C07
  41743. #define GPIO_PG0_I2C3SCL 0x00060003
  41744. #define GPIO_PG0_M1FAULT1 0x00060005
  41745. #define GPIO_PG0_PHA1 0x00060006
  41746. #define GPIO_PG0_T4CCP0 0x00060007
  41747. #define GPIO_PG0_LPC0PD_N 0x0006000F
  41748. #define GPIO_PG1_I2C3SDA 0x00060403
  41749. #define GPIO_PG1_M1FAULT2 0x00060405
  41750. #define GPIO_PG1_PHB1 0x00060406
  41751. #define GPIO_PG1_T4CCP1 0x00060407
  41752. #define GPIO_PG1_LPC0SCI_N 0x0006040F
  41753. #define GPIO_PG2_I2C4SCL 0x00060803
  41754. #define GPIO_PG2_M0FAULT1 0x00060804
  41755. #define GPIO_PG2_M1PWM0 0x00060805
  41756. #define GPIO_PG2_T5CCP0 0x00060807
  41757. #define GPIO_PG2_LPC0CLKRUN_N 0x0006080F
  41758. #define GPIO_PG3_I2C4SDA 0x00060C03
  41759. #define GPIO_PG3_M0FAULT2 0x00060C04
  41760. #define GPIO_PG3_M1PWM1 0x00060C05
  41761. #define GPIO_PG3_PHA1 0x00060C06
  41762. #define GPIO_PG3_T5CCP1 0x00060C07
  41763. #define GPIO_PG4_U2RX 0x00061001
  41764. #define GPIO_PG4_I2C1SCL 0x00061003
  41765. #define GPIO_PG4_M0PWM4 0x00061004
  41766. #define GPIO_PG4_M1PWM2 0x00061005
  41767. #define GPIO_PG4_PHB1 0x00061006
  41768. #define GPIO_PG4_WT0CCP0 0x00061007
  41769. #define GPIO_PG4_USB0EPEN 0x00061008
  41770. #define GPIO_PG5_U2TX 0x00061401
  41771. #define GPIO_PG5_I2C1SDA 0x00061403
  41772. #define GPIO_PG5_M0PWM5 0x00061404
  41773. #define GPIO_PG5_M1PWM3 0x00061405
  41774. #define GPIO_PG5_IDX1 0x00061406
  41775. #define GPIO_PG5_WT0CCP1 0x00061407
  41776. #define GPIO_PG5_USB0PFLT 0x00061408
  41777. #define GPIO_PG6_I2C5SCL 0x00061803
  41778. #define GPIO_PG6_M0PWM6 0x00061804
  41779. #define GPIO_PG6_WT1CCP0 0x00061807
  41780. #define GPIO_PG7_I2C5SDA 0x00061C03
  41781. #define GPIO_PG7_M0PWM7 0x00061C04
  41782. #define GPIO_PG7_IDX1 0x00061C05
  41783. #define GPIO_PG7_WT1CCP1 0x00061C07
  41784. #define GPIO_PH0_SSI3CLK 0x00070002
  41785. #define GPIO_PH0_M0PWM0 0x00070004
  41786. #define GPIO_PH0_M0FAULT0 0x00070006
  41787. #define GPIO_PH0_WT2CCP0 0x00070007
  41788. #define GPIO_PH1_SSI3FSS 0x00070402
  41789. #define GPIO_PH1_M0PWM1 0x00070404
  41790. #define GPIO_PH1_IDX0 0x00070405
  41791. #define GPIO_PH1_M0FAULT1 0x00070406
  41792. #define GPIO_PH1_WT2CCP1 0x00070407
  41793. #define GPIO_PH2_SSI3RX 0x00070802
  41794. #define GPIO_PH2_M0PWM2 0x00070804
  41795. #define GPIO_PH2_M0FAULT2 0x00070806
  41796. #define GPIO_PH2_WT5CCP0 0x00070807
  41797. #define GPIO_PH3_SSI3TX 0x00070C02
  41798. #define GPIO_PH3_M0PWM3 0x00070C04
  41799. #define GPIO_PH3_M0FAULT3 0x00070C06
  41800. #define GPIO_PH3_WT5CCP1 0x00070C07
  41801. #define GPIO_PH4_SSI2CLK 0x00071002
  41802. #define GPIO_PH4_M0PWM4 0x00071004
  41803. #define GPIO_PH4_PHA0 0x00071005
  41804. #define GPIO_PH4_WT3CCP0 0x00071007
  41805. #define GPIO_PH5_SSI2FSS 0x00071402
  41806. #define GPIO_PH5_M0PWM5 0x00071404
  41807. #define GPIO_PH5_PHB0 0x00071405
  41808. #define GPIO_PH5_WT3CCP1 0x00071407
  41809. #define GPIO_PH6_SSI2RX 0x00071802
  41810. #define GPIO_PH6_M0PWM6 0x00071804
  41811. #define GPIO_PH6_WT4CCP0 0x00071807
  41812. #define GPIO_PH7_SSI2TX 0x00071C02
  41813. #define GPIO_PH7_M0PWM7 0x00071C04
  41814. #define GPIO_PH7_WT4CCP1 0x00071C07
  41815. #define GPIO_PJ0_U4RX 0x00080001
  41816. #define GPIO_PJ0_T1CCP0 0x00080007
  41817. #define GPIO_PJ1_U4TX 0x00080401
  41818. #define GPIO_PJ1_T1CCP1 0x00080407
  41819. #define GPIO_PJ2_U5RX 0x00080801
  41820. #define GPIO_PJ2_IDX0 0x00080805
  41821. #define GPIO_PJ2_T2CCP0 0x00080807
  41822. #define GPIO_PK0_SSI3CLK 0x00090002
  41823. #define GPIO_PK0_M1FAULT0 0x00090006
  41824. #define GPIO_PK1_SSI3FSS 0x00090402
  41825. #define GPIO_PK1_M1FAULT1 0x00090406
  41826. #define GPIO_PK2_SSI3RX 0x00090802
  41827. #define GPIO_PK2_M1FAULT2 0x00090806
  41828. #define GPIO_PK3_SSI3TX 0x00090C02
  41829. #define GPIO_PK3_M1FAULT3 0x00090C06
  41830. #endif // PART_LM4F232E5QC
  41831. //*****************************************************************************
  41832. //
  41833. // LM4F232H5BB Port/Pin Mapping Definitions
  41834. //
  41835. //*****************************************************************************
  41836. #ifdef PART_LM4F232H5BB
  41837. #define GPIO_PA0_U0RX 0x00000001
  41838. #define GPIO_PA0_CAN1RX 0x00000008
  41839. #define GPIO_PA1_U0TX 0x00000401
  41840. #define GPIO_PA1_CAN1TX 0x00000408
  41841. #define GPIO_PA2_SSI0CLK 0x00000802
  41842. #define GPIO_PA3_SSI0FSS 0x00000C02
  41843. #define GPIO_PA4_SSI0RX 0x00001002
  41844. #define GPIO_PA5_SSI0TX 0x00001402
  41845. #define GPIO_PA6_I2C1SCL 0x00001803
  41846. #define GPIO_PA6_M1PWM2 0x00001805
  41847. #define GPIO_PA7_I2C1SDA 0x00001C03
  41848. #define GPIO_PA7_M1PWM3 0x00001C05
  41849. #define GPIO_PB0_U1RX 0x00010001
  41850. #define GPIO_PB0_T2CCP0 0x00010007
  41851. #define GPIO_PB1_U1TX 0x00010401
  41852. #define GPIO_PB1_T2CCP1 0x00010407
  41853. #define GPIO_PB2_I2C0SCL 0x00010803
  41854. #define GPIO_PB2_T3CCP0 0x00010807
  41855. #define GPIO_PB3_I2C0SDA 0x00010C03
  41856. #define GPIO_PB3_T3CCP1 0x00010C07
  41857. #define GPIO_PB4_SSI2CLK 0x00011002
  41858. #define GPIO_PB4_M0PWM2 0x00011004
  41859. #define GPIO_PB4_CAN0RX 0x00011008
  41860. #define GPIO_PB4_T1CCP0 0x00011007
  41861. #define GPIO_PB5_SSI2FSS 0x00011402
  41862. #define GPIO_PB5_M0PWM3 0x00011404
  41863. #define GPIO_PB5_CAN0TX 0x00011408
  41864. #define GPIO_PB5_T1CCP1 0x00011407
  41865. #define GPIO_PB6_SSI2RX 0x00011802
  41866. #define GPIO_PB6_I2C5SCL 0x00011803
  41867. #define GPIO_PB6_M0PWM0 0x00011804
  41868. #define GPIO_PB6_T0CCP0 0x00011807
  41869. #define GPIO_PB7_SSI2TX 0x00011C02
  41870. #define GPIO_PB7_I2C5SDA 0x00011C03
  41871. #define GPIO_PB7_M0PWM1 0x00011C04
  41872. #define GPIO_PB7_T0CCP1 0x00011C07
  41873. #define GPIO_PC0_TCK 0x00020001
  41874. #define GPIO_PC0_SWCLK 0x00020001
  41875. #define GPIO_PC0_T4CCP0 0x00020007
  41876. #define GPIO_PC1_TMS 0x00020401
  41877. #define GPIO_PC1_SWDIO 0x00020401
  41878. #define GPIO_PC1_T4CCP1 0x00020407
  41879. #define GPIO_PC2_TDI 0x00020801
  41880. #define GPIO_PC2_T5CCP0 0x00020807
  41881. #define GPIO_PC3_SWO 0x00020C01
  41882. #define GPIO_PC3_TDO 0x00020C01
  41883. #define GPIO_PC3_T5CCP1 0x00020C07
  41884. #define GPIO_PC4_U4RX 0x00021001
  41885. #define GPIO_PC4_U1RX 0x00021002
  41886. #define GPIO_PC4_M0PWM6 0x00021004
  41887. #define GPIO_PC4_IDX1 0x00021006
  41888. #define GPIO_PC4_WT0CCP0 0x00021007
  41889. #define GPIO_PC4_U1RTS 0x00021008
  41890. #define GPIO_PC5_U4TX 0x00021401
  41891. #define GPIO_PC5_U1TX 0x00021402
  41892. #define GPIO_PC5_M0PWM7 0x00021404
  41893. #define GPIO_PC5_PHA1 0x00021406
  41894. #define GPIO_PC5_WT0CCP1 0x00021407
  41895. #define GPIO_PC5_U1CTS 0x00021408
  41896. #define GPIO_PC6_U3RX 0x00021801
  41897. #define GPIO_PC6_PHB1 0x00021806
  41898. #define GPIO_PC6_WT1CCP0 0x00021807
  41899. #define GPIO_PC6_USB0EPEN 0x00021808
  41900. #define GPIO_PC7_U3TX 0x00021C01
  41901. #define GPIO_PC7_USB0PFLT 0x00021C08
  41902. #define GPIO_PC7_WT1CCP1 0x00021C07
  41903. #define GPIO_PD0_SSI3CLK 0x00030001
  41904. #define GPIO_PD0_SSI1CLK 0x00030002
  41905. #define GPIO_PD0_I2C3SCL 0x00030003
  41906. #define GPIO_PD0_M0PWM6 0x00030004
  41907. #define GPIO_PD0_M1PWM0 0x00030005
  41908. #define GPIO_PD0_WT2CCP0 0x00030007
  41909. #define GPIO_PD1_SSI3FSS 0x00030401
  41910. #define GPIO_PD1_SSI1FSS 0x00030402
  41911. #define GPIO_PD1_I2C3SDA 0x00030403
  41912. #define GPIO_PD1_M0PWM7 0x00030404
  41913. #define GPIO_PD1_M1PWM1 0x00030405
  41914. #define GPIO_PD1_WT2CCP1 0x00030407
  41915. #define GPIO_PD2_SSI3RX 0x00030801
  41916. #define GPIO_PD2_SSI1RX 0x00030802
  41917. #define GPIO_PD2_M0FAULT0 0x00030804
  41918. #define GPIO_PD2_WT3CCP0 0x00030807
  41919. #define GPIO_PD2_USB0EPEN 0x00030808
  41920. #define GPIO_PD3_SSI3TX 0x00030C01
  41921. #define GPIO_PD3_SSI1TX 0x00030C02
  41922. #define GPIO_PD3_IDX0 0x00030C06
  41923. #define GPIO_PD3_WT3CCP1 0x00030C07
  41924. #define GPIO_PD3_USB0PFLT 0x00030C08
  41925. #define GPIO_PD4_U6RX 0x00031001
  41926. #define GPIO_PD4_WT4CCP0 0x00031007
  41927. #define GPIO_PD5_U6TX 0x00031401
  41928. #define GPIO_PD5_WT4CCP1 0x00031407
  41929. #define GPIO_PD6_U2RX 0x00031801
  41930. #define GPIO_PD6_M0FAULT0 0x00031804
  41931. #define GPIO_PD6_PHA0 0x00031806
  41932. #define GPIO_PD6_WT5CCP0 0x00031807
  41933. #define GPIO_PD7_U2TX 0x00031C01
  41934. #define GPIO_PD7_M0FAULT1 0x00031C04
  41935. #define GPIO_PD7_PHB0 0x00031C06
  41936. #define GPIO_PD7_WT5CCP1 0x00031C07
  41937. #define GPIO_PD7_NMI 0x00031C08
  41938. #define GPIO_PE0_U7RX 0x00040001
  41939. #define GPIO_PE1_U7TX 0x00040401
  41940. #define GPIO_PE4_U5RX 0x00041001
  41941. #define GPIO_PE4_I2C2SCL 0x00041003
  41942. #define GPIO_PE4_M0PWM4 0x00041004
  41943. #define GPIO_PE4_M1PWM2 0x00041005
  41944. #define GPIO_PE4_CAN0RX 0x00041008
  41945. #define GPIO_PE5_U5TX 0x00041401
  41946. #define GPIO_PE5_I2C2SDA 0x00041403
  41947. #define GPIO_PE5_M0PWM5 0x00041404
  41948. #define GPIO_PE5_M1PWM3 0x00041405
  41949. #define GPIO_PE5_CAN0TX 0x00041408
  41950. #define GPIO_PE6_CAN1RX 0x00041808
  41951. #define GPIO_PE7_U1RI 0x00041C01
  41952. #define GPIO_PE7_CAN1TX 0x00041C08
  41953. #define GPIO_PF0_U1RTS 0x00050001
  41954. #define GPIO_PF0_SSI1RX 0x00050002
  41955. #define GPIO_PF0_CAN0RX 0x00050003
  41956. #define GPIO_PF0_M1PWM4 0x00050005
  41957. #define GPIO_PF0_PHA0 0x00050006
  41958. #define GPIO_PF0_T0CCP0 0x00050007
  41959. #define GPIO_PF0_NMI 0x00050008
  41960. #define GPIO_PF0_C0O 0x00050009
  41961. #define GPIO_PF0_TRD2 0x0005000E
  41962. #define GPIO_PF1_U1CTS 0x00050401
  41963. #define GPIO_PF1_SSI1TX 0x00050402
  41964. #define GPIO_PF1_M1PWM5 0x00050405
  41965. #define GPIO_PF1_PHB0 0x00050406
  41966. #define GPIO_PF1_T0CCP1 0x00050407
  41967. #define GPIO_PF1_C1O 0x00050409
  41968. #define GPIO_PF1_TRD1 0x0005040E
  41969. #define GPIO_PF2_U1DCD 0x00050801
  41970. #define GPIO_PF2_M0FAULT0 0x00050804
  41971. #define GPIO_PF2_M1PWM6 0x00050805
  41972. #define GPIO_PF2_T1CCP0 0x00050807
  41973. #define GPIO_PF2_SSI1CLK 0x00050802
  41974. #define GPIO_PF2_C2O 0x00050809
  41975. #define GPIO_PF2_TRD0 0x0005080E
  41976. #define GPIO_PF3_U1DSR 0x00050C01
  41977. #define GPIO_PF3_CAN0TX 0x00050C03
  41978. #define GPIO_PF3_M0FAULT1 0x00050C04
  41979. #define GPIO_PF3_M1PWM7 0x00050C05
  41980. #define GPIO_PF3_T1CCP1 0x00050C07
  41981. #define GPIO_PF3_SSI1FSS 0x00050C02
  41982. #define GPIO_PF3_TRCLK 0x00050C0E
  41983. #define GPIO_PF4_U1DTR 0x00051001
  41984. #define GPIO_PF4_M0FAULT2 0x00051004
  41985. #define GPIO_PF4_M1FAULT0 0x00051005
  41986. #define GPIO_PF4_IDX0 0x00051006
  41987. #define GPIO_PF4_T2CCP0 0x00051007
  41988. #define GPIO_PF4_USB0EPEN 0x00051008
  41989. #define GPIO_PF4_TRD3 0x0005100E
  41990. #define GPIO_PF5_M0FAULT3 0x00051404
  41991. #define GPIO_PF5_T2CCP1 0x00051407
  41992. #define GPIO_PF5_USB0PFLT 0x00051408
  41993. #define GPIO_PF6_I2C2SCL 0x00051803
  41994. #define GPIO_PF6_T3CCP0 0x00051807
  41995. #define GPIO_PF7_I2C2SDA 0x00051C03
  41996. #define GPIO_PF7_M1FAULT0 0x00051C05
  41997. #define GPIO_PF7_T3CCP1 0x00051C07
  41998. #define GPIO_PG0_I2C3SCL 0x00060003
  41999. #define GPIO_PG0_M1FAULT1 0x00060005
  42000. #define GPIO_PG0_PHA1 0x00060006
  42001. #define GPIO_PG0_T4CCP0 0x00060007
  42002. #define GPIO_PG1_I2C3SDA 0x00060403
  42003. #define GPIO_PG1_M1FAULT2 0x00060405
  42004. #define GPIO_PG1_PHB1 0x00060406
  42005. #define GPIO_PG1_T4CCP1 0x00060407
  42006. #define GPIO_PG2_I2C4SCL 0x00060803
  42007. #define GPIO_PG2_M0FAULT1 0x00060804
  42008. #define GPIO_PG2_M1PWM0 0x00060805
  42009. #define GPIO_PG2_T5CCP0 0x00060807
  42010. #define GPIO_PG3_I2C4SDA 0x00060C03
  42011. #define GPIO_PG3_M0FAULT2 0x00060C04
  42012. #define GPIO_PG3_M1PWM1 0x00060C05
  42013. #define GPIO_PG3_PHA1 0x00060C06
  42014. #define GPIO_PG3_T5CCP1 0x00060C07
  42015. #define GPIO_PG4_U2RX 0x00061001
  42016. #define GPIO_PG4_I2C1SCL 0x00061003
  42017. #define GPIO_PG4_M0PWM4 0x00061004
  42018. #define GPIO_PG4_M1PWM2 0x00061005
  42019. #define GPIO_PG4_PHB1 0x00061006
  42020. #define GPIO_PG4_WT0CCP0 0x00061007
  42021. #define GPIO_PG4_USB0EPEN 0x00061008
  42022. #define GPIO_PG5_U2TX 0x00061401
  42023. #define GPIO_PG5_I2C1SDA 0x00061403
  42024. #define GPIO_PG5_M0PWM5 0x00061404
  42025. #define GPIO_PG5_M1PWM3 0x00061405
  42026. #define GPIO_PG5_IDX1 0x00061406
  42027. #define GPIO_PG5_WT0CCP1 0x00061407
  42028. #define GPIO_PG5_USB0PFLT 0x00061408
  42029. #define GPIO_PG6_I2C5SCL 0x00061803
  42030. #define GPIO_PG6_M0PWM6 0x00061804
  42031. #define GPIO_PG6_WT1CCP0 0x00061807
  42032. #define GPIO_PG7_I2C5SDA 0x00061C03
  42033. #define GPIO_PG7_M0PWM7 0x00061C04
  42034. #define GPIO_PG7_IDX1 0x00061C05
  42035. #define GPIO_PG7_WT1CCP1 0x00061C07
  42036. #define GPIO_PH0_SSI3CLK 0x00070002
  42037. #define GPIO_PH0_M0PWM0 0x00070004
  42038. #define GPIO_PH0_M0FAULT0 0x00070006
  42039. #define GPIO_PH0_WT2CCP0 0x00070007
  42040. #define GPIO_PH1_SSI3FSS 0x00070402
  42041. #define GPIO_PH1_M0PWM1 0x00070404
  42042. #define GPIO_PH1_IDX0 0x00070405
  42043. #define GPIO_PH1_M0FAULT1 0x00070406
  42044. #define GPIO_PH1_WT2CCP1 0x00070407
  42045. #define GPIO_PH2_SSI3RX 0x00070802
  42046. #define GPIO_PH2_M0PWM2 0x00070804
  42047. #define GPIO_PH2_M0FAULT2 0x00070806
  42048. #define GPIO_PH2_WT5CCP0 0x00070807
  42049. #define GPIO_PH3_SSI3TX 0x00070C02
  42050. #define GPIO_PH3_M0PWM3 0x00070C04
  42051. #define GPIO_PH3_M0FAULT3 0x00070C06
  42052. #define GPIO_PH3_WT5CCP1 0x00070C07
  42053. #define GPIO_PH4_SSI2CLK 0x00071002
  42054. #define GPIO_PH4_M0PWM4 0x00071004
  42055. #define GPIO_PH4_PHA0 0x00071005
  42056. #define GPIO_PH4_WT3CCP0 0x00071007
  42057. #define GPIO_PH5_SSI2FSS 0x00071402
  42058. #define GPIO_PH5_M0PWM5 0x00071404
  42059. #define GPIO_PH5_PHB0 0x00071405
  42060. #define GPIO_PH5_WT3CCP1 0x00071407
  42061. #define GPIO_PH6_SSI2RX 0x00071802
  42062. #define GPIO_PH6_M0PWM6 0x00071804
  42063. #define GPIO_PH6_WT4CCP0 0x00071807
  42064. #define GPIO_PH7_SSI2TX 0x00071C02
  42065. #define GPIO_PH7_M0PWM7 0x00071C04
  42066. #define GPIO_PH7_WT4CCP1 0x00071C07
  42067. #define GPIO_PJ0_U4RX 0x00080001
  42068. #define GPIO_PJ0_T1CCP0 0x00080007
  42069. #define GPIO_PJ1_U4TX 0x00080401
  42070. #define GPIO_PJ1_T1CCP1 0x00080407
  42071. #define GPIO_PJ2_U5RX 0x00080801
  42072. #define GPIO_PJ2_IDX0 0x00080805
  42073. #define GPIO_PJ2_T2CCP0 0x00080807
  42074. #define GPIO_PJ3_U5TX 0x00080C01
  42075. #define GPIO_PJ3_T2CCP1 0x00080C07
  42076. #define GPIO_PJ4_U6RX 0x00081001
  42077. #define GPIO_PJ4_T3CCP0 0x00081007
  42078. #define GPIO_PJ5_U6TX 0x00081401
  42079. #define GPIO_PJ5_T3CCP1 0x00081407
  42080. #define GPIO_PK0_SSI3CLK 0x00090002
  42081. #define GPIO_PK0_M1FAULT0 0x00090006
  42082. #define GPIO_PK1_SSI3FSS 0x00090402
  42083. #define GPIO_PK1_M1FAULT1 0x00090406
  42084. #define GPIO_PK2_SSI3RX 0x00090802
  42085. #define GPIO_PK2_M1FAULT2 0x00090806
  42086. #define GPIO_PK3_SSI3TX 0x00090C02
  42087. #define GPIO_PK3_M1FAULT3 0x00090C06
  42088. #define GPIO_PK4_U7RX 0x00091001
  42089. #define GPIO_PK4_M0FAULT0 0x00091006
  42090. #define GPIO_PK4_RTCCLK 0x00091007
  42091. #define GPIO_PK4_C0O 0x00091008
  42092. #define GPIO_PK5_U7TX 0x00091401
  42093. #define GPIO_PK5_M0FAULT1 0x00091406
  42094. #define GPIO_PK5_C1O 0x00091408
  42095. #define GPIO_PK6_M0FAULT2 0x00091806
  42096. #define GPIO_PK6_WT1CCP0 0x00091807
  42097. #define GPIO_PK6_C2O 0x00091808
  42098. #define GPIO_PK7_M0FAULT3 0x00091C06
  42099. #define GPIO_PK7_WT1CCP1 0x00091C07
  42100. #define GPIO_PL0_T0CCP0 0x000A0007
  42101. #define GPIO_PL0_WT0CCP0 0x000A0008
  42102. #define GPIO_PL1_T0CCP1 0x000A0407
  42103. #define GPIO_PL1_WT0CCP1 0x000A0408
  42104. #define GPIO_PL2_T1CCP0 0x000A0807
  42105. #define GPIO_PL2_WT1CCP0 0x000A0808
  42106. #define GPIO_PL3_T1CCP1 0x000A0C07
  42107. #define GPIO_PL3_WT1CCP1 0x000A0C08
  42108. #define GPIO_PL4_T2CCP0 0x000A1007
  42109. #define GPIO_PL4_WT2CCP0 0x000A1008
  42110. #define GPIO_PL4_LPC0FRAME_N 0x000A100F
  42111. #define GPIO_PL5_T2CCP1 0x000A1407
  42112. #define GPIO_PL5_WT2CCP1 0x000A1408
  42113. #define GPIO_PL5_LPC0RESET_N 0x000A140F
  42114. #define GPIO_PL6_T3CCP0 0x000A1807
  42115. #define GPIO_PL6_WT3CCP0 0x000A1808
  42116. #define GPIO_PL7_T3CCP1 0x000A1C07
  42117. #define GPIO_PL7_WT3CCP1 0x000A1C08
  42118. #define GPIO_PM0_T4CCP0 0x000B0007
  42119. #define GPIO_PM0_WT4CCP0 0x000B0008
  42120. #define GPIO_PM0_LPC0PD_N 0x000B000F
  42121. #define GPIO_PM1_T4CCP1 0x000B0407
  42122. #define GPIO_PM1_WT4CCP1 0x000B0408
  42123. #define GPIO_PM1_LPC0SCI_N 0x000B040F
  42124. #define GPIO_PM2_T5CCP0 0x000B0807
  42125. #define GPIO_PM2_WT5CCP0 0x000B0808
  42126. #define GPIO_PM2_LPC0CLKRUN_N 0x000B080F
  42127. #define GPIO_PM3_T5CCP1 0x000B0C07
  42128. #define GPIO_PM3_WT5CCP1 0x000B0C08
  42129. #define GPIO_PM6_M0PWM4 0x000B1802
  42130. #define GPIO_PM6_WT0CCP0 0x000B1807
  42131. #define GPIO_PM7_M0PWM5 0x000B1C02
  42132. #define GPIO_PM7_WT0CCP1 0x000B1C07
  42133. #define GPIO_PN0_CAN0RX 0x000C0001
  42134. #define GPIO_PN1_CAN0TX 0x000C0401
  42135. #define GPIO_PN2_M0PWM6 0x000C0802
  42136. #define GPIO_PN2_WT2CCP0 0x000C0807
  42137. #define GPIO_PN3_M0PWM7 0x000C0C02
  42138. #define GPIO_PN3_WT2CCP1 0x000C0C07
  42139. #define GPIO_PN4_M1PWM4 0x000C1002
  42140. #define GPIO_PN4_WT3CCP0 0x000C1007
  42141. #define GPIO_PN5_M1PWM5 0x000C1402
  42142. #define GPIO_PN5_WT3CCP1 0x000C1407
  42143. #define GPIO_PN6_M1PWM6 0x000C1802
  42144. #define GPIO_PN6_WT4CCP0 0x000C1807
  42145. #define GPIO_PN7_M1PWM7 0x000C1C02
  42146. #define GPIO_PN7_WT4CCP1 0x000C1C07
  42147. #define GPIO_PP0_M0PWM0 0x000D0001
  42148. #define GPIO_PP0_T4CCP0 0x000D0007
  42149. #define GPIO_PP1_M0PWM1 0x000D0401
  42150. #define GPIO_PP1_T4CCP1 0x000D0407
  42151. #define GPIO_PP2_M0PWM2 0x000D0801
  42152. #define GPIO_PP2_T5CCP0 0x000D0807
  42153. #define GPIO_PP3_M0PWM3 0x000D0C01
  42154. #define GPIO_PP3_T5CCP1 0x000D0C07
  42155. #define GPIO_PP4_M0PWM4 0x000D1001
  42156. #define GPIO_PP4_WT0CCP0 0x000D1007
  42157. #define GPIO_PP5_M0PWM5 0x000D1401
  42158. #define GPIO_PP5_WT0CCP1 0x000D1407
  42159. #define GPIO_PP6_M0PWM6 0x000D1801
  42160. #define GPIO_PP6_WT1CCP0 0x000D1807
  42161. #define GPIO_PP7_M0PWM7 0x000D1C01
  42162. #define GPIO_PP7_WT1CCP1 0x000D1C07
  42163. #define GPIO_PQ0_M1PWM0 0x000E0001
  42164. #define GPIO_PQ0_WT2CCP0 0x000E0007
  42165. #define GPIO_PQ1_M1PWM1 0x000E0401
  42166. #define GPIO_PQ1_WT2CCP1 0x000E0407
  42167. #define GPIO_PQ2_M1PWM2 0x000E0801
  42168. #define GPIO_PQ2_WT3CCP0 0x000E0807
  42169. #define GPIO_PQ3_M1PWM3 0x000E0C01
  42170. #define GPIO_PQ3_WT3CCP1 0x000E0C07
  42171. #define GPIO_PQ4_M1PWM4 0x000E1001
  42172. #define GPIO_PQ4_WT4CCP0 0x000E1007
  42173. #define GPIO_PQ5_M1PWM5 0x000E1401
  42174. #define GPIO_PQ5_WT4CCP1 0x000E1407
  42175. #define GPIO_PQ6_M1PWM6 0x000E1801
  42176. #define GPIO_PQ6_WT5CCP0 0x000E1807
  42177. #define GPIO_PQ7_M1PWM7 0x000E1C01
  42178. #define GPIO_PQ7_WT5CCP1 0x000E1C07
  42179. #endif // PART_LM4F232H5BB
  42180. //*****************************************************************************
  42181. //
  42182. // LM4F232H5QC Port/Pin Mapping Definitions
  42183. //
  42184. //*****************************************************************************
  42185. #ifdef PART_LM4F232H5QC
  42186. #define GPIO_PA0_U0RX 0x00000001
  42187. #define GPIO_PA0_CAN1RX 0x00000008
  42188. #define GPIO_PA1_U0TX 0x00000401
  42189. #define GPIO_PA1_CAN1TX 0x00000408
  42190. #define GPIO_PA2_SSI0CLK 0x00000802
  42191. #define GPIO_PA3_SSI0FSS 0x00000C02
  42192. #define GPIO_PA4_SSI0RX 0x00001002
  42193. #define GPIO_PA5_SSI0TX 0x00001402
  42194. #define GPIO_PA6_I2C1SCL 0x00001803
  42195. #define GPIO_PA6_M1PWM2 0x00001805
  42196. #define GPIO_PA7_I2C1SDA 0x00001C03
  42197. #define GPIO_PA7_M1PWM3 0x00001C05
  42198. #define GPIO_PB0_U1RX 0x00010001
  42199. #define GPIO_PB0_T2CCP0 0x00010007
  42200. #define GPIO_PB1_U1TX 0x00010401
  42201. #define GPIO_PB1_T2CCP1 0x00010407
  42202. #define GPIO_PB2_I2C0SCL 0x00010803
  42203. #define GPIO_PB2_T3CCP0 0x00010807
  42204. #define GPIO_PB3_I2C0SDA 0x00010C03
  42205. #define GPIO_PB3_T3CCP1 0x00010C07
  42206. #define GPIO_PB4_SSI2CLK 0x00011002
  42207. #define GPIO_PB4_M0PWM2 0x00011004
  42208. #define GPIO_PB4_CAN0RX 0x00011008
  42209. #define GPIO_PB4_T1CCP0 0x00011007
  42210. #define GPIO_PB5_SSI2FSS 0x00011402
  42211. #define GPIO_PB5_M0PWM3 0x00011404
  42212. #define GPIO_PB5_CAN0TX 0x00011408
  42213. #define GPIO_PB5_T1CCP1 0x00011407
  42214. #define GPIO_PC0_TCK 0x00020001
  42215. #define GPIO_PC0_SWCLK 0x00020001
  42216. #define GPIO_PC0_T4CCP0 0x00020007
  42217. #define GPIO_PC1_TMS 0x00020401
  42218. #define GPIO_PC1_SWDIO 0x00020401
  42219. #define GPIO_PC1_T4CCP1 0x00020407
  42220. #define GPIO_PC2_TDI 0x00020801
  42221. #define GPIO_PC2_T5CCP0 0x00020807
  42222. #define GPIO_PC3_SWO 0x00020C01
  42223. #define GPIO_PC3_TDO 0x00020C01
  42224. #define GPIO_PC3_T5CCP1 0x00020C07
  42225. #define GPIO_PC4_U4RX 0x00021001
  42226. #define GPIO_PC4_U1RX 0x00021002
  42227. #define GPIO_PC4_M0PWM6 0x00021004
  42228. #define GPIO_PC4_IDX1 0x00021006
  42229. #define GPIO_PC4_WT0CCP0 0x00021007
  42230. #define GPIO_PC4_U1RTS 0x00021008
  42231. #define GPIO_PC5_U4TX 0x00021401
  42232. #define GPIO_PC5_U1TX 0x00021402
  42233. #define GPIO_PC5_M0PWM7 0x00021404
  42234. #define GPIO_PC5_PHA1 0x00021406
  42235. #define GPIO_PC5_WT0CCP1 0x00021407
  42236. #define GPIO_PC5_U1CTS 0x00021408
  42237. #define GPIO_PC6_U3RX 0x00021801
  42238. #define GPIO_PC6_PHB1 0x00021806
  42239. #define GPIO_PC6_WT1CCP0 0x00021807
  42240. #define GPIO_PC6_USB0EPEN 0x00021808
  42241. #define GPIO_PC7_U3TX 0x00021C01
  42242. #define GPIO_PC7_USB0PFLT 0x00021C08
  42243. #define GPIO_PC7_WT1CCP1 0x00021C07
  42244. #define GPIO_PD0_SSI3CLK 0x00030001
  42245. #define GPIO_PD0_SSI1CLK 0x00030002
  42246. #define GPIO_PD0_I2C3SCL 0x00030003
  42247. #define GPIO_PD0_M0PWM6 0x00030004
  42248. #define GPIO_PD0_M1PWM0 0x00030005
  42249. #define GPIO_PD0_WT2CCP0 0x00030007
  42250. #define GPIO_PD1_SSI3FSS 0x00030401
  42251. #define GPIO_PD1_SSI1FSS 0x00030402
  42252. #define GPIO_PD1_I2C3SDA 0x00030403
  42253. #define GPIO_PD1_M0PWM7 0x00030404
  42254. #define GPIO_PD1_M1PWM1 0x00030405
  42255. #define GPIO_PD1_WT2CCP1 0x00030407
  42256. #define GPIO_PD2_SSI3RX 0x00030801
  42257. #define GPIO_PD2_SSI1RX 0x00030802
  42258. #define GPIO_PD2_M0FAULT0 0x00030804
  42259. #define GPIO_PD2_WT3CCP0 0x00030807
  42260. #define GPIO_PD2_USB0EPEN 0x00030808
  42261. #define GPIO_PD3_SSI3TX 0x00030C01
  42262. #define GPIO_PD3_SSI1TX 0x00030C02
  42263. #define GPIO_PD3_IDX0 0x00030C06
  42264. #define GPIO_PD3_WT3CCP1 0x00030C07
  42265. #define GPIO_PD3_USB0PFLT 0x00030C08
  42266. #define GPIO_PD4_U6RX 0x00031001
  42267. #define GPIO_PD4_WT4CCP0 0x00031007
  42268. #define GPIO_PD5_U6TX 0x00031401
  42269. #define GPIO_PD5_WT4CCP1 0x00031407
  42270. #define GPIO_PD6_U2RX 0x00031801
  42271. #define GPIO_PD6_M0FAULT0 0x00031804
  42272. #define GPIO_PD6_PHA0 0x00031806
  42273. #define GPIO_PD6_WT5CCP0 0x00031807
  42274. #define GPIO_PD7_U2TX 0x00031C01
  42275. #define GPIO_PD7_M0FAULT1 0x00031C04
  42276. #define GPIO_PD7_PHB0 0x00031C06
  42277. #define GPIO_PD7_WT5CCP1 0x00031C07
  42278. #define GPIO_PD7_NMI 0x00031C08
  42279. #define GPIO_PE0_U7RX 0x00040001
  42280. #define GPIO_PE1_U7TX 0x00040401
  42281. #define GPIO_PE4_U5RX 0x00041001
  42282. #define GPIO_PE4_I2C2SCL 0x00041003
  42283. #define GPIO_PE4_M0PWM4 0x00041004
  42284. #define GPIO_PE4_M1PWM2 0x00041005
  42285. #define GPIO_PE4_CAN0RX 0x00041008
  42286. #define GPIO_PE5_U5TX 0x00041401
  42287. #define GPIO_PE5_I2C2SDA 0x00041403
  42288. #define GPIO_PE5_M0PWM5 0x00041404
  42289. #define GPIO_PE5_M1PWM3 0x00041405
  42290. #define GPIO_PE5_CAN0TX 0x00041408
  42291. #define GPIO_PE6_CAN1RX 0x00041808
  42292. #define GPIO_PE7_U1RI 0x00041C01
  42293. #define GPIO_PE7_CAN1TX 0x00041C08
  42294. #define GPIO_PF0_U1RTS 0x00050001
  42295. #define GPIO_PF0_SSI1RX 0x00050002
  42296. #define GPIO_PF0_CAN0RX 0x00050003
  42297. #define GPIO_PF0_M1PWM4 0x00050005
  42298. #define GPIO_PF0_PHA0 0x00050006
  42299. #define GPIO_PF0_T0CCP0 0x00050007
  42300. #define GPIO_PF0_NMI 0x00050008
  42301. #define GPIO_PF0_C0O 0x00050009
  42302. #define GPIO_PF0_TRD2 0x0005000E
  42303. #define GPIO_PF1_U1CTS 0x00050401
  42304. #define GPIO_PF1_SSI1TX 0x00050402
  42305. #define GPIO_PF1_M1PWM5 0x00050405
  42306. #define GPIO_PF1_PHB0 0x00050406
  42307. #define GPIO_PF1_T0CCP1 0x00050407
  42308. #define GPIO_PF1_C1O 0x00050409
  42309. #define GPIO_PF1_TRD1 0x0005040E
  42310. #define GPIO_PF2_U1DCD 0x00050801
  42311. #define GPIO_PF2_M0FAULT0 0x00050804
  42312. #define GPIO_PF2_M1PWM6 0x00050805
  42313. #define GPIO_PF2_T1CCP0 0x00050807
  42314. #define GPIO_PF2_SSI1CLK 0x00050802
  42315. #define GPIO_PF2_C2O 0x00050809
  42316. #define GPIO_PF2_TRD0 0x0005080E
  42317. #define GPIO_PF3_U1DSR 0x00050C01
  42318. #define GPIO_PF3_CAN0TX 0x00050C03
  42319. #define GPIO_PF3_M0FAULT1 0x00050C04
  42320. #define GPIO_PF3_M1PWM7 0x00050C05
  42321. #define GPIO_PF3_T1CCP1 0x00050C07
  42322. #define GPIO_PF3_SSI1FSS 0x00050C02
  42323. #define GPIO_PF3_TRCLK 0x00050C0E
  42324. #define GPIO_PF4_U1DTR 0x00051001
  42325. #define GPIO_PF4_M0FAULT2 0x00051004
  42326. #define GPIO_PF4_M1FAULT0 0x00051005
  42327. #define GPIO_PF4_IDX0 0x00051006
  42328. #define GPIO_PF4_T2CCP0 0x00051007
  42329. #define GPIO_PF4_USB0EPEN 0x00051008
  42330. #define GPIO_PF4_TRD3 0x0005100E
  42331. #define GPIO_PF5_M0FAULT3 0x00051404
  42332. #define GPIO_PF5_T2CCP1 0x00051407
  42333. #define GPIO_PF5_USB0PFLT 0x00051408
  42334. #define GPIO_PF6_I2C2SCL 0x00051803
  42335. #define GPIO_PF6_T3CCP0 0x00051807
  42336. #define GPIO_PF7_I2C2SDA 0x00051C03
  42337. #define GPIO_PF7_M1FAULT0 0x00051C05
  42338. #define GPIO_PF7_T3CCP1 0x00051C07
  42339. #define GPIO_PG0_I2C3SCL 0x00060003
  42340. #define GPIO_PG0_M1FAULT1 0x00060005
  42341. #define GPIO_PG0_PHA1 0x00060006
  42342. #define GPIO_PG0_T4CCP0 0x00060007
  42343. #define GPIO_PG0_LPC0PD_N 0x0006000F
  42344. #define GPIO_PG1_I2C3SDA 0x00060403
  42345. #define GPIO_PG1_M1FAULT2 0x00060405
  42346. #define GPIO_PG1_PHB1 0x00060406
  42347. #define GPIO_PG1_T4CCP1 0x00060407
  42348. #define GPIO_PG1_LPC0SCI_N 0x0006040F
  42349. #define GPIO_PG2_I2C4SCL 0x00060803
  42350. #define GPIO_PG2_M0FAULT1 0x00060804
  42351. #define GPIO_PG2_M1PWM0 0x00060805
  42352. #define GPIO_PG2_T5CCP0 0x00060807
  42353. #define GPIO_PG2_LPC0CLKRUN_N 0x0006080F
  42354. #define GPIO_PG3_I2C4SDA 0x00060C03
  42355. #define GPIO_PG3_M0FAULT2 0x00060C04
  42356. #define GPIO_PG3_M1PWM1 0x00060C05
  42357. #define GPIO_PG3_PHA1 0x00060C06
  42358. #define GPIO_PG3_T5CCP1 0x00060C07
  42359. #define GPIO_PG4_U2RX 0x00061001
  42360. #define GPIO_PG4_I2C1SCL 0x00061003
  42361. #define GPIO_PG4_M0PWM4 0x00061004
  42362. #define GPIO_PG4_M1PWM2 0x00061005
  42363. #define GPIO_PG4_PHB1 0x00061006
  42364. #define GPIO_PG4_WT0CCP0 0x00061007
  42365. #define GPIO_PG4_USB0EPEN 0x00061008
  42366. #define GPIO_PG5_U2TX 0x00061401
  42367. #define GPIO_PG5_I2C1SDA 0x00061403
  42368. #define GPIO_PG5_M0PWM5 0x00061404
  42369. #define GPIO_PG5_M1PWM3 0x00061405
  42370. #define GPIO_PG5_IDX1 0x00061406
  42371. #define GPIO_PG5_WT0CCP1 0x00061407
  42372. #define GPIO_PG5_USB0PFLT 0x00061408
  42373. #define GPIO_PG6_I2C5SCL 0x00061803
  42374. #define GPIO_PG6_M0PWM6 0x00061804
  42375. #define GPIO_PG6_WT1CCP0 0x00061807
  42376. #define GPIO_PG7_I2C5SDA 0x00061C03
  42377. #define GPIO_PG7_M0PWM7 0x00061C04
  42378. #define GPIO_PG7_IDX1 0x00061C05
  42379. #define GPIO_PG7_WT1CCP1 0x00061C07
  42380. #define GPIO_PH0_SSI3CLK 0x00070002
  42381. #define GPIO_PH0_M0PWM0 0x00070004
  42382. #define GPIO_PH0_M0FAULT0 0x00070006
  42383. #define GPIO_PH0_WT2CCP0 0x00070007
  42384. #define GPIO_PH1_SSI3FSS 0x00070402
  42385. #define GPIO_PH1_M0PWM1 0x00070404
  42386. #define GPIO_PH1_IDX0 0x00070405
  42387. #define GPIO_PH1_M0FAULT1 0x00070406
  42388. #define GPIO_PH1_WT2CCP1 0x00070407
  42389. #define GPIO_PH2_SSI3RX 0x00070802
  42390. #define GPIO_PH2_M0PWM2 0x00070804
  42391. #define GPIO_PH2_M0FAULT2 0x00070806
  42392. #define GPIO_PH2_WT5CCP0 0x00070807
  42393. #define GPIO_PH3_SSI3TX 0x00070C02
  42394. #define GPIO_PH3_M0PWM3 0x00070C04
  42395. #define GPIO_PH3_M0FAULT3 0x00070C06
  42396. #define GPIO_PH3_WT5CCP1 0x00070C07
  42397. #define GPIO_PH4_SSI2CLK 0x00071002
  42398. #define GPIO_PH4_M0PWM4 0x00071004
  42399. #define GPIO_PH4_PHA0 0x00071005
  42400. #define GPIO_PH4_WT3CCP0 0x00071007
  42401. #define GPIO_PH5_SSI2FSS 0x00071402
  42402. #define GPIO_PH5_M0PWM5 0x00071404
  42403. #define GPIO_PH5_PHB0 0x00071405
  42404. #define GPIO_PH5_WT3CCP1 0x00071407
  42405. #define GPIO_PH6_SSI2RX 0x00071802
  42406. #define GPIO_PH6_M0PWM6 0x00071804
  42407. #define GPIO_PH6_WT4CCP0 0x00071807
  42408. #define GPIO_PH7_SSI2TX 0x00071C02
  42409. #define GPIO_PH7_M0PWM7 0x00071C04
  42410. #define GPIO_PH7_WT4CCP1 0x00071C07
  42411. #define GPIO_PJ0_U4RX 0x00080001
  42412. #define GPIO_PJ0_T1CCP0 0x00080007
  42413. #define GPIO_PJ1_U4TX 0x00080401
  42414. #define GPIO_PJ1_T1CCP1 0x00080407
  42415. #define GPIO_PJ2_U5RX 0x00080801
  42416. #define GPIO_PJ2_IDX0 0x00080805
  42417. #define GPIO_PJ2_T2CCP0 0x00080807
  42418. #define GPIO_PK0_SSI3CLK 0x00090002
  42419. #define GPIO_PK0_M1FAULT0 0x00090006
  42420. #define GPIO_PK1_SSI3FSS 0x00090402
  42421. #define GPIO_PK1_M1FAULT1 0x00090406
  42422. #define GPIO_PK2_SSI3RX 0x00090802
  42423. #define GPIO_PK2_M1FAULT2 0x00090806
  42424. #define GPIO_PK3_SSI3TX 0x00090C02
  42425. #define GPIO_PK3_M1FAULT3 0x00090C06
  42426. #endif // PART_LM4F232H5QC
  42427. //*****************************************************************************
  42428. //
  42429. // LM4F232H5QD Port/Pin Mapping Definitions
  42430. //
  42431. //*****************************************************************************
  42432. #ifdef PART_LM4F232H5QD
  42433. #define GPIO_PA0_U0RX 0x00000001
  42434. #define GPIO_PA0_CAN1RX 0x00000008
  42435. #define GPIO_PA1_U0TX 0x00000401
  42436. #define GPIO_PA1_CAN1TX 0x00000408
  42437. #define GPIO_PA2_SSI0CLK 0x00000802
  42438. #define GPIO_PA3_SSI0FSS 0x00000C02
  42439. #define GPIO_PA4_SSI0RX 0x00001002
  42440. #define GPIO_PA5_SSI0TX 0x00001402
  42441. #define GPIO_PA6_I2C1SCL 0x00001803
  42442. #define GPIO_PA6_M1PWM2 0x00001805
  42443. #define GPIO_PA7_I2C1SDA 0x00001C03
  42444. #define GPIO_PA7_M1PWM3 0x00001C05
  42445. #define GPIO_PB0_U1RX 0x00010001
  42446. #define GPIO_PB0_T2CCP0 0x00010007
  42447. #define GPIO_PB1_U1TX 0x00010401
  42448. #define GPIO_PB1_T2CCP1 0x00010407
  42449. #define GPIO_PB2_I2C0SCL 0x00010803
  42450. #define GPIO_PB2_T3CCP0 0x00010807
  42451. #define GPIO_PB3_I2C0SDA 0x00010C03
  42452. #define GPIO_PB3_T3CCP1 0x00010C07
  42453. #define GPIO_PB4_SSI2CLK 0x00011002
  42454. #define GPIO_PB4_M0PWM2 0x00011004
  42455. #define GPIO_PB4_CAN0RX 0x00011008
  42456. #define GPIO_PB4_T1CCP0 0x00011007
  42457. #define GPIO_PB5_SSI2FSS 0x00011402
  42458. #define GPIO_PB5_M0PWM3 0x00011404
  42459. #define GPIO_PB5_CAN0TX 0x00011408
  42460. #define GPIO_PB5_T1CCP1 0x00011407
  42461. #define GPIO_PC0_TCK 0x00020001
  42462. #define GPIO_PC0_SWCLK 0x00020001
  42463. #define GPIO_PC0_T4CCP0 0x00020007
  42464. #define GPIO_PC1_TMS 0x00020401
  42465. #define GPIO_PC1_SWDIO 0x00020401
  42466. #define GPIO_PC1_T4CCP1 0x00020407
  42467. #define GPIO_PC2_TDI 0x00020801
  42468. #define GPIO_PC2_T5CCP0 0x00020807
  42469. #define GPIO_PC3_SWO 0x00020C01
  42470. #define GPIO_PC3_TDO 0x00020C01
  42471. #define GPIO_PC3_T5CCP1 0x00020C07
  42472. #define GPIO_PC4_U4RX 0x00021001
  42473. #define GPIO_PC4_U1RX 0x00021002
  42474. #define GPIO_PC4_M0PWM6 0x00021004
  42475. #define GPIO_PC4_IDX1 0x00021006
  42476. #define GPIO_PC4_WT0CCP0 0x00021007
  42477. #define GPIO_PC4_U1RTS 0x00021008
  42478. #define GPIO_PC5_U4TX 0x00021401
  42479. #define GPIO_PC5_U1TX 0x00021402
  42480. #define GPIO_PC5_M0PWM7 0x00021404
  42481. #define GPIO_PC5_PHA1 0x00021406
  42482. #define GPIO_PC5_WT0CCP1 0x00021407
  42483. #define GPIO_PC5_U1CTS 0x00021408
  42484. #define GPIO_PC6_U3RX 0x00021801
  42485. #define GPIO_PC6_PHB1 0x00021806
  42486. #define GPIO_PC6_WT1CCP0 0x00021807
  42487. #define GPIO_PC6_USB0EPEN 0x00021808
  42488. #define GPIO_PC7_U3TX 0x00021C01
  42489. #define GPIO_PC7_USB0PFLT 0x00021C08
  42490. #define GPIO_PC7_WT1CCP1 0x00021C07
  42491. #define GPIO_PD0_SSI3CLK 0x00030001
  42492. #define GPIO_PD0_SSI1CLK 0x00030002
  42493. #define GPIO_PD0_I2C3SCL 0x00030003
  42494. #define GPIO_PD0_M0PWM6 0x00030004
  42495. #define GPIO_PD0_M1PWM0 0x00030005
  42496. #define GPIO_PD0_WT2CCP0 0x00030007
  42497. #define GPIO_PD1_SSI3FSS 0x00030401
  42498. #define GPIO_PD1_SSI1FSS 0x00030402
  42499. #define GPIO_PD1_I2C3SDA 0x00030403
  42500. #define GPIO_PD1_M0PWM7 0x00030404
  42501. #define GPIO_PD1_M1PWM1 0x00030405
  42502. #define GPIO_PD1_WT2CCP1 0x00030407
  42503. #define GPIO_PD2_SSI3RX 0x00030801
  42504. #define GPIO_PD2_SSI1RX 0x00030802
  42505. #define GPIO_PD2_M0FAULT0 0x00030804
  42506. #define GPIO_PD2_WT3CCP0 0x00030807
  42507. #define GPIO_PD2_USB0EPEN 0x00030808
  42508. #define GPIO_PD3_SSI3TX 0x00030C01
  42509. #define GPIO_PD3_SSI1TX 0x00030C02
  42510. #define GPIO_PD3_IDX0 0x00030C06
  42511. #define GPIO_PD3_WT3CCP1 0x00030C07
  42512. #define GPIO_PD3_USB0PFLT 0x00030C08
  42513. #define GPIO_PD4_U6RX 0x00031001
  42514. #define GPIO_PD4_WT4CCP0 0x00031007
  42515. #define GPIO_PD5_U6TX 0x00031401
  42516. #define GPIO_PD5_WT4CCP1 0x00031407
  42517. #define GPIO_PD6_U2RX 0x00031801
  42518. #define GPIO_PD6_M0FAULT0 0x00031804
  42519. #define GPIO_PD6_PHA0 0x00031806
  42520. #define GPIO_PD6_WT5CCP0 0x00031807
  42521. #define GPIO_PD7_U2TX 0x00031C01
  42522. #define GPIO_PD7_M0FAULT1 0x00031C04
  42523. #define GPIO_PD7_PHB0 0x00031C06
  42524. #define GPIO_PD7_WT5CCP1 0x00031C07
  42525. #define GPIO_PD7_NMI 0x00031C08
  42526. #define GPIO_PE0_U7RX 0x00040001
  42527. #define GPIO_PE1_U7TX 0x00040401
  42528. #define GPIO_PE4_U5RX 0x00041001
  42529. #define GPIO_PE4_I2C2SCL 0x00041003
  42530. #define GPIO_PE4_M0PWM4 0x00041004
  42531. #define GPIO_PE4_M1PWM2 0x00041005
  42532. #define GPIO_PE4_CAN0RX 0x00041008
  42533. #define GPIO_PE5_U5TX 0x00041401
  42534. #define GPIO_PE5_I2C2SDA 0x00041403
  42535. #define GPIO_PE5_M0PWM5 0x00041404
  42536. #define GPIO_PE5_M1PWM3 0x00041405
  42537. #define GPIO_PE5_CAN0TX 0x00041408
  42538. #define GPIO_PE6_CAN1RX 0x00041808
  42539. #define GPIO_PE7_U1RI 0x00041C01
  42540. #define GPIO_PE7_CAN1TX 0x00041C08
  42541. #define GPIO_PF0_U1RTS 0x00050001
  42542. #define GPIO_PF0_SSI1RX 0x00050002
  42543. #define GPIO_PF0_CAN0RX 0x00050003
  42544. #define GPIO_PF0_M1PWM4 0x00050005
  42545. #define GPIO_PF0_PHA0 0x00050006
  42546. #define GPIO_PF0_T0CCP0 0x00050007
  42547. #define GPIO_PF0_NMI 0x00050008
  42548. #define GPIO_PF0_C0O 0x00050009
  42549. #define GPIO_PF0_TRD2 0x0005000E
  42550. #define GPIO_PF1_U1CTS 0x00050401
  42551. #define GPIO_PF1_SSI1TX 0x00050402
  42552. #define GPIO_PF1_M1PWM5 0x00050405
  42553. #define GPIO_PF1_PHB0 0x00050406
  42554. #define GPIO_PF1_T0CCP1 0x00050407
  42555. #define GPIO_PF1_C1O 0x00050409
  42556. #define GPIO_PF1_TRD1 0x0005040E
  42557. #define GPIO_PF2_U1DCD 0x00050801
  42558. #define GPIO_PF2_M0FAULT0 0x00050804
  42559. #define GPIO_PF2_M1PWM6 0x00050805
  42560. #define GPIO_PF2_T1CCP0 0x00050807
  42561. #define GPIO_PF2_SSI1CLK 0x00050802
  42562. #define GPIO_PF2_C2O 0x00050809
  42563. #define GPIO_PF2_TRD0 0x0005080E
  42564. #define GPIO_PF3_U1DSR 0x00050C01
  42565. #define GPIO_PF3_CAN0TX 0x00050C03
  42566. #define GPIO_PF3_M0FAULT1 0x00050C04
  42567. #define GPIO_PF3_M1PWM7 0x00050C05
  42568. #define GPIO_PF3_T1CCP1 0x00050C07
  42569. #define GPIO_PF3_SSI1FSS 0x00050C02
  42570. #define GPIO_PF3_TRCLK 0x00050C0E
  42571. #define GPIO_PF4_U1DTR 0x00051001
  42572. #define GPIO_PF4_M0FAULT2 0x00051004
  42573. #define GPIO_PF4_M1FAULT0 0x00051005
  42574. #define GPIO_PF4_IDX0 0x00051006
  42575. #define GPIO_PF4_T2CCP0 0x00051007
  42576. #define GPIO_PF4_USB0EPEN 0x00051008
  42577. #define GPIO_PF4_TRD3 0x0005100E
  42578. #define GPIO_PF5_M0FAULT3 0x00051404
  42579. #define GPIO_PF5_T2CCP1 0x00051407
  42580. #define GPIO_PF5_USB0PFLT 0x00051408
  42581. #define GPIO_PF6_I2C2SCL 0x00051803
  42582. #define GPIO_PF6_T3CCP0 0x00051807
  42583. #define GPIO_PF7_I2C2SDA 0x00051C03
  42584. #define GPIO_PF7_M1FAULT0 0x00051C05
  42585. #define GPIO_PF7_T3CCP1 0x00051C07
  42586. #define GPIO_PG0_I2C3SCL 0x00060003
  42587. #define GPIO_PG0_M1FAULT1 0x00060005
  42588. #define GPIO_PG0_PHA1 0x00060006
  42589. #define GPIO_PG0_T4CCP0 0x00060007
  42590. #define GPIO_PG1_I2C3SDA 0x00060403
  42591. #define GPIO_PG1_M1FAULT2 0x00060405
  42592. #define GPIO_PG1_PHB1 0x00060406
  42593. #define GPIO_PG1_T4CCP1 0x00060407
  42594. #define GPIO_PG2_I2C4SCL 0x00060803
  42595. #define GPIO_PG2_M0FAULT1 0x00060804
  42596. #define GPIO_PG2_M1PWM0 0x00060805
  42597. #define GPIO_PG2_T5CCP0 0x00060807
  42598. #define GPIO_PG3_I2C4SDA 0x00060C03
  42599. #define GPIO_PG3_M0FAULT2 0x00060C04
  42600. #define GPIO_PG3_M1PWM1 0x00060C05
  42601. #define GPIO_PG3_PHA1 0x00060C06
  42602. #define GPIO_PG3_T5CCP1 0x00060C07
  42603. #define GPIO_PG4_U2RX 0x00061001
  42604. #define GPIO_PG4_I2C1SCL 0x00061003
  42605. #define GPIO_PG4_M0PWM4 0x00061004
  42606. #define GPIO_PG4_M1PWM2 0x00061005
  42607. #define GPIO_PG4_PHB1 0x00061006
  42608. #define GPIO_PG4_WT0CCP0 0x00061007
  42609. #define GPIO_PG4_USB0EPEN 0x00061008
  42610. #define GPIO_PG5_U2TX 0x00061401
  42611. #define GPIO_PG5_I2C1SDA 0x00061403
  42612. #define GPIO_PG5_M0PWM5 0x00061404
  42613. #define GPIO_PG5_M1PWM3 0x00061405
  42614. #define GPIO_PG5_IDX1 0x00061406
  42615. #define GPIO_PG5_WT0CCP1 0x00061407
  42616. #define GPIO_PG5_USB0PFLT 0x00061408
  42617. #define GPIO_PG6_I2C5SCL 0x00061803
  42618. #define GPIO_PG6_M0PWM6 0x00061804
  42619. #define GPIO_PG6_WT1CCP0 0x00061807
  42620. #define GPIO_PG7_I2C5SDA 0x00061C03
  42621. #define GPIO_PG7_M0PWM7 0x00061C04
  42622. #define GPIO_PG7_IDX1 0x00061C05
  42623. #define GPIO_PG7_WT1CCP1 0x00061C07
  42624. #define GPIO_PH0_SSI3CLK 0x00070002
  42625. #define GPIO_PH0_M0PWM0 0x00070004
  42626. #define GPIO_PH0_M0FAULT0 0x00070006
  42627. #define GPIO_PH0_WT2CCP0 0x00070007
  42628. #define GPIO_PH1_SSI3FSS 0x00070402
  42629. #define GPIO_PH1_M0PWM1 0x00070404
  42630. #define GPIO_PH1_IDX0 0x00070405
  42631. #define GPIO_PH1_M0FAULT1 0x00070406
  42632. #define GPIO_PH1_WT2CCP1 0x00070407
  42633. #define GPIO_PH2_SSI3RX 0x00070802
  42634. #define GPIO_PH2_M0PWM2 0x00070804
  42635. #define GPIO_PH2_M0FAULT2 0x00070806
  42636. #define GPIO_PH2_WT5CCP0 0x00070807
  42637. #define GPIO_PH3_SSI3TX 0x00070C02
  42638. #define GPIO_PH3_M0PWM3 0x00070C04
  42639. #define GPIO_PH3_M0FAULT3 0x00070C06
  42640. #define GPIO_PH3_WT5CCP1 0x00070C07
  42641. #define GPIO_PH4_SSI2CLK 0x00071002
  42642. #define GPIO_PH4_M0PWM4 0x00071004
  42643. #define GPIO_PH4_PHA0 0x00071005
  42644. #define GPIO_PH4_WT3CCP0 0x00071007
  42645. #define GPIO_PH5_SSI2FSS 0x00071402
  42646. #define GPIO_PH5_M0PWM5 0x00071404
  42647. #define GPIO_PH5_PHB0 0x00071405
  42648. #define GPIO_PH5_WT3CCP1 0x00071407
  42649. #define GPIO_PH6_SSI2RX 0x00071802
  42650. #define GPIO_PH6_M0PWM6 0x00071804
  42651. #define GPIO_PH6_WT4CCP0 0x00071807
  42652. #define GPIO_PH7_SSI2TX 0x00071C02
  42653. #define GPIO_PH7_M0PWM7 0x00071C04
  42654. #define GPIO_PH7_WT4CCP1 0x00071C07
  42655. #define GPIO_PJ0_U4RX 0x00080001
  42656. #define GPIO_PJ0_T1CCP0 0x00080007
  42657. #define GPIO_PJ1_U4TX 0x00080401
  42658. #define GPIO_PJ1_T1CCP1 0x00080407
  42659. #define GPIO_PJ2_U5RX 0x00080801
  42660. #define GPIO_PJ2_IDX0 0x00080805
  42661. #define GPIO_PJ2_T2CCP0 0x00080807
  42662. #define GPIO_PJ3_U5TX 0x00080C01
  42663. #define GPIO_PJ3_T2CCP1 0x00080C07
  42664. #define GPIO_PJ4_U6RX 0x00081001
  42665. #define GPIO_PJ4_T3CCP0 0x00081007
  42666. #define GPIO_PJ5_U6TX 0x00081401
  42667. #define GPIO_PJ5_T3CCP1 0x00081407
  42668. #define GPIO_PK0_SSI3CLK 0x00090002
  42669. #define GPIO_PK0_M1FAULT0 0x00090006
  42670. #define GPIO_PK1_SSI3FSS 0x00090402
  42671. #define GPIO_PK1_M1FAULT1 0x00090406
  42672. #define GPIO_PK2_SSI3RX 0x00090802
  42673. #define GPIO_PK2_M1FAULT2 0x00090806
  42674. #define GPIO_PK3_SSI3TX 0x00090C02
  42675. #define GPIO_PK3_M1FAULT3 0x00090C06
  42676. #define GPIO_PK4_U7RX 0x00091001
  42677. #define GPIO_PK4_M0FAULT0 0x00091006
  42678. #define GPIO_PK4_RTCCLK 0x00091007
  42679. #define GPIO_PK4_C0O 0x00091008
  42680. #define GPIO_PK5_U7TX 0x00091401
  42681. #define GPIO_PK5_M0FAULT1 0x00091406
  42682. #define GPIO_PK5_C1O 0x00091408
  42683. #define GPIO_PK6_M0FAULT2 0x00091806
  42684. #define GPIO_PK6_WT1CCP0 0x00091807
  42685. #define GPIO_PK6_C2O 0x00091808
  42686. #define GPIO_PK7_M0FAULT3 0x00091C06
  42687. #define GPIO_PK7_WT1CCP1 0x00091C07
  42688. #define GPIO_PL0_T0CCP0 0x000A0007
  42689. #define GPIO_PL0_WT0CCP0 0x000A0008
  42690. #define GPIO_PL1_T0CCP1 0x000A0407
  42691. #define GPIO_PL1_WT0CCP1 0x000A0408
  42692. #define GPIO_PL2_T1CCP0 0x000A0807
  42693. #define GPIO_PL2_WT1CCP0 0x000A0808
  42694. #define GPIO_PL3_T1CCP1 0x000A0C07
  42695. #define GPIO_PL3_WT1CCP1 0x000A0C08
  42696. #define GPIO_PL4_T2CCP0 0x000A1007
  42697. #define GPIO_PL4_WT2CCP0 0x000A1008
  42698. #define GPIO_PL4_LPC0FRAME_N 0x000A100F
  42699. #define GPIO_PL5_T2CCP1 0x000A1407
  42700. #define GPIO_PL5_WT2CCP1 0x000A1408
  42701. #define GPIO_PL5_LPC0RESET_N 0x000A140F
  42702. #define GPIO_PL6_T3CCP0 0x000A1807
  42703. #define GPIO_PL6_WT3CCP0 0x000A1808
  42704. #define GPIO_PL7_T3CCP1 0x000A1C07
  42705. #define GPIO_PL7_WT3CCP1 0x000A1C08
  42706. #define GPIO_PM0_T4CCP0 0x000B0007
  42707. #define GPIO_PM0_WT4CCP0 0x000B0008
  42708. #define GPIO_PM0_LPC0PD_N 0x000B000F
  42709. #define GPIO_PM1_T4CCP1 0x000B0407
  42710. #define GPIO_PM1_WT4CCP1 0x000B0408
  42711. #define GPIO_PM1_LPC0SCI_N 0x000B040F
  42712. #define GPIO_PM2_T5CCP0 0x000B0807
  42713. #define GPIO_PM2_WT5CCP0 0x000B0808
  42714. #define GPIO_PM2_LPC0CLKRUN_N 0x000B080F
  42715. #define GPIO_PM3_T5CCP1 0x000B0C07
  42716. #define GPIO_PM3_WT5CCP1 0x000B0C08
  42717. #define GPIO_PM6_M0PWM4 0x000B1802
  42718. #define GPIO_PM6_WT0CCP0 0x000B1807
  42719. #define GPIO_PM7_M0PWM5 0x000B1C02
  42720. #define GPIO_PM7_WT0CCP1 0x000B1C07
  42721. #define GPIO_PN0_CAN0RX 0x000C0001
  42722. #define GPIO_PN1_CAN0TX 0x000C0401
  42723. #define GPIO_PN2_M0PWM6 0x000C0802
  42724. #define GPIO_PN2_WT2CCP0 0x000C0807
  42725. #define GPIO_PN3_M0PWM7 0x000C0C02
  42726. #define GPIO_PN3_WT2CCP1 0x000C0C07
  42727. #define GPIO_PN4_M1PWM4 0x000C1002
  42728. #define GPIO_PN4_WT3CCP0 0x000C1007
  42729. #define GPIO_PN5_M1PWM5 0x000C1402
  42730. #define GPIO_PN5_WT3CCP1 0x000C1407
  42731. #define GPIO_PN6_M1PWM6 0x000C1802
  42732. #define GPIO_PN6_WT4CCP0 0x000C1807
  42733. #define GPIO_PN7_M1PWM7 0x000C1C02
  42734. #define GPIO_PN7_WT4CCP1 0x000C1C07
  42735. #define GPIO_PP0_M0PWM0 0x000D0001
  42736. #define GPIO_PP0_T4CCP0 0x000D0007
  42737. #define GPIO_PP1_M0PWM1 0x000D0401
  42738. #define GPIO_PP1_T4CCP1 0x000D0407
  42739. #define GPIO_PP2_M0PWM2 0x000D0801
  42740. #define GPIO_PP2_T5CCP0 0x000D0807
  42741. #endif // PART_LM4F232H5QD
  42742. //*****************************************************************************
  42743. //
  42744. // LM4FS1AH5BB Port/Pin Mapping Definitions
  42745. //
  42746. //*****************************************************************************
  42747. #ifdef PART_LM4FS1AH5BB
  42748. #define GPIO_PA0_U0RX 0x00000001
  42749. #define GPIO_PA1_U0TX 0x00000401
  42750. #define GPIO_PA2_SSI0CLK 0x00000802
  42751. #define GPIO_PA3_SSI0FSS 0x00000C02
  42752. #define GPIO_PA4_SSI0RX 0x00001002
  42753. #define GPIO_PA5_SSI0TX 0x00001402
  42754. #define GPIO_PA6_I2C1SCL 0x00001803
  42755. #define GPIO_PA7_I2C1SDA 0x00001C03
  42756. #define GPIO_PB0_U1RX 0x00010001
  42757. #define GPIO_PB0_T2CCP0 0x00010007
  42758. #define GPIO_PB1_U1TX 0x00010401
  42759. #define GPIO_PB1_T2CCP1 0x00010407
  42760. #define GPIO_PB2_I2C0SCL 0x00010803
  42761. #define GPIO_PB2_T3CCP0 0x00010807
  42762. #define GPIO_PB3_I2C0SDA 0x00010C03
  42763. #define GPIO_PB3_T3CCP1 0x00010C07
  42764. #define GPIO_PB4_T1CCP0 0x00011007
  42765. #define GPIO_PB5_T1CCP1 0x00011407
  42766. #define GPIO_PB6_I2C5SCL 0x00011803
  42767. #define GPIO_PB6_T0CCP0 0x00011807
  42768. #define GPIO_PB7_I2C5SDA 0x00011C03
  42769. #define GPIO_PB7_T0CCP1 0x00011C07
  42770. #define GPIO_PC0_TCK 0x00020001
  42771. #define GPIO_PC0_SWCLK 0x00020001
  42772. #define GPIO_PC0_T4CCP0 0x00020007
  42773. #define GPIO_PC1_TMS 0x00020401
  42774. #define GPIO_PC1_SWDIO 0x00020401
  42775. #define GPIO_PC1_T4CCP1 0x00020407
  42776. #define GPIO_PC2_TDI 0x00020801
  42777. #define GPIO_PC2_T5CCP0 0x00020807
  42778. #define GPIO_PC3_SWO 0x00020C01
  42779. #define GPIO_PC3_TDO 0x00020C01
  42780. #define GPIO_PC3_T5CCP1 0x00020C07
  42781. #define GPIO_PC4_U4RX 0x00021001
  42782. #define GPIO_PC4_U1RX 0x00021002
  42783. #define GPIO_PC4_WT0CCP0 0x00021007
  42784. #define GPIO_PC5_U4TX 0x00021401
  42785. #define GPIO_PC5_U1TX 0x00021402
  42786. #define GPIO_PC5_WT0CCP1 0x00021407
  42787. #define GPIO_PC6_U3RX 0x00021801
  42788. #define GPIO_PC6_WT1CCP0 0x00021807
  42789. #define GPIO_PC7_U3TX 0x00021C01
  42790. #define GPIO_PC7_WT1CCP1 0x00021C07
  42791. #define GPIO_PD0_SSI1CLK 0x00030002
  42792. #define GPIO_PD0_I2C3SCL 0x00030003
  42793. #define GPIO_PD0_WT2CCP0 0x00030007
  42794. #define GPIO_PD1_SSI1FSS 0x00030402
  42795. #define GPIO_PD1_I2C3SDA 0x00030403
  42796. #define GPIO_PD1_WT2CCP1 0x00030407
  42797. #define GPIO_PD2_SSI1RX 0x00030802
  42798. #define GPIO_PD2_WT3CCP0 0x00030807
  42799. #define GPIO_PD3_SSI1TX 0x00030C02
  42800. #define GPIO_PD3_WT3CCP1 0x00030C07
  42801. #define GPIO_PD4_WT4CCP0 0x00031007
  42802. #define GPIO_PD5_WT4CCP1 0x00031407
  42803. #define GPIO_PD6_U2RX 0x00031801
  42804. #define GPIO_PD6_WT5CCP0 0x00031807
  42805. #define GPIO_PD7_U2TX 0x00031C01
  42806. #define GPIO_PD7_WT5CCP1 0x00031C07
  42807. #define GPIO_PD7_NMI 0x00031C08
  42808. #define GPIO_PE4_U5RX 0x00041001
  42809. #define GPIO_PE4_I2C2SCL 0x00041003
  42810. #define GPIO_PE5_U5TX 0x00041401
  42811. #define GPIO_PE5_I2C2SDA 0x00041403
  42812. #define GPIO_PF0_SSI1RX 0x00050002
  42813. #define GPIO_PF0_T0CCP0 0x00050007
  42814. #define GPIO_PF0_NMI 0x00050008
  42815. #define GPIO_PF0_TRD2 0x0005000E
  42816. #define GPIO_PF1_SSI1TX 0x00050402
  42817. #define GPIO_PF1_T0CCP1 0x00050407
  42818. #define GPIO_PF1_TRD1 0x0005040E
  42819. #define GPIO_PF2_T1CCP0 0x00050807
  42820. #define GPIO_PF2_SSI1CLK 0x00050802
  42821. #define GPIO_PF2_TRD0 0x0005080E
  42822. #define GPIO_PF3_T1CCP1 0x00050C07
  42823. #define GPIO_PF3_SSI1FSS 0x00050C02
  42824. #define GPIO_PF3_TRCLK 0x00050C0E
  42825. #define GPIO_PF4_T2CCP0 0x00051007
  42826. #define GPIO_PF4_TRD3 0x0005100E
  42827. #define GPIO_PF5_T2CCP1 0x00051407
  42828. #define GPIO_PF6_I2C2SCL 0x00051803
  42829. #define GPIO_PF6_T3CCP0 0x00051807
  42830. #define GPIO_PF7_I2C2SDA 0x00051C03
  42831. #define GPIO_PF7_T3CCP1 0x00051C07
  42832. #define GPIO_PG0_I2C3SCL 0x00060003
  42833. #define GPIO_PG0_T4CCP0 0x00060007
  42834. #define GPIO_PG1_I2C3SDA 0x00060403
  42835. #define GPIO_PG1_T4CCP1 0x00060407
  42836. #define GPIO_PG2_I2C4SCL 0x00060803
  42837. #define GPIO_PG2_T5CCP0 0x00060807
  42838. #define GPIO_PG3_I2C4SDA 0x00060C03
  42839. #define GPIO_PG3_T5CCP1 0x00060C07
  42840. #define GPIO_PG4_U2RX 0x00061001
  42841. #define GPIO_PG4_I2C1SCL 0x00061003
  42842. #define GPIO_PG4_WT0CCP0 0x00061007
  42843. #define GPIO_PG5_U2TX 0x00061401
  42844. #define GPIO_PG5_I2C1SDA 0x00061403
  42845. #define GPIO_PG5_WT0CCP1 0x00061407
  42846. #define GPIO_PG6_I2C5SCL 0x00061803
  42847. #define GPIO_PG6_WT1CCP0 0x00061807
  42848. #define GPIO_PG7_I2C5SDA 0x00061C03
  42849. #define GPIO_PG7_WT1CCP1 0x00061C07
  42850. #define GPIO_PH0_WT2CCP0 0x00070007
  42851. #define GPIO_PH1_WT2CCP1 0x00070407
  42852. #define GPIO_PH2_FAN0PWM5 0x00070801
  42853. #define GPIO_PH2_WT5CCP0 0x00070807
  42854. #define GPIO_PH3_FAN0TACH5 0x00070C01
  42855. #define GPIO_PH3_WT5CCP1 0x00070C07
  42856. #define GPIO_PH4_WT3CCP0 0x00071007
  42857. #define GPIO_PH5_WT3CCP1 0x00071407
  42858. #define GPIO_PH6_WT4CCP0 0x00071807
  42859. #define GPIO_PH7_WT4CCP1 0x00071C07
  42860. #define GPIO_PJ0_U4RX 0x00080001
  42861. #define GPIO_PJ0_T1CCP0 0x00080007
  42862. #define GPIO_PJ1_U4TX 0x00080401
  42863. #define GPIO_PJ1_T1CCP1 0x00080407
  42864. #define GPIO_PJ2_U5RX 0x00080801
  42865. #define GPIO_PJ2_T2CCP0 0x00080807
  42866. #define GPIO_PJ3_U5TX 0x00080C01
  42867. #define GPIO_PJ3_T2CCP1 0x00080C07
  42868. #define GPIO_PJ4_T3CCP0 0x00081007
  42869. #define GPIO_PJ5_T3CCP1 0x00081407
  42870. #define GPIO_PJ6_PECI0TX 0x00081801
  42871. #define GPIO_PK4_RTCCLK 0x00091007
  42872. #define GPIO_PK6_FAN0PWM1 0x00091801
  42873. #define GPIO_PK6_WT1CCP0 0x00091807
  42874. #define GPIO_PK7_FAN0TACH1 0x00091C01
  42875. #define GPIO_PK7_WT1CCP1 0x00091C07
  42876. #define GPIO_PL0_T0CCP0 0x000A0007
  42877. #define GPIO_PL0_WT0CCP0 0x000A0008
  42878. #define GPIO_PL0_LPC0AD3 0x000A000F
  42879. #define GPIO_PL1_T0CCP1 0x000A0407
  42880. #define GPIO_PL1_WT0CCP1 0x000A0408
  42881. #define GPIO_PL1_LPC0AD2 0x000A040F
  42882. #define GPIO_PL2_T1CCP0 0x000A0807
  42883. #define GPIO_PL2_WT1CCP0 0x000A0808
  42884. #define GPIO_PL2_LPC0AD1 0x000A080F
  42885. #define GPIO_PL3_T1CCP1 0x000A0C07
  42886. #define GPIO_PL3_WT1CCP1 0x000A0C08
  42887. #define GPIO_PL3_LPC0AD0 0x000A0C0F
  42888. #define GPIO_PL4_T2CCP0 0x000A1007
  42889. #define GPIO_PL4_WT2CCP0 0x000A1008
  42890. #define GPIO_PL4_LPC0FRAME_N 0x000A100F
  42891. #define GPIO_PL5_T2CCP1 0x000A1407
  42892. #define GPIO_PL5_WT2CCP1 0x000A1408
  42893. #define GPIO_PL5_LPC0RESET_N 0x000A140F
  42894. #define GPIO_PL6_T3CCP0 0x000A1807
  42895. #define GPIO_PL6_WT3CCP0 0x000A1808
  42896. #define GPIO_PL7_T3CCP1 0x000A1C07
  42897. #define GPIO_PL7_WT3CCP1 0x000A1C08
  42898. #define GPIO_PM0_T4CCP0 0x000B0007
  42899. #define GPIO_PM0_WT4CCP0 0x000B0008
  42900. #define GPIO_PM0_LPC0PD_N 0x000B000F
  42901. #define GPIO_PM1_T4CCP1 0x000B0407
  42902. #define GPIO_PM1_WT4CCP1 0x000B0408
  42903. #define GPIO_PM1_LPC0SCI_N 0x000B040F
  42904. #define GPIO_PM2_T5CCP0 0x000B0807
  42905. #define GPIO_PM2_WT5CCP0 0x000B0808
  42906. #define GPIO_PM2_LPC0CLKRUN_N 0x000B080F
  42907. #define GPIO_PM3_T5CCP1 0x000B0C07
  42908. #define GPIO_PM3_WT5CCP1 0x000B0C08
  42909. #define GPIO_PM4_LPC0SERIRQ 0x000B100F
  42910. #define GPIO_PM5_LPC0CLK 0x000B140F
  42911. #define GPIO_PM6_FAN0PWM0 0x000B1801
  42912. #define GPIO_PM6_WT0CCP0 0x000B1807
  42913. #define GPIO_PM7_FAN0TACH0 0x000B1C01
  42914. #define GPIO_PM7_WT0CCP1 0x000B1C07
  42915. #define GPIO_PN2_FAN0PWM2 0x000C0801
  42916. #define GPIO_PN2_WT2CCP0 0x000C0807
  42917. #define GPIO_PN3_FAN0TACH2 0x000C0C01
  42918. #define GPIO_PN3_WT2CCP1 0x000C0C07
  42919. #define GPIO_PN4_FAN0PWM3 0x000C1001
  42920. #define GPIO_PN4_WT3CCP0 0x000C1007
  42921. #define GPIO_PN5_FAN0TACH3 0x000C1401
  42922. #define GPIO_PN5_WT3CCP1 0x000C1407
  42923. #define GPIO_PN6_FAN0PWM4 0x000C1801
  42924. #define GPIO_PN6_WT4CCP0 0x000C1807
  42925. #define GPIO_PN7_FAN0TACH4 0x000C1C01
  42926. #define GPIO_PN7_WT4CCP1 0x000C1C07
  42927. #define GPIO_PP0_T4CCP0 0x000D0007
  42928. #define GPIO_PP1_T4CCP1 0x000D0407
  42929. #define GPIO_PP2_T5CCP0 0x000D0807
  42930. #define GPIO_PP3_T5CCP1 0x000D0C07
  42931. #define GPIO_PP4_WT0CCP0 0x000D1007
  42932. #define GPIO_PP5_WT0CCP1 0x000D1407
  42933. #define GPIO_PP6_WT1CCP0 0x000D1807
  42934. #define GPIO_PP7_WT1CCP1 0x000D1C07
  42935. #define GPIO_PQ0_WT2CCP0 0x000E0007
  42936. #define GPIO_PQ1_WT2CCP1 0x000E0407
  42937. #define GPIO_PQ2_WT3CCP0 0x000E0807
  42938. #define GPIO_PQ3_WT3CCP1 0x000E0C07
  42939. #define GPIO_PQ4_WT4CCP0 0x000E1007
  42940. #define GPIO_PQ5_WT4CCP1 0x000E1407
  42941. #define GPIO_PQ6_WT5CCP0 0x000E1807
  42942. #define GPIO_PQ7_WT5CCP1 0x000E1C07
  42943. #endif // PART_LM4FS1AH5BB
  42944. //*****************************************************************************
  42945. //
  42946. // LM4FS99H5BB Port/Pin Mapping Definitions
  42947. //
  42948. //*****************************************************************************
  42949. #ifdef PART_LM4FS99H5BB
  42950. #define GPIO_PA0_U0RX 0x00000001
  42951. #define GPIO_PA0_CAN1RX 0x00000008
  42952. #define GPIO_PA1_U0TX 0x00000401
  42953. #define GPIO_PA1_CAN1TX 0x00000408
  42954. #define GPIO_PA2_SSI0CLK 0x00000802
  42955. #define GPIO_PA3_SSI0FSS 0x00000C02
  42956. #define GPIO_PA4_SSI0RX 0x00001002
  42957. #define GPIO_PA5_SSI0TX 0x00001402
  42958. #define GPIO_PA6_I2C1SCL 0x00001803
  42959. #define GPIO_PA6_M1PWM2 0x00001805
  42960. #define GPIO_PA7_I2C1SDA 0x00001C03
  42961. #define GPIO_PA7_M1PWM3 0x00001C05
  42962. #define GPIO_PB0_U1RX 0x00010001
  42963. #define GPIO_PB0_T2CCP0 0x00010007
  42964. #define GPIO_PB1_U1TX 0x00010401
  42965. #define GPIO_PB1_T2CCP1 0x00010407
  42966. #define GPIO_PB2_I2C0SCL 0x00010803
  42967. #define GPIO_PB2_T3CCP0 0x00010807
  42968. #define GPIO_PB3_I2C0SDA 0x00010C03
  42969. #define GPIO_PB3_T3CCP1 0x00010C07
  42970. #define GPIO_PB4_SSI2CLK 0x00011002
  42971. #define GPIO_PB4_M0PWM2 0x00011004
  42972. #define GPIO_PB4_CAN0RX 0x00011008
  42973. #define GPIO_PB4_T1CCP0 0x00011007
  42974. #define GPIO_PB5_SSI2FSS 0x00011402
  42975. #define GPIO_PB5_M0PWM3 0x00011404
  42976. #define GPIO_PB5_CAN0TX 0x00011408
  42977. #define GPIO_PB5_T1CCP1 0x00011407
  42978. #define GPIO_PB6_SSI2RX 0x00011802
  42979. #define GPIO_PB6_I2C5SCL 0x00011803
  42980. #define GPIO_PB6_M0PWM0 0x00011804
  42981. #define GPIO_PB6_T0CCP0 0x00011807
  42982. #define GPIO_PB7_SSI2TX 0x00011C02
  42983. #define GPIO_PB7_I2C5SDA 0x00011C03
  42984. #define GPIO_PB7_M0PWM1 0x00011C04
  42985. #define GPIO_PB7_T0CCP1 0x00011C07
  42986. #define GPIO_PC0_TCK 0x00020001
  42987. #define GPIO_PC0_SWCLK 0x00020001
  42988. #define GPIO_PC0_T4CCP0 0x00020007
  42989. #define GPIO_PC1_TMS 0x00020401
  42990. #define GPIO_PC1_SWDIO 0x00020401
  42991. #define GPIO_PC1_T4CCP1 0x00020407
  42992. #define GPIO_PC2_TDI 0x00020801
  42993. #define GPIO_PC2_T5CCP0 0x00020807
  42994. #define GPIO_PC3_SWO 0x00020C01
  42995. #define GPIO_PC3_TDO 0x00020C01
  42996. #define GPIO_PC3_T5CCP1 0x00020C07
  42997. #define GPIO_PC4_U4RX 0x00021001
  42998. #define GPIO_PC4_U1RX 0x00021002
  42999. #define GPIO_PC4_M0PWM6 0x00021004
  43000. #define GPIO_PC4_IDX1 0x00021006
  43001. #define GPIO_PC4_WT0CCP0 0x00021007
  43002. #define GPIO_PC4_U1RTS 0x00021008
  43003. #define GPIO_PC5_U4TX 0x00021401
  43004. #define GPIO_PC5_U1TX 0x00021402
  43005. #define GPIO_PC5_M0PWM7 0x00021404
  43006. #define GPIO_PC5_PHA1 0x00021406
  43007. #define GPIO_PC5_WT0CCP1 0x00021407
  43008. #define GPIO_PC5_U1CTS 0x00021408
  43009. #define GPIO_PC6_U3RX 0x00021801
  43010. #define GPIO_PC6_PHB1 0x00021806
  43011. #define GPIO_PC6_WT1CCP0 0x00021807
  43012. #define GPIO_PC6_USB0EPEN 0x00021808
  43013. #define GPIO_PC7_U3TX 0x00021C01
  43014. #define GPIO_PC7_USB0PFLT 0x00021C08
  43015. #define GPIO_PC7_WT1CCP1 0x00021C07
  43016. #define GPIO_PD0_SSI3CLK 0x00030001
  43017. #define GPIO_PD0_SSI1CLK 0x00030002
  43018. #define GPIO_PD0_I2C3SCL 0x00030003
  43019. #define GPIO_PD0_M0PWM6 0x00030004
  43020. #define GPIO_PD0_M1PWM0 0x00030005
  43021. #define GPIO_PD0_WT2CCP0 0x00030007
  43022. #define GPIO_PD1_SSI3FSS 0x00030401
  43023. #define GPIO_PD1_SSI1FSS 0x00030402
  43024. #define GPIO_PD1_I2C3SDA 0x00030403
  43025. #define GPIO_PD1_M0PWM7 0x00030404
  43026. #define GPIO_PD1_M1PWM1 0x00030405
  43027. #define GPIO_PD1_WT2CCP1 0x00030407
  43028. #define GPIO_PD2_SSI3RX 0x00030801
  43029. #define GPIO_PD2_SSI1RX 0x00030802
  43030. #define GPIO_PD2_M0FAULT0 0x00030804
  43031. #define GPIO_PD2_WT3CCP0 0x00030807
  43032. #define GPIO_PD2_USB0EPEN 0x00030808
  43033. #define GPIO_PD3_SSI3TX 0x00030C01
  43034. #define GPIO_PD3_SSI1TX 0x00030C02
  43035. #define GPIO_PD3_IDX0 0x00030C06
  43036. #define GPIO_PD3_WT3CCP1 0x00030C07
  43037. #define GPIO_PD3_USB0PFLT 0x00030C08
  43038. #define GPIO_PD4_U6RX 0x00031001
  43039. #define GPIO_PD4_WT4CCP0 0x00031007
  43040. #define GPIO_PD5_U6TX 0x00031401
  43041. #define GPIO_PD5_WT4CCP1 0x00031407
  43042. #define GPIO_PD6_U2RX 0x00031801
  43043. #define GPIO_PD6_M0FAULT0 0x00031804
  43044. #define GPIO_PD6_PHA0 0x00031806
  43045. #define GPIO_PD6_WT5CCP0 0x00031807
  43046. #define GPIO_PD7_U2TX 0x00031C01
  43047. #define GPIO_PD7_M0FAULT1 0x00031C04
  43048. #define GPIO_PD7_PHB0 0x00031C06
  43049. #define GPIO_PD7_WT5CCP1 0x00031C07
  43050. #define GPIO_PD7_NMI 0x00031C08
  43051. #define GPIO_PE0_U7RX 0x00040001
  43052. #define GPIO_PE1_U7TX 0x00040401
  43053. #define GPIO_PE4_U5RX 0x00041001
  43054. #define GPIO_PE4_I2C2SCL 0x00041003
  43055. #define GPIO_PE4_M0PWM4 0x00041004
  43056. #define GPIO_PE4_M1PWM2 0x00041005
  43057. #define GPIO_PE4_CAN0RX 0x00041008
  43058. #define GPIO_PE5_U5TX 0x00041401
  43059. #define GPIO_PE5_I2C2SDA 0x00041403
  43060. #define GPIO_PE5_M0PWM5 0x00041404
  43061. #define GPIO_PE5_M1PWM3 0x00041405
  43062. #define GPIO_PE5_CAN0TX 0x00041408
  43063. #define GPIO_PE6_CAN1RX 0x00041808
  43064. #define GPIO_PE7_U1RI 0x00041C01
  43065. #define GPIO_PE7_CAN1TX 0x00041C08
  43066. #define GPIO_PF0_U1RTS 0x00050001
  43067. #define GPIO_PF0_SSI1RX 0x00050002
  43068. #define GPIO_PF0_CAN0RX 0x00050003
  43069. #define GPIO_PF0_M1PWM4 0x00050005
  43070. #define GPIO_PF0_PHA0 0x00050006
  43071. #define GPIO_PF0_T0CCP0 0x00050007
  43072. #define GPIO_PF0_NMI 0x00050008
  43073. #define GPIO_PF0_C0O 0x00050009
  43074. #define GPIO_PF0_TRD2 0x0005000E
  43075. #define GPIO_PF1_U1CTS 0x00050401
  43076. #define GPIO_PF1_SSI1TX 0x00050402
  43077. #define GPIO_PF1_M1PWM5 0x00050405
  43078. #define GPIO_PF1_PHB0 0x00050406
  43079. #define GPIO_PF1_T0CCP1 0x00050407
  43080. #define GPIO_PF1_C1O 0x00050409
  43081. #define GPIO_PF1_TRD1 0x0005040E
  43082. #define GPIO_PF2_U1DCD 0x00050801
  43083. #define GPIO_PF2_M0FAULT0 0x00050804
  43084. #define GPIO_PF2_M1PWM6 0x00050805
  43085. #define GPIO_PF2_T1CCP0 0x00050807
  43086. #define GPIO_PF2_SSI1CLK 0x00050802
  43087. #define GPIO_PF2_C2O 0x00050809
  43088. #define GPIO_PF2_TRD0 0x0005080E
  43089. #define GPIO_PF3_U1DSR 0x00050C01
  43090. #define GPIO_PF3_CAN0TX 0x00050C03
  43091. #define GPIO_PF3_M0FAULT1 0x00050C04
  43092. #define GPIO_PF3_M1PWM7 0x00050C05
  43093. #define GPIO_PF3_T1CCP1 0x00050C07
  43094. #define GPIO_PF3_SSI1FSS 0x00050C02
  43095. #define GPIO_PF3_TRCLK 0x00050C0E
  43096. #define GPIO_PF4_U1DTR 0x00051001
  43097. #define GPIO_PF4_M0FAULT2 0x00051004
  43098. #define GPIO_PF4_M1FAULT0 0x00051005
  43099. #define GPIO_PF4_IDX0 0x00051006
  43100. #define GPIO_PF4_T2CCP0 0x00051007
  43101. #define GPIO_PF4_USB0EPEN 0x00051008
  43102. #define GPIO_PF4_TRD3 0x0005100E
  43103. #define GPIO_PF5_M0FAULT3 0x00051404
  43104. #define GPIO_PF5_T2CCP1 0x00051407
  43105. #define GPIO_PF5_USB0PFLT 0x00051408
  43106. #define GPIO_PF6_I2C2SCL 0x00051803
  43107. #define GPIO_PF6_T3CCP0 0x00051807
  43108. #define GPIO_PF7_I2C2SDA 0x00051C03
  43109. #define GPIO_PF7_M1FAULT0 0x00051C05
  43110. #define GPIO_PF7_T3CCP1 0x00051C07
  43111. #define GPIO_PG0_I2C3SCL 0x00060003
  43112. #define GPIO_PG0_M1FAULT1 0x00060005
  43113. #define GPIO_PG0_PHA1 0x00060006
  43114. #define GPIO_PG0_T4CCP0 0x00060007
  43115. #define GPIO_PG1_I2C3SDA 0x00060403
  43116. #define GPIO_PG1_M1FAULT2 0x00060405
  43117. #define GPIO_PG1_PHB1 0x00060406
  43118. #define GPIO_PG1_T4CCP1 0x00060407
  43119. #define GPIO_PG2_I2C4SCL 0x00060803
  43120. #define GPIO_PG2_M0FAULT1 0x00060804
  43121. #define GPIO_PG2_M1PWM0 0x00060805
  43122. #define GPIO_PG2_T5CCP0 0x00060807
  43123. #define GPIO_PG3_I2C4SDA 0x00060C03
  43124. #define GPIO_PG3_M0FAULT2 0x00060C04
  43125. #define GPIO_PG3_M1PWM1 0x00060C05
  43126. #define GPIO_PG3_PHA1 0x00060C06
  43127. #define GPIO_PG3_T5CCP1 0x00060C07
  43128. #define GPIO_PG4_U2RX 0x00061001
  43129. #define GPIO_PG4_I2C1SCL 0x00061003
  43130. #define GPIO_PG4_M0PWM4 0x00061004
  43131. #define GPIO_PG4_M1PWM2 0x00061005
  43132. #define GPIO_PG4_PHB1 0x00061006
  43133. #define GPIO_PG4_WT0CCP0 0x00061007
  43134. #define GPIO_PG4_USB0EPEN 0x00061008
  43135. #define GPIO_PG5_U2TX 0x00061401
  43136. #define GPIO_PG5_I2C1SDA 0x00061403
  43137. #define GPIO_PG5_M0PWM5 0x00061404
  43138. #define GPIO_PG5_M1PWM3 0x00061405
  43139. #define GPIO_PG5_IDX1 0x00061406
  43140. #define GPIO_PG5_WT0CCP1 0x00061407
  43141. #define GPIO_PG5_USB0PFLT 0x00061408
  43142. #define GPIO_PG6_I2C5SCL 0x00061803
  43143. #define GPIO_PG6_M0PWM6 0x00061804
  43144. #define GPIO_PG6_WT1CCP0 0x00061807
  43145. #define GPIO_PG7_I2C5SDA 0x00061C03
  43146. #define GPIO_PG7_M0PWM7 0x00061C04
  43147. #define GPIO_PG7_IDX1 0x00061C05
  43148. #define GPIO_PG7_WT1CCP1 0x00061C07
  43149. #define GPIO_PH0_SSI3CLK 0x00070002
  43150. #define GPIO_PH0_M0PWM0 0x00070004
  43151. #define GPIO_PH0_M0FAULT0 0x00070006
  43152. #define GPIO_PH0_WT2CCP0 0x00070007
  43153. #define GPIO_PH1_SSI3FSS 0x00070402
  43154. #define GPIO_PH1_M0PWM1 0x00070404
  43155. #define GPIO_PH1_IDX0 0x00070405
  43156. #define GPIO_PH1_M0FAULT1 0x00070406
  43157. #define GPIO_PH1_WT2CCP1 0x00070407
  43158. #define GPIO_PH2_FAN0PWM5 0x00070801
  43159. #define GPIO_PH2_SSI3RX 0x00070802
  43160. #define GPIO_PH2_M0PWM2 0x00070804
  43161. #define GPIO_PH2_M0FAULT2 0x00070806
  43162. #define GPIO_PH2_WT5CCP0 0x00070807
  43163. #define GPIO_PH3_FAN0TACH5 0x00070C01
  43164. #define GPIO_PH3_SSI3TX 0x00070C02
  43165. #define GPIO_PH3_M0PWM3 0x00070C04
  43166. #define GPIO_PH3_M0FAULT3 0x00070C06
  43167. #define GPIO_PH3_WT5CCP1 0x00070C07
  43168. #define GPIO_PH4_SSI2CLK 0x00071002
  43169. #define GPIO_PH4_M0PWM4 0x00071004
  43170. #define GPIO_PH4_PHA0 0x00071005
  43171. #define GPIO_PH4_WT3CCP0 0x00071007
  43172. #define GPIO_PH5_SSI2FSS 0x00071402
  43173. #define GPIO_PH5_M0PWM5 0x00071404
  43174. #define GPIO_PH5_PHB0 0x00071405
  43175. #define GPIO_PH5_WT3CCP1 0x00071407
  43176. #define GPIO_PH6_SSI2RX 0x00071802
  43177. #define GPIO_PH6_M0PWM6 0x00071804
  43178. #define GPIO_PH6_WT4CCP0 0x00071807
  43179. #define GPIO_PH7_SSI2TX 0x00071C02
  43180. #define GPIO_PH7_M0PWM7 0x00071C04
  43181. #define GPIO_PH7_WT4CCP1 0x00071C07
  43182. #define GPIO_PJ0_U4RX 0x00080001
  43183. #define GPIO_PJ0_T1CCP0 0x00080007
  43184. #define GPIO_PJ1_U4TX 0x00080401
  43185. #define GPIO_PJ1_T1CCP1 0x00080407
  43186. #define GPIO_PJ2_U5RX 0x00080801
  43187. #define GPIO_PJ2_FAN0PWM7 0x00080802
  43188. #define GPIO_PJ2_IDX0 0x00080805
  43189. #define GPIO_PJ2_T2CCP0 0x00080807
  43190. #define GPIO_PJ3_U5TX 0x00080C01
  43191. #define GPIO_PJ3_FAN0TACH7 0x00080C02
  43192. #define GPIO_PJ3_T2CCP1 0x00080C07
  43193. #define GPIO_PJ4_U6RX 0x00081001
  43194. #define GPIO_PJ4_T3CCP0 0x00081007
  43195. #define GPIO_PJ5_U6TX 0x00081401
  43196. #define GPIO_PJ5_T3CCP1 0x00081407
  43197. #define GPIO_PJ6_PECI0TX 0x00081801
  43198. #define GPIO_PK0_SSI3CLK 0x00090002
  43199. #define GPIO_PK0_M1FAULT0 0x00090006
  43200. #define GPIO_PK1_SSI3FSS 0x00090402
  43201. #define GPIO_PK1_M1FAULT1 0x00090406
  43202. #define GPIO_PK2_SSI3RX 0x00090802
  43203. #define GPIO_PK2_M1FAULT2 0x00090806
  43204. #define GPIO_PK3_SSI3TX 0x00090C02
  43205. #define GPIO_PK3_M1FAULT3 0x00090C06
  43206. #define GPIO_PK4_U7RX 0x00091001
  43207. #define GPIO_PK4_FAN0PWM6 0x00091002
  43208. #define GPIO_PK4_M0FAULT0 0x00091006
  43209. #define GPIO_PK4_RTCCLK 0x00091007
  43210. #define GPIO_PK4_C0O 0x00091008
  43211. #define GPIO_PK5_U7TX 0x00091401
  43212. #define GPIO_PK5_FAN0TACH6 0x00091402
  43213. #define GPIO_PK5_M0FAULT1 0x00091406
  43214. #define GPIO_PK5_C1O 0x00091408
  43215. #define GPIO_PK6_FAN0PWM1 0x00091801
  43216. #define GPIO_PK6_M0FAULT2 0x00091806
  43217. #define GPIO_PK6_WT1CCP0 0x00091807
  43218. #define GPIO_PK6_C2O 0x00091808
  43219. #define GPIO_PK7_FAN0TACH1 0x00091C01
  43220. #define GPIO_PK7_M0FAULT3 0x00091C06
  43221. #define GPIO_PK7_WT1CCP1 0x00091C07
  43222. #define GPIO_PL0_T0CCP0 0x000A0007
  43223. #define GPIO_PL0_WT0CCP0 0x000A0008
  43224. #define GPIO_PL0_LPC0AD3 0x000A000F
  43225. #define GPIO_PL1_T0CCP1 0x000A0407
  43226. #define GPIO_PL1_WT0CCP1 0x000A0408
  43227. #define GPIO_PL1_LPC0AD2 0x000A040F
  43228. #define GPIO_PL2_T1CCP0 0x000A0807
  43229. #define GPIO_PL2_WT1CCP0 0x000A0808
  43230. #define GPIO_PL2_LPC0AD1 0x000A080F
  43231. #define GPIO_PL3_T1CCP1 0x000A0C07
  43232. #define GPIO_PL3_WT1CCP1 0x000A0C08
  43233. #define GPIO_PL3_LPC0AD0 0x000A0C0F
  43234. #define GPIO_PL4_T2CCP0 0x000A1007
  43235. #define GPIO_PL4_WT2CCP0 0x000A1008
  43236. #define GPIO_PL4_LPC0FRAME_N 0x000A100F
  43237. #define GPIO_PL5_T2CCP1 0x000A1407
  43238. #define GPIO_PL5_WT2CCP1 0x000A1408
  43239. #define GPIO_PL5_LPC0RESET_N 0x000A140F
  43240. #define GPIO_PL6_T3CCP0 0x000A1807
  43241. #define GPIO_PL6_WT3CCP0 0x000A1808
  43242. #define GPIO_PL7_T3CCP1 0x000A1C07
  43243. #define GPIO_PL7_WT3CCP1 0x000A1C08
  43244. #define GPIO_PM0_T4CCP0 0x000B0007
  43245. #define GPIO_PM0_WT4CCP0 0x000B0008
  43246. #define GPIO_PM0_LPC0PD_N 0x000B000F
  43247. #define GPIO_PM1_T4CCP1 0x000B0407
  43248. #define GPIO_PM1_WT4CCP1 0x000B0408
  43249. #define GPIO_PM1_LPC0SCI_N 0x000B040F
  43250. #define GPIO_PM2_T5CCP0 0x000B0807
  43251. #define GPIO_PM2_WT5CCP0 0x000B0808
  43252. #define GPIO_PM2_LPC0CLKRUN_N 0x000B080F
  43253. #define GPIO_PM3_T5CCP1 0x000B0C07
  43254. #define GPIO_PM3_WT5CCP1 0x000B0C08
  43255. #define GPIO_PM4_LPC0SERIRQ 0x000B100F
  43256. #define GPIO_PM5_LPC0CLK 0x000B140F
  43257. #define GPIO_PM6_FAN0PWM0 0x000B1801
  43258. #define GPIO_PM6_M0PWM4 0x000B1802
  43259. #define GPIO_PM6_WT0CCP0 0x000B1807
  43260. #define GPIO_PM7_FAN0TACH0 0x000B1C01
  43261. #define GPIO_PM7_M0PWM5 0x000B1C02
  43262. #define GPIO_PM7_WT0CCP1 0x000B1C07
  43263. #define GPIO_PN0_CAN0RX 0x000C0001
  43264. #define GPIO_PN1_CAN0TX 0x000C0401
  43265. #define GPIO_PN2_FAN0PWM2 0x000C0801
  43266. #define GPIO_PN2_M0PWM6 0x000C0802
  43267. #define GPIO_PN2_WT2CCP0 0x000C0807
  43268. #define GPIO_PN3_FAN0TACH2 0x000C0C01
  43269. #define GPIO_PN3_M0PWM7 0x000C0C02
  43270. #define GPIO_PN3_WT2CCP1 0x000C0C07
  43271. #define GPIO_PN4_FAN0PWM3 0x000C1001
  43272. #define GPIO_PN4_M1PWM4 0x000C1002
  43273. #define GPIO_PN4_WT3CCP0 0x000C1007
  43274. #define GPIO_PN5_FAN0TACH3 0x000C1401
  43275. #define GPIO_PN5_M1PWM5 0x000C1402
  43276. #define GPIO_PN5_WT3CCP1 0x000C1407
  43277. #define GPIO_PN6_FAN0PWM4 0x000C1801
  43278. #define GPIO_PN6_M1PWM6 0x000C1802
  43279. #define GPIO_PN6_WT4CCP0 0x000C1807
  43280. #define GPIO_PN7_FAN0TACH4 0x000C1C01
  43281. #define GPIO_PN7_M1PWM7 0x000C1C02
  43282. #define GPIO_PN7_WT4CCP1 0x000C1C07
  43283. #define GPIO_PP0_M0PWM0 0x000D0001
  43284. #define GPIO_PP0_T4CCP0 0x000D0007
  43285. #define GPIO_PP1_M0PWM1 0x000D0401
  43286. #define GPIO_PP1_T4CCP1 0x000D0407
  43287. #define GPIO_PP2_M0PWM2 0x000D0801
  43288. #define GPIO_PP2_T5CCP0 0x000D0807
  43289. #define GPIO_PP3_M0PWM3 0x000D0C01
  43290. #define GPIO_PP3_T5CCP1 0x000D0C07
  43291. #define GPIO_PP4_M0PWM4 0x000D1001
  43292. #define GPIO_PP4_WT0CCP0 0x000D1007
  43293. #define GPIO_PP5_M0PWM5 0x000D1401
  43294. #define GPIO_PP5_WT0CCP1 0x000D1407
  43295. #define GPIO_PP6_M0PWM6 0x000D1801
  43296. #define GPIO_PP6_WT1CCP0 0x000D1807
  43297. #define GPIO_PP7_M0PWM7 0x000D1C01
  43298. #define GPIO_PP7_WT1CCP1 0x000D1C07
  43299. #define GPIO_PQ0_M1PWM0 0x000E0001
  43300. #define GPIO_PQ0_WT2CCP0 0x000E0007
  43301. #define GPIO_PQ1_M1PWM1 0x000E0401
  43302. #define GPIO_PQ1_WT2CCP1 0x000E0407
  43303. #define GPIO_PQ2_M1PWM2 0x000E0801
  43304. #define GPIO_PQ2_WT3CCP0 0x000E0807
  43305. #define GPIO_PQ3_M1PWM3 0x000E0C01
  43306. #define GPIO_PQ3_WT3CCP1 0x000E0C07
  43307. #define GPIO_PQ4_M1PWM4 0x000E1001
  43308. #define GPIO_PQ4_WT4CCP0 0x000E1007
  43309. #define GPIO_PQ5_M1PWM5 0x000E1401
  43310. #define GPIO_PQ5_WT4CCP1 0x000E1407
  43311. #define GPIO_PQ6_M1PWM6 0x000E1801
  43312. #define GPIO_PQ6_WT5CCP0 0x000E1807
  43313. #define GPIO_PQ7_M1PWM7 0x000E1C01
  43314. #define GPIO_PQ7_WT5CCP1 0x000E1C07
  43315. #endif // PART_LM4FS99H5BB
  43316. //*****************************************************************************
  43317. //
  43318. // LM4FSXAH5BB Port/Pin Mapping Definitions
  43319. //
  43320. //*****************************************************************************
  43321. #ifdef PART_LM4FSXAH5BB
  43322. #define GPIO_PA0_U0RX 0x00000001
  43323. #define GPIO_PA1_U0TX 0x00000401
  43324. #define GPIO_PA2_SSI0CLK 0x00000802
  43325. #define GPIO_PA3_SSI0FSS 0x00000C02
  43326. #define GPIO_PA4_SSI0RX 0x00001002
  43327. #define GPIO_PA5_SSI0TX 0x00001402
  43328. #define GPIO_PA6_I2C1SCL 0x00001803
  43329. #define GPIO_PA7_I2C1SDA 0x00001C03
  43330. #define GPIO_PB0_U1RX 0x00010001
  43331. #define GPIO_PB0_T2CCP0 0x00010007
  43332. #define GPIO_PB1_U1TX 0x00010401
  43333. #define GPIO_PB1_T2CCP1 0x00010407
  43334. #define GPIO_PB2_I2C0SCL 0x00010803
  43335. #define GPIO_PB2_T3CCP0 0x00010807
  43336. #define GPIO_PB3_I2C0SDA 0x00010C03
  43337. #define GPIO_PB3_T3CCP1 0x00010C07
  43338. #define GPIO_PB4_T1CCP0 0x00011007
  43339. #define GPIO_PB5_T1CCP1 0x00011407
  43340. #define GPIO_PB6_I2C5SCL 0x00011803
  43341. #define GPIO_PB6_T0CCP0 0x00011807
  43342. #define GPIO_PB7_I2C5SDA 0x00011C03
  43343. #define GPIO_PB7_T0CCP1 0x00011C07
  43344. #define GPIO_PC0_TCK 0x00020001
  43345. #define GPIO_PC0_SWCLK 0x00020001
  43346. #define GPIO_PC0_T4CCP0 0x00020007
  43347. #define GPIO_PC1_TMS 0x00020401
  43348. #define GPIO_PC1_SWDIO 0x00020401
  43349. #define GPIO_PC1_T4CCP1 0x00020407
  43350. #define GPIO_PC2_TDI 0x00020801
  43351. #define GPIO_PC2_T5CCP0 0x00020807
  43352. #define GPIO_PC3_SWO 0x00020C01
  43353. #define GPIO_PC3_TDO 0x00020C01
  43354. #define GPIO_PC3_T5CCP1 0x00020C07
  43355. #define GPIO_PC4_U1RX 0x00021002
  43356. #define GPIO_PC4_WT0CCP0 0x00021007
  43357. #define GPIO_PC5_U1TX 0x00021402
  43358. #define GPIO_PC5_WT0CCP1 0x00021407
  43359. #define GPIO_PC6_WT1CCP0 0x00021807
  43360. #define GPIO_PC7_WT1CCP1 0x00021C07
  43361. #define GPIO_PD0_SSI1CLK 0x00030002
  43362. #define GPIO_PD0_I2C3SCL 0x00030003
  43363. #define GPIO_PD0_WT2CCP0 0x00030007
  43364. #define GPIO_PD1_SSI1FSS 0x00030402
  43365. #define GPIO_PD1_I2C3SDA 0x00030403
  43366. #define GPIO_PD1_WT2CCP1 0x00030407
  43367. #define GPIO_PD2_SSI1RX 0x00030802
  43368. #define GPIO_PD2_WT3CCP0 0x00030807
  43369. #define GPIO_PD3_SSI1TX 0x00030C02
  43370. #define GPIO_PD3_WT3CCP1 0x00030C07
  43371. #define GPIO_PD4_WT4CCP0 0x00031007
  43372. #define GPIO_PD5_WT4CCP1 0x00031407
  43373. #define GPIO_PD6_WT5CCP0 0x00031807
  43374. #define GPIO_PD7_WT5CCP1 0x00031C07
  43375. #define GPIO_PD7_NMI 0x00031C08
  43376. #define GPIO_PE4_I2C2SCL 0x00041003
  43377. #define GPIO_PE5_I2C2SDA 0x00041403
  43378. #define GPIO_PF0_SSI1RX 0x00050002
  43379. #define GPIO_PF0_T0CCP0 0x00050007
  43380. #define GPIO_PF0_NMI 0x00050008
  43381. #define GPIO_PF0_TRD2 0x0005000E
  43382. #define GPIO_PF1_SSI1TX 0x00050402
  43383. #define GPIO_PF1_T0CCP1 0x00050407
  43384. #define GPIO_PF1_TRD1 0x0005040E
  43385. #define GPIO_PF2_T1CCP0 0x00050807
  43386. #define GPIO_PF2_SSI1CLK 0x00050802
  43387. #define GPIO_PF2_TRD0 0x0005080E
  43388. #define GPIO_PF3_T1CCP1 0x00050C07
  43389. #define GPIO_PF3_SSI1FSS 0x00050C02
  43390. #define GPIO_PF3_TRCLK 0x00050C0E
  43391. #define GPIO_PF4_T2CCP0 0x00051007
  43392. #define GPIO_PF4_TRD3 0x0005100E
  43393. #define GPIO_PF5_T2CCP1 0x00051407
  43394. #define GPIO_PF6_I2C2SCL 0x00051803
  43395. #define GPIO_PF6_T3CCP0 0x00051807
  43396. #define GPIO_PF7_I2C2SDA 0x00051C03
  43397. #define GPIO_PF7_T3CCP1 0x00051C07
  43398. #define GPIO_PG0_I2C3SCL 0x00060003
  43399. #define GPIO_PG0_T4CCP0 0x00060007
  43400. #define GPIO_PG1_I2C3SDA 0x00060403
  43401. #define GPIO_PG1_T4CCP1 0x00060407
  43402. #define GPIO_PG2_I2C4SCL 0x00060803
  43403. #define GPIO_PG2_T5CCP0 0x00060807
  43404. #define GPIO_PG3_I2C4SDA 0x00060C03
  43405. #define GPIO_PG3_T5CCP1 0x00060C07
  43406. #define GPIO_PG4_I2C1SCL 0x00061003
  43407. #define GPIO_PG4_WT0CCP0 0x00061007
  43408. #define GPIO_PG5_I2C1SDA 0x00061403
  43409. #define GPIO_PG5_WT0CCP1 0x00061407
  43410. #define GPIO_PG6_I2C5SCL 0x00061803
  43411. #define GPIO_PG6_WT1CCP0 0x00061807
  43412. #define GPIO_PG7_I2C5SDA 0x00061C03
  43413. #define GPIO_PG7_WT1CCP1 0x00061C07
  43414. #define GPIO_PH0_WT2CCP0 0x00070007
  43415. #define GPIO_PH1_WT2CCP1 0x00070407
  43416. #define GPIO_PH2_FAN0PWM5 0x00070801
  43417. #define GPIO_PH2_WT5CCP0 0x00070807
  43418. #define GPIO_PH3_FAN0TACH5 0x00070C01
  43419. #define GPIO_PH3_WT5CCP1 0x00070C07
  43420. #define GPIO_PH4_WT3CCP0 0x00071007
  43421. #define GPIO_PH5_WT3CCP1 0x00071407
  43422. #define GPIO_PH6_WT4CCP0 0x00071807
  43423. #define GPIO_PH7_WT4CCP1 0x00071C07
  43424. #define GPIO_PJ0_T1CCP0 0x00080007
  43425. #define GPIO_PJ1_T1CCP1 0x00080407
  43426. #define GPIO_PJ2_T2CCP0 0x00080807
  43427. #define GPIO_PJ3_T2CCP1 0x00080C07
  43428. #define GPIO_PJ4_T3CCP0 0x00081007
  43429. #define GPIO_PJ5_T3CCP1 0x00081407
  43430. #define GPIO_PJ6_PECI0TX 0x00081801
  43431. #define GPIO_PK4_RTCCLK 0x00091007
  43432. #define GPIO_PK6_FAN0PWM1 0x00091801
  43433. #define GPIO_PK6_WT1CCP0 0x00091807
  43434. #define GPIO_PK7_FAN0TACH1 0x00091C01
  43435. #define GPIO_PK7_WT1CCP1 0x00091C07
  43436. #define GPIO_PL0_T0CCP0 0x000A0007
  43437. #define GPIO_PL0_WT0CCP0 0x000A0008
  43438. #define GPIO_PL0_LPC0AD3 0x000A000F
  43439. #define GPIO_PL1_T0CCP1 0x000A0407
  43440. #define GPIO_PL1_WT0CCP1 0x000A0408
  43441. #define GPIO_PL1_LPC0AD2 0x000A040F
  43442. #define GPIO_PL2_T1CCP0 0x000A0807
  43443. #define GPIO_PL2_WT1CCP0 0x000A0808
  43444. #define GPIO_PL2_LPC0AD1 0x000A080F
  43445. #define GPIO_PL3_T1CCP1 0x000A0C07
  43446. #define GPIO_PL3_WT1CCP1 0x000A0C08
  43447. #define GPIO_PL3_LPC0AD0 0x000A0C0F
  43448. #define GPIO_PL4_T2CCP0 0x000A1007
  43449. #define GPIO_PL4_WT2CCP0 0x000A1008
  43450. #define GPIO_PL4_LPC0FRAME_N 0x000A100F
  43451. #define GPIO_PL5_T2CCP1 0x000A1407
  43452. #define GPIO_PL5_WT2CCP1 0x000A1408
  43453. #define GPIO_PL5_LPC0RESET_N 0x000A140F
  43454. #define GPIO_PL6_T3CCP0 0x000A1807
  43455. #define GPIO_PL6_WT3CCP0 0x000A1808
  43456. #define GPIO_PL7_T3CCP1 0x000A1C07
  43457. #define GPIO_PL7_WT3CCP1 0x000A1C08
  43458. #define GPIO_PM0_T4CCP0 0x000B0007
  43459. #define GPIO_PM0_WT4CCP0 0x000B0008
  43460. #define GPIO_PM0_LPC0PD_N 0x000B000F
  43461. #define GPIO_PM1_T4CCP1 0x000B0407
  43462. #define GPIO_PM1_WT4CCP1 0x000B0408
  43463. #define GPIO_PM1_LPC0SCI_N 0x000B040F
  43464. #define GPIO_PM2_T5CCP0 0x000B0807
  43465. #define GPIO_PM2_WT5CCP0 0x000B0808
  43466. #define GPIO_PM2_LPC0CLKRUN_N 0x000B080F
  43467. #define GPIO_PM3_T5CCP1 0x000B0C07
  43468. #define GPIO_PM3_WT5CCP1 0x000B0C08
  43469. #define GPIO_PM4_LPC0SERIRQ 0x000B100F
  43470. #define GPIO_PM5_LPC0CLK 0x000B140F
  43471. #define GPIO_PM6_FAN0PWM0 0x000B1801
  43472. #define GPIO_PM6_WT0CCP0 0x000B1807
  43473. #define GPIO_PM7_FAN0TACH0 0x000B1C01
  43474. #define GPIO_PM7_WT0CCP1 0x000B1C07
  43475. #define GPIO_PN2_FAN0PWM2 0x000C0801
  43476. #define GPIO_PN2_WT2CCP0 0x000C0807
  43477. #define GPIO_PN3_FAN0TACH2 0x000C0C01
  43478. #define GPIO_PN3_WT2CCP1 0x000C0C07
  43479. #define GPIO_PN4_FAN0PWM3 0x000C1001
  43480. #define GPIO_PN4_WT3CCP0 0x000C1007
  43481. #define GPIO_PN5_FAN0TACH3 0x000C1401
  43482. #define GPIO_PN5_WT3CCP1 0x000C1407
  43483. #define GPIO_PN6_FAN0PWM4 0x000C1801
  43484. #define GPIO_PN6_WT4CCP0 0x000C1807
  43485. #define GPIO_PN7_FAN0TACH4 0x000C1C01
  43486. #define GPIO_PN7_WT4CCP1 0x000C1C07
  43487. #define GPIO_PP0_T4CCP0 0x000D0007
  43488. #define GPIO_PP1_T4CCP1 0x000D0407
  43489. #define GPIO_PP2_T5CCP0 0x000D0807
  43490. #define GPIO_PP3_T5CCP1 0x000D0C07
  43491. #define GPIO_PP4_WT0CCP0 0x000D1007
  43492. #define GPIO_PP5_WT0CCP1 0x000D1407
  43493. #define GPIO_PP6_WT1CCP0 0x000D1807
  43494. #define GPIO_PP7_WT1CCP1 0x000D1C07
  43495. #define GPIO_PQ0_WT2CCP0 0x000E0007
  43496. #define GPIO_PQ1_WT2CCP1 0x000E0407
  43497. #define GPIO_PQ2_WT3CCP0 0x000E0807
  43498. #define GPIO_PQ3_WT3CCP1 0x000E0C07
  43499. #define GPIO_PQ4_WT4CCP0 0x000E1007
  43500. #define GPIO_PQ5_WT4CCP1 0x000E1407
  43501. #define GPIO_PQ6_WT5CCP0 0x000E1807
  43502. #define GPIO_PQ7_WT5CCP1 0x000E1C07
  43503. #endif // PART_LM4FSXAH5BB
  43504. //*****************************************************************************
  43505. //
  43506. // Pin Mapping Functions
  43507. //
  43508. // This section describes the code that is responsible for handling the
  43509. // mapping of peripheral functions to their physical location on the pins of
  43510. // a device.
  43511. //
  43512. //*****************************************************************************
  43513. //*****************************************************************************
  43514. //
  43515. // Definitions to support mapping GPIO Ports and Pins to their function.
  43516. //
  43517. //*****************************************************************************
  43518. //*****************************************************************************
  43519. //
  43520. // Configures the specified ADC pin to function as an ADC pin.
  43521. //
  43522. // \param ulName is one of the valid names for the ADC pins.
  43523. //
  43524. // This function takes on of the valid names for an ADC pin and configures
  43525. // the pin for its ADC functionality depending on the part that is defined.
  43526. //
  43527. // The valid names for the pins are as follows: \b ADC0, \b ADC1, \b ADC2,
  43528. // \b ADC3, \b ADC4, \b ADC5, \b ADC6, or \b ADC7.
  43529. //
  43530. // \sa GPIOPinTypeADC() in order to configure multiple ADC pins at once.
  43531. //
  43532. // \return None.
  43533. //
  43534. //*****************************************************************************
  43535. #define PinTypeADC(ulName) GPIOPinTypeADC(ulName##_PORT, ulName##_PIN)
  43536. //*****************************************************************************
  43537. //
  43538. // Configures the specified CAN pin to function as a CAN pin.
  43539. //
  43540. // \param ulName is one of the valid names for the CAN pins.
  43541. //
  43542. // This function takes one of the valid names for a CAN pin and configures
  43543. // the pin for its CAN functionality depending on the part that is defined.
  43544. //
  43545. // The valid names for the pins are as follows: \b CAN0RX, \b CAN0TX,
  43546. // \b CAN1RX, \b CAN1TX, \b CAN2RX, or \b CAN2TX.
  43547. //
  43548. // \sa GPIOPinTypeCAN() in order to configure multiple CAN pins at once.
  43549. //
  43550. // \return None.
  43551. //
  43552. //*****************************************************************************
  43553. #define PinTypeCAN(ulName) GPIOPinTypeCAN(ulName##_PORT, ulName##_PIN)
  43554. //*****************************************************************************
  43555. //
  43556. // Configures the specified comparator pin to function as a comparator pin.
  43557. //
  43558. // \param ulName is one of the valid names for the Comparator pins.
  43559. //
  43560. // This function takes one of the valid names for a comparator pin and
  43561. // configures the pin for its comparator functionality depending on the part
  43562. // that is defined.
  43563. //
  43564. // The valid names for the pins are as follows: \b C0_MINUS, \b C0_PLUS,
  43565. // \b C1_MINUS, \b C1_PLUS, \b C2_MINUS, or \b C2_PLUS.
  43566. //
  43567. // \sa GPIOPinTypeComparator() in order to configure multiple comparator pins
  43568. // at once.
  43569. //
  43570. // \return None.
  43571. //
  43572. //*****************************************************************************
  43573. #define PinTypeComparator(ulName) \
  43574. GPIOPinTypeComparator(ulName##_PORT, \
  43575. ulName##_PIN)
  43576. //*****************************************************************************
  43577. //
  43578. // Configures the specified I2C pin to function as an I2C pin.
  43579. //
  43580. // \param ulName is one of the valid names for the I2C pins.
  43581. //
  43582. // This function takes one of the valid names for an I2C pin and configures
  43583. // the pin for its I2C functionality depending on the part that is defined.
  43584. //
  43585. // The valid names for the pins are as follows: \b I2C0SCL, \b I2C0SDA,
  43586. // \b I2C1SCL, or \b I2C1SDA.
  43587. //
  43588. // \sa GPIOPinTypeI2C() in order to configure multiple I2C pins at once.
  43589. //
  43590. // \return None.
  43591. //
  43592. //*****************************************************************************
  43593. #define PinTypeI2C(ulName) GPIOPinTypeI2C(ulName##_PORT, ulName##_PIN)
  43594. //*****************************************************************************
  43595. //
  43596. // Configures the specified Ethernet LED to function as an Ethernet LED pin.
  43597. //
  43598. // \param ulName is one of the valid names for the Ethernet LED pins.
  43599. //
  43600. // This function takes one of the valid names for an Ethernet LED pin and
  43601. // configures the pin for its Ethernet LED functionality depending on the part
  43602. // that is defined.
  43603. //
  43604. // The valid names for the pins are as follows: \b LED0 or \b LED1.
  43605. //
  43606. // sa GPIOPinTypeEthernetLED() in order to configure multiple Ethernet LED
  43607. // pins at once.
  43608. //
  43609. // \return None.
  43610. //
  43611. //*****************************************************************************
  43612. #define PinTypeEthernetLED(ulName) \
  43613. GPIOPinTypeEthernetLED(ulName##_PORT, \
  43614. ulName##_PIN)
  43615. //*****************************************************************************
  43616. //
  43617. // Configures the specified PWM pin to function as a PWM pin.
  43618. //
  43619. // \param ulName is one of the valid names for the PWM pins.
  43620. //
  43621. // This function takes one of the valid names for a PWM pin and configures
  43622. // the pin for its PWM functionality depending on the part that is defined.
  43623. //
  43624. // The valid names for the pins are as follows: \b PWM0, \b PWM1, \b PWM2,
  43625. // \b PWM3, \b PWM4, \b PWM5, or \b FAULT.
  43626. //
  43627. // \sa GPIOPinTypePWM() in order to configure multiple PWM pins at once.
  43628. //
  43629. // \return None.
  43630. //
  43631. //*****************************************************************************
  43632. #define PinTypePWM(ulName) GPIOPinTypePWM(ulName##_PORT, ulName##_PIN)
  43633. //*****************************************************************************
  43634. //
  43635. // Configures the specified QEI pin to function as a QEI pin.
  43636. //
  43637. // \param ulName is one of the valid names for the QEI pins.
  43638. //
  43639. // This function takes one of the valid names for a QEI pin and configures
  43640. // the pin for its QEI functionality depending on the part that is defined.
  43641. //
  43642. // The valid names for the pins are as follows: \b PHA0, \b PHB0, \b IDX0,
  43643. // \b PHA1, \b PHB1, or \b IDX1.
  43644. //
  43645. // \sa GPIOPinTypeQEI() in order to configure multiple QEI pins at once.
  43646. //
  43647. // \return None.
  43648. //
  43649. //*****************************************************************************
  43650. #define PinTypeQEI(ulName) GPIOPinTypeQEI(ulName##_PORT, ulName##_PIN)
  43651. //*****************************************************************************
  43652. //
  43653. // Configures the specified SSI pin to function as an SSI pin.
  43654. //
  43655. // \param ulName is one of the valid names for the SSI pins.
  43656. //
  43657. // This function takes one of the valid names for an SSI pin and configures
  43658. // the pin for its SSI functionality depending on the part that is defined.
  43659. //
  43660. // The valid names for the pins are as follows: \b SSI0CLK, \b SSI0FSS,
  43661. // \b SSI0RX, \b SSI0TX, \b SSI1CLK, \b SSI1FSS, \b SSI1RX, or \b SSI1TX.
  43662. //
  43663. // \sa GPIOPinTypeSSI() in order to configure multiple SSI pins at once.
  43664. //
  43665. // \return None.
  43666. //
  43667. //*****************************************************************************
  43668. #define PinTypeSSI(ulName) GPIOPinTypeSSI(ulName##_PORT, ulName##_PIN)
  43669. //*****************************************************************************
  43670. //
  43671. // Configures the specified Timer pin to function as a Timer pin.
  43672. //
  43673. // \param ulName is one of the valid names for the Timer pins.
  43674. //
  43675. // This function takes one of the valid names for a Timer pin and configures
  43676. // the pin for its Timer functionality depending on the part that is defined.
  43677. //
  43678. // The valid names for the pins are as follows: \b CCP0, \b CCP1, \b CCP2,
  43679. // \b CCP3, \b CCP4, \b CCP5, \b CCP6, or \b CCP7.
  43680. //
  43681. // \sa GPIOPinTypeTimer() in order to configure multiple CCP pins at once.
  43682. //
  43683. // \return None.
  43684. //
  43685. //*****************************************************************************
  43686. #define PinTypeTimer(ulName) GPIOPinTypeTimer(ulName##_PORT, ulName##_PIN)
  43687. //*****************************************************************************
  43688. //
  43689. // Configures the specified UART pin to function as a UART pin.
  43690. //
  43691. // \param ulName is one of the valid names for the UART pins.
  43692. //
  43693. // This function takes one of the valid names for a UART pin and configures
  43694. // the pin for its UART functionality depending on the part that is defined.
  43695. //
  43696. // The valid names for the pins are as follows: \b U0RX, \b U0TX, \b U1RX,
  43697. // \b U1TX, \b U2RX, or \b U2TX.
  43698. //
  43699. // \sa GPIOPinTypeUART() in order to configure multiple UART pins at once.
  43700. //
  43701. // \return None.
  43702. //
  43703. //*****************************************************************************
  43704. #define PinTypeUART(ulName) GPIOPinTypeUART(ulName##_PORT, ulName##_PIN)
  43705. //*****************************************************************************
  43706. //
  43707. //! Configures the specified USB digital pin to function as a USB pin.
  43708. //!
  43709. //! \param ulName is one of the valid names for a USB digital pin.
  43710. //!
  43711. //! This function takes one of the valid names for a USB digital pin and
  43712. //! configures the pin for its USB functionality depending on the part that is
  43713. //! defined.
  43714. //!
  43715. //! The valid names for the pins are as follows: \b EPEN or \b PFAULT.
  43716. //!
  43717. //! \sa GPIOPinTypeUSBDigital() in order to configure multiple USB pins at
  43718. //! once.
  43719. //!
  43720. //! \return None.
  43721. //
  43722. //*****************************************************************************
  43723. #define PinTypeUSBDigital(ulName) \
  43724. GPIOPinTypeUSBDigital(ulName##_PORT, \
  43725. ulName##_PIN)
  43726. //*****************************************************************************
  43727. //
  43728. //! Enables the peripheral port used by the given pin.
  43729. //!
  43730. //! \param ulName is one of the valid names for a pin.
  43731. //!
  43732. //! This function takes one of the valid names for a pin function and
  43733. //! enables the peripheral port for that pin depending on the part that is
  43734. //! defined.
  43735. //!
  43736. //! Any valid pin name can be used.
  43737. //!
  43738. //! \sa SysCtlPeripheralEnable() in order to enable a single port when
  43739. //! multiple pins are on the same port.
  43740. //!
  43741. //! \return None.
  43742. //
  43743. //*****************************************************************************
  43744. #define PeripheralEnable(ulName) \
  43745. SysCtlPeripheralEnable(ulName##_PERIPH)
  43746. #endif // __PIN_MAP_H__