pin_map.h 757 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413
  1. //*****************************************************************************
  2. //
  3. // pin_map.h - Mapping of peripherals to pins for all parts.
  4. //
  5. // Copyright (c) 2007-2010 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 6459 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. // LM3S1625 Port/Pin Mapping Definitions
  4841. //
  4842. //*****************************************************************************
  4843. #ifdef PART_LM3S1625
  4844. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  4845. #define ADC0_PORT (GPIO_PORTE_BASE)
  4846. #define ADC0_PIN (GPIO_PIN_3)
  4847. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  4848. #define ADC1_PORT (GPIO_PORTE_BASE)
  4849. #define ADC1_PIN (GPIO_PIN_2)
  4850. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  4851. #define ADC2_PORT (GPIO_PORTE_BASE)
  4852. #define ADC2_PIN (GPIO_PIN_1)
  4853. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  4854. #define ADC3_PORT (GPIO_PORTE_BASE)
  4855. #define ADC3_PIN (GPIO_PIN_0)
  4856. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  4857. #define ADC4_PORT (GPIO_PORTD_BASE)
  4858. #define ADC4_PIN (GPIO_PIN_3)
  4859. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  4860. #define ADC5_PORT (GPIO_PORTD_BASE)
  4861. #define ADC5_PIN (GPIO_PIN_2)
  4862. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOB)
  4863. #define C0O_PORT (GPIO_PORTB_BASE)
  4864. #define C0O_PIN (GPIO_PIN_5)
  4865. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  4866. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  4867. #define C0_MINUS_PIN (GPIO_PIN_4)
  4868. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  4869. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  4870. #define C0_PLUS_PIN (GPIO_PIN_6)
  4871. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOC)
  4872. #define CCP0_PORT (GPIO_PORTC_BASE)
  4873. #define CCP0_PIN (GPIO_PIN_7)
  4874. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOC)
  4875. #define CCP1_PORT (GPIO_PORTC_BASE)
  4876. #define CCP1_PIN (GPIO_PIN_5)
  4877. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOC)
  4878. #define CCP2_PORT (GPIO_PORTC_BASE)
  4879. #define CCP2_PIN (GPIO_PIN_4)
  4880. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  4881. #define CCP3_PORT (GPIO_PORTC_BASE)
  4882. #define CCP3_PIN (GPIO_PIN_6)
  4883. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOE)
  4884. #define FAULT0_PORT (GPIO_PORTE_BASE)
  4885. #define FAULT0_PIN (GPIO_PIN_4)
  4886. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  4887. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  4888. #define I2C0SCL_PIN (GPIO_PIN_2)
  4889. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  4890. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  4891. #define I2C0SDA_PIN (GPIO_PIN_3)
  4892. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  4893. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  4894. #define I2C1SCL_PIN (GPIO_PIN_6)
  4895. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  4896. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  4897. #define I2C1SDA_PIN (GPIO_PIN_7)
  4898. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  4899. #define NMI_PORT (GPIO_PORTB_BASE)
  4900. #define NMI_PIN (GPIO_PIN_7)
  4901. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  4902. #define PWM0_PORT (GPIO_PORTD_BASE)
  4903. #define PWM0_PIN (GPIO_PIN_0)
  4904. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  4905. #define PWM1_PORT (GPIO_PORTD_BASE)
  4906. #define PWM1_PIN (GPIO_PIN_1)
  4907. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  4908. #define PWM2_PORT (GPIO_PORTB_BASE)
  4909. #define PWM2_PIN (GPIO_PIN_0)
  4910. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  4911. #define PWM3_PORT (GPIO_PORTB_BASE)
  4912. #define PWM3_PIN (GPIO_PIN_1)
  4913. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  4914. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  4915. #define SSI0CLK_PIN (GPIO_PIN_2)
  4916. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  4917. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  4918. #define SSI0FSS_PIN (GPIO_PIN_3)
  4919. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  4920. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  4921. #define SSI0RX_PIN (GPIO_PIN_4)
  4922. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  4923. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  4924. #define SSI0TX_PIN (GPIO_PIN_5)
  4925. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  4926. #define SWCLK_PORT (GPIO_PORTC_BASE)
  4927. #define SWCLK_PIN (GPIO_PIN_0)
  4928. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  4929. #define SWDIO_PORT (GPIO_PORTC_BASE)
  4930. #define SWDIO_PIN (GPIO_PIN_1)
  4931. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  4932. #define SWO_PORT (GPIO_PORTC_BASE)
  4933. #define SWO_PIN (GPIO_PIN_3)
  4934. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  4935. #define TCK_PORT (GPIO_PORTC_BASE)
  4936. #define TCK_PIN (GPIO_PIN_0)
  4937. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  4938. #define TDI_PORT (GPIO_PORTC_BASE)
  4939. #define TDI_PIN (GPIO_PIN_2)
  4940. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  4941. #define TDO_PORT (GPIO_PORTC_BASE)
  4942. #define TDO_PIN (GPIO_PIN_3)
  4943. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  4944. #define TMS_PORT (GPIO_PORTC_BASE)
  4945. #define TMS_PIN (GPIO_PIN_1)
  4946. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  4947. #define U0RX_PORT (GPIO_PORTA_BASE)
  4948. #define U0RX_PIN (GPIO_PIN_0)
  4949. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  4950. #define U0TX_PORT (GPIO_PORTA_BASE)
  4951. #define U0TX_PIN (GPIO_PIN_1)
  4952. #endif // PART_LM3S1625
  4953. //*****************************************************************************
  4954. //
  4955. // LM3S1626 Port/Pin Mapping Definitions
  4956. //
  4957. //*****************************************************************************
  4958. #ifdef PART_LM3S1626
  4959. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  4960. #define ADC0_PORT (GPIO_PORTE_BASE)
  4961. #define ADC0_PIN (GPIO_PIN_3)
  4962. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  4963. #define ADC1_PORT (GPIO_PORTE_BASE)
  4964. #define ADC1_PIN (GPIO_PIN_2)
  4965. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  4966. #define ADC2_PORT (GPIO_PORTE_BASE)
  4967. #define ADC2_PIN (GPIO_PIN_1)
  4968. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  4969. #define ADC3_PORT (GPIO_PORTE_BASE)
  4970. #define ADC3_PIN (GPIO_PIN_0)
  4971. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  4972. #define ADC4_PORT (GPIO_PORTD_BASE)
  4973. #define ADC4_PIN (GPIO_PIN_3)
  4974. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  4975. #define ADC5_PORT (GPIO_PORTD_BASE)
  4976. #define ADC5_PIN (GPIO_PIN_2)
  4977. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOC)
  4978. #define CCP0_PORT (GPIO_PORTC_BASE)
  4979. #define CCP0_PIN (GPIO_PIN_6)
  4980. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOB)
  4981. #define CCP1_PORT (GPIO_PORTB_BASE)
  4982. #define CCP1_PIN (GPIO_PIN_6)
  4983. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOC)
  4984. #define CCP2_PORT (GPIO_PORTC_BASE)
  4985. #define CCP2_PIN (GPIO_PIN_4)
  4986. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  4987. #define CCP3_PORT (GPIO_PORTC_BASE)
  4988. #define CCP3_PIN (GPIO_PIN_5)
  4989. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOE)
  4990. #define FAULT0_PORT (GPIO_PORTE_BASE)
  4991. #define FAULT0_PIN (GPIO_PIN_4)
  4992. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  4993. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  4994. #define I2C0SCL_PIN (GPIO_PIN_2)
  4995. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  4996. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  4997. #define I2C0SDA_PIN (GPIO_PIN_3)
  4998. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  4999. #define IDX0_PORT (GPIO_PORTD_BASE)
  5000. #define IDX0_PIN (GPIO_PIN_0)
  5001. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  5002. #define NMI_PORT (GPIO_PORTB_BASE)
  5003. #define NMI_PIN (GPIO_PIN_7)
  5004. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOD)
  5005. #define PHA0_PORT (GPIO_PORTD_BASE)
  5006. #define PHA0_PIN (GPIO_PIN_1)
  5007. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOC)
  5008. #define PHB0_PORT (GPIO_PORTC_BASE)
  5009. #define PHB0_PIN (GPIO_PIN_7)
  5010. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOA)
  5011. #define PWM0_PORT (GPIO_PORTA_BASE)
  5012. #define PWM0_PIN (GPIO_PIN_6)
  5013. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOA)
  5014. #define PWM1_PORT (GPIO_PORTA_BASE)
  5015. #define PWM1_PIN (GPIO_PIN_7)
  5016. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  5017. #define PWM2_PORT (GPIO_PORTB_BASE)
  5018. #define PWM2_PIN (GPIO_PIN_0)
  5019. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  5020. #define PWM3_PORT (GPIO_PORTB_BASE)
  5021. #define PWM3_PIN (GPIO_PIN_1)
  5022. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  5023. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  5024. #define SSI0CLK_PIN (GPIO_PIN_2)
  5025. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  5026. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  5027. #define SSI0FSS_PIN (GPIO_PIN_3)
  5028. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5029. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  5030. #define SSI0RX_PIN (GPIO_PIN_4)
  5031. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5032. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  5033. #define SSI0TX_PIN (GPIO_PIN_5)
  5034. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5035. #define SWCLK_PORT (GPIO_PORTC_BASE)
  5036. #define SWCLK_PIN (GPIO_PIN_0)
  5037. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5038. #define SWDIO_PORT (GPIO_PORTC_BASE)
  5039. #define SWDIO_PIN (GPIO_PIN_1)
  5040. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5041. #define SWO_PORT (GPIO_PORTC_BASE)
  5042. #define SWO_PIN (GPIO_PIN_3)
  5043. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5044. #define TCK_PORT (GPIO_PORTC_BASE)
  5045. #define TCK_PIN (GPIO_PIN_0)
  5046. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  5047. #define TDI_PORT (GPIO_PORTC_BASE)
  5048. #define TDI_PIN (GPIO_PIN_2)
  5049. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5050. #define TDO_PORT (GPIO_PORTC_BASE)
  5051. #define TDO_PIN (GPIO_PIN_3)
  5052. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5053. #define TMS_PORT (GPIO_PORTC_BASE)
  5054. #define TMS_PIN (GPIO_PIN_1)
  5055. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5056. #define U0RX_PORT (GPIO_PORTA_BASE)
  5057. #define U0RX_PIN (GPIO_PIN_0)
  5058. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5059. #define U0TX_PORT (GPIO_PORTA_BASE)
  5060. #define U0TX_PIN (GPIO_PIN_1)
  5061. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  5062. #define U1RX_PORT (GPIO_PORTB_BASE)
  5063. #define U1RX_PIN (GPIO_PIN_4)
  5064. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  5065. #define U1TX_PORT (GPIO_PORTB_BASE)
  5066. #define U1TX_PIN (GPIO_PIN_5)
  5067. #endif // PART_LM3S1626
  5068. //*****************************************************************************
  5069. //
  5070. // LM3S1627 Port/Pin Mapping Definitions
  5071. //
  5072. //*****************************************************************************
  5073. #ifdef PART_LM3S1627
  5074. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  5075. #define ADC0_PORT (GPIO_PORTE_BASE)
  5076. #define ADC0_PIN (GPIO_PIN_3)
  5077. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  5078. #define ADC1_PORT (GPIO_PORTE_BASE)
  5079. #define ADC1_PIN (GPIO_PIN_2)
  5080. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  5081. #define ADC2_PORT (GPIO_PORTE_BASE)
  5082. #define ADC2_PIN (GPIO_PIN_1)
  5083. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  5084. #define ADC3_PORT (GPIO_PORTE_BASE)
  5085. #define ADC3_PIN (GPIO_PIN_0)
  5086. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOC)
  5087. #define CCP0_PORT (GPIO_PORTC_BASE)
  5088. #define CCP0_PIN (GPIO_PIN_6)
  5089. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOB)
  5090. #define CCP1_PORT (GPIO_PORTB_BASE)
  5091. #define CCP1_PIN (GPIO_PIN_6)
  5092. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  5093. #define CCP2_PORT (GPIO_PORTB_BASE)
  5094. #define CCP2_PIN (GPIO_PIN_5)
  5095. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  5096. #define CCP3_PORT (GPIO_PORTC_BASE)
  5097. #define CCP3_PIN (GPIO_PIN_5)
  5098. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOE)
  5099. #define FAULT0_PORT (GPIO_PORTE_BASE)
  5100. #define FAULT0_PIN (GPIO_PIN_4)
  5101. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  5102. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  5103. #define I2C0SCL_PIN (GPIO_PIN_2)
  5104. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  5105. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  5106. #define I2C0SDA_PIN (GPIO_PIN_3)
  5107. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOB)
  5108. #define IDX0_PORT (GPIO_PORTB_BASE)
  5109. #define IDX0_PIN (GPIO_PIN_4)
  5110. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  5111. #define NMI_PORT (GPIO_PORTB_BASE)
  5112. #define NMI_PIN (GPIO_PIN_7)
  5113. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  5114. #define PHA0_PORT (GPIO_PORTC_BASE)
  5115. #define PHA0_PIN (GPIO_PIN_4)
  5116. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOC)
  5117. #define PHB0_PORT (GPIO_PORTC_BASE)
  5118. #define PHB0_PIN (GPIO_PIN_7)
  5119. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  5120. #define PWM0_PORT (GPIO_PORTD_BASE)
  5121. #define PWM0_PIN (GPIO_PIN_0)
  5122. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  5123. #define PWM1_PORT (GPIO_PORTD_BASE)
  5124. #define PWM1_PIN (GPIO_PIN_1)
  5125. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOD)
  5126. #define PWM2_PORT (GPIO_PORTD_BASE)
  5127. #define PWM2_PIN (GPIO_PIN_2)
  5128. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOD)
  5129. #define PWM3_PORT (GPIO_PORTD_BASE)
  5130. #define PWM3_PIN (GPIO_PIN_3)
  5131. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOA)
  5132. #define PWM4_PORT (GPIO_PORTA_BASE)
  5133. #define PWM4_PIN (GPIO_PIN_6)
  5134. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOA)
  5135. #define PWM5_PORT (GPIO_PORTA_BASE)
  5136. #define PWM5_PIN (GPIO_PIN_7)
  5137. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  5138. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  5139. #define SSI0CLK_PIN (GPIO_PIN_2)
  5140. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  5141. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  5142. #define SSI0FSS_PIN (GPIO_PIN_3)
  5143. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5144. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  5145. #define SSI0RX_PIN (GPIO_PIN_4)
  5146. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5147. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  5148. #define SSI0TX_PIN (GPIO_PIN_5)
  5149. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5150. #define SWCLK_PORT (GPIO_PORTC_BASE)
  5151. #define SWCLK_PIN (GPIO_PIN_0)
  5152. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5153. #define SWDIO_PORT (GPIO_PORTC_BASE)
  5154. #define SWDIO_PIN (GPIO_PIN_1)
  5155. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5156. #define SWO_PORT (GPIO_PORTC_BASE)
  5157. #define SWO_PIN (GPIO_PIN_3)
  5158. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5159. #define TCK_PORT (GPIO_PORTC_BASE)
  5160. #define TCK_PIN (GPIO_PIN_0)
  5161. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  5162. #define TDI_PORT (GPIO_PORTC_BASE)
  5163. #define TDI_PIN (GPIO_PIN_2)
  5164. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5165. #define TDO_PORT (GPIO_PORTC_BASE)
  5166. #define TDO_PIN (GPIO_PIN_3)
  5167. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5168. #define TMS_PORT (GPIO_PORTC_BASE)
  5169. #define TMS_PIN (GPIO_PIN_1)
  5170. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5171. #define U0RX_PORT (GPIO_PORTA_BASE)
  5172. #define U0RX_PIN (GPIO_PIN_0)
  5173. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5174. #define U0TX_PORT (GPIO_PORTA_BASE)
  5175. #define U0TX_PIN (GPIO_PIN_1)
  5176. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  5177. #define U1RX_PORT (GPIO_PORTB_BASE)
  5178. #define U1RX_PIN (GPIO_PIN_0)
  5179. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  5180. #define U1TX_PORT (GPIO_PORTB_BASE)
  5181. #define U1TX_PIN (GPIO_PIN_1)
  5182. #endif // PART_LM3S1627
  5183. //*****************************************************************************
  5184. //
  5185. // LM3S1635 Port/Pin Mapping Definitions
  5186. //
  5187. //*****************************************************************************
  5188. #ifdef PART_LM3S1635
  5189. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  5190. #define C0O_PORT (GPIO_PORTF_BASE)
  5191. #define C0O_PIN (GPIO_PIN_4)
  5192. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5193. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  5194. #define C0_MINUS_PIN (GPIO_PIN_4)
  5195. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5196. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  5197. #define C0_PLUS_PIN (GPIO_PIN_6)
  5198. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOF)
  5199. #define C1O_PORT (GPIO_PORTF_BASE)
  5200. #define C1O_PIN (GPIO_PIN_5)
  5201. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5202. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  5203. #define C1_MINUS_PIN (GPIO_PIN_5)
  5204. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5205. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  5206. #define C1_PLUS_PIN (GPIO_PIN_5)
  5207. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  5208. #define CCP0_PORT (GPIO_PORTD_BASE)
  5209. #define CCP0_PIN (GPIO_PIN_4)
  5210. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOD)
  5211. #define CCP1_PORT (GPIO_PORTD_BASE)
  5212. #define CCP1_PIN (GPIO_PIN_7)
  5213. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOD)
  5214. #define CCP2_PORT (GPIO_PORTD_BASE)
  5215. #define CCP2_PIN (GPIO_PIN_5)
  5216. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  5217. #define CCP3_PORT (GPIO_PORTC_BASE)
  5218. #define CCP3_PIN (GPIO_PIN_6)
  5219. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  5220. #define CCP4_PORT (GPIO_PORTC_BASE)
  5221. #define CCP4_PIN (GPIO_PIN_7)
  5222. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  5223. #define CCP5_PORT (GPIO_PORTC_BASE)
  5224. #define CCP5_PIN (GPIO_PIN_4)
  5225. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  5226. #define CCP6_PORT (GPIO_PORTH_BASE)
  5227. #define CCP6_PIN (GPIO_PIN_0)
  5228. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOH)
  5229. #define CCP7_PORT (GPIO_PORTH_BASE)
  5230. #define CCP7_PIN (GPIO_PIN_1)
  5231. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  5232. #define FAULT_PORT (GPIO_PORTD_BASE)
  5233. #define FAULT_PIN (GPIO_PIN_6)
  5234. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  5235. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  5236. #define I2C0SCL_PIN (GPIO_PIN_2)
  5237. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  5238. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  5239. #define I2C0SDA_PIN (GPIO_PIN_3)
  5240. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  5241. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  5242. #define I2C1SCL_PIN (GPIO_PIN_6)
  5243. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  5244. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  5245. #define I2C1SDA_PIN (GPIO_PIN_7)
  5246. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  5247. #define PWM0_PORT (GPIO_PORTD_BASE)
  5248. #define PWM0_PIN (GPIO_PIN_0)
  5249. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  5250. #define PWM1_PORT (GPIO_PORTD_BASE)
  5251. #define PWM1_PIN (GPIO_PIN_1)
  5252. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  5253. #define PWM2_PORT (GPIO_PORTB_BASE)
  5254. #define PWM2_PIN (GPIO_PIN_0)
  5255. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  5256. #define PWM3_PORT (GPIO_PORTB_BASE)
  5257. #define PWM3_PIN (GPIO_PIN_1)
  5258. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOF)
  5259. #define PWM4_PORT (GPIO_PORTF_BASE)
  5260. #define PWM4_PIN (GPIO_PIN_2)
  5261. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOF)
  5262. #define PWM5_PORT (GPIO_PORTF_BASE)
  5263. #define PWM5_PIN (GPIO_PIN_3)
  5264. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  5265. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  5266. #define SSI0CLK_PIN (GPIO_PIN_2)
  5267. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  5268. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  5269. #define SSI0FSS_PIN (GPIO_PIN_3)
  5270. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5271. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  5272. #define SSI0RX_PIN (GPIO_PIN_4)
  5273. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5274. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  5275. #define SSI0TX_PIN (GPIO_PIN_5)
  5276. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  5277. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  5278. #define SSI1CLK_PIN (GPIO_PIN_0)
  5279. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  5280. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  5281. #define SSI1FSS_PIN (GPIO_PIN_1)
  5282. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  5283. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  5284. #define SSI1RX_PIN (GPIO_PIN_2)
  5285. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  5286. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  5287. #define SSI1TX_PIN (GPIO_PIN_3)
  5288. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5289. #define SWCLK_PORT (GPIO_PORTC_BASE)
  5290. #define SWCLK_PIN (GPIO_PIN_0)
  5291. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5292. #define SWDIO_PORT (GPIO_PORTC_BASE)
  5293. #define SWDIO_PIN (GPIO_PIN_1)
  5294. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5295. #define SWO_PORT (GPIO_PORTC_BASE)
  5296. #define SWO_PIN (GPIO_PIN_3)
  5297. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5298. #define TCK_PORT (GPIO_PORTC_BASE)
  5299. #define TCK_PIN (GPIO_PIN_0)
  5300. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  5301. #define TDI_PORT (GPIO_PORTC_BASE)
  5302. #define TDI_PIN (GPIO_PIN_2)
  5303. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5304. #define TDO_PORT (GPIO_PORTC_BASE)
  5305. #define TDO_PIN (GPIO_PIN_3)
  5306. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5307. #define TMS_PORT (GPIO_PORTC_BASE)
  5308. #define TMS_PIN (GPIO_PIN_1)
  5309. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  5310. #define TRST_PORT (GPIO_PORTB_BASE)
  5311. #define TRST_PIN (GPIO_PIN_7)
  5312. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5313. #define U0RX_PORT (GPIO_PORTA_BASE)
  5314. #define U0RX_PIN (GPIO_PIN_0)
  5315. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5316. #define U0TX_PORT (GPIO_PORTA_BASE)
  5317. #define U0TX_PIN (GPIO_PIN_1)
  5318. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  5319. #define U1RX_PORT (GPIO_PORTD_BASE)
  5320. #define U1RX_PIN (GPIO_PIN_2)
  5321. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  5322. #define U1TX_PORT (GPIO_PORTD_BASE)
  5323. #define U1TX_PIN (GPIO_PIN_3)
  5324. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  5325. #define U2RX_PORT (GPIO_PORTG_BASE)
  5326. #define U2RX_PIN (GPIO_PIN_0)
  5327. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  5328. #define U2TX_PORT (GPIO_PORTG_BASE)
  5329. #define U2TX_PIN (GPIO_PIN_1)
  5330. #endif // PART_LM3S1635
  5331. //*****************************************************************************
  5332. //
  5333. // LM3S1637 Port/Pin Mapping Definitions
  5334. //
  5335. //*****************************************************************************
  5336. #ifdef PART_LM3S1637
  5337. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  5338. #define C0O_PORT (GPIO_PORTC_BASE)
  5339. #define C0O_PIN (GPIO_PIN_5)
  5340. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5341. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  5342. #define C0_MINUS_PIN (GPIO_PIN_4)
  5343. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5344. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  5345. #define C0_PLUS_PIN (GPIO_PIN_6)
  5346. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  5347. #define CCP0_PORT (GPIO_PORTB_BASE)
  5348. #define CCP0_PIN (GPIO_PIN_0)
  5349. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  5350. #define CCP1_PORT (GPIO_PORTA_BASE)
  5351. #define CCP1_PIN (GPIO_PIN_6)
  5352. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  5353. #define CCP2_PORT (GPIO_PORTB_BASE)
  5354. #define CCP2_PIN (GPIO_PIN_1)
  5355. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  5356. #define CCP3_PORT (GPIO_PORTC_BASE)
  5357. #define CCP3_PIN (GPIO_PIN_6)
  5358. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  5359. #define CCP4_PORT (GPIO_PORTA_BASE)
  5360. #define CCP4_PIN (GPIO_PIN_7)
  5361. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOB)
  5362. #define CCP5_PORT (GPIO_PORTB_BASE)
  5363. #define CCP5_PIN (GPIO_PIN_5)
  5364. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  5365. #define FAULT_PORT (GPIO_PORTD_BASE)
  5366. #define FAULT_PIN (GPIO_PIN_6)
  5367. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  5368. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  5369. #define I2C0SCL_PIN (GPIO_PIN_2)
  5370. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  5371. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  5372. #define I2C0SDA_PIN (GPIO_PIN_3)
  5373. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  5374. #define IDX0_PORT (GPIO_PORTD_BASE)
  5375. #define IDX0_PIN (GPIO_PIN_7)
  5376. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  5377. #define PHA0_PORT (GPIO_PORTC_BASE)
  5378. #define PHA0_PIN (GPIO_PIN_4)
  5379. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOC)
  5380. #define PHB0_PORT (GPIO_PORTC_BASE)
  5381. #define PHB0_PIN (GPIO_PIN_7)
  5382. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  5383. #define PWM0_PORT (GPIO_PORTD_BASE)
  5384. #define PWM0_PIN (GPIO_PIN_0)
  5385. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  5386. #define PWM1_PORT (GPIO_PORTD_BASE)
  5387. #define PWM1_PIN (GPIO_PIN_1)
  5388. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  5389. #define PWM2_PORT (GPIO_PORTH_BASE)
  5390. #define PWM2_PIN (GPIO_PIN_0)
  5391. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  5392. #define PWM3_PORT (GPIO_PORTH_BASE)
  5393. #define PWM3_PIN (GPIO_PIN_1)
  5394. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  5395. #define PWM4_PORT (GPIO_PORTE_BASE)
  5396. #define PWM4_PIN (GPIO_PIN_0)
  5397. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  5398. #define PWM5_PORT (GPIO_PORTE_BASE)
  5399. #define PWM5_PIN (GPIO_PIN_1)
  5400. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  5401. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  5402. #define SSI0CLK_PIN (GPIO_PIN_2)
  5403. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  5404. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  5405. #define SSI0FSS_PIN (GPIO_PIN_3)
  5406. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5407. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  5408. #define SSI0RX_PIN (GPIO_PIN_4)
  5409. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5410. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  5411. #define SSI0TX_PIN (GPIO_PIN_5)
  5412. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5413. #define SWCLK_PORT (GPIO_PORTC_BASE)
  5414. #define SWCLK_PIN (GPIO_PIN_0)
  5415. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5416. #define SWDIO_PORT (GPIO_PORTC_BASE)
  5417. #define SWDIO_PIN (GPIO_PIN_1)
  5418. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5419. #define SWO_PORT (GPIO_PORTC_BASE)
  5420. #define SWO_PIN (GPIO_PIN_3)
  5421. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5422. #define TCK_PORT (GPIO_PORTC_BASE)
  5423. #define TCK_PIN (GPIO_PIN_0)
  5424. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  5425. #define TDI_PORT (GPIO_PORTC_BASE)
  5426. #define TDI_PIN (GPIO_PIN_2)
  5427. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5428. #define TDO_PORT (GPIO_PORTC_BASE)
  5429. #define TDO_PIN (GPIO_PIN_3)
  5430. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5431. #define TMS_PORT (GPIO_PORTC_BASE)
  5432. #define TMS_PIN (GPIO_PIN_1)
  5433. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  5434. #define TRST_PORT (GPIO_PORTB_BASE)
  5435. #define TRST_PIN (GPIO_PIN_7)
  5436. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5437. #define U0RX_PORT (GPIO_PORTA_BASE)
  5438. #define U0RX_PIN (GPIO_PIN_0)
  5439. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5440. #define U0TX_PORT (GPIO_PORTA_BASE)
  5441. #define U0TX_PIN (GPIO_PIN_1)
  5442. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  5443. #define U1RX_PORT (GPIO_PORTD_BASE)
  5444. #define U1RX_PIN (GPIO_PIN_2)
  5445. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  5446. #define U1TX_PORT (GPIO_PORTD_BASE)
  5447. #define U1TX_PIN (GPIO_PIN_3)
  5448. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  5449. #define U2RX_PORT (GPIO_PORTG_BASE)
  5450. #define U2RX_PIN (GPIO_PIN_0)
  5451. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  5452. #define U2TX_PORT (GPIO_PORTG_BASE)
  5453. #define U2TX_PIN (GPIO_PIN_1)
  5454. #endif // PART_LM3S1637
  5455. //*****************************************************************************
  5456. //
  5457. // LM3S1751 Port/Pin Mapping Definitions
  5458. //
  5459. //*****************************************************************************
  5460. #ifdef PART_LM3S1751
  5461. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  5462. #define C0O_PORT (GPIO_PORTC_BASE)
  5463. #define C0O_PIN (GPIO_PIN_5)
  5464. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5465. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  5466. #define C0_MINUS_PIN (GPIO_PIN_4)
  5467. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5468. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  5469. #define C0_PLUS_PIN (GPIO_PIN_6)
  5470. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  5471. #define CCP0_PORT (GPIO_PORTB_BASE)
  5472. #define CCP0_PIN (GPIO_PIN_0)
  5473. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  5474. #define CCP1_PORT (GPIO_PORTA_BASE)
  5475. #define CCP1_PIN (GPIO_PIN_6)
  5476. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  5477. #define CCP2_PORT (GPIO_PORTB_BASE)
  5478. #define CCP2_PIN (GPIO_PIN_1)
  5479. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  5480. #define CCP3_PORT (GPIO_PORTC_BASE)
  5481. #define CCP3_PIN (GPIO_PIN_6)
  5482. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  5483. #define CCP4_PORT (GPIO_PORTA_BASE)
  5484. #define CCP4_PIN (GPIO_PIN_7)
  5485. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOB)
  5486. #define CCP5_PORT (GPIO_PORTB_BASE)
  5487. #define CCP5_PIN (GPIO_PIN_5)
  5488. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  5489. #define FAULT_PORT (GPIO_PORTD_BASE)
  5490. #define FAULT_PIN (GPIO_PIN_6)
  5491. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  5492. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  5493. #define I2C0SCL_PIN (GPIO_PIN_2)
  5494. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  5495. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  5496. #define I2C0SDA_PIN (GPIO_PIN_3)
  5497. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  5498. #define PWM0_PORT (GPIO_PORTD_BASE)
  5499. #define PWM0_PIN (GPIO_PIN_0)
  5500. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  5501. #define PWM1_PORT (GPIO_PORTD_BASE)
  5502. #define PWM1_PIN (GPIO_PIN_1)
  5503. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  5504. #define PWM2_PORT (GPIO_PORTH_BASE)
  5505. #define PWM2_PIN (GPIO_PIN_0)
  5506. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  5507. #define PWM3_PORT (GPIO_PORTH_BASE)
  5508. #define PWM3_PIN (GPIO_PIN_1)
  5509. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  5510. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  5511. #define SSI0CLK_PIN (GPIO_PIN_2)
  5512. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  5513. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  5514. #define SSI0FSS_PIN (GPIO_PIN_3)
  5515. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5516. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  5517. #define SSI0RX_PIN (GPIO_PIN_4)
  5518. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5519. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  5520. #define SSI0TX_PIN (GPIO_PIN_5)
  5521. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  5522. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  5523. #define SSI1CLK_PIN (GPIO_PIN_0)
  5524. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  5525. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  5526. #define SSI1FSS_PIN (GPIO_PIN_1)
  5527. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  5528. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  5529. #define SSI1RX_PIN (GPIO_PIN_2)
  5530. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  5531. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  5532. #define SSI1TX_PIN (GPIO_PIN_3)
  5533. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5534. #define SWCLK_PORT (GPIO_PORTC_BASE)
  5535. #define SWCLK_PIN (GPIO_PIN_0)
  5536. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5537. #define SWDIO_PORT (GPIO_PORTC_BASE)
  5538. #define SWDIO_PIN (GPIO_PIN_1)
  5539. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5540. #define SWO_PORT (GPIO_PORTC_BASE)
  5541. #define SWO_PIN (GPIO_PIN_3)
  5542. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5543. #define TCK_PORT (GPIO_PORTC_BASE)
  5544. #define TCK_PIN (GPIO_PIN_0)
  5545. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  5546. #define TDI_PORT (GPIO_PORTC_BASE)
  5547. #define TDI_PIN (GPIO_PIN_2)
  5548. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5549. #define TDO_PORT (GPIO_PORTC_BASE)
  5550. #define TDO_PIN (GPIO_PIN_3)
  5551. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5552. #define TMS_PORT (GPIO_PORTC_BASE)
  5553. #define TMS_PIN (GPIO_PIN_1)
  5554. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  5555. #define TRST_PORT (GPIO_PORTB_BASE)
  5556. #define TRST_PIN (GPIO_PIN_7)
  5557. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5558. #define U0RX_PORT (GPIO_PORTA_BASE)
  5559. #define U0RX_PIN (GPIO_PIN_0)
  5560. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5561. #define U0TX_PORT (GPIO_PORTA_BASE)
  5562. #define U0TX_PIN (GPIO_PIN_1)
  5563. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  5564. #define U1RX_PORT (GPIO_PORTD_BASE)
  5565. #define U1RX_PIN (GPIO_PIN_2)
  5566. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  5567. #define U1TX_PORT (GPIO_PORTD_BASE)
  5568. #define U1TX_PIN (GPIO_PIN_3)
  5569. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  5570. #define U2RX_PORT (GPIO_PORTG_BASE)
  5571. #define U2RX_PIN (GPIO_PIN_0)
  5572. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  5573. #define U2TX_PORT (GPIO_PORTG_BASE)
  5574. #define U2TX_PIN (GPIO_PIN_1)
  5575. #endif // PART_LM3S1751
  5576. //*****************************************************************************
  5577. //
  5578. // LM3S1776 Port/Pin Mapping Definitions
  5579. //
  5580. //*****************************************************************************
  5581. #ifdef PART_LM3S1776
  5582. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  5583. #define ADC0_PORT (GPIO_PORTE_BASE)
  5584. #define ADC0_PIN (GPIO_PIN_3)
  5585. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  5586. #define ADC1_PORT (GPIO_PORTE_BASE)
  5587. #define ADC1_PIN (GPIO_PIN_2)
  5588. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  5589. #define ADC2_PORT (GPIO_PORTE_BASE)
  5590. #define ADC2_PIN (GPIO_PIN_1)
  5591. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  5592. #define ADC3_PORT (GPIO_PORTE_BASE)
  5593. #define ADC3_PIN (GPIO_PIN_0)
  5594. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  5595. #define ADC4_PORT (GPIO_PORTD_BASE)
  5596. #define ADC4_PIN (GPIO_PIN_3)
  5597. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  5598. #define ADC5_PORT (GPIO_PORTD_BASE)
  5599. #define ADC5_PIN (GPIO_PIN_2)
  5600. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOC)
  5601. #define CCP0_PORT (GPIO_PORTC_BASE)
  5602. #define CCP0_PIN (GPIO_PIN_7)
  5603. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  5604. #define CCP2_PORT (GPIO_PORTB_BASE)
  5605. #define CCP2_PIN (GPIO_PIN_5)
  5606. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOE)
  5607. #define FAULT0_PORT (GPIO_PORTE_BASE)
  5608. #define FAULT0_PIN (GPIO_PIN_4)
  5609. #define FAULT1_PERIPH (SYSCTL_PERIPH_GPIOB)
  5610. #define FAULT1_PORT (GPIO_PORTB_BASE)
  5611. #define FAULT1_PIN (GPIO_PIN_6)
  5612. #define FAULT2_PERIPH (SYSCTL_PERIPH_GPIOC)
  5613. #define FAULT2_PORT (GPIO_PORTC_BASE)
  5614. #define FAULT2_PIN (GPIO_PIN_5)
  5615. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  5616. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  5617. #define I2C0SCL_PIN (GPIO_PIN_2)
  5618. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  5619. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  5620. #define I2C0SDA_PIN (GPIO_PIN_3)
  5621. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  5622. #define NMI_PORT (GPIO_PORTB_BASE)
  5623. #define NMI_PIN (GPIO_PIN_7)
  5624. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  5625. #define PWM0_PORT (GPIO_PORTD_BASE)
  5626. #define PWM0_PIN (GPIO_PIN_0)
  5627. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  5628. #define PWM1_PORT (GPIO_PORTD_BASE)
  5629. #define PWM1_PIN (GPIO_PIN_1)
  5630. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  5631. #define PWM2_PORT (GPIO_PORTB_BASE)
  5632. #define PWM2_PIN (GPIO_PIN_0)
  5633. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  5634. #define PWM3_PORT (GPIO_PORTB_BASE)
  5635. #define PWM3_PIN (GPIO_PIN_1)
  5636. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOA)
  5637. #define PWM4_PORT (GPIO_PORTA_BASE)
  5638. #define PWM4_PIN (GPIO_PIN_6)
  5639. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOA)
  5640. #define PWM5_PORT (GPIO_PORTA_BASE)
  5641. #define PWM5_PIN (GPIO_PIN_7)
  5642. #define PWM6_PERIPH (SYSCTL_PERIPH_GPIOC)
  5643. #define PWM6_PORT (GPIO_PORTC_BASE)
  5644. #define PWM6_PIN (GPIO_PIN_4)
  5645. #define PWM7_PERIPH (SYSCTL_PERIPH_GPIOC)
  5646. #define PWM7_PORT (GPIO_PORTC_BASE)
  5647. #define PWM7_PIN (GPIO_PIN_6)
  5648. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  5649. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  5650. #define SSI0CLK_PIN (GPIO_PIN_2)
  5651. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  5652. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  5653. #define SSI0FSS_PIN (GPIO_PIN_3)
  5654. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5655. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  5656. #define SSI0RX_PIN (GPIO_PIN_4)
  5657. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5658. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  5659. #define SSI0TX_PIN (GPIO_PIN_5)
  5660. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5661. #define SWCLK_PORT (GPIO_PORTC_BASE)
  5662. #define SWCLK_PIN (GPIO_PIN_0)
  5663. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5664. #define SWDIO_PORT (GPIO_PORTC_BASE)
  5665. #define SWDIO_PIN (GPIO_PIN_1)
  5666. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5667. #define SWO_PORT (GPIO_PORTC_BASE)
  5668. #define SWO_PIN (GPIO_PIN_3)
  5669. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5670. #define TCK_PORT (GPIO_PORTC_BASE)
  5671. #define TCK_PIN (GPIO_PIN_0)
  5672. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  5673. #define TDI_PORT (GPIO_PORTC_BASE)
  5674. #define TDI_PIN (GPIO_PIN_2)
  5675. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5676. #define TDO_PORT (GPIO_PORTC_BASE)
  5677. #define TDO_PIN (GPIO_PIN_3)
  5678. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5679. #define TMS_PORT (GPIO_PORTC_BASE)
  5680. #define TMS_PIN (GPIO_PIN_1)
  5681. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5682. #define U0RX_PORT (GPIO_PORTA_BASE)
  5683. #define U0RX_PIN (GPIO_PIN_0)
  5684. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5685. #define U0TX_PORT (GPIO_PORTA_BASE)
  5686. #define U0TX_PIN (GPIO_PIN_1)
  5687. #endif // PART_LM3S1776
  5688. //*****************************************************************************
  5689. //
  5690. // LM3S1850 Port/Pin Mapping Definitions
  5691. //
  5692. //*****************************************************************************
  5693. #ifdef PART_LM3S1850
  5694. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  5695. #define C0O_PORT (GPIO_PORTF_BASE)
  5696. #define C0O_PIN (GPIO_PIN_4)
  5697. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5698. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  5699. #define C0_MINUS_PIN (GPIO_PIN_4)
  5700. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5701. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  5702. #define C0_PLUS_PIN (GPIO_PIN_6)
  5703. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  5704. #define C1O_PORT (GPIO_PORTE_BASE)
  5705. #define C1O_PIN (GPIO_PIN_6)
  5706. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5707. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  5708. #define C1_MINUS_PIN (GPIO_PIN_5)
  5709. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5710. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  5711. #define C1_PLUS_PIN (GPIO_PIN_5)
  5712. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5713. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  5714. #define C2_MINUS_PIN (GPIO_PIN_7)
  5715. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5716. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  5717. #define C2_PLUS_PIN (GPIO_PIN_6)
  5718. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  5719. #define CCP0_PORT (GPIO_PORTB_BASE)
  5720. #define CCP0_PIN (GPIO_PIN_0)
  5721. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  5722. #define CCP1_PORT (GPIO_PORTA_BASE)
  5723. #define CCP1_PIN (GPIO_PIN_6)
  5724. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  5725. #define CCP2_PORT (GPIO_PORTB_BASE)
  5726. #define CCP2_PIN (GPIO_PIN_1)
  5727. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  5728. #define CCP3_PORT (GPIO_PORTD_BASE)
  5729. #define CCP3_PIN (GPIO_PIN_4)
  5730. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  5731. #define CCP4_PORT (GPIO_PORTA_BASE)
  5732. #define CCP4_PIN (GPIO_PIN_7)
  5733. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  5734. #define CCP5_PORT (GPIO_PORTC_BASE)
  5735. #define CCP5_PIN (GPIO_PIN_4)
  5736. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  5737. #define FAULT_PORT (GPIO_PORTD_BASE)
  5738. #define FAULT_PIN (GPIO_PIN_6)
  5739. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  5740. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  5741. #define I2C0SCL_PIN (GPIO_PIN_2)
  5742. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  5743. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  5744. #define I2C0SDA_PIN (GPIO_PIN_3)
  5745. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  5746. #define IDX0_PORT (GPIO_PORTD_BASE)
  5747. #define IDX0_PIN (GPIO_PIN_7)
  5748. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOD)
  5749. #define PHA0_PORT (GPIO_PORTD_BASE)
  5750. #define PHA0_PIN (GPIO_PIN_1)
  5751. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOF)
  5752. #define PHB0_PORT (GPIO_PORTF_BASE)
  5753. #define PHB0_PIN (GPIO_PIN_0)
  5754. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  5755. #define PWM0_PORT (GPIO_PORTD_BASE)
  5756. #define PWM0_PIN (GPIO_PIN_0)
  5757. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  5758. #define PWM1_PORT (GPIO_PORTF_BASE)
  5759. #define PWM1_PIN (GPIO_PIN_1)
  5760. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  5761. #define PWM2_PORT (GPIO_PORTH_BASE)
  5762. #define PWM2_PIN (GPIO_PIN_0)
  5763. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  5764. #define PWM3_PORT (GPIO_PORTH_BASE)
  5765. #define PWM3_PIN (GPIO_PIN_1)
  5766. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  5767. #define PWM4_PORT (GPIO_PORTE_BASE)
  5768. #define PWM4_PIN (GPIO_PIN_0)
  5769. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  5770. #define PWM5_PORT (GPIO_PORTE_BASE)
  5771. #define PWM5_PIN (GPIO_PIN_1)
  5772. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  5773. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  5774. #define SSI0CLK_PIN (GPIO_PIN_2)
  5775. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  5776. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  5777. #define SSI0FSS_PIN (GPIO_PIN_3)
  5778. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5779. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  5780. #define SSI0RX_PIN (GPIO_PIN_4)
  5781. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5782. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  5783. #define SSI0TX_PIN (GPIO_PIN_5)
  5784. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5785. #define SWCLK_PORT (GPIO_PORTC_BASE)
  5786. #define SWCLK_PIN (GPIO_PIN_0)
  5787. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5788. #define SWDIO_PORT (GPIO_PORTC_BASE)
  5789. #define SWDIO_PIN (GPIO_PIN_1)
  5790. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5791. #define SWO_PORT (GPIO_PORTC_BASE)
  5792. #define SWO_PIN (GPIO_PIN_3)
  5793. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5794. #define TCK_PORT (GPIO_PORTC_BASE)
  5795. #define TCK_PIN (GPIO_PIN_0)
  5796. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  5797. #define TDI_PORT (GPIO_PORTC_BASE)
  5798. #define TDI_PIN (GPIO_PIN_2)
  5799. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5800. #define TDO_PORT (GPIO_PORTC_BASE)
  5801. #define TDO_PIN (GPIO_PIN_3)
  5802. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5803. #define TMS_PORT (GPIO_PORTC_BASE)
  5804. #define TMS_PIN (GPIO_PIN_1)
  5805. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  5806. #define TRST_PORT (GPIO_PORTB_BASE)
  5807. #define TRST_PIN (GPIO_PIN_7)
  5808. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5809. #define U0RX_PORT (GPIO_PORTA_BASE)
  5810. #define U0RX_PIN (GPIO_PIN_0)
  5811. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5812. #define U0TX_PORT (GPIO_PORTA_BASE)
  5813. #define U0TX_PIN (GPIO_PIN_1)
  5814. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  5815. #define U1RX_PORT (GPIO_PORTD_BASE)
  5816. #define U1RX_PIN (GPIO_PIN_2)
  5817. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  5818. #define U1TX_PORT (GPIO_PORTD_BASE)
  5819. #define U1TX_PIN (GPIO_PIN_3)
  5820. #endif // PART_LM3S1850
  5821. //*****************************************************************************
  5822. //
  5823. // LM3S1911 Port/Pin Mapping Definitions
  5824. //
  5825. //*****************************************************************************
  5826. #ifdef PART_LM3S1911
  5827. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  5828. #define C0O_PORT (GPIO_PORTF_BASE)
  5829. #define C0O_PIN (GPIO_PIN_4)
  5830. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5831. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  5832. #define C0_MINUS_PIN (GPIO_PIN_4)
  5833. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5834. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  5835. #define C0_PLUS_PIN (GPIO_PIN_6)
  5836. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  5837. #define C1O_PORT (GPIO_PORTE_BASE)
  5838. #define C1O_PIN (GPIO_PIN_6)
  5839. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5840. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  5841. #define C1_MINUS_PIN (GPIO_PIN_5)
  5842. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5843. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  5844. #define C1_PLUS_PIN (GPIO_PIN_5)
  5845. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  5846. #define CCP0_PORT (GPIO_PORTB_BASE)
  5847. #define CCP0_PIN (GPIO_PIN_0)
  5848. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOD)
  5849. #define CCP1_PORT (GPIO_PORTD_BASE)
  5850. #define CCP1_PIN (GPIO_PIN_7)
  5851. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  5852. #define CCP2_PORT (GPIO_PORTB_BASE)
  5853. #define CCP2_PIN (GPIO_PIN_1)
  5854. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  5855. #define CCP3_PORT (GPIO_PORTC_BASE)
  5856. #define CCP3_PIN (GPIO_PIN_6)
  5857. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  5858. #define CCP4_PORT (GPIO_PORTC_BASE)
  5859. #define CCP4_PIN (GPIO_PIN_7)
  5860. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  5861. #define CCP5_PORT (GPIO_PORTC_BASE)
  5862. #define CCP5_PIN (GPIO_PIN_4)
  5863. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  5864. #define CCP6_PORT (GPIO_PORTH_BASE)
  5865. #define CCP6_PIN (GPIO_PIN_0)
  5866. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOH)
  5867. #define CCP7_PORT (GPIO_PORTH_BASE)
  5868. #define CCP7_PIN (GPIO_PIN_1)
  5869. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  5870. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  5871. #define I2C0SCL_PIN (GPIO_PIN_2)
  5872. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  5873. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  5874. #define I2C0SDA_PIN (GPIO_PIN_3)
  5875. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  5876. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  5877. #define I2C1SCL_PIN (GPIO_PIN_6)
  5878. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  5879. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  5880. #define I2C1SDA_PIN (GPIO_PIN_7)
  5881. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  5882. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  5883. #define SSI0CLK_PIN (GPIO_PIN_2)
  5884. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  5885. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  5886. #define SSI0FSS_PIN (GPIO_PIN_3)
  5887. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5888. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  5889. #define SSI0RX_PIN (GPIO_PIN_4)
  5890. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5891. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  5892. #define SSI0TX_PIN (GPIO_PIN_5)
  5893. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  5894. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  5895. #define SSI1CLK_PIN (GPIO_PIN_0)
  5896. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  5897. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  5898. #define SSI1FSS_PIN (GPIO_PIN_1)
  5899. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  5900. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  5901. #define SSI1RX_PIN (GPIO_PIN_2)
  5902. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  5903. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  5904. #define SSI1TX_PIN (GPIO_PIN_3)
  5905. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5906. #define SWCLK_PORT (GPIO_PORTC_BASE)
  5907. #define SWCLK_PIN (GPIO_PIN_0)
  5908. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5909. #define SWDIO_PORT (GPIO_PORTC_BASE)
  5910. #define SWDIO_PIN (GPIO_PIN_1)
  5911. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5912. #define SWO_PORT (GPIO_PORTC_BASE)
  5913. #define SWO_PIN (GPIO_PIN_3)
  5914. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  5915. #define TCK_PORT (GPIO_PORTC_BASE)
  5916. #define TCK_PIN (GPIO_PIN_0)
  5917. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  5918. #define TDI_PORT (GPIO_PORTC_BASE)
  5919. #define TDI_PIN (GPIO_PIN_2)
  5920. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  5921. #define TDO_PORT (GPIO_PORTC_BASE)
  5922. #define TDO_PIN (GPIO_PIN_3)
  5923. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5924. #define TMS_PORT (GPIO_PORTC_BASE)
  5925. #define TMS_PIN (GPIO_PIN_1)
  5926. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  5927. #define TRST_PORT (GPIO_PORTB_BASE)
  5928. #define TRST_PIN (GPIO_PIN_7)
  5929. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5930. #define U0RX_PORT (GPIO_PORTA_BASE)
  5931. #define U0RX_PIN (GPIO_PIN_0)
  5932. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  5933. #define U0TX_PORT (GPIO_PORTA_BASE)
  5934. #define U0TX_PIN (GPIO_PIN_1)
  5935. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  5936. #define U1RX_PORT (GPIO_PORTD_BASE)
  5937. #define U1RX_PIN (GPIO_PIN_2)
  5938. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  5939. #define U1TX_PORT (GPIO_PORTD_BASE)
  5940. #define U1TX_PIN (GPIO_PIN_3)
  5941. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  5942. #define U2RX_PORT (GPIO_PORTG_BASE)
  5943. #define U2RX_PIN (GPIO_PIN_0)
  5944. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  5945. #define U2TX_PORT (GPIO_PORTG_BASE)
  5946. #define U2TX_PIN (GPIO_PIN_1)
  5947. #endif // PART_LM3S1911
  5948. //*****************************************************************************
  5949. //
  5950. // LM3S1918 Port/Pin Mapping Definitions
  5951. //
  5952. //*****************************************************************************
  5953. #ifdef PART_LM3S1918
  5954. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  5955. #define C0O_PORT (GPIO_PORTF_BASE)
  5956. #define C0O_PIN (GPIO_PIN_4)
  5957. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5958. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  5959. #define C0_MINUS_PIN (GPIO_PIN_4)
  5960. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5961. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  5962. #define C0_PLUS_PIN (GPIO_PIN_6)
  5963. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOF)
  5964. #define C1O_PORT (GPIO_PORTF_BASE)
  5965. #define C1O_PIN (GPIO_PIN_5)
  5966. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  5967. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  5968. #define C1_MINUS_PIN (GPIO_PIN_5)
  5969. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  5970. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  5971. #define C1_PLUS_PIN (GPIO_PIN_5)
  5972. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  5973. #define CCP0_PORT (GPIO_PORTB_BASE)
  5974. #define CCP0_PIN (GPIO_PIN_0)
  5975. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOF)
  5976. #define CCP1_PORT (GPIO_PORTF_BASE)
  5977. #define CCP1_PIN (GPIO_PIN_6)
  5978. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  5979. #define CCP2_PORT (GPIO_PORTB_BASE)
  5980. #define CCP2_PIN (GPIO_PIN_1)
  5981. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  5982. #define CCP3_PORT (GPIO_PORTC_BASE)
  5983. #define CCP3_PIN (GPIO_PIN_6)
  5984. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  5985. #define CCP4_PORT (GPIO_PORTC_BASE)
  5986. #define CCP4_PIN (GPIO_PIN_7)
  5987. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  5988. #define CCP5_PORT (GPIO_PORTC_BASE)
  5989. #define CCP5_PIN (GPIO_PIN_4)
  5990. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  5991. #define CCP6_PORT (GPIO_PORTH_BASE)
  5992. #define CCP6_PIN (GPIO_PIN_0)
  5993. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOH)
  5994. #define CCP7_PORT (GPIO_PORTH_BASE)
  5995. #define CCP7_PIN (GPIO_PIN_1)
  5996. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  5997. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  5998. #define I2C0SCL_PIN (GPIO_PIN_2)
  5999. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  6000. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  6001. #define I2C0SDA_PIN (GPIO_PIN_3)
  6002. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  6003. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  6004. #define I2C1SCL_PIN (GPIO_PIN_6)
  6005. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  6006. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  6007. #define I2C1SDA_PIN (GPIO_PIN_7)
  6008. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  6009. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  6010. #define SSI0CLK_PIN (GPIO_PIN_2)
  6011. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  6012. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  6013. #define SSI0FSS_PIN (GPIO_PIN_3)
  6014. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6015. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  6016. #define SSI0RX_PIN (GPIO_PIN_4)
  6017. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6018. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  6019. #define SSI0TX_PIN (GPIO_PIN_5)
  6020. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  6021. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  6022. #define SSI1CLK_PIN (GPIO_PIN_0)
  6023. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  6024. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  6025. #define SSI1FSS_PIN (GPIO_PIN_1)
  6026. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  6027. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  6028. #define SSI1RX_PIN (GPIO_PIN_2)
  6029. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  6030. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  6031. #define SSI1TX_PIN (GPIO_PIN_3)
  6032. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6033. #define SWCLK_PORT (GPIO_PORTC_BASE)
  6034. #define SWCLK_PIN (GPIO_PIN_0)
  6035. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6036. #define SWDIO_PORT (GPIO_PORTC_BASE)
  6037. #define SWDIO_PIN (GPIO_PIN_1)
  6038. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6039. #define SWO_PORT (GPIO_PORTC_BASE)
  6040. #define SWO_PIN (GPIO_PIN_3)
  6041. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6042. #define TCK_PORT (GPIO_PORTC_BASE)
  6043. #define TCK_PIN (GPIO_PIN_0)
  6044. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  6045. #define TDI_PORT (GPIO_PORTC_BASE)
  6046. #define TDI_PIN (GPIO_PIN_2)
  6047. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6048. #define TDO_PORT (GPIO_PORTC_BASE)
  6049. #define TDO_PIN (GPIO_PIN_3)
  6050. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6051. #define TMS_PORT (GPIO_PORTC_BASE)
  6052. #define TMS_PIN (GPIO_PIN_1)
  6053. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  6054. #define TRST_PORT (GPIO_PORTB_BASE)
  6055. #define TRST_PIN (GPIO_PIN_7)
  6056. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6057. #define U0RX_PORT (GPIO_PORTA_BASE)
  6058. #define U0RX_PIN (GPIO_PIN_0)
  6059. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6060. #define U0TX_PORT (GPIO_PORTA_BASE)
  6061. #define U0TX_PIN (GPIO_PIN_1)
  6062. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6063. #define U1RX_PORT (GPIO_PORTD_BASE)
  6064. #define U1RX_PIN (GPIO_PIN_2)
  6065. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6066. #define U1TX_PORT (GPIO_PORTD_BASE)
  6067. #define U1TX_PIN (GPIO_PIN_3)
  6068. #endif // PART_LM3S1918
  6069. //*****************************************************************************
  6070. //
  6071. // LM3S1937 Port/Pin Mapping Definitions
  6072. //
  6073. //*****************************************************************************
  6074. #ifdef PART_LM3S1937
  6075. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOB)
  6076. #define C0O_PORT (GPIO_PORTB_BASE)
  6077. #define C0O_PIN (GPIO_PIN_5)
  6078. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6079. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  6080. #define C0_MINUS_PIN (GPIO_PIN_4)
  6081. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6082. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  6083. #define C0_PLUS_PIN (GPIO_PIN_6)
  6084. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  6085. #define CCP0_PORT (GPIO_PORTB_BASE)
  6086. #define CCP0_PIN (GPIO_PIN_0)
  6087. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  6088. #define CCP1_PORT (GPIO_PORTA_BASE)
  6089. #define CCP1_PIN (GPIO_PIN_6)
  6090. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  6091. #define CCP2_PORT (GPIO_PORTB_BASE)
  6092. #define CCP2_PIN (GPIO_PIN_1)
  6093. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  6094. #define CCP3_PORT (GPIO_PORTC_BASE)
  6095. #define CCP3_PIN (GPIO_PIN_6)
  6096. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  6097. #define FAULT_PORT (GPIO_PORTD_BASE)
  6098. #define FAULT_PIN (GPIO_PIN_6)
  6099. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  6100. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  6101. #define I2C0SCL_PIN (GPIO_PIN_2)
  6102. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  6103. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  6104. #define I2C0SDA_PIN (GPIO_PIN_3)
  6105. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  6106. #define PWM0_PORT (GPIO_PORTD_BASE)
  6107. #define PWM0_PIN (GPIO_PIN_0)
  6108. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  6109. #define PWM1_PORT (GPIO_PORTD_BASE)
  6110. #define PWM1_PIN (GPIO_PIN_1)
  6111. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  6112. #define PWM2_PORT (GPIO_PORTH_BASE)
  6113. #define PWM2_PIN (GPIO_PIN_0)
  6114. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  6115. #define PWM3_PORT (GPIO_PORTH_BASE)
  6116. #define PWM3_PIN (GPIO_PIN_1)
  6117. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  6118. #define PWM4_PORT (GPIO_PORTE_BASE)
  6119. #define PWM4_PIN (GPIO_PIN_0)
  6120. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  6121. #define PWM5_PORT (GPIO_PORTE_BASE)
  6122. #define PWM5_PIN (GPIO_PIN_1)
  6123. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  6124. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  6125. #define SSI0CLK_PIN (GPIO_PIN_2)
  6126. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  6127. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  6128. #define SSI0FSS_PIN (GPIO_PIN_3)
  6129. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6130. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  6131. #define SSI0RX_PIN (GPIO_PIN_4)
  6132. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6133. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  6134. #define SSI0TX_PIN (GPIO_PIN_5)
  6135. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6136. #define SWCLK_PORT (GPIO_PORTC_BASE)
  6137. #define SWCLK_PIN (GPIO_PIN_0)
  6138. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6139. #define SWDIO_PORT (GPIO_PORTC_BASE)
  6140. #define SWDIO_PIN (GPIO_PIN_1)
  6141. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6142. #define SWO_PORT (GPIO_PORTC_BASE)
  6143. #define SWO_PIN (GPIO_PIN_3)
  6144. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6145. #define TCK_PORT (GPIO_PORTC_BASE)
  6146. #define TCK_PIN (GPIO_PIN_0)
  6147. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  6148. #define TDI_PORT (GPIO_PORTC_BASE)
  6149. #define TDI_PIN (GPIO_PIN_2)
  6150. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6151. #define TDO_PORT (GPIO_PORTC_BASE)
  6152. #define TDO_PIN (GPIO_PIN_3)
  6153. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6154. #define TMS_PORT (GPIO_PORTC_BASE)
  6155. #define TMS_PIN (GPIO_PIN_1)
  6156. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  6157. #define TRST_PORT (GPIO_PORTB_BASE)
  6158. #define TRST_PIN (GPIO_PIN_7)
  6159. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6160. #define U0RX_PORT (GPIO_PORTA_BASE)
  6161. #define U0RX_PIN (GPIO_PIN_0)
  6162. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6163. #define U0TX_PORT (GPIO_PORTA_BASE)
  6164. #define U0TX_PIN (GPIO_PIN_1)
  6165. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6166. #define U1RX_PORT (GPIO_PORTD_BASE)
  6167. #define U1RX_PIN (GPIO_PIN_2)
  6168. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6169. #define U1TX_PORT (GPIO_PORTD_BASE)
  6170. #define U1TX_PIN (GPIO_PIN_3)
  6171. #endif // PART_LM3S1937
  6172. //*****************************************************************************
  6173. //
  6174. // LM3S1958 Port/Pin Mapping Definitions
  6175. //
  6176. //*****************************************************************************
  6177. #ifdef PART_LM3S1958
  6178. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  6179. #define CCP0_PORT (GPIO_PORTB_BASE)
  6180. #define CCP0_PIN (GPIO_PIN_0)
  6181. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOB)
  6182. #define CCP1_PORT (GPIO_PORTB_BASE)
  6183. #define CCP1_PIN (GPIO_PIN_6)
  6184. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  6185. #define CCP2_PORT (GPIO_PORTB_BASE)
  6186. #define CCP2_PIN (GPIO_PIN_1)
  6187. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  6188. #define CCP3_PORT (GPIO_PORTC_BASE)
  6189. #define CCP3_PIN (GPIO_PIN_6)
  6190. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  6191. #define CCP4_PORT (GPIO_PORTC_BASE)
  6192. #define CCP4_PIN (GPIO_PIN_7)
  6193. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOB)
  6194. #define CCP5_PORT (GPIO_PORTB_BASE)
  6195. #define CCP5_PIN (GPIO_PIN_5)
  6196. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  6197. #define CCP6_PORT (GPIO_PORTH_BASE)
  6198. #define CCP6_PIN (GPIO_PIN_0)
  6199. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOH)
  6200. #define CCP7_PORT (GPIO_PORTH_BASE)
  6201. #define CCP7_PIN (GPIO_PIN_1)
  6202. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  6203. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  6204. #define I2C0SCL_PIN (GPIO_PIN_2)
  6205. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  6206. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  6207. #define I2C0SDA_PIN (GPIO_PIN_3)
  6208. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  6209. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  6210. #define I2C1SCL_PIN (GPIO_PIN_6)
  6211. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  6212. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  6213. #define I2C1SDA_PIN (GPIO_PIN_7)
  6214. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  6215. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  6216. #define SSI0CLK_PIN (GPIO_PIN_2)
  6217. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  6218. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  6219. #define SSI0FSS_PIN (GPIO_PIN_3)
  6220. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6221. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  6222. #define SSI0RX_PIN (GPIO_PIN_4)
  6223. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6224. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  6225. #define SSI0TX_PIN (GPIO_PIN_5)
  6226. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  6227. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  6228. #define SSI1CLK_PIN (GPIO_PIN_0)
  6229. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  6230. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  6231. #define SSI1FSS_PIN (GPIO_PIN_1)
  6232. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  6233. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  6234. #define SSI1RX_PIN (GPIO_PIN_2)
  6235. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  6236. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  6237. #define SSI1TX_PIN (GPIO_PIN_3)
  6238. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6239. #define SWCLK_PORT (GPIO_PORTC_BASE)
  6240. #define SWCLK_PIN (GPIO_PIN_0)
  6241. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6242. #define SWDIO_PORT (GPIO_PORTC_BASE)
  6243. #define SWDIO_PIN (GPIO_PIN_1)
  6244. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6245. #define SWO_PORT (GPIO_PORTC_BASE)
  6246. #define SWO_PIN (GPIO_PIN_3)
  6247. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6248. #define TCK_PORT (GPIO_PORTC_BASE)
  6249. #define TCK_PIN (GPIO_PIN_0)
  6250. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  6251. #define TDI_PORT (GPIO_PORTC_BASE)
  6252. #define TDI_PIN (GPIO_PIN_2)
  6253. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6254. #define TDO_PORT (GPIO_PORTC_BASE)
  6255. #define TDO_PIN (GPIO_PIN_3)
  6256. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6257. #define TMS_PORT (GPIO_PORTC_BASE)
  6258. #define TMS_PIN (GPIO_PIN_1)
  6259. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  6260. #define TRST_PORT (GPIO_PORTB_BASE)
  6261. #define TRST_PIN (GPIO_PIN_7)
  6262. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6263. #define U0RX_PORT (GPIO_PORTA_BASE)
  6264. #define U0RX_PIN (GPIO_PIN_0)
  6265. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6266. #define U0TX_PORT (GPIO_PORTA_BASE)
  6267. #define U0TX_PIN (GPIO_PIN_1)
  6268. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6269. #define U1RX_PORT (GPIO_PORTD_BASE)
  6270. #define U1RX_PIN (GPIO_PIN_2)
  6271. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6272. #define U1TX_PORT (GPIO_PORTD_BASE)
  6273. #define U1TX_PIN (GPIO_PIN_3)
  6274. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  6275. #define U2RX_PORT (GPIO_PORTG_BASE)
  6276. #define U2RX_PIN (GPIO_PIN_0)
  6277. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  6278. #define U2TX_PORT (GPIO_PORTG_BASE)
  6279. #define U2TX_PIN (GPIO_PIN_1)
  6280. #endif // PART_LM3S1958
  6281. //*****************************************************************************
  6282. //
  6283. // LM3S1960 Port/Pin Mapping Definitions
  6284. //
  6285. //*****************************************************************************
  6286. #ifdef PART_LM3S1960
  6287. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  6288. #define C0O_PORT (GPIO_PORTF_BASE)
  6289. #define C0O_PIN (GPIO_PIN_4)
  6290. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6291. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  6292. #define C0_MINUS_PIN (GPIO_PIN_4)
  6293. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6294. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  6295. #define C0_PLUS_PIN (GPIO_PIN_6)
  6296. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOF)
  6297. #define C1O_PORT (GPIO_PORTF_BASE)
  6298. #define C1O_PIN (GPIO_PIN_5)
  6299. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6300. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  6301. #define C1_MINUS_PIN (GPIO_PIN_5)
  6302. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6303. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  6304. #define C1_PLUS_PIN (GPIO_PIN_5)
  6305. #define C2O_PERIPH (SYSCTL_PERIPH_GPIOF)
  6306. #define C2O_PORT (GPIO_PORTF_BASE)
  6307. #define C2O_PIN (GPIO_PIN_6)
  6308. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6309. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  6310. #define C2_MINUS_PIN (GPIO_PIN_7)
  6311. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6312. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  6313. #define C2_PLUS_PIN (GPIO_PIN_6)
  6314. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  6315. #define CCP0_PORT (GPIO_PORTD_BASE)
  6316. #define CCP0_PIN (GPIO_PIN_4)
  6317. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOD)
  6318. #define CCP1_PORT (GPIO_PORTD_BASE)
  6319. #define CCP1_PIN (GPIO_PIN_7)
  6320. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOD)
  6321. #define CCP2_PORT (GPIO_PORTD_BASE)
  6322. #define CCP2_PIN (GPIO_PIN_5)
  6323. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  6324. #define CCP3_PORT (GPIO_PORTE_BASE)
  6325. #define CCP3_PIN (GPIO_PIN_4)
  6326. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOF)
  6327. #define CCP4_PORT (GPIO_PORTF_BASE)
  6328. #define CCP4_PIN (GPIO_PIN_7)
  6329. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  6330. #define CCP5_PORT (GPIO_PORTC_BASE)
  6331. #define CCP5_PIN (GPIO_PIN_4)
  6332. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  6333. #define CCP6_PORT (GPIO_PORTH_BASE)
  6334. #define CCP6_PIN (GPIO_PIN_0)
  6335. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOH)
  6336. #define CCP7_PORT (GPIO_PORTH_BASE)
  6337. #define CCP7_PIN (GPIO_PIN_1)
  6338. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  6339. #define FAULT_PORT (GPIO_PORTD_BASE)
  6340. #define FAULT_PIN (GPIO_PIN_6)
  6341. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  6342. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  6343. #define I2C0SCL_PIN (GPIO_PIN_2)
  6344. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  6345. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  6346. #define I2C0SDA_PIN (GPIO_PIN_3)
  6347. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  6348. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  6349. #define I2C1SCL_PIN (GPIO_PIN_6)
  6350. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  6351. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  6352. #define I2C1SDA_PIN (GPIO_PIN_7)
  6353. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  6354. #define IDX0_PORT (GPIO_PORTD_BASE)
  6355. #define IDX0_PIN (GPIO_PIN_0)
  6356. #define IDX1_PERIPH (SYSCTL_PERIPH_GPIOH)
  6357. #define IDX1_PORT (GPIO_PORTH_BASE)
  6358. #define IDX1_PIN (GPIO_PIN_2)
  6359. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOD)
  6360. #define PHA0_PORT (GPIO_PORTD_BASE)
  6361. #define PHA0_PIN (GPIO_PIN_1)
  6362. #define PHA1_PERIPH (SYSCTL_PERIPH_GPIOG)
  6363. #define PHA1_PORT (GPIO_PORTG_BASE)
  6364. #define PHA1_PIN (GPIO_PIN_6)
  6365. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOH)
  6366. #define PHB0_PORT (GPIO_PORTH_BASE)
  6367. #define PHB0_PIN (GPIO_PIN_3)
  6368. #define PHB1_PERIPH (SYSCTL_PERIPH_GPIOG)
  6369. #define PHB1_PORT (GPIO_PORTG_BASE)
  6370. #define PHB1_PIN (GPIO_PIN_7)
  6371. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  6372. #define PWM0_PORT (GPIO_PORTF_BASE)
  6373. #define PWM0_PIN (GPIO_PIN_0)
  6374. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  6375. #define PWM1_PORT (GPIO_PORTF_BASE)
  6376. #define PWM1_PIN (GPIO_PIN_1)
  6377. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  6378. #define PWM2_PORT (GPIO_PORTB_BASE)
  6379. #define PWM2_PIN (GPIO_PIN_0)
  6380. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  6381. #define PWM3_PORT (GPIO_PORTB_BASE)
  6382. #define PWM3_PIN (GPIO_PIN_1)
  6383. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  6384. #define PWM4_PORT (GPIO_PORTE_BASE)
  6385. #define PWM4_PIN (GPIO_PIN_6)
  6386. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  6387. #define PWM5_PORT (GPIO_PORTE_BASE)
  6388. #define PWM5_PIN (GPIO_PIN_7)
  6389. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  6390. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  6391. #define SSI0CLK_PIN (GPIO_PIN_2)
  6392. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  6393. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  6394. #define SSI0FSS_PIN (GPIO_PIN_3)
  6395. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6396. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  6397. #define SSI0RX_PIN (GPIO_PIN_4)
  6398. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6399. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  6400. #define SSI0TX_PIN (GPIO_PIN_5)
  6401. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  6402. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  6403. #define SSI1CLK_PIN (GPIO_PIN_0)
  6404. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  6405. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  6406. #define SSI1FSS_PIN (GPIO_PIN_1)
  6407. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  6408. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  6409. #define SSI1RX_PIN (GPIO_PIN_2)
  6410. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  6411. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  6412. #define SSI1TX_PIN (GPIO_PIN_3)
  6413. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6414. #define SWCLK_PORT (GPIO_PORTC_BASE)
  6415. #define SWCLK_PIN (GPIO_PIN_0)
  6416. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6417. #define SWDIO_PORT (GPIO_PORTC_BASE)
  6418. #define SWDIO_PIN (GPIO_PIN_1)
  6419. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6420. #define SWO_PORT (GPIO_PORTC_BASE)
  6421. #define SWO_PIN (GPIO_PIN_3)
  6422. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6423. #define TCK_PORT (GPIO_PORTC_BASE)
  6424. #define TCK_PIN (GPIO_PIN_0)
  6425. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  6426. #define TDI_PORT (GPIO_PORTC_BASE)
  6427. #define TDI_PIN (GPIO_PIN_2)
  6428. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6429. #define TDO_PORT (GPIO_PORTC_BASE)
  6430. #define TDO_PIN (GPIO_PIN_3)
  6431. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6432. #define TMS_PORT (GPIO_PORTC_BASE)
  6433. #define TMS_PIN (GPIO_PIN_1)
  6434. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  6435. #define TRST_PORT (GPIO_PORTB_BASE)
  6436. #define TRST_PIN (GPIO_PIN_7)
  6437. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6438. #define U0RX_PORT (GPIO_PORTA_BASE)
  6439. #define U0RX_PIN (GPIO_PIN_0)
  6440. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6441. #define U0TX_PORT (GPIO_PORTA_BASE)
  6442. #define U0TX_PIN (GPIO_PIN_1)
  6443. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6444. #define U1RX_PORT (GPIO_PORTD_BASE)
  6445. #define U1RX_PIN (GPIO_PIN_2)
  6446. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6447. #define U1TX_PORT (GPIO_PORTD_BASE)
  6448. #define U1TX_PIN (GPIO_PIN_3)
  6449. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  6450. #define U2RX_PORT (GPIO_PORTG_BASE)
  6451. #define U2RX_PIN (GPIO_PIN_0)
  6452. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  6453. #define U2TX_PORT (GPIO_PORTG_BASE)
  6454. #define U2TX_PIN (GPIO_PIN_1)
  6455. #endif // PART_LM3S1960
  6456. //*****************************************************************************
  6457. //
  6458. // LM3S1968 Port/Pin Mapping Definitions
  6459. //
  6460. //*****************************************************************************
  6461. #ifdef PART_LM3S1968
  6462. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  6463. #define C0O_PORT (GPIO_PORTF_BASE)
  6464. #define C0O_PIN (GPIO_PIN_4)
  6465. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6466. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  6467. #define C0_MINUS_PIN (GPIO_PIN_4)
  6468. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6469. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  6470. #define C0_PLUS_PIN (GPIO_PIN_6)
  6471. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6472. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  6473. #define C1_MINUS_PIN (GPIO_PIN_5)
  6474. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6475. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  6476. #define C1_PLUS_PIN (GPIO_PIN_5)
  6477. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6478. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  6479. #define C2_MINUS_PIN (GPIO_PIN_7)
  6480. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6481. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  6482. #define C2_PLUS_PIN (GPIO_PIN_6)
  6483. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  6484. #define CCP0_PORT (GPIO_PORTB_BASE)
  6485. #define CCP0_PIN (GPIO_PIN_0)
  6486. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOF)
  6487. #define CCP1_PORT (GPIO_PORTF_BASE)
  6488. #define CCP1_PIN (GPIO_PIN_6)
  6489. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  6490. #define CCP2_PORT (GPIO_PORTB_BASE)
  6491. #define CCP2_PIN (GPIO_PIN_1)
  6492. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOG)
  6493. #define CCP3_PORT (GPIO_PORTG_BASE)
  6494. #define CCP3_PIN (GPIO_PIN_4)
  6495. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOH)
  6496. #define FAULT_PORT (GPIO_PORTH_BASE)
  6497. #define FAULT_PIN (GPIO_PIN_3)
  6498. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  6499. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  6500. #define I2C0SCL_PIN (GPIO_PIN_2)
  6501. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  6502. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  6503. #define I2C0SDA_PIN (GPIO_PIN_3)
  6504. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  6505. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  6506. #define I2C1SCL_PIN (GPIO_PIN_6)
  6507. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  6508. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  6509. #define I2C1SDA_PIN (GPIO_PIN_7)
  6510. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  6511. #define IDX0_PORT (GPIO_PORTD_BASE)
  6512. #define IDX0_PIN (GPIO_PIN_0)
  6513. #define IDX1_PERIPH (SYSCTL_PERIPH_GPIOF)
  6514. #define IDX1_PORT (GPIO_PORTF_BASE)
  6515. #define IDX1_PIN (GPIO_PIN_1)
  6516. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  6517. #define PHA0_PORT (GPIO_PORTC_BASE)
  6518. #define PHA0_PIN (GPIO_PIN_4)
  6519. #define PHA1_PERIPH (SYSCTL_PERIPH_GPIOG)
  6520. #define PHA1_PORT (GPIO_PORTG_BASE)
  6521. #define PHA1_PIN (GPIO_PIN_6)
  6522. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOF)
  6523. #define PHB0_PORT (GPIO_PORTF_BASE)
  6524. #define PHB0_PIN (GPIO_PIN_0)
  6525. #define PHB1_PERIPH (SYSCTL_PERIPH_GPIOG)
  6526. #define PHB1_PORT (GPIO_PORTG_BASE)
  6527. #define PHB1_PIN (GPIO_PIN_7)
  6528. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOG)
  6529. #define PWM0_PORT (GPIO_PORTG_BASE)
  6530. #define PWM0_PIN (GPIO_PIN_2)
  6531. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  6532. #define PWM1_PORT (GPIO_PORTD_BASE)
  6533. #define PWM1_PIN (GPIO_PIN_1)
  6534. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  6535. #define PWM2_PORT (GPIO_PORTH_BASE)
  6536. #define PWM2_PIN (GPIO_PIN_0)
  6537. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  6538. #define PWM3_PORT (GPIO_PORTH_BASE)
  6539. #define PWM3_PIN (GPIO_PIN_1)
  6540. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOF)
  6541. #define PWM4_PORT (GPIO_PORTF_BASE)
  6542. #define PWM4_PIN (GPIO_PIN_2)
  6543. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOF)
  6544. #define PWM5_PORT (GPIO_PORTF_BASE)
  6545. #define PWM5_PIN (GPIO_PIN_3)
  6546. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  6547. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  6548. #define SSI0CLK_PIN (GPIO_PIN_2)
  6549. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  6550. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  6551. #define SSI0FSS_PIN (GPIO_PIN_3)
  6552. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6553. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  6554. #define SSI0RX_PIN (GPIO_PIN_4)
  6555. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6556. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  6557. #define SSI0TX_PIN (GPIO_PIN_5)
  6558. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  6559. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  6560. #define SSI1CLK_PIN (GPIO_PIN_0)
  6561. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  6562. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  6563. #define SSI1FSS_PIN (GPIO_PIN_1)
  6564. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  6565. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  6566. #define SSI1RX_PIN (GPIO_PIN_2)
  6567. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  6568. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  6569. #define SSI1TX_PIN (GPIO_PIN_3)
  6570. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6571. #define SWCLK_PORT (GPIO_PORTC_BASE)
  6572. #define SWCLK_PIN (GPIO_PIN_0)
  6573. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6574. #define SWDIO_PORT (GPIO_PORTC_BASE)
  6575. #define SWDIO_PIN (GPIO_PIN_1)
  6576. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6577. #define SWO_PORT (GPIO_PORTC_BASE)
  6578. #define SWO_PIN (GPIO_PIN_3)
  6579. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6580. #define TCK_PORT (GPIO_PORTC_BASE)
  6581. #define TCK_PIN (GPIO_PIN_0)
  6582. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  6583. #define TDI_PORT (GPIO_PORTC_BASE)
  6584. #define TDI_PIN (GPIO_PIN_2)
  6585. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6586. #define TDO_PORT (GPIO_PORTC_BASE)
  6587. #define TDO_PIN (GPIO_PIN_3)
  6588. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6589. #define TMS_PORT (GPIO_PORTC_BASE)
  6590. #define TMS_PIN (GPIO_PIN_1)
  6591. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  6592. #define TRST_PORT (GPIO_PORTB_BASE)
  6593. #define TRST_PIN (GPIO_PIN_7)
  6594. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6595. #define U0RX_PORT (GPIO_PORTA_BASE)
  6596. #define U0RX_PIN (GPIO_PIN_0)
  6597. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6598. #define U0TX_PORT (GPIO_PORTA_BASE)
  6599. #define U0TX_PIN (GPIO_PIN_1)
  6600. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6601. #define U1RX_PORT (GPIO_PORTD_BASE)
  6602. #define U1RX_PIN (GPIO_PIN_2)
  6603. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6604. #define U1TX_PORT (GPIO_PORTD_BASE)
  6605. #define U1TX_PIN (GPIO_PIN_3)
  6606. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  6607. #define U2RX_PORT (GPIO_PORTG_BASE)
  6608. #define U2RX_PIN (GPIO_PIN_0)
  6609. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  6610. #define U2TX_PORT (GPIO_PORTG_BASE)
  6611. #define U2TX_PIN (GPIO_PIN_1)
  6612. #endif // PART_LM3S1968
  6613. //*****************************************************************************
  6614. //
  6615. // LM3S2016 Port/Pin Mapping Definitions
  6616. //
  6617. //*****************************************************************************
  6618. #ifdef PART_LM3S2016
  6619. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6620. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  6621. #define CAN0RX_PIN (GPIO_PIN_0)
  6622. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6623. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  6624. #define CAN0TX_PIN (GPIO_PIN_1)
  6625. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  6626. #define CCP0_PORT (GPIO_PORTB_BASE)
  6627. #define CCP0_PIN (GPIO_PIN_0)
  6628. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  6629. #define CCP1_PORT (GPIO_PORTA_BASE)
  6630. #define CCP1_PIN (GPIO_PIN_6)
  6631. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  6632. #define CCP2_PORT (GPIO_PORTB_BASE)
  6633. #define CCP2_PIN (GPIO_PIN_1)
  6634. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  6635. #define CCP3_PORT (GPIO_PORTC_BASE)
  6636. #define CCP3_PIN (GPIO_PIN_6)
  6637. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  6638. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  6639. #define I2C0SCL_PIN (GPIO_PIN_2)
  6640. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  6641. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  6642. #define I2C0SDA_PIN (GPIO_PIN_3)
  6643. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  6644. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  6645. #define SSI0CLK_PIN (GPIO_PIN_2)
  6646. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  6647. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  6648. #define SSI0FSS_PIN (GPIO_PIN_3)
  6649. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6650. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  6651. #define SSI0RX_PIN (GPIO_PIN_4)
  6652. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6653. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  6654. #define SSI0TX_PIN (GPIO_PIN_5)
  6655. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6656. #define SWCLK_PORT (GPIO_PORTC_BASE)
  6657. #define SWCLK_PIN (GPIO_PIN_0)
  6658. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6659. #define SWDIO_PORT (GPIO_PORTC_BASE)
  6660. #define SWDIO_PIN (GPIO_PIN_1)
  6661. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6662. #define SWO_PORT (GPIO_PORTC_BASE)
  6663. #define SWO_PIN (GPIO_PIN_3)
  6664. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6665. #define TCK_PORT (GPIO_PORTC_BASE)
  6666. #define TCK_PIN (GPIO_PIN_0)
  6667. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  6668. #define TDI_PORT (GPIO_PORTC_BASE)
  6669. #define TDI_PIN (GPIO_PIN_2)
  6670. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6671. #define TDO_PORT (GPIO_PORTC_BASE)
  6672. #define TDO_PIN (GPIO_PIN_3)
  6673. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6674. #define TMS_PORT (GPIO_PORTC_BASE)
  6675. #define TMS_PIN (GPIO_PIN_1)
  6676. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  6677. #define TRST_PORT (GPIO_PORTB_BASE)
  6678. #define TRST_PIN (GPIO_PIN_7)
  6679. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6680. #define U0RX_PORT (GPIO_PORTA_BASE)
  6681. #define U0RX_PIN (GPIO_PIN_0)
  6682. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6683. #define U0TX_PORT (GPIO_PORTA_BASE)
  6684. #define U0TX_PIN (GPIO_PIN_1)
  6685. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6686. #define U1RX_PORT (GPIO_PORTD_BASE)
  6687. #define U1RX_PIN (GPIO_PIN_2)
  6688. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6689. #define U1TX_PORT (GPIO_PORTD_BASE)
  6690. #define U1TX_PIN (GPIO_PIN_3)
  6691. #endif // PART_LM3S2016
  6692. //*****************************************************************************
  6693. //
  6694. // LM3S2110 Port/Pin Mapping Definitions
  6695. //
  6696. //*****************************************************************************
  6697. #ifdef PART_LM3S2110
  6698. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  6699. #define C0O_PORT (GPIO_PORTD_BASE)
  6700. #define C0O_PIN (GPIO_PIN_7)
  6701. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6702. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  6703. #define C0_MINUS_PIN (GPIO_PIN_4)
  6704. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6705. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  6706. #define C0_PLUS_PIN (GPIO_PIN_6)
  6707. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6708. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  6709. #define C1_MINUS_PIN (GPIO_PIN_5)
  6710. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6711. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  6712. #define C1_PLUS_PIN (GPIO_PIN_5)
  6713. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6714. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  6715. #define C2_MINUS_PIN (GPIO_PIN_7)
  6716. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6717. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  6718. #define C2_PLUS_PIN (GPIO_PIN_6)
  6719. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6720. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  6721. #define CAN0RX_PIN (GPIO_PIN_0)
  6722. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6723. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  6724. #define CAN0TX_PIN (GPIO_PIN_1)
  6725. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  6726. #define CCP0_PORT (GPIO_PORTB_BASE)
  6727. #define CCP0_PIN (GPIO_PIN_0)
  6728. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  6729. #define CCP1_PORT (GPIO_PORTA_BASE)
  6730. #define CCP1_PIN (GPIO_PIN_6)
  6731. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  6732. #define CCP2_PORT (GPIO_PORTB_BASE)
  6733. #define CCP2_PIN (GPIO_PIN_1)
  6734. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  6735. #define CCP3_PORT (GPIO_PORTD_BASE)
  6736. #define CCP3_PIN (GPIO_PIN_4)
  6737. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  6738. #define FAULT_PORT (GPIO_PORTD_BASE)
  6739. #define FAULT_PIN (GPIO_PIN_6)
  6740. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  6741. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  6742. #define I2C0SCL_PIN (GPIO_PIN_2)
  6743. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  6744. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  6745. #define I2C0SDA_PIN (GPIO_PIN_3)
  6746. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  6747. #define PWM0_PORT (GPIO_PORTF_BASE)
  6748. #define PWM0_PIN (GPIO_PIN_0)
  6749. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  6750. #define PWM1_PORT (GPIO_PORTF_BASE)
  6751. #define PWM1_PIN (GPIO_PIN_1)
  6752. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  6753. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  6754. #define SSI0CLK_PIN (GPIO_PIN_2)
  6755. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  6756. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  6757. #define SSI0FSS_PIN (GPIO_PIN_3)
  6758. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6759. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  6760. #define SSI0RX_PIN (GPIO_PIN_4)
  6761. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6762. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  6763. #define SSI0TX_PIN (GPIO_PIN_5)
  6764. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6765. #define SWCLK_PORT (GPIO_PORTC_BASE)
  6766. #define SWCLK_PIN (GPIO_PIN_0)
  6767. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6768. #define SWDIO_PORT (GPIO_PORTC_BASE)
  6769. #define SWDIO_PIN (GPIO_PIN_1)
  6770. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6771. #define SWO_PORT (GPIO_PORTC_BASE)
  6772. #define SWO_PIN (GPIO_PIN_3)
  6773. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6774. #define TCK_PORT (GPIO_PORTC_BASE)
  6775. #define TCK_PIN (GPIO_PIN_0)
  6776. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  6777. #define TDI_PORT (GPIO_PORTC_BASE)
  6778. #define TDI_PIN (GPIO_PIN_2)
  6779. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6780. #define TDO_PORT (GPIO_PORTC_BASE)
  6781. #define TDO_PIN (GPIO_PIN_3)
  6782. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6783. #define TMS_PORT (GPIO_PORTC_BASE)
  6784. #define TMS_PIN (GPIO_PIN_1)
  6785. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  6786. #define TRST_PORT (GPIO_PORTB_BASE)
  6787. #define TRST_PIN (GPIO_PIN_7)
  6788. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6789. #define U0RX_PORT (GPIO_PORTA_BASE)
  6790. #define U0RX_PIN (GPIO_PIN_0)
  6791. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6792. #define U0TX_PORT (GPIO_PORTA_BASE)
  6793. #define U0TX_PIN (GPIO_PIN_1)
  6794. #endif // PART_LM3S2110
  6795. //*****************************************************************************
  6796. //
  6797. // LM3S2139 Port/Pin Mapping Definitions
  6798. //
  6799. //*****************************************************************************
  6800. #ifdef PART_LM3S2139
  6801. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  6802. #define C0O_PORT (GPIO_PORTD_BASE)
  6803. #define C0O_PIN (GPIO_PIN_7)
  6804. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6805. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  6806. #define C0_MINUS_PIN (GPIO_PIN_4)
  6807. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6808. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  6809. #define C0_PLUS_PIN (GPIO_PIN_6)
  6810. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  6811. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  6812. #define C1_MINUS_PIN (GPIO_PIN_5)
  6813. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6814. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  6815. #define C1_PLUS_PIN (GPIO_PIN_5)
  6816. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6817. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  6818. #define C2_MINUS_PIN (GPIO_PIN_7)
  6819. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6820. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  6821. #define C2_PLUS_PIN (GPIO_PIN_6)
  6822. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6823. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  6824. #define CAN0RX_PIN (GPIO_PIN_0)
  6825. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6826. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  6827. #define CAN0TX_PIN (GPIO_PIN_1)
  6828. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  6829. #define CCP0_PORT (GPIO_PORTB_BASE)
  6830. #define CCP0_PIN (GPIO_PIN_0)
  6831. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  6832. #define CCP1_PORT (GPIO_PORTA_BASE)
  6833. #define CCP1_PIN (GPIO_PIN_6)
  6834. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  6835. #define CCP2_PORT (GPIO_PORTB_BASE)
  6836. #define CCP2_PIN (GPIO_PIN_1)
  6837. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  6838. #define CCP3_PORT (GPIO_PORTD_BASE)
  6839. #define CCP3_PIN (GPIO_PIN_4)
  6840. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  6841. #define CCP4_PORT (GPIO_PORTA_BASE)
  6842. #define CCP4_PIN (GPIO_PIN_7)
  6843. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  6844. #define CCP5_PORT (GPIO_PORTC_BASE)
  6845. #define CCP5_PIN (GPIO_PIN_4)
  6846. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  6847. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  6848. #define I2C0SCL_PIN (GPIO_PIN_2)
  6849. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  6850. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  6851. #define I2C0SDA_PIN (GPIO_PIN_3)
  6852. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  6853. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  6854. #define SSI0CLK_PIN (GPIO_PIN_2)
  6855. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  6856. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  6857. #define SSI0FSS_PIN (GPIO_PIN_3)
  6858. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6859. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  6860. #define SSI0RX_PIN (GPIO_PIN_4)
  6861. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6862. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  6863. #define SSI0TX_PIN (GPIO_PIN_5)
  6864. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6865. #define SWCLK_PORT (GPIO_PORTC_BASE)
  6866. #define SWCLK_PIN (GPIO_PIN_0)
  6867. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6868. #define SWDIO_PORT (GPIO_PORTC_BASE)
  6869. #define SWDIO_PIN (GPIO_PIN_1)
  6870. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6871. #define SWO_PORT (GPIO_PORTC_BASE)
  6872. #define SWO_PIN (GPIO_PIN_3)
  6873. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6874. #define TCK_PORT (GPIO_PORTC_BASE)
  6875. #define TCK_PIN (GPIO_PIN_0)
  6876. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  6877. #define TDI_PORT (GPIO_PORTC_BASE)
  6878. #define TDI_PIN (GPIO_PIN_2)
  6879. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6880. #define TDO_PORT (GPIO_PORTC_BASE)
  6881. #define TDO_PIN (GPIO_PIN_3)
  6882. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  6883. #define TMS_PORT (GPIO_PORTC_BASE)
  6884. #define TMS_PIN (GPIO_PIN_1)
  6885. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  6886. #define TRST_PORT (GPIO_PORTB_BASE)
  6887. #define TRST_PIN (GPIO_PIN_7)
  6888. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6889. #define U0RX_PORT (GPIO_PORTA_BASE)
  6890. #define U0RX_PIN (GPIO_PIN_0)
  6891. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6892. #define U0TX_PORT (GPIO_PORTA_BASE)
  6893. #define U0TX_PIN (GPIO_PIN_1)
  6894. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6895. #define U1RX_PORT (GPIO_PORTD_BASE)
  6896. #define U1RX_PIN (GPIO_PIN_2)
  6897. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  6898. #define U1TX_PORT (GPIO_PORTD_BASE)
  6899. #define U1TX_PIN (GPIO_PIN_3)
  6900. #endif // PART_LM3S2139
  6901. //*****************************************************************************
  6902. //
  6903. // LM3S2276 Port/Pin Mapping Definitions
  6904. //
  6905. //*****************************************************************************
  6906. #ifdef PART_LM3S2276
  6907. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  6908. #define ADC0_PORT (GPIO_PORTE_BASE)
  6909. #define ADC0_PIN (GPIO_PIN_3)
  6910. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  6911. #define ADC1_PORT (GPIO_PORTE_BASE)
  6912. #define ADC1_PIN (GPIO_PIN_2)
  6913. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  6914. #define ADC2_PORT (GPIO_PORTE_BASE)
  6915. #define ADC2_PIN (GPIO_PIN_1)
  6916. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  6917. #define ADC3_PORT (GPIO_PORTE_BASE)
  6918. #define ADC3_PIN (GPIO_PIN_0)
  6919. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  6920. #define ADC4_PORT (GPIO_PORTD_BASE)
  6921. #define ADC4_PIN (GPIO_PIN_3)
  6922. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  6923. #define ADC5_PORT (GPIO_PORTD_BASE)
  6924. #define ADC5_PIN (GPIO_PIN_2)
  6925. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  6926. #define CAN0RX_PORT (GPIO_PORTB_BASE)
  6927. #define CAN0RX_PIN (GPIO_PIN_4)
  6928. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  6929. #define CAN0TX_PORT (GPIO_PORTB_BASE)
  6930. #define CAN0TX_PIN (GPIO_PIN_5)
  6931. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOC)
  6932. #define CCP0_PORT (GPIO_PORTC_BASE)
  6933. #define CCP0_PIN (GPIO_PIN_7)
  6934. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOE)
  6935. #define FAULT0_PORT (GPIO_PORTE_BASE)
  6936. #define FAULT0_PIN (GPIO_PIN_4)
  6937. #define FAULT1_PERIPH (SYSCTL_PERIPH_GPIOB)
  6938. #define FAULT1_PORT (GPIO_PORTB_BASE)
  6939. #define FAULT1_PIN (GPIO_PIN_6)
  6940. #define FAULT2_PERIPH (SYSCTL_PERIPH_GPIOC)
  6941. #define FAULT2_PORT (GPIO_PORTC_BASE)
  6942. #define FAULT2_PIN (GPIO_PIN_5)
  6943. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  6944. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  6945. #define I2C0SCL_PIN (GPIO_PIN_2)
  6946. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  6947. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  6948. #define I2C0SDA_PIN (GPIO_PIN_3)
  6949. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  6950. #define NMI_PORT (GPIO_PORTB_BASE)
  6951. #define NMI_PIN (GPIO_PIN_7)
  6952. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  6953. #define PWM0_PORT (GPIO_PORTD_BASE)
  6954. #define PWM0_PIN (GPIO_PIN_0)
  6955. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  6956. #define PWM1_PORT (GPIO_PORTD_BASE)
  6957. #define PWM1_PIN (GPIO_PIN_1)
  6958. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  6959. #define PWM2_PORT (GPIO_PORTB_BASE)
  6960. #define PWM2_PIN (GPIO_PIN_0)
  6961. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  6962. #define PWM3_PORT (GPIO_PORTB_BASE)
  6963. #define PWM3_PIN (GPIO_PIN_1)
  6964. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOA)
  6965. #define PWM4_PORT (GPIO_PORTA_BASE)
  6966. #define PWM4_PIN (GPIO_PIN_6)
  6967. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOA)
  6968. #define PWM5_PORT (GPIO_PORTA_BASE)
  6969. #define PWM5_PIN (GPIO_PIN_7)
  6970. #define PWM6_PERIPH (SYSCTL_PERIPH_GPIOC)
  6971. #define PWM6_PORT (GPIO_PORTC_BASE)
  6972. #define PWM6_PIN (GPIO_PIN_4)
  6973. #define PWM7_PERIPH (SYSCTL_PERIPH_GPIOC)
  6974. #define PWM7_PORT (GPIO_PORTC_BASE)
  6975. #define PWM7_PIN (GPIO_PIN_6)
  6976. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  6977. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  6978. #define SSI0CLK_PIN (GPIO_PIN_2)
  6979. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  6980. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  6981. #define SSI0FSS_PIN (GPIO_PIN_3)
  6982. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6983. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  6984. #define SSI0RX_PIN (GPIO_PIN_4)
  6985. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  6986. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  6987. #define SSI0TX_PIN (GPIO_PIN_5)
  6988. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6989. #define SWCLK_PORT (GPIO_PORTC_BASE)
  6990. #define SWCLK_PIN (GPIO_PIN_0)
  6991. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6992. #define SWDIO_PORT (GPIO_PORTC_BASE)
  6993. #define SWDIO_PIN (GPIO_PIN_1)
  6994. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  6995. #define SWO_PORT (GPIO_PORTC_BASE)
  6996. #define SWO_PIN (GPIO_PIN_3)
  6997. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  6998. #define TCK_PORT (GPIO_PORTC_BASE)
  6999. #define TCK_PIN (GPIO_PIN_0)
  7000. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  7001. #define TDI_PORT (GPIO_PORTC_BASE)
  7002. #define TDI_PIN (GPIO_PIN_2)
  7003. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7004. #define TDO_PORT (GPIO_PORTC_BASE)
  7005. #define TDO_PIN (GPIO_PIN_3)
  7006. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7007. #define TMS_PORT (GPIO_PORTC_BASE)
  7008. #define TMS_PIN (GPIO_PIN_1)
  7009. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7010. #define U0RX_PORT (GPIO_PORTA_BASE)
  7011. #define U0RX_PIN (GPIO_PIN_0)
  7012. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7013. #define U0TX_PORT (GPIO_PORTA_BASE)
  7014. #define U0TX_PIN (GPIO_PIN_1)
  7015. #endif // PART_LM3S2276
  7016. //*****************************************************************************
  7017. //
  7018. // LM3S2410 Port/Pin Mapping Definitions
  7019. //
  7020. //*****************************************************************************
  7021. #ifdef PART_LM3S2410
  7022. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  7023. #define C0O_PORT (GPIO_PORTD_BASE)
  7024. #define C0O_PIN (GPIO_PIN_7)
  7025. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7026. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  7027. #define C0_MINUS_PIN (GPIO_PIN_4)
  7028. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7029. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  7030. #define C0_PLUS_PIN (GPIO_PIN_6)
  7031. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  7032. #define C1O_PORT (GPIO_PORTE_BASE)
  7033. #define C1O_PIN (GPIO_PIN_6)
  7034. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7035. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  7036. #define C1_MINUS_PIN (GPIO_PIN_5)
  7037. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7038. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  7039. #define C1_PLUS_PIN (GPIO_PIN_5)
  7040. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7041. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  7042. #define CAN0RX_PIN (GPIO_PIN_0)
  7043. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7044. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  7045. #define CAN0TX_PIN (GPIO_PIN_1)
  7046. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  7047. #define CCP0_PORT (GPIO_PORTB_BASE)
  7048. #define CCP0_PIN (GPIO_PIN_0)
  7049. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  7050. #define CCP1_PORT (GPIO_PORTA_BASE)
  7051. #define CCP1_PIN (GPIO_PIN_6)
  7052. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  7053. #define CCP2_PORT (GPIO_PORTB_BASE)
  7054. #define CCP2_PIN (GPIO_PIN_1)
  7055. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  7056. #define CCP3_PORT (GPIO_PORTC_BASE)
  7057. #define CCP3_PIN (GPIO_PIN_6)
  7058. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  7059. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  7060. #define SSI0CLK_PIN (GPIO_PIN_2)
  7061. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  7062. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  7063. #define SSI0FSS_PIN (GPIO_PIN_3)
  7064. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7065. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  7066. #define SSI0RX_PIN (GPIO_PIN_4)
  7067. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7068. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  7069. #define SSI0TX_PIN (GPIO_PIN_5)
  7070. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7071. #define SWCLK_PORT (GPIO_PORTC_BASE)
  7072. #define SWCLK_PIN (GPIO_PIN_0)
  7073. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7074. #define SWDIO_PORT (GPIO_PORTC_BASE)
  7075. #define SWDIO_PIN (GPIO_PIN_1)
  7076. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7077. #define SWO_PORT (GPIO_PORTC_BASE)
  7078. #define SWO_PIN (GPIO_PIN_3)
  7079. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7080. #define TCK_PORT (GPIO_PORTC_BASE)
  7081. #define TCK_PIN (GPIO_PIN_0)
  7082. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  7083. #define TDI_PORT (GPIO_PORTC_BASE)
  7084. #define TDI_PIN (GPIO_PIN_2)
  7085. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7086. #define TDO_PORT (GPIO_PORTC_BASE)
  7087. #define TDO_PIN (GPIO_PIN_3)
  7088. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7089. #define TMS_PORT (GPIO_PORTC_BASE)
  7090. #define TMS_PIN (GPIO_PIN_1)
  7091. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  7092. #define TRST_PORT (GPIO_PORTB_BASE)
  7093. #define TRST_PIN (GPIO_PIN_7)
  7094. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7095. #define U0RX_PORT (GPIO_PORTA_BASE)
  7096. #define U0RX_PIN (GPIO_PIN_0)
  7097. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7098. #define U0TX_PORT (GPIO_PORTA_BASE)
  7099. #define U0TX_PIN (GPIO_PIN_1)
  7100. #endif // PART_LM3S2410
  7101. //*****************************************************************************
  7102. //
  7103. // LM3S2412 Port/Pin Mapping Definitions
  7104. //
  7105. //*****************************************************************************
  7106. #ifdef PART_LM3S2412
  7107. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  7108. #define C0O_PORT (GPIO_PORTD_BASE)
  7109. #define C0O_PIN (GPIO_PIN_7)
  7110. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7111. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  7112. #define C0_MINUS_PIN (GPIO_PIN_4)
  7113. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7114. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  7115. #define C0_PLUS_PIN (GPIO_PIN_6)
  7116. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7117. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  7118. #define C1_MINUS_PIN (GPIO_PIN_5)
  7119. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7120. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  7121. #define C1_PLUS_PIN (GPIO_PIN_5)
  7122. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7123. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  7124. #define CAN0RX_PIN (GPIO_PIN_0)
  7125. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7126. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  7127. #define CAN0TX_PIN (GPIO_PIN_1)
  7128. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  7129. #define CCP0_PORT (GPIO_PORTB_BASE)
  7130. #define CCP0_PIN (GPIO_PIN_0)
  7131. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  7132. #define CCP1_PORT (GPIO_PORTA_BASE)
  7133. #define CCP1_PIN (GPIO_PIN_6)
  7134. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  7135. #define CCP2_PORT (GPIO_PORTB_BASE)
  7136. #define CCP2_PIN (GPIO_PIN_1)
  7137. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  7138. #define CCP3_PORT (GPIO_PORTC_BASE)
  7139. #define CCP3_PIN (GPIO_PIN_6)
  7140. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  7141. #define FAULT_PORT (GPIO_PORTD_BASE)
  7142. #define FAULT_PIN (GPIO_PIN_6)
  7143. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  7144. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  7145. #define I2C0SCL_PIN (GPIO_PIN_2)
  7146. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  7147. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  7148. #define I2C0SDA_PIN (GPIO_PIN_3)
  7149. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  7150. #define PWM0_PORT (GPIO_PORTF_BASE)
  7151. #define PWM0_PIN (GPIO_PIN_0)
  7152. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  7153. #define PWM1_PORT (GPIO_PORTF_BASE)
  7154. #define PWM1_PIN (GPIO_PIN_1)
  7155. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  7156. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  7157. #define SSI0CLK_PIN (GPIO_PIN_2)
  7158. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  7159. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  7160. #define SSI0FSS_PIN (GPIO_PIN_3)
  7161. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7162. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  7163. #define SSI0RX_PIN (GPIO_PIN_4)
  7164. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7165. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  7166. #define SSI0TX_PIN (GPIO_PIN_5)
  7167. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7168. #define SWCLK_PORT (GPIO_PORTC_BASE)
  7169. #define SWCLK_PIN (GPIO_PIN_0)
  7170. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7171. #define SWDIO_PORT (GPIO_PORTC_BASE)
  7172. #define SWDIO_PIN (GPIO_PIN_1)
  7173. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7174. #define SWO_PORT (GPIO_PORTC_BASE)
  7175. #define SWO_PIN (GPIO_PIN_3)
  7176. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7177. #define TCK_PORT (GPIO_PORTC_BASE)
  7178. #define TCK_PIN (GPIO_PIN_0)
  7179. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  7180. #define TDI_PORT (GPIO_PORTC_BASE)
  7181. #define TDI_PIN (GPIO_PIN_2)
  7182. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7183. #define TDO_PORT (GPIO_PORTC_BASE)
  7184. #define TDO_PIN (GPIO_PIN_3)
  7185. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7186. #define TMS_PORT (GPIO_PORTC_BASE)
  7187. #define TMS_PIN (GPIO_PIN_1)
  7188. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  7189. #define TRST_PORT (GPIO_PORTB_BASE)
  7190. #define TRST_PIN (GPIO_PIN_7)
  7191. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7192. #define U0RX_PORT (GPIO_PORTA_BASE)
  7193. #define U0RX_PIN (GPIO_PIN_0)
  7194. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7195. #define U0TX_PORT (GPIO_PORTA_BASE)
  7196. #define U0TX_PIN (GPIO_PIN_1)
  7197. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7198. #define U1RX_PORT (GPIO_PORTD_BASE)
  7199. #define U1RX_PIN (GPIO_PIN_2)
  7200. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7201. #define U1TX_PORT (GPIO_PORTD_BASE)
  7202. #define U1TX_PIN (GPIO_PIN_3)
  7203. #endif // PART_LM3S2412
  7204. //*****************************************************************************
  7205. //
  7206. // LM3S2432 Port/Pin Mapping Definitions
  7207. //
  7208. //*****************************************************************************
  7209. #ifdef PART_LM3S2432
  7210. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  7211. #define C0O_PORT (GPIO_PORTD_BASE)
  7212. #define C0O_PIN (GPIO_PIN_7)
  7213. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7214. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  7215. #define C0_MINUS_PIN (GPIO_PIN_4)
  7216. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7217. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  7218. #define C0_PLUS_PIN (GPIO_PIN_6)
  7219. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7220. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  7221. #define C1_MINUS_PIN (GPIO_PIN_5)
  7222. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7223. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  7224. #define C1_PLUS_PIN (GPIO_PIN_5)
  7225. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7226. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  7227. #define CAN0RX_PIN (GPIO_PIN_0)
  7228. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7229. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  7230. #define CAN0TX_PIN (GPIO_PIN_1)
  7231. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  7232. #define CCP0_PORT (GPIO_PORTB_BASE)
  7233. #define CCP0_PIN (GPIO_PIN_0)
  7234. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  7235. #define CCP1_PORT (GPIO_PORTA_BASE)
  7236. #define CCP1_PIN (GPIO_PIN_6)
  7237. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  7238. #define CCP2_PORT (GPIO_PORTB_BASE)
  7239. #define CCP2_PIN (GPIO_PIN_1)
  7240. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  7241. #define CCP3_PORT (GPIO_PORTC_BASE)
  7242. #define CCP3_PIN (GPIO_PIN_6)
  7243. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  7244. #define FAULT_PORT (GPIO_PORTD_BASE)
  7245. #define FAULT_PIN (GPIO_PIN_6)
  7246. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  7247. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  7248. #define I2C0SCL_PIN (GPIO_PIN_2)
  7249. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  7250. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  7251. #define I2C0SDA_PIN (GPIO_PIN_3)
  7252. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  7253. #define PWM0_PORT (GPIO_PORTF_BASE)
  7254. #define PWM0_PIN (GPIO_PIN_0)
  7255. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  7256. #define PWM1_PORT (GPIO_PORTF_BASE)
  7257. #define PWM1_PIN (GPIO_PIN_1)
  7258. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  7259. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  7260. #define SSI0CLK_PIN (GPIO_PIN_2)
  7261. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  7262. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  7263. #define SSI0FSS_PIN (GPIO_PIN_3)
  7264. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7265. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  7266. #define SSI0RX_PIN (GPIO_PIN_4)
  7267. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7268. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  7269. #define SSI0TX_PIN (GPIO_PIN_5)
  7270. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7271. #define SWCLK_PORT (GPIO_PORTC_BASE)
  7272. #define SWCLK_PIN (GPIO_PIN_0)
  7273. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7274. #define SWDIO_PORT (GPIO_PORTC_BASE)
  7275. #define SWDIO_PIN (GPIO_PIN_1)
  7276. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7277. #define SWO_PORT (GPIO_PORTC_BASE)
  7278. #define SWO_PIN (GPIO_PIN_3)
  7279. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7280. #define TCK_PORT (GPIO_PORTC_BASE)
  7281. #define TCK_PIN (GPIO_PIN_0)
  7282. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  7283. #define TDI_PORT (GPIO_PORTC_BASE)
  7284. #define TDI_PIN (GPIO_PIN_2)
  7285. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7286. #define TDO_PORT (GPIO_PORTC_BASE)
  7287. #define TDO_PIN (GPIO_PIN_3)
  7288. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7289. #define TMS_PORT (GPIO_PORTC_BASE)
  7290. #define TMS_PIN (GPIO_PIN_1)
  7291. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  7292. #define TRST_PORT (GPIO_PORTB_BASE)
  7293. #define TRST_PIN (GPIO_PIN_7)
  7294. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7295. #define U0RX_PORT (GPIO_PORTA_BASE)
  7296. #define U0RX_PIN (GPIO_PIN_0)
  7297. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7298. #define U0TX_PORT (GPIO_PORTA_BASE)
  7299. #define U0TX_PIN (GPIO_PIN_1)
  7300. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7301. #define U1RX_PORT (GPIO_PORTD_BASE)
  7302. #define U1RX_PIN (GPIO_PIN_2)
  7303. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7304. #define U1TX_PORT (GPIO_PORTD_BASE)
  7305. #define U1TX_PIN (GPIO_PIN_3)
  7306. #endif // PART_LM3S2432
  7307. //*****************************************************************************
  7308. //
  7309. // LM3S2533 Port/Pin Mapping Definitions
  7310. //
  7311. //*****************************************************************************
  7312. #ifdef PART_LM3S2533
  7313. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  7314. #define C0O_PORT (GPIO_PORTD_BASE)
  7315. #define C0O_PIN (GPIO_PIN_7)
  7316. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7317. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  7318. #define C0_MINUS_PIN (GPIO_PIN_4)
  7319. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7320. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  7321. #define C0_PLUS_PIN (GPIO_PIN_6)
  7322. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7323. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  7324. #define C1_MINUS_PIN (GPIO_PIN_5)
  7325. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7326. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  7327. #define C1_PLUS_PIN (GPIO_PIN_5)
  7328. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7329. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  7330. #define C2_MINUS_PIN (GPIO_PIN_7)
  7331. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7332. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  7333. #define C2_PLUS_PIN (GPIO_PIN_6)
  7334. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7335. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  7336. #define CAN0RX_PIN (GPIO_PIN_0)
  7337. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7338. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  7339. #define CAN0TX_PIN (GPIO_PIN_1)
  7340. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  7341. #define CCP0_PORT (GPIO_PORTB_BASE)
  7342. #define CCP0_PIN (GPIO_PIN_0)
  7343. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  7344. #define CCP1_PORT (GPIO_PORTA_BASE)
  7345. #define CCP1_PIN (GPIO_PIN_6)
  7346. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  7347. #define CCP2_PORT (GPIO_PORTB_BASE)
  7348. #define CCP2_PIN (GPIO_PIN_1)
  7349. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  7350. #define CCP3_PORT (GPIO_PORTD_BASE)
  7351. #define CCP3_PIN (GPIO_PIN_4)
  7352. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  7353. #define CCP4_PORT (GPIO_PORTA_BASE)
  7354. #define CCP4_PIN (GPIO_PIN_7)
  7355. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  7356. #define CCP5_PORT (GPIO_PORTC_BASE)
  7357. #define CCP5_PIN (GPIO_PIN_4)
  7358. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  7359. #define FAULT_PORT (GPIO_PORTD_BASE)
  7360. #define FAULT_PIN (GPIO_PIN_6)
  7361. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  7362. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  7363. #define I2C0SCL_PIN (GPIO_PIN_2)
  7364. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  7365. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  7366. #define I2C0SDA_PIN (GPIO_PIN_3)
  7367. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  7368. #define PWM0_PORT (GPIO_PORTF_BASE)
  7369. #define PWM0_PIN (GPIO_PIN_0)
  7370. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  7371. #define PWM1_PORT (GPIO_PORTF_BASE)
  7372. #define PWM1_PIN (GPIO_PIN_1)
  7373. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  7374. #define PWM2_PORT (GPIO_PORTH_BASE)
  7375. #define PWM2_PIN (GPIO_PIN_0)
  7376. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  7377. #define PWM3_PORT (GPIO_PORTH_BASE)
  7378. #define PWM3_PIN (GPIO_PIN_1)
  7379. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  7380. #define PWM4_PORT (GPIO_PORTE_BASE)
  7381. #define PWM4_PIN (GPIO_PIN_0)
  7382. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  7383. #define PWM5_PORT (GPIO_PORTE_BASE)
  7384. #define PWM5_PIN (GPIO_PIN_1)
  7385. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  7386. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  7387. #define SSI0CLK_PIN (GPIO_PIN_2)
  7388. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  7389. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  7390. #define SSI0FSS_PIN (GPIO_PIN_3)
  7391. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7392. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  7393. #define SSI0RX_PIN (GPIO_PIN_4)
  7394. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7395. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  7396. #define SSI0TX_PIN (GPIO_PIN_5)
  7397. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7398. #define SWCLK_PORT (GPIO_PORTC_BASE)
  7399. #define SWCLK_PIN (GPIO_PIN_0)
  7400. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7401. #define SWDIO_PORT (GPIO_PORTC_BASE)
  7402. #define SWDIO_PIN (GPIO_PIN_1)
  7403. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7404. #define SWO_PORT (GPIO_PORTC_BASE)
  7405. #define SWO_PIN (GPIO_PIN_3)
  7406. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7407. #define TCK_PORT (GPIO_PORTC_BASE)
  7408. #define TCK_PIN (GPIO_PIN_0)
  7409. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  7410. #define TDI_PORT (GPIO_PORTC_BASE)
  7411. #define TDI_PIN (GPIO_PIN_2)
  7412. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7413. #define TDO_PORT (GPIO_PORTC_BASE)
  7414. #define TDO_PIN (GPIO_PIN_3)
  7415. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7416. #define TMS_PORT (GPIO_PORTC_BASE)
  7417. #define TMS_PIN (GPIO_PIN_1)
  7418. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  7419. #define TRST_PORT (GPIO_PORTB_BASE)
  7420. #define TRST_PIN (GPIO_PIN_7)
  7421. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7422. #define U0RX_PORT (GPIO_PORTA_BASE)
  7423. #define U0RX_PIN (GPIO_PIN_0)
  7424. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7425. #define U0TX_PORT (GPIO_PORTA_BASE)
  7426. #define U0TX_PIN (GPIO_PIN_1)
  7427. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7428. #define U1RX_PORT (GPIO_PORTD_BASE)
  7429. #define U1RX_PIN (GPIO_PIN_2)
  7430. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7431. #define U1TX_PORT (GPIO_PORTD_BASE)
  7432. #define U1TX_PIN (GPIO_PIN_3)
  7433. #endif // PART_LM3S2533
  7434. //*****************************************************************************
  7435. //
  7436. // LM3S2601 Port/Pin Mapping Definitions
  7437. //
  7438. //*****************************************************************************
  7439. #ifdef PART_LM3S2601
  7440. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  7441. #define C0O_PORT (GPIO_PORTF_BASE)
  7442. #define C0O_PIN (GPIO_PIN_4)
  7443. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7444. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  7445. #define C0_MINUS_PIN (GPIO_PIN_4)
  7446. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7447. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  7448. #define C0_PLUS_PIN (GPIO_PIN_6)
  7449. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  7450. #define C1O_PORT (GPIO_PORTE_BASE)
  7451. #define C1O_PIN (GPIO_PIN_6)
  7452. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7453. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  7454. #define C1_MINUS_PIN (GPIO_PIN_5)
  7455. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7456. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  7457. #define C1_PLUS_PIN (GPIO_PIN_5)
  7458. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7459. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  7460. #define CAN0RX_PIN (GPIO_PIN_0)
  7461. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7462. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  7463. #define CAN0TX_PIN (GPIO_PIN_1)
  7464. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  7465. #define CCP0_PORT (GPIO_PORTB_BASE)
  7466. #define CCP0_PIN (GPIO_PIN_0)
  7467. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOD)
  7468. #define CCP1_PORT (GPIO_PORTD_BASE)
  7469. #define CCP1_PIN (GPIO_PIN_7)
  7470. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  7471. #define CCP2_PORT (GPIO_PORTB_BASE)
  7472. #define CCP2_PIN (GPIO_PIN_1)
  7473. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  7474. #define CCP3_PORT (GPIO_PORTC_BASE)
  7475. #define CCP3_PIN (GPIO_PIN_6)
  7476. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  7477. #define CCP4_PORT (GPIO_PORTC_BASE)
  7478. #define CCP4_PIN (GPIO_PIN_7)
  7479. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  7480. #define CCP5_PORT (GPIO_PORTC_BASE)
  7481. #define CCP5_PIN (GPIO_PIN_4)
  7482. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  7483. #define CCP6_PORT (GPIO_PORTH_BASE)
  7484. #define CCP6_PIN (GPIO_PIN_0)
  7485. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOH)
  7486. #define CCP7_PORT (GPIO_PORTH_BASE)
  7487. #define CCP7_PIN (GPIO_PIN_1)
  7488. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  7489. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  7490. #define I2C0SCL_PIN (GPIO_PIN_2)
  7491. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  7492. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  7493. #define I2C0SDA_PIN (GPIO_PIN_3)
  7494. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  7495. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  7496. #define I2C1SCL_PIN (GPIO_PIN_6)
  7497. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  7498. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  7499. #define I2C1SDA_PIN (GPIO_PIN_7)
  7500. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  7501. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  7502. #define SSI0CLK_PIN (GPIO_PIN_2)
  7503. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  7504. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  7505. #define SSI0FSS_PIN (GPIO_PIN_3)
  7506. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7507. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  7508. #define SSI0RX_PIN (GPIO_PIN_4)
  7509. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7510. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  7511. #define SSI0TX_PIN (GPIO_PIN_5)
  7512. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  7513. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  7514. #define SSI1CLK_PIN (GPIO_PIN_0)
  7515. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  7516. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  7517. #define SSI1FSS_PIN (GPIO_PIN_1)
  7518. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  7519. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  7520. #define SSI1RX_PIN (GPIO_PIN_2)
  7521. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  7522. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  7523. #define SSI1TX_PIN (GPIO_PIN_3)
  7524. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7525. #define SWCLK_PORT (GPIO_PORTC_BASE)
  7526. #define SWCLK_PIN (GPIO_PIN_0)
  7527. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7528. #define SWDIO_PORT (GPIO_PORTC_BASE)
  7529. #define SWDIO_PIN (GPIO_PIN_1)
  7530. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7531. #define SWO_PORT (GPIO_PORTC_BASE)
  7532. #define SWO_PIN (GPIO_PIN_3)
  7533. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7534. #define TCK_PORT (GPIO_PORTC_BASE)
  7535. #define TCK_PIN (GPIO_PIN_0)
  7536. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  7537. #define TDI_PORT (GPIO_PORTC_BASE)
  7538. #define TDI_PIN (GPIO_PIN_2)
  7539. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7540. #define TDO_PORT (GPIO_PORTC_BASE)
  7541. #define TDO_PIN (GPIO_PIN_3)
  7542. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7543. #define TMS_PORT (GPIO_PORTC_BASE)
  7544. #define TMS_PIN (GPIO_PIN_1)
  7545. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  7546. #define TRST_PORT (GPIO_PORTB_BASE)
  7547. #define TRST_PIN (GPIO_PIN_7)
  7548. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7549. #define U0RX_PORT (GPIO_PORTA_BASE)
  7550. #define U0RX_PIN (GPIO_PIN_0)
  7551. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7552. #define U0TX_PORT (GPIO_PORTA_BASE)
  7553. #define U0TX_PIN (GPIO_PIN_1)
  7554. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7555. #define U1RX_PORT (GPIO_PORTD_BASE)
  7556. #define U1RX_PIN (GPIO_PIN_2)
  7557. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7558. #define U1TX_PORT (GPIO_PORTD_BASE)
  7559. #define U1TX_PIN (GPIO_PIN_3)
  7560. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  7561. #define U2RX_PORT (GPIO_PORTG_BASE)
  7562. #define U2RX_PIN (GPIO_PIN_0)
  7563. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  7564. #define U2TX_PORT (GPIO_PORTG_BASE)
  7565. #define U2TX_PIN (GPIO_PIN_1)
  7566. #endif // PART_LM3S2601
  7567. //*****************************************************************************
  7568. //
  7569. // LM3S2608 Port/Pin Mapping Definitions
  7570. //
  7571. //*****************************************************************************
  7572. #ifdef PART_LM3S2608
  7573. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  7574. #define C0O_PORT (GPIO_PORTF_BASE)
  7575. #define C0O_PIN (GPIO_PIN_4)
  7576. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7577. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  7578. #define C0_MINUS_PIN (GPIO_PIN_4)
  7579. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7580. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  7581. #define C0_PLUS_PIN (GPIO_PIN_6)
  7582. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOF)
  7583. #define C1O_PORT (GPIO_PORTF_BASE)
  7584. #define C1O_PIN (GPIO_PIN_5)
  7585. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7586. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  7587. #define C1_MINUS_PIN (GPIO_PIN_5)
  7588. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7589. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  7590. #define C1_PLUS_PIN (GPIO_PIN_5)
  7591. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7592. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  7593. #define CAN0RX_PIN (GPIO_PIN_0)
  7594. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7595. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  7596. #define CAN0TX_PIN (GPIO_PIN_1)
  7597. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  7598. #define CCP0_PORT (GPIO_PORTB_BASE)
  7599. #define CCP0_PIN (GPIO_PIN_0)
  7600. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOF)
  7601. #define CCP1_PORT (GPIO_PORTF_BASE)
  7602. #define CCP1_PIN (GPIO_PIN_6)
  7603. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  7604. #define CCP2_PORT (GPIO_PORTB_BASE)
  7605. #define CCP2_PIN (GPIO_PIN_1)
  7606. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  7607. #define CCP3_PORT (GPIO_PORTC_BASE)
  7608. #define CCP3_PIN (GPIO_PIN_6)
  7609. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  7610. #define CCP4_PORT (GPIO_PORTC_BASE)
  7611. #define CCP4_PIN (GPIO_PIN_7)
  7612. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  7613. #define CCP5_PORT (GPIO_PORTC_BASE)
  7614. #define CCP5_PIN (GPIO_PIN_4)
  7615. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  7616. #define CCP6_PORT (GPIO_PORTH_BASE)
  7617. #define CCP6_PIN (GPIO_PIN_0)
  7618. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOH)
  7619. #define CCP7_PORT (GPIO_PORTH_BASE)
  7620. #define CCP7_PIN (GPIO_PIN_1)
  7621. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  7622. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  7623. #define I2C0SCL_PIN (GPIO_PIN_2)
  7624. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  7625. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  7626. #define I2C0SDA_PIN (GPIO_PIN_3)
  7627. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  7628. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  7629. #define I2C1SCL_PIN (GPIO_PIN_6)
  7630. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  7631. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  7632. #define I2C1SDA_PIN (GPIO_PIN_7)
  7633. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  7634. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  7635. #define SSI0CLK_PIN (GPIO_PIN_2)
  7636. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  7637. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  7638. #define SSI0FSS_PIN (GPIO_PIN_3)
  7639. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7640. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  7641. #define SSI0RX_PIN (GPIO_PIN_4)
  7642. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7643. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  7644. #define SSI0TX_PIN (GPIO_PIN_5)
  7645. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  7646. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  7647. #define SSI1CLK_PIN (GPIO_PIN_0)
  7648. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  7649. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  7650. #define SSI1FSS_PIN (GPIO_PIN_1)
  7651. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  7652. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  7653. #define SSI1RX_PIN (GPIO_PIN_2)
  7654. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  7655. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  7656. #define SSI1TX_PIN (GPIO_PIN_3)
  7657. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7658. #define SWCLK_PORT (GPIO_PORTC_BASE)
  7659. #define SWCLK_PIN (GPIO_PIN_0)
  7660. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7661. #define SWDIO_PORT (GPIO_PORTC_BASE)
  7662. #define SWDIO_PIN (GPIO_PIN_1)
  7663. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7664. #define SWO_PORT (GPIO_PORTC_BASE)
  7665. #define SWO_PIN (GPIO_PIN_3)
  7666. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7667. #define TCK_PORT (GPIO_PORTC_BASE)
  7668. #define TCK_PIN (GPIO_PIN_0)
  7669. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  7670. #define TDI_PORT (GPIO_PORTC_BASE)
  7671. #define TDI_PIN (GPIO_PIN_2)
  7672. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7673. #define TDO_PORT (GPIO_PORTC_BASE)
  7674. #define TDO_PIN (GPIO_PIN_3)
  7675. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7676. #define TMS_PORT (GPIO_PORTC_BASE)
  7677. #define TMS_PIN (GPIO_PIN_1)
  7678. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  7679. #define TRST_PORT (GPIO_PORTB_BASE)
  7680. #define TRST_PIN (GPIO_PIN_7)
  7681. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7682. #define U0RX_PORT (GPIO_PORTA_BASE)
  7683. #define U0RX_PIN (GPIO_PIN_0)
  7684. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7685. #define U0TX_PORT (GPIO_PORTA_BASE)
  7686. #define U0TX_PIN (GPIO_PIN_1)
  7687. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7688. #define U1RX_PORT (GPIO_PORTD_BASE)
  7689. #define U1RX_PIN (GPIO_PIN_2)
  7690. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7691. #define U1TX_PORT (GPIO_PORTD_BASE)
  7692. #define U1TX_PIN (GPIO_PIN_3)
  7693. #endif // PART_LM3S2608
  7694. //*****************************************************************************
  7695. //
  7696. // LM3S2616 Port/Pin Mapping Definitions
  7697. //
  7698. //*****************************************************************************
  7699. #ifdef PART_LM3S2616
  7700. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  7701. #define ADC0_PORT (GPIO_PORTE_BASE)
  7702. #define ADC0_PIN (GPIO_PIN_3)
  7703. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  7704. #define ADC1_PORT (GPIO_PORTE_BASE)
  7705. #define ADC1_PIN (GPIO_PIN_2)
  7706. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  7707. #define ADC2_PORT (GPIO_PORTE_BASE)
  7708. #define ADC2_PIN (GPIO_PIN_1)
  7709. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  7710. #define ADC3_PORT (GPIO_PORTE_BASE)
  7711. #define ADC3_PIN (GPIO_PIN_0)
  7712. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  7713. #define ADC4_PORT (GPIO_PORTD_BASE)
  7714. #define ADC4_PIN (GPIO_PIN_3)
  7715. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  7716. #define ADC5_PORT (GPIO_PORTD_BASE)
  7717. #define ADC5_PIN (GPIO_PIN_2)
  7718. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  7719. #define C0O_PORT (GPIO_PORTC_BASE)
  7720. #define C0O_PIN (GPIO_PIN_5)
  7721. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7722. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  7723. #define C0_MINUS_PIN (GPIO_PIN_4)
  7724. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7725. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  7726. #define C0_PLUS_PIN (GPIO_PIN_6)
  7727. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  7728. #define C1O_PORT (GPIO_PORTC_BASE)
  7729. #define C1O_PIN (GPIO_PIN_7)
  7730. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7731. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  7732. #define C1_MINUS_PIN (GPIO_PIN_5)
  7733. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7734. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  7735. #define C1_PLUS_PIN (GPIO_PIN_7)
  7736. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7737. #define CAN0RX_PORT (GPIO_PORTA_BASE)
  7738. #define CAN0RX_PIN (GPIO_PIN_4)
  7739. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7740. #define CAN0TX_PORT (GPIO_PORTA_BASE)
  7741. #define CAN0TX_PIN (GPIO_PIN_5)
  7742. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOE)
  7743. #define FAULT0_PORT (GPIO_PORTE_BASE)
  7744. #define FAULT0_PIN (GPIO_PIN_4)
  7745. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  7746. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  7747. #define I2C0SCL_PIN (GPIO_PIN_2)
  7748. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  7749. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  7750. #define I2C0SDA_PIN (GPIO_PIN_3)
  7751. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  7752. #define IDX0_PORT (GPIO_PORTD_BASE)
  7753. #define IDX0_PIN (GPIO_PIN_0)
  7754. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  7755. #define NMI_PORT (GPIO_PORTB_BASE)
  7756. #define NMI_PIN (GPIO_PIN_7)
  7757. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  7758. #define PHA0_PORT (GPIO_PORTC_BASE)
  7759. #define PHA0_PIN (GPIO_PIN_4)
  7760. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOC)
  7761. #define PHB0_PORT (GPIO_PORTC_BASE)
  7762. #define PHB0_PIN (GPIO_PIN_6)
  7763. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOA)
  7764. #define PWM0_PORT (GPIO_PORTA_BASE)
  7765. #define PWM0_PIN (GPIO_PIN_6)
  7766. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOA)
  7767. #define PWM1_PORT (GPIO_PORTA_BASE)
  7768. #define PWM1_PIN (GPIO_PIN_7)
  7769. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  7770. #define PWM2_PORT (GPIO_PORTB_BASE)
  7771. #define PWM2_PIN (GPIO_PIN_0)
  7772. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  7773. #define PWM3_PORT (GPIO_PORTB_BASE)
  7774. #define PWM3_PIN (GPIO_PIN_1)
  7775. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOA)
  7776. #define PWM4_PORT (GPIO_PORTA_BASE)
  7777. #define PWM4_PIN (GPIO_PIN_2)
  7778. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOA)
  7779. #define PWM5_PORT (GPIO_PORTA_BASE)
  7780. #define PWM5_PIN (GPIO_PIN_3)
  7781. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7782. #define SWCLK_PORT (GPIO_PORTC_BASE)
  7783. #define SWCLK_PIN (GPIO_PIN_0)
  7784. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7785. #define SWDIO_PORT (GPIO_PORTC_BASE)
  7786. #define SWDIO_PIN (GPIO_PIN_1)
  7787. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7788. #define SWO_PORT (GPIO_PORTC_BASE)
  7789. #define SWO_PIN (GPIO_PIN_3)
  7790. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7791. #define TCK_PORT (GPIO_PORTC_BASE)
  7792. #define TCK_PIN (GPIO_PIN_0)
  7793. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  7794. #define TDI_PORT (GPIO_PORTC_BASE)
  7795. #define TDI_PIN (GPIO_PIN_2)
  7796. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7797. #define TDO_PORT (GPIO_PORTC_BASE)
  7798. #define TDO_PIN (GPIO_PIN_3)
  7799. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7800. #define TMS_PORT (GPIO_PORTC_BASE)
  7801. #define TMS_PIN (GPIO_PIN_1)
  7802. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7803. #define U0RX_PORT (GPIO_PORTA_BASE)
  7804. #define U0RX_PIN (GPIO_PIN_0)
  7805. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7806. #define U0TX_PORT (GPIO_PORTA_BASE)
  7807. #define U0TX_PIN (GPIO_PIN_1)
  7808. #endif // PART_LM3S2616
  7809. //*****************************************************************************
  7810. //
  7811. // LM3S2620 Port/Pin Mapping Definitions
  7812. //
  7813. //*****************************************************************************
  7814. #ifdef PART_LM3S2620
  7815. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  7816. #define C0O_PORT (GPIO_PORTF_BASE)
  7817. #define C0O_PIN (GPIO_PIN_4)
  7818. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7819. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  7820. #define C0_MINUS_PIN (GPIO_PIN_4)
  7821. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7822. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  7823. #define C0_PLUS_PIN (GPIO_PIN_6)
  7824. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  7825. #define C1O_PORT (GPIO_PORTE_BASE)
  7826. #define C1O_PIN (GPIO_PIN_6)
  7827. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7828. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  7829. #define C1_MINUS_PIN (GPIO_PIN_5)
  7830. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7831. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  7832. #define C1_PLUS_PIN (GPIO_PIN_5)
  7833. #define C2O_PERIPH (SYSCTL_PERIPH_GPIOE)
  7834. #define C2O_PORT (GPIO_PORTE_BASE)
  7835. #define C2O_PIN (GPIO_PIN_7)
  7836. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7837. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  7838. #define C2_MINUS_PIN (GPIO_PIN_7)
  7839. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7840. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  7841. #define C2_PLUS_PIN (GPIO_PIN_6)
  7842. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7843. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  7844. #define CAN0RX_PIN (GPIO_PIN_0)
  7845. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7846. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  7847. #define CAN0TX_PIN (GPIO_PIN_1)
  7848. #define CAN1RX_PERIPH (SYSCTL_PERIPH_GPIOF)
  7849. #define CAN1RX_PORT (GPIO_PORTF_BASE)
  7850. #define CAN1RX_PIN (GPIO_PIN_0)
  7851. #define CAN1TX_PERIPH (SYSCTL_PERIPH_GPIOF)
  7852. #define CAN1TX_PORT (GPIO_PORTF_BASE)
  7853. #define CAN1TX_PIN (GPIO_PIN_1)
  7854. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  7855. #define CCP0_PORT (GPIO_PORTB_BASE)
  7856. #define CCP0_PIN (GPIO_PIN_0)
  7857. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  7858. #define CCP1_PORT (GPIO_PORTA_BASE)
  7859. #define CCP1_PIN (GPIO_PIN_6)
  7860. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  7861. #define CCP2_PORT (GPIO_PORTB_BASE)
  7862. #define CCP2_PIN (GPIO_PIN_1)
  7863. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  7864. #define CCP3_PORT (GPIO_PORTD_BASE)
  7865. #define CCP3_PIN (GPIO_PIN_4)
  7866. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  7867. #define CCP4_PORT (GPIO_PORTA_BASE)
  7868. #define CCP4_PIN (GPIO_PIN_7)
  7869. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOE)
  7870. #define CCP5_PORT (GPIO_PORTE_BASE)
  7871. #define CCP5_PIN (GPIO_PIN_5)
  7872. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  7873. #define FAULT_PORT (GPIO_PORTD_BASE)
  7874. #define FAULT_PIN (GPIO_PIN_6)
  7875. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  7876. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  7877. #define I2C0SCL_PIN (GPIO_PIN_2)
  7878. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  7879. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  7880. #define I2C0SDA_PIN (GPIO_PIN_3)
  7881. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  7882. #define IDX0_PORT (GPIO_PORTD_BASE)
  7883. #define IDX0_PIN (GPIO_PIN_7)
  7884. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  7885. #define PHA0_PORT (GPIO_PORTC_BASE)
  7886. #define PHA0_PIN (GPIO_PIN_4)
  7887. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOH)
  7888. #define PHB0_PORT (GPIO_PORTH_BASE)
  7889. #define PHB0_PIN (GPIO_PIN_3)
  7890. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOG)
  7891. #define PWM0_PORT (GPIO_PORTG_BASE)
  7892. #define PWM0_PIN (GPIO_PIN_0)
  7893. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOG)
  7894. #define PWM1_PORT (GPIO_PORTG_BASE)
  7895. #define PWM1_PIN (GPIO_PIN_1)
  7896. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOD)
  7897. #define PWM2_PORT (GPIO_PORTD_BASE)
  7898. #define PWM2_PIN (GPIO_PIN_2)
  7899. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOD)
  7900. #define PWM3_PORT (GPIO_PORTD_BASE)
  7901. #define PWM3_PIN (GPIO_PIN_3)
  7902. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  7903. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  7904. #define SSI0CLK_PIN (GPIO_PIN_2)
  7905. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  7906. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  7907. #define SSI0FSS_PIN (GPIO_PIN_3)
  7908. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7909. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  7910. #define SSI0RX_PIN (GPIO_PIN_4)
  7911. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7912. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  7913. #define SSI0TX_PIN (GPIO_PIN_5)
  7914. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7915. #define SWCLK_PORT (GPIO_PORTC_BASE)
  7916. #define SWCLK_PIN (GPIO_PIN_0)
  7917. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7918. #define SWDIO_PORT (GPIO_PORTC_BASE)
  7919. #define SWDIO_PIN (GPIO_PIN_1)
  7920. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7921. #define SWO_PORT (GPIO_PORTC_BASE)
  7922. #define SWO_PIN (GPIO_PIN_3)
  7923. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  7924. #define TCK_PORT (GPIO_PORTC_BASE)
  7925. #define TCK_PIN (GPIO_PIN_0)
  7926. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  7927. #define TDI_PORT (GPIO_PORTC_BASE)
  7928. #define TDI_PIN (GPIO_PIN_2)
  7929. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  7930. #define TDO_PORT (GPIO_PORTC_BASE)
  7931. #define TDO_PIN (GPIO_PIN_3)
  7932. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7933. #define TMS_PORT (GPIO_PORTC_BASE)
  7934. #define TMS_PIN (GPIO_PIN_1)
  7935. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  7936. #define TRST_PORT (GPIO_PORTB_BASE)
  7937. #define TRST_PIN (GPIO_PIN_7)
  7938. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7939. #define U0RX_PORT (GPIO_PORTA_BASE)
  7940. #define U0RX_PIN (GPIO_PIN_0)
  7941. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  7942. #define U0TX_PORT (GPIO_PORTA_BASE)
  7943. #define U0TX_PIN (GPIO_PIN_1)
  7944. #endif // PART_LM3S2620
  7945. //*****************************************************************************
  7946. //
  7947. // LM3S2637 Port/Pin Mapping Definitions
  7948. //
  7949. //*****************************************************************************
  7950. #ifdef PART_LM3S2637
  7951. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  7952. #define C0O_PORT (GPIO_PORTD_BASE)
  7953. #define C0O_PIN (GPIO_PIN_7)
  7954. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7955. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  7956. #define C0_MINUS_PIN (GPIO_PIN_4)
  7957. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7958. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  7959. #define C0_PLUS_PIN (GPIO_PIN_6)
  7960. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOF)
  7961. #define C1O_PORT (GPIO_PORTF_BASE)
  7962. #define C1O_PIN (GPIO_PIN_5)
  7963. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  7964. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  7965. #define C1_MINUS_PIN (GPIO_PIN_5)
  7966. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7967. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  7968. #define C1_PLUS_PIN (GPIO_PIN_5)
  7969. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7970. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  7971. #define C2_MINUS_PIN (GPIO_PIN_7)
  7972. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  7973. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  7974. #define C2_PLUS_PIN (GPIO_PIN_6)
  7975. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7976. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  7977. #define CAN0RX_PIN (GPIO_PIN_0)
  7978. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  7979. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  7980. #define CAN0TX_PIN (GPIO_PIN_1)
  7981. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  7982. #define CCP0_PORT (GPIO_PORTB_BASE)
  7983. #define CCP0_PIN (GPIO_PIN_0)
  7984. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  7985. #define CCP1_PORT (GPIO_PORTA_BASE)
  7986. #define CCP1_PIN (GPIO_PIN_6)
  7987. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  7988. #define CCP2_PORT (GPIO_PORTB_BASE)
  7989. #define CCP2_PIN (GPIO_PIN_1)
  7990. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  7991. #define CCP3_PORT (GPIO_PORTD_BASE)
  7992. #define CCP3_PIN (GPIO_PIN_4)
  7993. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  7994. #define CCP4_PORT (GPIO_PORTA_BASE)
  7995. #define CCP4_PIN (GPIO_PIN_7)
  7996. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  7997. #define CCP5_PORT (GPIO_PORTC_BASE)
  7998. #define CCP5_PIN (GPIO_PIN_4)
  7999. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  8000. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  8001. #define I2C0SCL_PIN (GPIO_PIN_2)
  8002. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  8003. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  8004. #define I2C0SDA_PIN (GPIO_PIN_3)
  8005. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  8006. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  8007. #define SSI0CLK_PIN (GPIO_PIN_2)
  8008. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  8009. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  8010. #define SSI0FSS_PIN (GPIO_PIN_3)
  8011. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8012. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  8013. #define SSI0RX_PIN (GPIO_PIN_4)
  8014. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8015. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  8016. #define SSI0TX_PIN (GPIO_PIN_5)
  8017. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8018. #define SWCLK_PORT (GPIO_PORTC_BASE)
  8019. #define SWCLK_PIN (GPIO_PIN_0)
  8020. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8021. #define SWDIO_PORT (GPIO_PORTC_BASE)
  8022. #define SWDIO_PIN (GPIO_PIN_1)
  8023. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8024. #define SWO_PORT (GPIO_PORTC_BASE)
  8025. #define SWO_PIN (GPIO_PIN_3)
  8026. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8027. #define TCK_PORT (GPIO_PORTC_BASE)
  8028. #define TCK_PIN (GPIO_PIN_0)
  8029. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  8030. #define TDI_PORT (GPIO_PORTC_BASE)
  8031. #define TDI_PIN (GPIO_PIN_2)
  8032. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8033. #define TDO_PORT (GPIO_PORTC_BASE)
  8034. #define TDO_PIN (GPIO_PIN_3)
  8035. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8036. #define TMS_PORT (GPIO_PORTC_BASE)
  8037. #define TMS_PIN (GPIO_PIN_1)
  8038. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  8039. #define TRST_PORT (GPIO_PORTB_BASE)
  8040. #define TRST_PIN (GPIO_PIN_7)
  8041. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8042. #define U0RX_PORT (GPIO_PORTA_BASE)
  8043. #define U0RX_PIN (GPIO_PIN_0)
  8044. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8045. #define U0TX_PORT (GPIO_PORTA_BASE)
  8046. #define U0TX_PIN (GPIO_PIN_1)
  8047. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8048. #define U1RX_PORT (GPIO_PORTD_BASE)
  8049. #define U1RX_PIN (GPIO_PIN_2)
  8050. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8051. #define U1TX_PORT (GPIO_PORTD_BASE)
  8052. #define U1TX_PIN (GPIO_PIN_3)
  8053. #endif // PART_LM3S2637
  8054. //*****************************************************************************
  8055. //
  8056. // LM3S2651 Port/Pin Mapping Definitions
  8057. //
  8058. //*****************************************************************************
  8059. #ifdef PART_LM3S2651
  8060. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  8061. #define C0O_PORT (GPIO_PORTC_BASE)
  8062. #define C0O_PIN (GPIO_PIN_5)
  8063. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8064. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  8065. #define C0_MINUS_PIN (GPIO_PIN_4)
  8066. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8067. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  8068. #define C0_PLUS_PIN (GPIO_PIN_6)
  8069. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8070. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  8071. #define CAN0RX_PIN (GPIO_PIN_0)
  8072. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8073. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  8074. #define CAN0TX_PIN (GPIO_PIN_1)
  8075. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  8076. #define CCP0_PORT (GPIO_PORTB_BASE)
  8077. #define CCP0_PIN (GPIO_PIN_0)
  8078. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  8079. #define CCP1_PORT (GPIO_PORTA_BASE)
  8080. #define CCP1_PIN (GPIO_PIN_6)
  8081. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  8082. #define CCP2_PORT (GPIO_PORTB_BASE)
  8083. #define CCP2_PIN (GPIO_PIN_1)
  8084. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  8085. #define CCP3_PORT (GPIO_PORTC_BASE)
  8086. #define CCP3_PIN (GPIO_PIN_6)
  8087. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  8088. #define CCP4_PORT (GPIO_PORTA_BASE)
  8089. #define CCP4_PIN (GPIO_PIN_7)
  8090. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOB)
  8091. #define CCP5_PORT (GPIO_PORTB_BASE)
  8092. #define CCP5_PIN (GPIO_PIN_5)
  8093. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  8094. #define FAULT_PORT (GPIO_PORTD_BASE)
  8095. #define FAULT_PIN (GPIO_PIN_6)
  8096. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  8097. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  8098. #define I2C0SCL_PIN (GPIO_PIN_2)
  8099. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  8100. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  8101. #define I2C0SDA_PIN (GPIO_PIN_3)
  8102. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  8103. #define PWM0_PORT (GPIO_PORTF_BASE)
  8104. #define PWM0_PIN (GPIO_PIN_0)
  8105. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  8106. #define PWM1_PORT (GPIO_PORTF_BASE)
  8107. #define PWM1_PIN (GPIO_PIN_1)
  8108. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  8109. #define PWM2_PORT (GPIO_PORTH_BASE)
  8110. #define PWM2_PIN (GPIO_PIN_0)
  8111. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  8112. #define PWM3_PORT (GPIO_PORTH_BASE)
  8113. #define PWM3_PIN (GPIO_PIN_1)
  8114. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  8115. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  8116. #define SSI0CLK_PIN (GPIO_PIN_2)
  8117. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  8118. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  8119. #define SSI0FSS_PIN (GPIO_PIN_3)
  8120. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8121. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  8122. #define SSI0RX_PIN (GPIO_PIN_4)
  8123. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8124. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  8125. #define SSI0TX_PIN (GPIO_PIN_5)
  8126. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  8127. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  8128. #define SSI1CLK_PIN (GPIO_PIN_0)
  8129. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  8130. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  8131. #define SSI1FSS_PIN (GPIO_PIN_1)
  8132. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  8133. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  8134. #define SSI1RX_PIN (GPIO_PIN_2)
  8135. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  8136. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  8137. #define SSI1TX_PIN (GPIO_PIN_3)
  8138. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8139. #define SWCLK_PORT (GPIO_PORTC_BASE)
  8140. #define SWCLK_PIN (GPIO_PIN_0)
  8141. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8142. #define SWDIO_PORT (GPIO_PORTC_BASE)
  8143. #define SWDIO_PIN (GPIO_PIN_1)
  8144. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8145. #define SWO_PORT (GPIO_PORTC_BASE)
  8146. #define SWO_PIN (GPIO_PIN_3)
  8147. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8148. #define TCK_PORT (GPIO_PORTC_BASE)
  8149. #define TCK_PIN (GPIO_PIN_0)
  8150. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  8151. #define TDI_PORT (GPIO_PORTC_BASE)
  8152. #define TDI_PIN (GPIO_PIN_2)
  8153. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8154. #define TDO_PORT (GPIO_PORTC_BASE)
  8155. #define TDO_PIN (GPIO_PIN_3)
  8156. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8157. #define TMS_PORT (GPIO_PORTC_BASE)
  8158. #define TMS_PIN (GPIO_PIN_1)
  8159. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  8160. #define TRST_PORT (GPIO_PORTB_BASE)
  8161. #define TRST_PIN (GPIO_PIN_7)
  8162. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8163. #define U0RX_PORT (GPIO_PORTA_BASE)
  8164. #define U0RX_PIN (GPIO_PIN_0)
  8165. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8166. #define U0TX_PORT (GPIO_PORTA_BASE)
  8167. #define U0TX_PIN (GPIO_PIN_1)
  8168. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8169. #define U1RX_PORT (GPIO_PORTD_BASE)
  8170. #define U1RX_PIN (GPIO_PIN_2)
  8171. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8172. #define U1TX_PORT (GPIO_PORTD_BASE)
  8173. #define U1TX_PIN (GPIO_PIN_3)
  8174. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  8175. #define U2RX_PORT (GPIO_PORTG_BASE)
  8176. #define U2RX_PIN (GPIO_PIN_0)
  8177. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  8178. #define U2TX_PORT (GPIO_PORTG_BASE)
  8179. #define U2TX_PIN (GPIO_PIN_1)
  8180. #endif // PART_LM3S2651
  8181. //*****************************************************************************
  8182. //
  8183. // LM3S2671 Port/Pin Mapping Definitions
  8184. //
  8185. //*****************************************************************************
  8186. #ifdef PART_LM3S2671
  8187. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  8188. #define ADC0_PORT (GPIO_PORTE_BASE)
  8189. #define ADC0_PIN (GPIO_PIN_3)
  8190. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  8191. #define ADC1_PORT (GPIO_PORTE_BASE)
  8192. #define ADC1_PIN (GPIO_PIN_2)
  8193. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  8194. #define ADC2_PORT (GPIO_PORTE_BASE)
  8195. #define ADC2_PIN (GPIO_PIN_1)
  8196. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  8197. #define ADC3_PORT (GPIO_PORTE_BASE)
  8198. #define ADC3_PIN (GPIO_PIN_0)
  8199. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOB)
  8200. #define C0O_PORT (GPIO_PORTB_BASE)
  8201. #define C0O_PIN (GPIO_PIN_6)
  8202. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8203. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  8204. #define C0_MINUS_PIN (GPIO_PIN_4)
  8205. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8206. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  8207. #define C0_PLUS_PIN (GPIO_PIN_6)
  8208. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  8209. #define C1O_PORT (GPIO_PORTC_BASE)
  8210. #define C1O_PIN (GPIO_PIN_7)
  8211. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8212. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  8213. #define C1_MINUS_PIN (GPIO_PIN_5)
  8214. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8215. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  8216. #define C1_PLUS_PIN (GPIO_PIN_7)
  8217. #define C2O_PERIPH (SYSCTL_PERIPH_GPIOC)
  8218. #define C2O_PORT (GPIO_PORTC_BASE)
  8219. #define C2O_PIN (GPIO_PIN_6)
  8220. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8221. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  8222. #define C2_MINUS_PIN (GPIO_PIN_5)
  8223. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8224. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  8225. #define C2_PLUS_PIN (GPIO_PIN_6)
  8226. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8227. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  8228. #define CAN0RX_PIN (GPIO_PIN_0)
  8229. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8230. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  8231. #define CAN0TX_PIN (GPIO_PIN_1)
  8232. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  8233. #define CCP0_PORT (GPIO_PORTB_BASE)
  8234. #define CCP0_PIN (GPIO_PIN_0)
  8235. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOB)
  8236. #define CCP1_PORT (GPIO_PORTB_BASE)
  8237. #define CCP1_PIN (GPIO_PIN_1)
  8238. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOE)
  8239. #define FAULT0_PORT (GPIO_PORTE_BASE)
  8240. #define FAULT0_PIN (GPIO_PIN_4)
  8241. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  8242. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  8243. #define I2C0SCL_PIN (GPIO_PIN_2)
  8244. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  8245. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  8246. #define I2C0SDA_PIN (GPIO_PIN_3)
  8247. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  8248. #define NMI_PORT (GPIO_PORTB_BASE)
  8249. #define NMI_PIN (GPIO_PIN_7)
  8250. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOA)
  8251. #define PWM0_PORT (GPIO_PORTA_BASE)
  8252. #define PWM0_PIN (GPIO_PIN_6)
  8253. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOA)
  8254. #define PWM1_PORT (GPIO_PORTA_BASE)
  8255. #define PWM1_PIN (GPIO_PIN_7)
  8256. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  8257. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  8258. #define SSI0CLK_PIN (GPIO_PIN_2)
  8259. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  8260. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  8261. #define SSI0FSS_PIN (GPIO_PIN_3)
  8262. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8263. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  8264. #define SSI0RX_PIN (GPIO_PIN_4)
  8265. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8266. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  8267. #define SSI0TX_PIN (GPIO_PIN_5)
  8268. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8269. #define SWCLK_PORT (GPIO_PORTC_BASE)
  8270. #define SWCLK_PIN (GPIO_PIN_0)
  8271. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8272. #define SWDIO_PORT (GPIO_PORTC_BASE)
  8273. #define SWDIO_PIN (GPIO_PIN_1)
  8274. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8275. #define SWO_PORT (GPIO_PORTC_BASE)
  8276. #define SWO_PIN (GPIO_PIN_3)
  8277. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8278. #define TCK_PORT (GPIO_PORTC_BASE)
  8279. #define TCK_PIN (GPIO_PIN_0)
  8280. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  8281. #define TDI_PORT (GPIO_PORTC_BASE)
  8282. #define TDI_PIN (GPIO_PIN_2)
  8283. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8284. #define TDO_PORT (GPIO_PORTC_BASE)
  8285. #define TDO_PIN (GPIO_PIN_3)
  8286. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8287. #define TMS_PORT (GPIO_PORTC_BASE)
  8288. #define TMS_PIN (GPIO_PIN_1)
  8289. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8290. #define U0RX_PORT (GPIO_PORTA_BASE)
  8291. #define U0RX_PIN (GPIO_PIN_0)
  8292. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8293. #define U0TX_PORT (GPIO_PORTA_BASE)
  8294. #define U0TX_PIN (GPIO_PIN_1)
  8295. #endif // PART_LM3S2671
  8296. //*****************************************************************************
  8297. //
  8298. // LM3S2678 Port/Pin Mapping Definitions
  8299. //
  8300. //*****************************************************************************
  8301. #ifdef PART_LM3S2678
  8302. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  8303. #define ADC0_PORT (GPIO_PORTE_BASE)
  8304. #define ADC0_PIN (GPIO_PIN_3)
  8305. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  8306. #define ADC1_PORT (GPIO_PORTE_BASE)
  8307. #define ADC1_PIN (GPIO_PIN_2)
  8308. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  8309. #define ADC2_PORT (GPIO_PORTE_BASE)
  8310. #define ADC2_PIN (GPIO_PIN_1)
  8311. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  8312. #define ADC3_PORT (GPIO_PORTE_BASE)
  8313. #define ADC3_PIN (GPIO_PIN_0)
  8314. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  8315. #define ADC4_PORT (GPIO_PORTD_BASE)
  8316. #define ADC4_PIN (GPIO_PIN_3)
  8317. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  8318. #define ADC5_PORT (GPIO_PORTD_BASE)
  8319. #define ADC5_PIN (GPIO_PIN_2)
  8320. #define ADC6_PERIPH (SYSCTL_PERIPH_GPIOD)
  8321. #define ADC6_PORT (GPIO_PORTD_BASE)
  8322. #define ADC6_PIN (GPIO_PIN_1)
  8323. #define ADC7_PERIPH (SYSCTL_PERIPH_GPIOD)
  8324. #define ADC7_PORT (GPIO_PORTD_BASE)
  8325. #define ADC7_PIN (GPIO_PIN_0)
  8326. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  8327. #define CAN0RX_PORT (GPIO_PORTB_BASE)
  8328. #define CAN0RX_PIN (GPIO_PIN_4)
  8329. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  8330. #define CAN0TX_PORT (GPIO_PORTB_BASE)
  8331. #define CAN0TX_PIN (GPIO_PIN_5)
  8332. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOC)
  8333. #define CCP0_PORT (GPIO_PORTC_BASE)
  8334. #define CCP0_PIN (GPIO_PIN_6)
  8335. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOC)
  8336. #define CCP1_PORT (GPIO_PORTC_BASE)
  8337. #define CCP1_PIN (GPIO_PIN_5)
  8338. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOB)
  8339. #define FAULT0_PORT (GPIO_PORTB_BASE)
  8340. #define FAULT0_PIN (GPIO_PIN_3)
  8341. #define FAULT1_PERIPH (SYSCTL_PERIPH_GPIOB)
  8342. #define FAULT1_PORT (GPIO_PORTB_BASE)
  8343. #define FAULT1_PIN (GPIO_PIN_6)
  8344. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOB)
  8345. #define IDX0_PORT (GPIO_PORTB_BASE)
  8346. #define IDX0_PIN (GPIO_PIN_2)
  8347. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  8348. #define NMI_PORT (GPIO_PORTB_BASE)
  8349. #define NMI_PIN (GPIO_PIN_7)
  8350. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  8351. #define PHA0_PORT (GPIO_PORTC_BASE)
  8352. #define PHA0_PIN (GPIO_PIN_4)
  8353. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOC)
  8354. #define PHB0_PORT (GPIO_PORTC_BASE)
  8355. #define PHB0_PIN (GPIO_PIN_7)
  8356. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOA)
  8357. #define PWM0_PORT (GPIO_PORTA_BASE)
  8358. #define PWM0_PIN (GPIO_PIN_6)
  8359. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOA)
  8360. #define PWM1_PORT (GPIO_PORTA_BASE)
  8361. #define PWM1_PIN (GPIO_PIN_7)
  8362. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  8363. #define PWM2_PORT (GPIO_PORTB_BASE)
  8364. #define PWM2_PIN (GPIO_PIN_0)
  8365. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  8366. #define PWM3_PORT (GPIO_PORTB_BASE)
  8367. #define PWM3_PIN (GPIO_PIN_1)
  8368. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  8369. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  8370. #define SSI0CLK_PIN (GPIO_PIN_2)
  8371. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  8372. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  8373. #define SSI0FSS_PIN (GPIO_PIN_3)
  8374. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8375. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  8376. #define SSI0RX_PIN (GPIO_PIN_4)
  8377. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8378. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  8379. #define SSI0TX_PIN (GPIO_PIN_5)
  8380. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8381. #define SWCLK_PORT (GPIO_PORTC_BASE)
  8382. #define SWCLK_PIN (GPIO_PIN_0)
  8383. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8384. #define SWDIO_PORT (GPIO_PORTC_BASE)
  8385. #define SWDIO_PIN (GPIO_PIN_1)
  8386. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8387. #define SWO_PORT (GPIO_PORTC_BASE)
  8388. #define SWO_PIN (GPIO_PIN_3)
  8389. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8390. #define TCK_PORT (GPIO_PORTC_BASE)
  8391. #define TCK_PIN (GPIO_PIN_0)
  8392. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  8393. #define TDI_PORT (GPIO_PORTC_BASE)
  8394. #define TDI_PIN (GPIO_PIN_2)
  8395. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8396. #define TDO_PORT (GPIO_PORTC_BASE)
  8397. #define TDO_PIN (GPIO_PIN_3)
  8398. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8399. #define TMS_PORT (GPIO_PORTC_BASE)
  8400. #define TMS_PIN (GPIO_PIN_1)
  8401. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8402. #define U0RX_PORT (GPIO_PORTA_BASE)
  8403. #define U0RX_PIN (GPIO_PIN_0)
  8404. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8405. #define U0TX_PORT (GPIO_PORTA_BASE)
  8406. #define U0TX_PIN (GPIO_PIN_1)
  8407. #endif // PART_LM3S2678
  8408. //*****************************************************************************
  8409. //
  8410. // LM3S2730 Port/Pin Mapping Definitions
  8411. //
  8412. //*****************************************************************************
  8413. #ifdef PART_LM3S2730
  8414. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  8415. #define C0O_PORT (GPIO_PORTD_BASE)
  8416. #define C0O_PIN (GPIO_PIN_7)
  8417. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8418. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  8419. #define C0_MINUS_PIN (GPIO_PIN_4)
  8420. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8421. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  8422. #define C0_PLUS_PIN (GPIO_PIN_6)
  8423. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  8424. #define C1O_PORT (GPIO_PORTE_BASE)
  8425. #define C1O_PIN (GPIO_PIN_6)
  8426. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8427. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  8428. #define C1_MINUS_PIN (GPIO_PIN_5)
  8429. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8430. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  8431. #define C1_PLUS_PIN (GPIO_PIN_5)
  8432. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8433. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  8434. #define CAN0RX_PIN (GPIO_PIN_0)
  8435. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8436. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  8437. #define CAN0TX_PIN (GPIO_PIN_1)
  8438. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  8439. #define CCP0_PORT (GPIO_PORTB_BASE)
  8440. #define CCP0_PIN (GPIO_PIN_0)
  8441. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  8442. #define CCP1_PORT (GPIO_PORTA_BASE)
  8443. #define CCP1_PIN (GPIO_PIN_6)
  8444. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  8445. #define CCP2_PORT (GPIO_PORTB_BASE)
  8446. #define CCP2_PIN (GPIO_PIN_1)
  8447. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  8448. #define CCP3_PORT (GPIO_PORTC_BASE)
  8449. #define CCP3_PIN (GPIO_PIN_6)
  8450. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  8451. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  8452. #define SSI0CLK_PIN (GPIO_PIN_2)
  8453. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  8454. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  8455. #define SSI0FSS_PIN (GPIO_PIN_3)
  8456. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8457. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  8458. #define SSI0RX_PIN (GPIO_PIN_4)
  8459. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8460. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  8461. #define SSI0TX_PIN (GPIO_PIN_5)
  8462. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8463. #define SWCLK_PORT (GPIO_PORTC_BASE)
  8464. #define SWCLK_PIN (GPIO_PIN_0)
  8465. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8466. #define SWDIO_PORT (GPIO_PORTC_BASE)
  8467. #define SWDIO_PIN (GPIO_PIN_1)
  8468. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8469. #define SWO_PORT (GPIO_PORTC_BASE)
  8470. #define SWO_PIN (GPIO_PIN_3)
  8471. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8472. #define TCK_PORT (GPIO_PORTC_BASE)
  8473. #define TCK_PIN (GPIO_PIN_0)
  8474. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  8475. #define TDI_PORT (GPIO_PORTC_BASE)
  8476. #define TDI_PIN (GPIO_PIN_2)
  8477. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8478. #define TDO_PORT (GPIO_PORTC_BASE)
  8479. #define TDO_PIN (GPIO_PIN_3)
  8480. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8481. #define TMS_PORT (GPIO_PORTC_BASE)
  8482. #define TMS_PIN (GPIO_PIN_1)
  8483. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  8484. #define TRST_PORT (GPIO_PORTB_BASE)
  8485. #define TRST_PIN (GPIO_PIN_7)
  8486. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8487. #define U0RX_PORT (GPIO_PORTA_BASE)
  8488. #define U0RX_PIN (GPIO_PIN_0)
  8489. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8490. #define U0TX_PORT (GPIO_PORTA_BASE)
  8491. #define U0TX_PIN (GPIO_PIN_1)
  8492. #endif // PART_LM3S2730
  8493. //*****************************************************************************
  8494. //
  8495. // LM3S2739 Port/Pin Mapping Definitions
  8496. //
  8497. //*****************************************************************************
  8498. #ifdef PART_LM3S2739
  8499. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  8500. #define C0O_PORT (GPIO_PORTC_BASE)
  8501. #define C0O_PIN (GPIO_PIN_5)
  8502. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8503. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  8504. #define C0_MINUS_PIN (GPIO_PIN_4)
  8505. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8506. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  8507. #define C0_PLUS_PIN (GPIO_PIN_6)
  8508. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8509. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  8510. #define CAN0RX_PIN (GPIO_PIN_0)
  8511. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8512. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  8513. #define CAN0TX_PIN (GPIO_PIN_1)
  8514. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  8515. #define CCP0_PORT (GPIO_PORTB_BASE)
  8516. #define CCP0_PIN (GPIO_PIN_0)
  8517. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  8518. #define CCP1_PORT (GPIO_PORTA_BASE)
  8519. #define CCP1_PIN (GPIO_PIN_6)
  8520. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  8521. #define CCP2_PORT (GPIO_PORTB_BASE)
  8522. #define CCP2_PIN (GPIO_PIN_1)
  8523. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  8524. #define CCP3_PORT (GPIO_PORTC_BASE)
  8525. #define CCP3_PIN (GPIO_PIN_6)
  8526. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  8527. #define CCP4_PORT (GPIO_PORTA_BASE)
  8528. #define CCP4_PIN (GPIO_PIN_7)
  8529. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOB)
  8530. #define CCP5_PORT (GPIO_PORTB_BASE)
  8531. #define CCP5_PIN (GPIO_PIN_5)
  8532. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  8533. #define FAULT_PORT (GPIO_PORTD_BASE)
  8534. #define FAULT_PIN (GPIO_PIN_6)
  8535. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  8536. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  8537. #define I2C0SCL_PIN (GPIO_PIN_2)
  8538. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  8539. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  8540. #define I2C0SDA_PIN (GPIO_PIN_3)
  8541. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  8542. #define IDX0_PORT (GPIO_PORTD_BASE)
  8543. #define IDX0_PIN (GPIO_PIN_7)
  8544. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  8545. #define PHA0_PORT (GPIO_PORTC_BASE)
  8546. #define PHA0_PIN (GPIO_PIN_4)
  8547. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOC)
  8548. #define PHB0_PORT (GPIO_PORTC_BASE)
  8549. #define PHB0_PIN (GPIO_PIN_7)
  8550. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  8551. #define PWM0_PORT (GPIO_PORTF_BASE)
  8552. #define PWM0_PIN (GPIO_PIN_0)
  8553. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  8554. #define PWM1_PORT (GPIO_PORTF_BASE)
  8555. #define PWM1_PIN (GPIO_PIN_1)
  8556. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  8557. #define PWM2_PORT (GPIO_PORTH_BASE)
  8558. #define PWM2_PIN (GPIO_PIN_0)
  8559. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  8560. #define PWM3_PORT (GPIO_PORTH_BASE)
  8561. #define PWM3_PIN (GPIO_PIN_1)
  8562. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  8563. #define PWM4_PORT (GPIO_PORTE_BASE)
  8564. #define PWM4_PIN (GPIO_PIN_0)
  8565. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  8566. #define PWM5_PORT (GPIO_PORTE_BASE)
  8567. #define PWM5_PIN (GPIO_PIN_1)
  8568. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  8569. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  8570. #define SSI0CLK_PIN (GPIO_PIN_2)
  8571. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  8572. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  8573. #define SSI0FSS_PIN (GPIO_PIN_3)
  8574. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8575. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  8576. #define SSI0RX_PIN (GPIO_PIN_4)
  8577. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8578. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  8579. #define SSI0TX_PIN (GPIO_PIN_5)
  8580. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8581. #define SWCLK_PORT (GPIO_PORTC_BASE)
  8582. #define SWCLK_PIN (GPIO_PIN_0)
  8583. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8584. #define SWDIO_PORT (GPIO_PORTC_BASE)
  8585. #define SWDIO_PIN (GPIO_PIN_1)
  8586. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8587. #define SWO_PORT (GPIO_PORTC_BASE)
  8588. #define SWO_PIN (GPIO_PIN_3)
  8589. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8590. #define TCK_PORT (GPIO_PORTC_BASE)
  8591. #define TCK_PIN (GPIO_PIN_0)
  8592. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  8593. #define TDI_PORT (GPIO_PORTC_BASE)
  8594. #define TDI_PIN (GPIO_PIN_2)
  8595. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8596. #define TDO_PORT (GPIO_PORTC_BASE)
  8597. #define TDO_PIN (GPIO_PIN_3)
  8598. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8599. #define TMS_PORT (GPIO_PORTC_BASE)
  8600. #define TMS_PIN (GPIO_PIN_1)
  8601. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  8602. #define TRST_PORT (GPIO_PORTB_BASE)
  8603. #define TRST_PIN (GPIO_PIN_7)
  8604. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8605. #define U0RX_PORT (GPIO_PORTA_BASE)
  8606. #define U0RX_PIN (GPIO_PIN_0)
  8607. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8608. #define U0TX_PORT (GPIO_PORTA_BASE)
  8609. #define U0TX_PIN (GPIO_PIN_1)
  8610. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8611. #define U1RX_PORT (GPIO_PORTD_BASE)
  8612. #define U1RX_PIN (GPIO_PIN_2)
  8613. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8614. #define U1TX_PORT (GPIO_PORTD_BASE)
  8615. #define U1TX_PIN (GPIO_PIN_3)
  8616. #endif // PART_LM3S2739
  8617. //*****************************************************************************
  8618. //
  8619. // LM3S2776 Port/Pin Mapping Definitions
  8620. //
  8621. //*****************************************************************************
  8622. #ifdef PART_LM3S2776
  8623. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  8624. #define ADC0_PORT (GPIO_PORTE_BASE)
  8625. #define ADC0_PIN (GPIO_PIN_3)
  8626. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  8627. #define ADC1_PORT (GPIO_PORTE_BASE)
  8628. #define ADC1_PIN (GPIO_PIN_2)
  8629. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  8630. #define ADC2_PORT (GPIO_PORTE_BASE)
  8631. #define ADC2_PIN (GPIO_PIN_1)
  8632. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  8633. #define ADC3_PORT (GPIO_PORTE_BASE)
  8634. #define ADC3_PIN (GPIO_PIN_0)
  8635. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  8636. #define ADC4_PORT (GPIO_PORTD_BASE)
  8637. #define ADC4_PIN (GPIO_PIN_3)
  8638. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  8639. #define ADC5_PORT (GPIO_PORTD_BASE)
  8640. #define ADC5_PIN (GPIO_PIN_2)
  8641. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  8642. #define CAN0RX_PORT (GPIO_PORTB_BASE)
  8643. #define CAN0RX_PIN (GPIO_PIN_4)
  8644. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  8645. #define CAN0TX_PORT (GPIO_PORTB_BASE)
  8646. #define CAN0TX_PIN (GPIO_PIN_5)
  8647. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOC)
  8648. #define CCP0_PORT (GPIO_PORTC_BASE)
  8649. #define CCP0_PIN (GPIO_PIN_7)
  8650. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOE)
  8651. #define FAULT0_PORT (GPIO_PORTE_BASE)
  8652. #define FAULT0_PIN (GPIO_PIN_4)
  8653. #define FAULT1_PERIPH (SYSCTL_PERIPH_GPIOB)
  8654. #define FAULT1_PORT (GPIO_PORTB_BASE)
  8655. #define FAULT1_PIN (GPIO_PIN_6)
  8656. #define FAULT2_PERIPH (SYSCTL_PERIPH_GPIOC)
  8657. #define FAULT2_PORT (GPIO_PORTC_BASE)
  8658. #define FAULT2_PIN (GPIO_PIN_5)
  8659. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  8660. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  8661. #define I2C0SCL_PIN (GPIO_PIN_2)
  8662. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  8663. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  8664. #define I2C0SDA_PIN (GPIO_PIN_3)
  8665. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  8666. #define NMI_PORT (GPIO_PORTB_BASE)
  8667. #define NMI_PIN (GPIO_PIN_7)
  8668. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  8669. #define PWM0_PORT (GPIO_PORTD_BASE)
  8670. #define PWM0_PIN (GPIO_PIN_0)
  8671. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  8672. #define PWM1_PORT (GPIO_PORTD_BASE)
  8673. #define PWM1_PIN (GPIO_PIN_1)
  8674. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  8675. #define PWM2_PORT (GPIO_PORTB_BASE)
  8676. #define PWM2_PIN (GPIO_PIN_0)
  8677. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  8678. #define PWM3_PORT (GPIO_PORTB_BASE)
  8679. #define PWM3_PIN (GPIO_PIN_1)
  8680. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOA)
  8681. #define PWM4_PORT (GPIO_PORTA_BASE)
  8682. #define PWM4_PIN (GPIO_PIN_6)
  8683. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOA)
  8684. #define PWM5_PORT (GPIO_PORTA_BASE)
  8685. #define PWM5_PIN (GPIO_PIN_7)
  8686. #define PWM6_PERIPH (SYSCTL_PERIPH_GPIOC)
  8687. #define PWM6_PORT (GPIO_PORTC_BASE)
  8688. #define PWM6_PIN (GPIO_PIN_4)
  8689. #define PWM7_PERIPH (SYSCTL_PERIPH_GPIOC)
  8690. #define PWM7_PORT (GPIO_PORTC_BASE)
  8691. #define PWM7_PIN (GPIO_PIN_6)
  8692. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  8693. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  8694. #define SSI0CLK_PIN (GPIO_PIN_2)
  8695. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  8696. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  8697. #define SSI0FSS_PIN (GPIO_PIN_3)
  8698. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8699. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  8700. #define SSI0RX_PIN (GPIO_PIN_4)
  8701. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8702. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  8703. #define SSI0TX_PIN (GPIO_PIN_5)
  8704. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8705. #define SWCLK_PORT (GPIO_PORTC_BASE)
  8706. #define SWCLK_PIN (GPIO_PIN_0)
  8707. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8708. #define SWDIO_PORT (GPIO_PORTC_BASE)
  8709. #define SWDIO_PIN (GPIO_PIN_1)
  8710. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8711. #define SWO_PORT (GPIO_PORTC_BASE)
  8712. #define SWO_PIN (GPIO_PIN_3)
  8713. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8714. #define TCK_PORT (GPIO_PORTC_BASE)
  8715. #define TCK_PIN (GPIO_PIN_0)
  8716. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  8717. #define TDI_PORT (GPIO_PORTC_BASE)
  8718. #define TDI_PIN (GPIO_PIN_2)
  8719. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8720. #define TDO_PORT (GPIO_PORTC_BASE)
  8721. #define TDO_PIN (GPIO_PIN_3)
  8722. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8723. #define TMS_PORT (GPIO_PORTC_BASE)
  8724. #define TMS_PIN (GPIO_PIN_1)
  8725. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8726. #define U0RX_PORT (GPIO_PORTA_BASE)
  8727. #define U0RX_PIN (GPIO_PIN_0)
  8728. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8729. #define U0TX_PORT (GPIO_PORTA_BASE)
  8730. #define U0TX_PIN (GPIO_PIN_1)
  8731. #endif // PART_LM3S2776
  8732. //*****************************************************************************
  8733. //
  8734. // LM3S2911 Port/Pin Mapping Definitions
  8735. //
  8736. //*****************************************************************************
  8737. #ifdef PART_LM3S2911
  8738. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  8739. #define C0O_PORT (GPIO_PORTF_BASE)
  8740. #define C0O_PIN (GPIO_PIN_4)
  8741. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8742. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  8743. #define C0_MINUS_PIN (GPIO_PIN_4)
  8744. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8745. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  8746. #define C0_PLUS_PIN (GPIO_PIN_6)
  8747. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  8748. #define C1O_PORT (GPIO_PORTE_BASE)
  8749. #define C1O_PIN (GPIO_PIN_6)
  8750. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8751. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  8752. #define C1_MINUS_PIN (GPIO_PIN_5)
  8753. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8754. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  8755. #define C1_PLUS_PIN (GPIO_PIN_5)
  8756. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8757. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  8758. #define CAN0RX_PIN (GPIO_PIN_0)
  8759. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8760. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  8761. #define CAN0TX_PIN (GPIO_PIN_1)
  8762. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  8763. #define CCP0_PORT (GPIO_PORTB_BASE)
  8764. #define CCP0_PIN (GPIO_PIN_0)
  8765. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOD)
  8766. #define CCP1_PORT (GPIO_PORTD_BASE)
  8767. #define CCP1_PIN (GPIO_PIN_7)
  8768. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  8769. #define CCP2_PORT (GPIO_PORTB_BASE)
  8770. #define CCP2_PIN (GPIO_PIN_1)
  8771. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  8772. #define CCP3_PORT (GPIO_PORTC_BASE)
  8773. #define CCP3_PIN (GPIO_PIN_6)
  8774. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  8775. #define CCP4_PORT (GPIO_PORTC_BASE)
  8776. #define CCP4_PIN (GPIO_PIN_7)
  8777. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  8778. #define CCP5_PORT (GPIO_PORTC_BASE)
  8779. #define CCP5_PIN (GPIO_PIN_4)
  8780. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  8781. #define CCP6_PORT (GPIO_PORTH_BASE)
  8782. #define CCP6_PIN (GPIO_PIN_0)
  8783. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOH)
  8784. #define CCP7_PORT (GPIO_PORTH_BASE)
  8785. #define CCP7_PIN (GPIO_PIN_1)
  8786. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  8787. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  8788. #define I2C0SCL_PIN (GPIO_PIN_2)
  8789. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  8790. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  8791. #define I2C0SDA_PIN (GPIO_PIN_3)
  8792. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  8793. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  8794. #define I2C1SCL_PIN (GPIO_PIN_6)
  8795. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  8796. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  8797. #define I2C1SDA_PIN (GPIO_PIN_7)
  8798. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  8799. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  8800. #define SSI0CLK_PIN (GPIO_PIN_2)
  8801. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  8802. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  8803. #define SSI0FSS_PIN (GPIO_PIN_3)
  8804. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8805. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  8806. #define SSI0RX_PIN (GPIO_PIN_4)
  8807. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8808. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  8809. #define SSI0TX_PIN (GPIO_PIN_5)
  8810. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  8811. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  8812. #define SSI1CLK_PIN (GPIO_PIN_0)
  8813. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  8814. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  8815. #define SSI1FSS_PIN (GPIO_PIN_1)
  8816. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  8817. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  8818. #define SSI1RX_PIN (GPIO_PIN_2)
  8819. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  8820. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  8821. #define SSI1TX_PIN (GPIO_PIN_3)
  8822. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8823. #define SWCLK_PORT (GPIO_PORTC_BASE)
  8824. #define SWCLK_PIN (GPIO_PIN_0)
  8825. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8826. #define SWDIO_PORT (GPIO_PORTC_BASE)
  8827. #define SWDIO_PIN (GPIO_PIN_1)
  8828. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8829. #define SWO_PORT (GPIO_PORTC_BASE)
  8830. #define SWO_PIN (GPIO_PIN_3)
  8831. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8832. #define TCK_PORT (GPIO_PORTC_BASE)
  8833. #define TCK_PIN (GPIO_PIN_0)
  8834. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  8835. #define TDI_PORT (GPIO_PORTC_BASE)
  8836. #define TDI_PIN (GPIO_PIN_2)
  8837. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8838. #define TDO_PORT (GPIO_PORTC_BASE)
  8839. #define TDO_PIN (GPIO_PIN_3)
  8840. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8841. #define TMS_PORT (GPIO_PORTC_BASE)
  8842. #define TMS_PIN (GPIO_PIN_1)
  8843. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  8844. #define TRST_PORT (GPIO_PORTB_BASE)
  8845. #define TRST_PIN (GPIO_PIN_7)
  8846. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8847. #define U0RX_PORT (GPIO_PORTA_BASE)
  8848. #define U0RX_PIN (GPIO_PIN_0)
  8849. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8850. #define U0TX_PORT (GPIO_PORTA_BASE)
  8851. #define U0TX_PIN (GPIO_PIN_1)
  8852. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8853. #define U1RX_PORT (GPIO_PORTD_BASE)
  8854. #define U1RX_PIN (GPIO_PIN_2)
  8855. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8856. #define U1TX_PORT (GPIO_PORTD_BASE)
  8857. #define U1TX_PIN (GPIO_PIN_3)
  8858. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  8859. #define U2RX_PORT (GPIO_PORTG_BASE)
  8860. #define U2RX_PIN (GPIO_PIN_0)
  8861. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  8862. #define U2TX_PORT (GPIO_PORTG_BASE)
  8863. #define U2TX_PIN (GPIO_PIN_1)
  8864. #endif // PART_LM3S2911
  8865. //*****************************************************************************
  8866. //
  8867. // LM3S2918 Port/Pin Mapping Definitions
  8868. //
  8869. //*****************************************************************************
  8870. #ifdef PART_LM3S2918
  8871. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  8872. #define C0O_PORT (GPIO_PORTF_BASE)
  8873. #define C0O_PIN (GPIO_PIN_4)
  8874. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8875. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  8876. #define C0_MINUS_PIN (GPIO_PIN_4)
  8877. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8878. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  8879. #define C0_PLUS_PIN (GPIO_PIN_6)
  8880. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOF)
  8881. #define C1O_PORT (GPIO_PORTF_BASE)
  8882. #define C1O_PIN (GPIO_PIN_5)
  8883. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  8884. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  8885. #define C1_MINUS_PIN (GPIO_PIN_5)
  8886. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8887. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  8888. #define C1_PLUS_PIN (GPIO_PIN_5)
  8889. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8890. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  8891. #define CAN0RX_PIN (GPIO_PIN_0)
  8892. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8893. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  8894. #define CAN0TX_PIN (GPIO_PIN_1)
  8895. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  8896. #define CCP0_PORT (GPIO_PORTB_BASE)
  8897. #define CCP0_PIN (GPIO_PIN_0)
  8898. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOF)
  8899. #define CCP1_PORT (GPIO_PORTF_BASE)
  8900. #define CCP1_PIN (GPIO_PIN_6)
  8901. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  8902. #define CCP2_PORT (GPIO_PORTB_BASE)
  8903. #define CCP2_PIN (GPIO_PIN_1)
  8904. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  8905. #define CCP3_PORT (GPIO_PORTC_BASE)
  8906. #define CCP3_PIN (GPIO_PIN_6)
  8907. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  8908. #define CCP4_PORT (GPIO_PORTC_BASE)
  8909. #define CCP4_PIN (GPIO_PIN_7)
  8910. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  8911. #define CCP5_PORT (GPIO_PORTC_BASE)
  8912. #define CCP5_PIN (GPIO_PIN_4)
  8913. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  8914. #define CCP6_PORT (GPIO_PORTH_BASE)
  8915. #define CCP6_PIN (GPIO_PIN_0)
  8916. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOH)
  8917. #define CCP7_PORT (GPIO_PORTH_BASE)
  8918. #define CCP7_PIN (GPIO_PIN_1)
  8919. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  8920. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  8921. #define I2C0SCL_PIN (GPIO_PIN_2)
  8922. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  8923. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  8924. #define I2C0SDA_PIN (GPIO_PIN_3)
  8925. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  8926. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  8927. #define I2C1SCL_PIN (GPIO_PIN_6)
  8928. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  8929. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  8930. #define I2C1SDA_PIN (GPIO_PIN_7)
  8931. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  8932. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  8933. #define SSI0CLK_PIN (GPIO_PIN_2)
  8934. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  8935. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  8936. #define SSI0FSS_PIN (GPIO_PIN_3)
  8937. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8938. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  8939. #define SSI0RX_PIN (GPIO_PIN_4)
  8940. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8941. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  8942. #define SSI0TX_PIN (GPIO_PIN_5)
  8943. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  8944. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  8945. #define SSI1CLK_PIN (GPIO_PIN_0)
  8946. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  8947. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  8948. #define SSI1FSS_PIN (GPIO_PIN_1)
  8949. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  8950. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  8951. #define SSI1RX_PIN (GPIO_PIN_2)
  8952. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  8953. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  8954. #define SSI1TX_PIN (GPIO_PIN_3)
  8955. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8956. #define SWCLK_PORT (GPIO_PORTC_BASE)
  8957. #define SWCLK_PIN (GPIO_PIN_0)
  8958. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8959. #define SWDIO_PORT (GPIO_PORTC_BASE)
  8960. #define SWDIO_PIN (GPIO_PIN_1)
  8961. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8962. #define SWO_PORT (GPIO_PORTC_BASE)
  8963. #define SWO_PIN (GPIO_PIN_3)
  8964. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  8965. #define TCK_PORT (GPIO_PORTC_BASE)
  8966. #define TCK_PIN (GPIO_PIN_0)
  8967. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  8968. #define TDI_PORT (GPIO_PORTC_BASE)
  8969. #define TDI_PIN (GPIO_PIN_2)
  8970. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  8971. #define TDO_PORT (GPIO_PORTC_BASE)
  8972. #define TDO_PIN (GPIO_PIN_3)
  8973. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  8974. #define TMS_PORT (GPIO_PORTC_BASE)
  8975. #define TMS_PIN (GPIO_PIN_1)
  8976. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  8977. #define TRST_PORT (GPIO_PORTB_BASE)
  8978. #define TRST_PIN (GPIO_PIN_7)
  8979. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8980. #define U0RX_PORT (GPIO_PORTA_BASE)
  8981. #define U0RX_PIN (GPIO_PIN_0)
  8982. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  8983. #define U0TX_PORT (GPIO_PORTA_BASE)
  8984. #define U0TX_PIN (GPIO_PIN_1)
  8985. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8986. #define U1RX_PORT (GPIO_PORTD_BASE)
  8987. #define U1RX_PIN (GPIO_PIN_2)
  8988. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  8989. #define U1TX_PORT (GPIO_PORTD_BASE)
  8990. #define U1TX_PIN (GPIO_PIN_3)
  8991. #endif // PART_LM3S2918
  8992. //*****************************************************************************
  8993. //
  8994. // LM3S2939 Port/Pin Mapping Definitions
  8995. //
  8996. //*****************************************************************************
  8997. #ifdef PART_LM3S2939
  8998. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  8999. #define C0O_PORT (GPIO_PORTF_BASE)
  9000. #define C0O_PIN (GPIO_PIN_4)
  9001. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9002. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  9003. #define C0_MINUS_PIN (GPIO_PIN_4)
  9004. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9005. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  9006. #define C0_PLUS_PIN (GPIO_PIN_6)
  9007. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOF)
  9008. #define C1O_PORT (GPIO_PORTF_BASE)
  9009. #define C1O_PIN (GPIO_PIN_5)
  9010. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9011. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  9012. #define C1_MINUS_PIN (GPIO_PIN_5)
  9013. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9014. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  9015. #define C1_PLUS_PIN (GPIO_PIN_5)
  9016. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9017. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  9018. #define C2_MINUS_PIN (GPIO_PIN_7)
  9019. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9020. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  9021. #define C2_PLUS_PIN (GPIO_PIN_6)
  9022. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9023. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  9024. #define CAN0RX_PIN (GPIO_PIN_0)
  9025. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9026. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  9027. #define CAN0TX_PIN (GPIO_PIN_1)
  9028. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  9029. #define CCP0_PORT (GPIO_PORTB_BASE)
  9030. #define CCP0_PIN (GPIO_PIN_0)
  9031. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  9032. #define CCP1_PORT (GPIO_PORTA_BASE)
  9033. #define CCP1_PIN (GPIO_PIN_6)
  9034. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  9035. #define CCP2_PORT (GPIO_PORTB_BASE)
  9036. #define CCP2_PIN (GPIO_PIN_1)
  9037. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  9038. #define CCP3_PORT (GPIO_PORTD_BASE)
  9039. #define CCP3_PIN (GPIO_PIN_4)
  9040. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  9041. #define FAULT_PORT (GPIO_PORTD_BASE)
  9042. #define FAULT_PIN (GPIO_PIN_6)
  9043. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  9044. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  9045. #define I2C0SCL_PIN (GPIO_PIN_2)
  9046. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  9047. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  9048. #define I2C0SDA_PIN (GPIO_PIN_3)
  9049. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  9050. #define IDX0_PORT (GPIO_PORTD_BASE)
  9051. #define IDX0_PIN (GPIO_PIN_7)
  9052. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  9053. #define PHA0_PORT (GPIO_PORTC_BASE)
  9054. #define PHA0_PIN (GPIO_PIN_4)
  9055. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOH)
  9056. #define PHB0_PORT (GPIO_PORTH_BASE)
  9057. #define PHB0_PIN (GPIO_PIN_3)
  9058. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  9059. #define PWM0_PORT (GPIO_PORTF_BASE)
  9060. #define PWM0_PIN (GPIO_PIN_0)
  9061. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  9062. #define PWM1_PORT (GPIO_PORTF_BASE)
  9063. #define PWM1_PIN (GPIO_PIN_1)
  9064. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  9065. #define PWM2_PORT (GPIO_PORTH_BASE)
  9066. #define PWM2_PIN (GPIO_PIN_0)
  9067. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  9068. #define PWM3_PORT (GPIO_PORTH_BASE)
  9069. #define PWM3_PIN (GPIO_PIN_1)
  9070. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  9071. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  9072. #define SSI0CLK_PIN (GPIO_PIN_2)
  9073. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  9074. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  9075. #define SSI0FSS_PIN (GPIO_PIN_3)
  9076. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9077. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  9078. #define SSI0RX_PIN (GPIO_PIN_4)
  9079. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9080. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  9081. #define SSI0TX_PIN (GPIO_PIN_5)
  9082. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9083. #define SWCLK_PORT (GPIO_PORTC_BASE)
  9084. #define SWCLK_PIN (GPIO_PIN_0)
  9085. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9086. #define SWDIO_PORT (GPIO_PORTC_BASE)
  9087. #define SWDIO_PIN (GPIO_PIN_1)
  9088. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9089. #define SWO_PORT (GPIO_PORTC_BASE)
  9090. #define SWO_PIN (GPIO_PIN_3)
  9091. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9092. #define TCK_PORT (GPIO_PORTC_BASE)
  9093. #define TCK_PIN (GPIO_PIN_0)
  9094. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  9095. #define TDI_PORT (GPIO_PORTC_BASE)
  9096. #define TDI_PIN (GPIO_PIN_2)
  9097. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9098. #define TDO_PORT (GPIO_PORTC_BASE)
  9099. #define TDO_PIN (GPIO_PIN_3)
  9100. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9101. #define TMS_PORT (GPIO_PORTC_BASE)
  9102. #define TMS_PIN (GPIO_PIN_1)
  9103. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  9104. #define TRST_PORT (GPIO_PORTB_BASE)
  9105. #define TRST_PIN (GPIO_PIN_7)
  9106. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9107. #define U0RX_PORT (GPIO_PORTA_BASE)
  9108. #define U0RX_PIN (GPIO_PIN_0)
  9109. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9110. #define U0TX_PORT (GPIO_PORTA_BASE)
  9111. #define U0TX_PIN (GPIO_PIN_1)
  9112. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9113. #define U1RX_PORT (GPIO_PORTD_BASE)
  9114. #define U1RX_PIN (GPIO_PIN_2)
  9115. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9116. #define U1TX_PORT (GPIO_PORTD_BASE)
  9117. #define U1TX_PIN (GPIO_PIN_3)
  9118. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  9119. #define U2RX_PORT (GPIO_PORTG_BASE)
  9120. #define U2RX_PIN (GPIO_PIN_0)
  9121. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  9122. #define U2TX_PORT (GPIO_PORTG_BASE)
  9123. #define U2TX_PIN (GPIO_PIN_1)
  9124. #endif // PART_LM3S2939
  9125. //*****************************************************************************
  9126. //
  9127. // LM3S2948 Port/Pin Mapping Definitions
  9128. //
  9129. //*****************************************************************************
  9130. #ifdef PART_LM3S2948
  9131. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  9132. #define C0O_PORT (GPIO_PORTF_BASE)
  9133. #define C0O_PIN (GPIO_PIN_4)
  9134. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9135. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  9136. #define C0_MINUS_PIN (GPIO_PIN_4)
  9137. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9138. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  9139. #define C0_PLUS_PIN (GPIO_PIN_6)
  9140. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9141. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  9142. #define C1_MINUS_PIN (GPIO_PIN_5)
  9143. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9144. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  9145. #define C1_PLUS_PIN (GPIO_PIN_5)
  9146. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9147. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  9148. #define C2_MINUS_PIN (GPIO_PIN_7)
  9149. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9150. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  9151. #define C2_PLUS_PIN (GPIO_PIN_6)
  9152. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9153. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  9154. #define CAN0RX_PIN (GPIO_PIN_0)
  9155. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9156. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  9157. #define CAN0TX_PIN (GPIO_PIN_1)
  9158. #define CAN1RX_PERIPH (SYSCTL_PERIPH_GPIOF)
  9159. #define CAN1RX_PORT (GPIO_PORTF_BASE)
  9160. #define CAN1RX_PIN (GPIO_PIN_0)
  9161. #define CAN1TX_PERIPH (SYSCTL_PERIPH_GPIOF)
  9162. #define CAN1TX_PORT (GPIO_PORTF_BASE)
  9163. #define CAN1TX_PIN (GPIO_PIN_1)
  9164. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  9165. #define CCP0_PORT (GPIO_PORTB_BASE)
  9166. #define CCP0_PIN (GPIO_PIN_0)
  9167. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  9168. #define CCP1_PORT (GPIO_PORTA_BASE)
  9169. #define CCP1_PIN (GPIO_PIN_6)
  9170. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  9171. #define CCP2_PORT (GPIO_PORTB_BASE)
  9172. #define CCP2_PIN (GPIO_PIN_1)
  9173. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOG)
  9174. #define CCP3_PORT (GPIO_PORTG_BASE)
  9175. #define CCP3_PIN (GPIO_PIN_4)
  9176. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  9177. #define CCP4_PORT (GPIO_PORTA_BASE)
  9178. #define CCP4_PIN (GPIO_PIN_7)
  9179. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  9180. #define CCP5_PORT (GPIO_PORTC_BASE)
  9181. #define CCP5_PIN (GPIO_PIN_4)
  9182. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  9183. #define CCP6_PORT (GPIO_PORTH_BASE)
  9184. #define CCP6_PIN (GPIO_PIN_0)
  9185. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOH)
  9186. #define CCP7_PORT (GPIO_PORTH_BASE)
  9187. #define CCP7_PIN (GPIO_PIN_1)
  9188. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  9189. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  9190. #define I2C0SCL_PIN (GPIO_PIN_2)
  9191. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  9192. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  9193. #define I2C0SDA_PIN (GPIO_PIN_3)
  9194. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  9195. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  9196. #define SSI0CLK_PIN (GPIO_PIN_2)
  9197. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  9198. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  9199. #define SSI0FSS_PIN (GPIO_PIN_3)
  9200. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9201. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  9202. #define SSI0RX_PIN (GPIO_PIN_4)
  9203. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9204. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  9205. #define SSI0TX_PIN (GPIO_PIN_5)
  9206. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  9207. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  9208. #define SSI1CLK_PIN (GPIO_PIN_0)
  9209. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  9210. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  9211. #define SSI1FSS_PIN (GPIO_PIN_1)
  9212. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  9213. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  9214. #define SSI1RX_PIN (GPIO_PIN_2)
  9215. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  9216. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  9217. #define SSI1TX_PIN (GPIO_PIN_3)
  9218. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9219. #define SWCLK_PORT (GPIO_PORTC_BASE)
  9220. #define SWCLK_PIN (GPIO_PIN_0)
  9221. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9222. #define SWDIO_PORT (GPIO_PORTC_BASE)
  9223. #define SWDIO_PIN (GPIO_PIN_1)
  9224. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9225. #define SWO_PORT (GPIO_PORTC_BASE)
  9226. #define SWO_PIN (GPIO_PIN_3)
  9227. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9228. #define TCK_PORT (GPIO_PORTC_BASE)
  9229. #define TCK_PIN (GPIO_PIN_0)
  9230. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  9231. #define TDI_PORT (GPIO_PORTC_BASE)
  9232. #define TDI_PIN (GPIO_PIN_2)
  9233. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9234. #define TDO_PORT (GPIO_PORTC_BASE)
  9235. #define TDO_PIN (GPIO_PIN_3)
  9236. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9237. #define TMS_PORT (GPIO_PORTC_BASE)
  9238. #define TMS_PIN (GPIO_PIN_1)
  9239. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  9240. #define TRST_PORT (GPIO_PORTB_BASE)
  9241. #define TRST_PIN (GPIO_PIN_7)
  9242. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9243. #define U0RX_PORT (GPIO_PORTA_BASE)
  9244. #define U0RX_PIN (GPIO_PIN_0)
  9245. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9246. #define U0TX_PORT (GPIO_PORTA_BASE)
  9247. #define U0TX_PIN (GPIO_PIN_1)
  9248. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9249. #define U1RX_PORT (GPIO_PORTD_BASE)
  9250. #define U1RX_PIN (GPIO_PIN_2)
  9251. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9252. #define U1TX_PORT (GPIO_PORTD_BASE)
  9253. #define U1TX_PIN (GPIO_PIN_3)
  9254. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  9255. #define U2RX_PORT (GPIO_PORTG_BASE)
  9256. #define U2RX_PIN (GPIO_PIN_0)
  9257. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  9258. #define U2TX_PORT (GPIO_PORTG_BASE)
  9259. #define U2TX_PIN (GPIO_PIN_1)
  9260. #endif // PART_LM3S2948
  9261. //*****************************************************************************
  9262. //
  9263. // LM3S2950 Port/Pin Mapping Definitions
  9264. //
  9265. //*****************************************************************************
  9266. #ifdef PART_LM3S2950
  9267. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  9268. #define C0O_PORT (GPIO_PORTF_BASE)
  9269. #define C0O_PIN (GPIO_PIN_4)
  9270. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9271. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  9272. #define C0_MINUS_PIN (GPIO_PIN_4)
  9273. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9274. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  9275. #define C0_PLUS_PIN (GPIO_PIN_6)
  9276. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOF)
  9277. #define C1O_PORT (GPIO_PORTF_BASE)
  9278. #define C1O_PIN (GPIO_PIN_5)
  9279. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9280. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  9281. #define C1_MINUS_PIN (GPIO_PIN_5)
  9282. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9283. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  9284. #define C1_PLUS_PIN (GPIO_PIN_5)
  9285. #define C2O_PERIPH (SYSCTL_PERIPH_GPIOF)
  9286. #define C2O_PORT (GPIO_PORTF_BASE)
  9287. #define C2O_PIN (GPIO_PIN_6)
  9288. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9289. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  9290. #define C2_MINUS_PIN (GPIO_PIN_7)
  9291. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9292. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  9293. #define C2_PLUS_PIN (GPIO_PIN_6)
  9294. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9295. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  9296. #define CAN0RX_PIN (GPIO_PIN_0)
  9297. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9298. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  9299. #define CAN0TX_PIN (GPIO_PIN_1)
  9300. #define CAN1RX_PERIPH (SYSCTL_PERIPH_GPIOF)
  9301. #define CAN1RX_PORT (GPIO_PORTF_BASE)
  9302. #define CAN1RX_PIN (GPIO_PIN_0)
  9303. #define CAN1TX_PERIPH (SYSCTL_PERIPH_GPIOF)
  9304. #define CAN1TX_PORT (GPIO_PORTF_BASE)
  9305. #define CAN1TX_PIN (GPIO_PIN_1)
  9306. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  9307. #define CCP0_PORT (GPIO_PORTB_BASE)
  9308. #define CCP0_PIN (GPIO_PIN_0)
  9309. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  9310. #define CCP1_PORT (GPIO_PORTA_BASE)
  9311. #define CCP1_PIN (GPIO_PIN_6)
  9312. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  9313. #define CCP2_PORT (GPIO_PORTB_BASE)
  9314. #define CCP2_PIN (GPIO_PIN_1)
  9315. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  9316. #define CCP3_PORT (GPIO_PORTD_BASE)
  9317. #define CCP3_PIN (GPIO_PIN_4)
  9318. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  9319. #define CCP4_PORT (GPIO_PORTA_BASE)
  9320. #define CCP4_PIN (GPIO_PIN_7)
  9321. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOE)
  9322. #define CCP5_PORT (GPIO_PORTE_BASE)
  9323. #define CCP5_PIN (GPIO_PIN_5)
  9324. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  9325. #define FAULT_PORT (GPIO_PORTD_BASE)
  9326. #define FAULT_PIN (GPIO_PIN_6)
  9327. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  9328. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  9329. #define I2C0SCL_PIN (GPIO_PIN_2)
  9330. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  9331. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  9332. #define I2C0SDA_PIN (GPIO_PIN_3)
  9333. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  9334. #define IDX0_PORT (GPIO_PORTD_BASE)
  9335. #define IDX0_PIN (GPIO_PIN_7)
  9336. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  9337. #define PHA0_PORT (GPIO_PORTC_BASE)
  9338. #define PHA0_PIN (GPIO_PIN_4)
  9339. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOH)
  9340. #define PHB0_PORT (GPIO_PORTH_BASE)
  9341. #define PHB0_PIN (GPIO_PIN_3)
  9342. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOG)
  9343. #define PWM0_PORT (GPIO_PORTG_BASE)
  9344. #define PWM0_PIN (GPIO_PIN_2)
  9345. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOG)
  9346. #define PWM1_PORT (GPIO_PORTG_BASE)
  9347. #define PWM1_PIN (GPIO_PIN_3)
  9348. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  9349. #define PWM2_PORT (GPIO_PORTH_BASE)
  9350. #define PWM2_PIN (GPIO_PIN_0)
  9351. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  9352. #define PWM3_PORT (GPIO_PORTH_BASE)
  9353. #define PWM3_PIN (GPIO_PIN_1)
  9354. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  9355. #define PWM4_PORT (GPIO_PORTE_BASE)
  9356. #define PWM4_PIN (GPIO_PIN_6)
  9357. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  9358. #define PWM5_PORT (GPIO_PORTE_BASE)
  9359. #define PWM5_PIN (GPIO_PIN_7)
  9360. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  9361. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  9362. #define SSI0CLK_PIN (GPIO_PIN_2)
  9363. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  9364. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  9365. #define SSI0FSS_PIN (GPIO_PIN_3)
  9366. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9367. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  9368. #define SSI0RX_PIN (GPIO_PIN_4)
  9369. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9370. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  9371. #define SSI0TX_PIN (GPIO_PIN_5)
  9372. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  9373. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  9374. #define SSI1CLK_PIN (GPIO_PIN_0)
  9375. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  9376. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  9377. #define SSI1FSS_PIN (GPIO_PIN_1)
  9378. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  9379. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  9380. #define SSI1RX_PIN (GPIO_PIN_2)
  9381. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  9382. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  9383. #define SSI1TX_PIN (GPIO_PIN_3)
  9384. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9385. #define SWCLK_PORT (GPIO_PORTC_BASE)
  9386. #define SWCLK_PIN (GPIO_PIN_0)
  9387. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9388. #define SWDIO_PORT (GPIO_PORTC_BASE)
  9389. #define SWDIO_PIN (GPIO_PIN_1)
  9390. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9391. #define SWO_PORT (GPIO_PORTC_BASE)
  9392. #define SWO_PIN (GPIO_PIN_3)
  9393. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9394. #define TCK_PORT (GPIO_PORTC_BASE)
  9395. #define TCK_PIN (GPIO_PIN_0)
  9396. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  9397. #define TDI_PORT (GPIO_PORTC_BASE)
  9398. #define TDI_PIN (GPIO_PIN_2)
  9399. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9400. #define TDO_PORT (GPIO_PORTC_BASE)
  9401. #define TDO_PIN (GPIO_PIN_3)
  9402. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9403. #define TMS_PORT (GPIO_PORTC_BASE)
  9404. #define TMS_PIN (GPIO_PIN_1)
  9405. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  9406. #define TRST_PORT (GPIO_PORTB_BASE)
  9407. #define TRST_PIN (GPIO_PIN_7)
  9408. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9409. #define U0RX_PORT (GPIO_PORTA_BASE)
  9410. #define U0RX_PIN (GPIO_PIN_0)
  9411. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9412. #define U0TX_PORT (GPIO_PORTA_BASE)
  9413. #define U0TX_PIN (GPIO_PIN_1)
  9414. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9415. #define U1RX_PORT (GPIO_PORTD_BASE)
  9416. #define U1RX_PIN (GPIO_PIN_2)
  9417. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9418. #define U1TX_PORT (GPIO_PORTD_BASE)
  9419. #define U1TX_PIN (GPIO_PIN_3)
  9420. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  9421. #define U2RX_PORT (GPIO_PORTG_BASE)
  9422. #define U2RX_PIN (GPIO_PIN_0)
  9423. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  9424. #define U2TX_PORT (GPIO_PORTG_BASE)
  9425. #define U2TX_PIN (GPIO_PIN_1)
  9426. #endif // PART_LM3S2950
  9427. //*****************************************************************************
  9428. //
  9429. // LM3S2965 Port/Pin Mapping Definitions
  9430. //
  9431. //*****************************************************************************
  9432. #ifdef PART_LM3S2965
  9433. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  9434. #define C0O_PORT (GPIO_PORTF_BASE)
  9435. #define C0O_PIN (GPIO_PIN_4)
  9436. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9437. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  9438. #define C0_MINUS_PIN (GPIO_PIN_4)
  9439. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9440. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  9441. #define C0_PLUS_PIN (GPIO_PIN_6)
  9442. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9443. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  9444. #define C1_MINUS_PIN (GPIO_PIN_5)
  9445. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9446. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  9447. #define C1_PLUS_PIN (GPIO_PIN_5)
  9448. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9449. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  9450. #define C2_MINUS_PIN (GPIO_PIN_7)
  9451. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9452. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  9453. #define C2_PLUS_PIN (GPIO_PIN_6)
  9454. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9455. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  9456. #define CAN0RX_PIN (GPIO_PIN_0)
  9457. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9458. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  9459. #define CAN0TX_PIN (GPIO_PIN_1)
  9460. #define CAN1RX_PERIPH (SYSCTL_PERIPH_GPIOF)
  9461. #define CAN1RX_PORT (GPIO_PORTF_BASE)
  9462. #define CAN1RX_PIN (GPIO_PIN_0)
  9463. #define CAN1TX_PERIPH (SYSCTL_PERIPH_GPIOF)
  9464. #define CAN1TX_PORT (GPIO_PORTF_BASE)
  9465. #define CAN1TX_PIN (GPIO_PIN_1)
  9466. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  9467. #define CCP0_PORT (GPIO_PORTB_BASE)
  9468. #define CCP0_PIN (GPIO_PIN_0)
  9469. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOF)
  9470. #define CCP1_PORT (GPIO_PORTF_BASE)
  9471. #define CCP1_PIN (GPIO_PIN_6)
  9472. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  9473. #define CCP2_PORT (GPIO_PORTB_BASE)
  9474. #define CCP2_PIN (GPIO_PIN_1)
  9475. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  9476. #define CCP3_PORT (GPIO_PORTD_BASE)
  9477. #define CCP3_PIN (GPIO_PIN_4)
  9478. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOD)
  9479. #define CCP4_PORT (GPIO_PORTD_BASE)
  9480. #define CCP4_PIN (GPIO_PIN_5)
  9481. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOG)
  9482. #define CCP5_PORT (GPIO_PORTG_BASE)
  9483. #define CCP5_PIN (GPIO_PIN_5)
  9484. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  9485. #define FAULT_PORT (GPIO_PORTD_BASE)
  9486. #define FAULT_PIN (GPIO_PIN_6)
  9487. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  9488. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  9489. #define I2C0SCL_PIN (GPIO_PIN_2)
  9490. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  9491. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  9492. #define I2C0SDA_PIN (GPIO_PIN_3)
  9493. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  9494. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  9495. #define I2C1SCL_PIN (GPIO_PIN_6)
  9496. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  9497. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  9498. #define I2C1SDA_PIN (GPIO_PIN_7)
  9499. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  9500. #define IDX0_PORT (GPIO_PORTD_BASE)
  9501. #define IDX0_PIN (GPIO_PIN_7)
  9502. #define IDX1_PERIPH (SYSCTL_PERIPH_GPIOH)
  9503. #define IDX1_PORT (GPIO_PORTH_BASE)
  9504. #define IDX1_PIN (GPIO_PIN_2)
  9505. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  9506. #define PHA0_PORT (GPIO_PORTC_BASE)
  9507. #define PHA0_PIN (GPIO_PIN_4)
  9508. #define PHA1_PERIPH (SYSCTL_PERIPH_GPIOG)
  9509. #define PHA1_PORT (GPIO_PORTG_BASE)
  9510. #define PHA1_PIN (GPIO_PIN_6)
  9511. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOH)
  9512. #define PHB0_PORT (GPIO_PORTH_BASE)
  9513. #define PHB0_PIN (GPIO_PIN_3)
  9514. #define PHB1_PERIPH (SYSCTL_PERIPH_GPIOG)
  9515. #define PHB1_PORT (GPIO_PORTG_BASE)
  9516. #define PHB1_PIN (GPIO_PIN_7)
  9517. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOG)
  9518. #define PWM0_PORT (GPIO_PORTG_BASE)
  9519. #define PWM0_PIN (GPIO_PIN_2)
  9520. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOG)
  9521. #define PWM1_PORT (GPIO_PORTG_BASE)
  9522. #define PWM1_PIN (GPIO_PIN_3)
  9523. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  9524. #define PWM2_PORT (GPIO_PORTH_BASE)
  9525. #define PWM2_PIN (GPIO_PIN_0)
  9526. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  9527. #define PWM3_PORT (GPIO_PORTH_BASE)
  9528. #define PWM3_PIN (GPIO_PIN_1)
  9529. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOF)
  9530. #define PWM4_PORT (GPIO_PORTF_BASE)
  9531. #define PWM4_PIN (GPIO_PIN_2)
  9532. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOF)
  9533. #define PWM5_PORT (GPIO_PORTF_BASE)
  9534. #define PWM5_PIN (GPIO_PIN_3)
  9535. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  9536. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  9537. #define SSI0CLK_PIN (GPIO_PIN_2)
  9538. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  9539. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  9540. #define SSI0FSS_PIN (GPIO_PIN_3)
  9541. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9542. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  9543. #define SSI0RX_PIN (GPIO_PIN_4)
  9544. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9545. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  9546. #define SSI0TX_PIN (GPIO_PIN_5)
  9547. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  9548. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  9549. #define SSI1CLK_PIN (GPIO_PIN_0)
  9550. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  9551. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  9552. #define SSI1FSS_PIN (GPIO_PIN_1)
  9553. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  9554. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  9555. #define SSI1RX_PIN (GPIO_PIN_2)
  9556. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  9557. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  9558. #define SSI1TX_PIN (GPIO_PIN_3)
  9559. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9560. #define SWCLK_PORT (GPIO_PORTC_BASE)
  9561. #define SWCLK_PIN (GPIO_PIN_0)
  9562. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9563. #define SWDIO_PORT (GPIO_PORTC_BASE)
  9564. #define SWDIO_PIN (GPIO_PIN_1)
  9565. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9566. #define SWO_PORT (GPIO_PORTC_BASE)
  9567. #define SWO_PIN (GPIO_PIN_3)
  9568. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9569. #define TCK_PORT (GPIO_PORTC_BASE)
  9570. #define TCK_PIN (GPIO_PIN_0)
  9571. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  9572. #define TDI_PORT (GPIO_PORTC_BASE)
  9573. #define TDI_PIN (GPIO_PIN_2)
  9574. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9575. #define TDO_PORT (GPIO_PORTC_BASE)
  9576. #define TDO_PIN (GPIO_PIN_3)
  9577. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9578. #define TMS_PORT (GPIO_PORTC_BASE)
  9579. #define TMS_PIN (GPIO_PIN_1)
  9580. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  9581. #define TRST_PORT (GPIO_PORTB_BASE)
  9582. #define TRST_PIN (GPIO_PIN_7)
  9583. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9584. #define U0RX_PORT (GPIO_PORTA_BASE)
  9585. #define U0RX_PIN (GPIO_PIN_0)
  9586. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9587. #define U0TX_PORT (GPIO_PORTA_BASE)
  9588. #define U0TX_PIN (GPIO_PIN_1)
  9589. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9590. #define U1RX_PORT (GPIO_PORTD_BASE)
  9591. #define U1RX_PIN (GPIO_PIN_2)
  9592. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9593. #define U1TX_PORT (GPIO_PORTD_BASE)
  9594. #define U1TX_PIN (GPIO_PIN_3)
  9595. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  9596. #define U2RX_PORT (GPIO_PORTG_BASE)
  9597. #define U2RX_PIN (GPIO_PIN_0)
  9598. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  9599. #define U2TX_PORT (GPIO_PORTG_BASE)
  9600. #define U2TX_PIN (GPIO_PIN_1)
  9601. #endif // PART_LM3S2965
  9602. //*****************************************************************************
  9603. //
  9604. // LM3S3651 Port/Pin Mapping Definitions
  9605. //
  9606. //*****************************************************************************
  9607. #ifdef PART_LM3S3651
  9608. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  9609. #define ADC0_PORT (GPIO_PORTE_BASE)
  9610. #define ADC0_PIN (GPIO_PIN_3)
  9611. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  9612. #define ADC1_PORT (GPIO_PORTE_BASE)
  9613. #define ADC1_PIN (GPIO_PIN_2)
  9614. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  9615. #define ADC2_PORT (GPIO_PORTE_BASE)
  9616. #define ADC2_PIN (GPIO_PIN_1)
  9617. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  9618. #define ADC3_PORT (GPIO_PORTE_BASE)
  9619. #define ADC3_PIN (GPIO_PIN_0)
  9620. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOB)
  9621. #define C0O_PORT (GPIO_PORTB_BASE)
  9622. #define C0O_PIN (GPIO_PIN_6)
  9623. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9624. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  9625. #define C0_MINUS_PIN (GPIO_PIN_4)
  9626. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9627. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  9628. #define C0_PLUS_PIN (GPIO_PIN_6)
  9629. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9630. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  9631. #define C1_MINUS_PIN (GPIO_PIN_5)
  9632. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9633. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  9634. #define C1_PLUS_PIN (GPIO_PIN_7)
  9635. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  9636. #define CCP0_PORT (GPIO_PORTD_BASE)
  9637. #define CCP0_PIN (GPIO_PIN_3)
  9638. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  9639. #define CCP1_PORT (GPIO_PORTA_BASE)
  9640. #define CCP1_PIN (GPIO_PIN_6)
  9641. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOC)
  9642. #define CCP2_PORT (GPIO_PORTC_BASE)
  9643. #define CCP2_PIN (GPIO_PIN_4)
  9644. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  9645. #define CCP3_PORT (GPIO_PORTE_BASE)
  9646. #define CCP3_PIN (GPIO_PIN_4)
  9647. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  9648. #define CCP4_PORT (GPIO_PORTA_BASE)
  9649. #define CCP4_PIN (GPIO_PIN_7)
  9650. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOD)
  9651. #define CCP5_PORT (GPIO_PORTD_BASE)
  9652. #define CCP5_PIN (GPIO_PIN_2)
  9653. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOD)
  9654. #define CCP6_PORT (GPIO_PORTD_BASE)
  9655. #define CCP6_PIN (GPIO_PIN_0)
  9656. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOD)
  9657. #define CCP7_PORT (GPIO_PORTD_BASE)
  9658. #define CCP7_PIN (GPIO_PIN_1)
  9659. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  9660. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  9661. #define I2C0SCL_PIN (GPIO_PIN_2)
  9662. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  9663. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  9664. #define I2C0SDA_PIN (GPIO_PIN_3)
  9665. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  9666. #define NMI_PORT (GPIO_PORTB_BASE)
  9667. #define NMI_PIN (GPIO_PIN_7)
  9668. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  9669. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  9670. #define SSI0CLK_PIN (GPIO_PIN_2)
  9671. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  9672. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  9673. #define SSI0FSS_PIN (GPIO_PIN_3)
  9674. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9675. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  9676. #define SSI0RX_PIN (GPIO_PIN_4)
  9677. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9678. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  9679. #define SSI0TX_PIN (GPIO_PIN_5)
  9680. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9681. #define SWCLK_PORT (GPIO_PORTC_BASE)
  9682. #define SWCLK_PIN (GPIO_PIN_0)
  9683. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9684. #define SWDIO_PORT (GPIO_PORTC_BASE)
  9685. #define SWDIO_PIN (GPIO_PIN_1)
  9686. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9687. #define SWO_PORT (GPIO_PORTC_BASE)
  9688. #define SWO_PIN (GPIO_PIN_3)
  9689. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9690. #define TCK_PORT (GPIO_PORTC_BASE)
  9691. #define TCK_PIN (GPIO_PIN_0)
  9692. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  9693. #define TDI_PORT (GPIO_PORTC_BASE)
  9694. #define TDI_PIN (GPIO_PIN_2)
  9695. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9696. #define TDO_PORT (GPIO_PORTC_BASE)
  9697. #define TDO_PIN (GPIO_PIN_3)
  9698. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9699. #define TMS_PORT (GPIO_PORTC_BASE)
  9700. #define TMS_PIN (GPIO_PIN_1)
  9701. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9702. #define U0RX_PORT (GPIO_PORTA_BASE)
  9703. #define U0RX_PIN (GPIO_PIN_0)
  9704. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9705. #define U0TX_PORT (GPIO_PORTA_BASE)
  9706. #define U0TX_PIN (GPIO_PIN_1)
  9707. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOC)
  9708. #define USB0EPEN_PORT (GPIO_PORTC_BASE)
  9709. #define USB0EPEN_PIN (GPIO_PIN_5)
  9710. #define USB0ID_PERIPH (SYSCTL_PERIPH_GPIOB)
  9711. #define USB0ID_PORT (GPIO_PORTB_BASE)
  9712. #define USB0ID_PIN (GPIO_PIN_0)
  9713. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOC)
  9714. #define USB0PFLT_PORT (GPIO_PORTC_BASE)
  9715. #define USB0PFLT_PIN (GPIO_PIN_6)
  9716. #define USB0VBUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9717. #define USB0VBUS_PORT (GPIO_PORTB_BASE)
  9718. #define USB0VBUS_PIN (GPIO_PIN_1)
  9719. #endif // PART_LM3S3651
  9720. //*****************************************************************************
  9721. //
  9722. // LM3S3739 Port/Pin Mapping Definitions
  9723. //
  9724. //*****************************************************************************
  9725. #ifdef PART_LM3S3739
  9726. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  9727. #define ADC0_PORT (GPIO_PORTE_BASE)
  9728. #define ADC0_PIN (GPIO_PIN_7)
  9729. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  9730. #define ADC1_PORT (GPIO_PORTE_BASE)
  9731. #define ADC1_PIN (GPIO_PIN_6)
  9732. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  9733. #define ADC2_PORT (GPIO_PORTE_BASE)
  9734. #define ADC2_PIN (GPIO_PIN_5)
  9735. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  9736. #define ADC3_PORT (GPIO_PORTE_BASE)
  9737. #define ADC3_PIN (GPIO_PIN_4)
  9738. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  9739. #define ADC4_PORT (GPIO_PORTD_BASE)
  9740. #define ADC4_PIN (GPIO_PIN_7)
  9741. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  9742. #define ADC5_PORT (GPIO_PORTD_BASE)
  9743. #define ADC5_PIN (GPIO_PIN_6)
  9744. #define ADC6_PERIPH (SYSCTL_PERIPH_GPIOD)
  9745. #define ADC6_PORT (GPIO_PORTD_BASE)
  9746. #define ADC6_PIN (GPIO_PIN_5)
  9747. #define ADC7_PERIPH (SYSCTL_PERIPH_GPIOD)
  9748. #define ADC7_PORT (GPIO_PORTD_BASE)
  9749. #define ADC7_PIN (GPIO_PIN_4)
  9750. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  9751. #define C0O_PORT (GPIO_PORTF_BASE)
  9752. #define C0O_PIN (GPIO_PIN_4)
  9753. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9754. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  9755. #define C0_MINUS_PIN (GPIO_PIN_4)
  9756. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9757. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  9758. #define C0_PLUS_PIN (GPIO_PIN_6)
  9759. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOF)
  9760. #define C1O_PORT (GPIO_PORTF_BASE)
  9761. #define C1O_PIN (GPIO_PIN_5)
  9762. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9763. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  9764. #define C1_MINUS_PIN (GPIO_PIN_5)
  9765. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9766. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  9767. #define C1_PLUS_PIN (GPIO_PIN_5)
  9768. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOC)
  9769. #define CCP0_PORT (GPIO_PORTC_BASE)
  9770. #define CCP0_PIN (GPIO_PIN_6)
  9771. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOF)
  9772. #define CCP1_PORT (GPIO_PORTF_BASE)
  9773. #define CCP1_PIN (GPIO_PIN_6)
  9774. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOC)
  9775. #define CCP2_PORT (GPIO_PORTC_BASE)
  9776. #define CCP2_PIN (GPIO_PIN_4)
  9777. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOG)
  9778. #define CCP3_PORT (GPIO_PORTG_BASE)
  9779. #define CCP3_PIN (GPIO_PIN_4)
  9780. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  9781. #define CCP4_PORT (GPIO_PORTC_BASE)
  9782. #define CCP4_PIN (GPIO_PIN_7)
  9783. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOD)
  9784. #define CCP5_PORT (GPIO_PORTD_BASE)
  9785. #define CCP5_PIN (GPIO_PIN_2)
  9786. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  9787. #define CCP6_PORT (GPIO_PORTH_BASE)
  9788. #define CCP6_PIN (GPIO_PIN_0)
  9789. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOD)
  9790. #define CCP7_PORT (GPIO_PORTD_BASE)
  9791. #define CCP7_PIN (GPIO_PIN_3)
  9792. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  9793. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  9794. #define I2C0SCL_PIN (GPIO_PIN_2)
  9795. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  9796. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  9797. #define I2C0SDA_PIN (GPIO_PIN_3)
  9798. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  9799. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  9800. #define I2C1SCL_PIN (GPIO_PIN_6)
  9801. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  9802. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  9803. #define I2C1SDA_PIN (GPIO_PIN_7)
  9804. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  9805. #define NMI_PORT (GPIO_PORTB_BASE)
  9806. #define NMI_PIN (GPIO_PIN_7)
  9807. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  9808. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  9809. #define SSI0CLK_PIN (GPIO_PIN_2)
  9810. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  9811. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  9812. #define SSI0FSS_PIN (GPIO_PIN_3)
  9813. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9814. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  9815. #define SSI0RX_PIN (GPIO_PIN_4)
  9816. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9817. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  9818. #define SSI0TX_PIN (GPIO_PIN_5)
  9819. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  9820. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  9821. #define SSI1CLK_PIN (GPIO_PIN_0)
  9822. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  9823. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  9824. #define SSI1FSS_PIN (GPIO_PIN_1)
  9825. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  9826. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  9827. #define SSI1RX_PIN (GPIO_PIN_2)
  9828. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  9829. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  9830. #define SSI1TX_PIN (GPIO_PIN_3)
  9831. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9832. #define SWCLK_PORT (GPIO_PORTC_BASE)
  9833. #define SWCLK_PIN (GPIO_PIN_0)
  9834. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9835. #define SWDIO_PORT (GPIO_PORTC_BASE)
  9836. #define SWDIO_PIN (GPIO_PIN_1)
  9837. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9838. #define SWO_PORT (GPIO_PORTC_BASE)
  9839. #define SWO_PIN (GPIO_PIN_3)
  9840. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  9841. #define TCK_PORT (GPIO_PORTC_BASE)
  9842. #define TCK_PIN (GPIO_PIN_0)
  9843. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  9844. #define TDI_PORT (GPIO_PORTC_BASE)
  9845. #define TDI_PIN (GPIO_PIN_2)
  9846. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  9847. #define TDO_PORT (GPIO_PORTC_BASE)
  9848. #define TDO_PIN (GPIO_PIN_3)
  9849. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9850. #define TMS_PORT (GPIO_PORTC_BASE)
  9851. #define TMS_PIN (GPIO_PIN_1)
  9852. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9853. #define U0RX_PORT (GPIO_PORTA_BASE)
  9854. #define U0RX_PIN (GPIO_PIN_0)
  9855. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  9856. #define U0TX_PORT (GPIO_PORTA_BASE)
  9857. #define U0TX_PIN (GPIO_PIN_1)
  9858. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  9859. #define U1RX_PORT (GPIO_PORTB_BASE)
  9860. #define U1RX_PIN (GPIO_PIN_0)
  9861. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  9862. #define U1TX_PORT (GPIO_PORTB_BASE)
  9863. #define U1TX_PIN (GPIO_PIN_1)
  9864. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9865. #define U2RX_PORT (GPIO_PORTD_BASE)
  9866. #define U2RX_PIN (GPIO_PIN_0)
  9867. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  9868. #define U2TX_PORT (GPIO_PORTD_BASE)
  9869. #define U2TX_PIN (GPIO_PIN_1)
  9870. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOH)
  9871. #define USB0EPEN_PORT (GPIO_PORTH_BASE)
  9872. #define USB0EPEN_PIN (GPIO_PIN_3)
  9873. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOH)
  9874. #define USB0PFLT_PORT (GPIO_PORTH_BASE)
  9875. #define USB0PFLT_PIN (GPIO_PIN_4)
  9876. #endif // PART_LM3S3739
  9877. //*****************************************************************************
  9878. //
  9879. // LM3S3748 Port/Pin Mapping Definitions
  9880. //
  9881. //*****************************************************************************
  9882. #ifdef PART_LM3S3748
  9883. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  9884. #define ADC0_PORT (GPIO_PORTE_BASE)
  9885. #define ADC0_PIN (GPIO_PIN_7)
  9886. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  9887. #define ADC1_PORT (GPIO_PORTE_BASE)
  9888. #define ADC1_PIN (GPIO_PIN_6)
  9889. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  9890. #define ADC2_PORT (GPIO_PORTE_BASE)
  9891. #define ADC2_PIN (GPIO_PIN_5)
  9892. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  9893. #define ADC3_PORT (GPIO_PORTE_BASE)
  9894. #define ADC3_PIN (GPIO_PIN_4)
  9895. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  9896. #define ADC4_PORT (GPIO_PORTD_BASE)
  9897. #define ADC4_PIN (GPIO_PIN_7)
  9898. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  9899. #define ADC5_PORT (GPIO_PORTD_BASE)
  9900. #define ADC5_PIN (GPIO_PIN_6)
  9901. #define ADC6_PERIPH (SYSCTL_PERIPH_GPIOD)
  9902. #define ADC6_PORT (GPIO_PORTD_BASE)
  9903. #define ADC6_PIN (GPIO_PIN_5)
  9904. #define ADC7_PERIPH (SYSCTL_PERIPH_GPIOD)
  9905. #define ADC7_PORT (GPIO_PORTD_BASE)
  9906. #define ADC7_PIN (GPIO_PIN_4)
  9907. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9908. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  9909. #define C0_MINUS_PIN (GPIO_PIN_4)
  9910. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9911. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  9912. #define C0_PLUS_PIN (GPIO_PIN_6)
  9913. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  9914. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  9915. #define C1_MINUS_PIN (GPIO_PIN_5)
  9916. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  9917. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  9918. #define C1_PLUS_PIN (GPIO_PIN_5)
  9919. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  9920. #define CCP0_PORT (GPIO_PORTD_BASE)
  9921. #define CCP0_PIN (GPIO_PIN_3)
  9922. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOF)
  9923. #define CCP1_PORT (GPIO_PORTF_BASE)
  9924. #define CCP1_PIN (GPIO_PIN_6)
  9925. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOF)
  9926. #define CCP2_PORT (GPIO_PORTF_BASE)
  9927. #define CCP2_PIN (GPIO_PIN_5)
  9928. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOG)
  9929. #define CCP3_PORT (GPIO_PORTG_BASE)
  9930. #define CCP3_PIN (GPIO_PIN_4)
  9931. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  9932. #define CCP4_PORT (GPIO_PORTC_BASE)
  9933. #define CCP4_PIN (GPIO_PIN_4)
  9934. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOD)
  9935. #define CCP5_PORT (GPIO_PORTD_BASE)
  9936. #define CCP5_PIN (GPIO_PIN_2)
  9937. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  9938. #define CCP6_PORT (GPIO_PORTH_BASE)
  9939. #define CCP6_PIN (GPIO_PIN_0)
  9940. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOH)
  9941. #define CCP7_PORT (GPIO_PORTH_BASE)
  9942. #define CCP7_PIN (GPIO_PIN_1)
  9943. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOF)
  9944. #define FAULT0_PORT (GPIO_PORTF_BASE)
  9945. #define FAULT0_PIN (GPIO_PIN_4)
  9946. #define FAULT1_PERIPH (SYSCTL_PERIPH_GPIOG)
  9947. #define FAULT1_PORT (GPIO_PORTG_BASE)
  9948. #define FAULT1_PIN (GPIO_PIN_5)
  9949. #define FAULT2_PERIPH (SYSCTL_PERIPH_GPIOG)
  9950. #define FAULT2_PORT (GPIO_PORTG_BASE)
  9951. #define FAULT2_PIN (GPIO_PIN_3)
  9952. #define FAULT3_PERIPH (SYSCTL_PERIPH_GPIOH)
  9953. #define FAULT3_PORT (GPIO_PORTH_BASE)
  9954. #define FAULT3_PIN (GPIO_PIN_2)
  9955. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  9956. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  9957. #define I2C0SCL_PIN (GPIO_PIN_2)
  9958. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  9959. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  9960. #define I2C0SDA_PIN (GPIO_PIN_3)
  9961. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  9962. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  9963. #define I2C1SCL_PIN (GPIO_PIN_6)
  9964. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  9965. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  9966. #define I2C1SDA_PIN (GPIO_PIN_7)
  9967. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  9968. #define IDX0_PORT (GPIO_PORTD_BASE)
  9969. #define IDX0_PIN (GPIO_PIN_0)
  9970. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  9971. #define NMI_PORT (GPIO_PORTB_BASE)
  9972. #define NMI_PIN (GPIO_PIN_7)
  9973. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOD)
  9974. #define PHA0_PORT (GPIO_PORTD_BASE)
  9975. #define PHA0_PIN (GPIO_PIN_1)
  9976. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOF)
  9977. #define PHB0_PORT (GPIO_PORTF_BASE)
  9978. #define PHB0_PIN (GPIO_PIN_7)
  9979. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  9980. #define PWM0_PORT (GPIO_PORTF_BASE)
  9981. #define PWM0_PIN (GPIO_PIN_0)
  9982. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  9983. #define PWM1_PORT (GPIO_PORTF_BASE)
  9984. #define PWM1_PIN (GPIO_PIN_1)
  9985. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOF)
  9986. #define PWM2_PORT (GPIO_PORTF_BASE)
  9987. #define PWM2_PIN (GPIO_PIN_2)
  9988. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOF)
  9989. #define PWM3_PORT (GPIO_PORTF_BASE)
  9990. #define PWM3_PIN (GPIO_PIN_3)
  9991. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOG)
  9992. #define PWM4_PORT (GPIO_PORTG_BASE)
  9993. #define PWM4_PIN (GPIO_PIN_0)
  9994. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOG)
  9995. #define PWM5_PORT (GPIO_PORTG_BASE)
  9996. #define PWM5_PIN (GPIO_PIN_1)
  9997. #define PWM6_PERIPH (SYSCTL_PERIPH_GPIOG)
  9998. #define PWM6_PORT (GPIO_PORTG_BASE)
  9999. #define PWM6_PIN (GPIO_PIN_6)
  10000. #define PWM7_PERIPH (SYSCTL_PERIPH_GPIOG)
  10001. #define PWM7_PORT (GPIO_PORTG_BASE)
  10002. #define PWM7_PIN (GPIO_PIN_7)
  10003. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  10004. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  10005. #define SSI0CLK_PIN (GPIO_PIN_2)
  10006. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  10007. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  10008. #define SSI0FSS_PIN (GPIO_PIN_3)
  10009. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10010. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  10011. #define SSI0RX_PIN (GPIO_PIN_4)
  10012. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10013. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  10014. #define SSI0TX_PIN (GPIO_PIN_5)
  10015. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  10016. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  10017. #define SSI1CLK_PIN (GPIO_PIN_0)
  10018. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  10019. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  10020. #define SSI1FSS_PIN (GPIO_PIN_1)
  10021. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  10022. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  10023. #define SSI1RX_PIN (GPIO_PIN_2)
  10024. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  10025. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  10026. #define SSI1TX_PIN (GPIO_PIN_3)
  10027. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10028. #define SWCLK_PORT (GPIO_PORTC_BASE)
  10029. #define SWCLK_PIN (GPIO_PIN_0)
  10030. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10031. #define SWDIO_PORT (GPIO_PORTC_BASE)
  10032. #define SWDIO_PIN (GPIO_PIN_1)
  10033. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10034. #define SWO_PORT (GPIO_PORTC_BASE)
  10035. #define SWO_PIN (GPIO_PIN_3)
  10036. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10037. #define TCK_PORT (GPIO_PORTC_BASE)
  10038. #define TCK_PIN (GPIO_PIN_0)
  10039. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  10040. #define TDI_PORT (GPIO_PORTC_BASE)
  10041. #define TDI_PIN (GPIO_PIN_2)
  10042. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10043. #define TDO_PORT (GPIO_PORTC_BASE)
  10044. #define TDO_PIN (GPIO_PIN_3)
  10045. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  10046. #define TMS_PORT (GPIO_PORTC_BASE)
  10047. #define TMS_PIN (GPIO_PIN_1)
  10048. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10049. #define U0RX_PORT (GPIO_PORTA_BASE)
  10050. #define U0RX_PIN (GPIO_PIN_0)
  10051. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10052. #define U0TX_PORT (GPIO_PORTA_BASE)
  10053. #define U0TX_PIN (GPIO_PIN_1)
  10054. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOC)
  10055. #define U1RX_PORT (GPIO_PORTC_BASE)
  10056. #define U1RX_PIN (GPIO_PIN_6)
  10057. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOC)
  10058. #define U1TX_PORT (GPIO_PORTC_BASE)
  10059. #define U1TX_PIN (GPIO_PIN_7)
  10060. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOH)
  10061. #define USB0EPEN_PORT (GPIO_PORTH_BASE)
  10062. #define USB0EPEN_PIN (GPIO_PIN_3)
  10063. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOH)
  10064. #define USB0PFLT_PORT (GPIO_PORTH_BASE)
  10065. #define USB0PFLT_PIN (GPIO_PIN_4)
  10066. #endif // PART_LM3S3748
  10067. //*****************************************************************************
  10068. //
  10069. // LM3S3749 Port/Pin Mapping Definitions
  10070. //
  10071. //*****************************************************************************
  10072. #ifdef PART_LM3S3749
  10073. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  10074. #define ADC0_PORT (GPIO_PORTE_BASE)
  10075. #define ADC0_PIN (GPIO_PIN_7)
  10076. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  10077. #define ADC1_PORT (GPIO_PORTE_BASE)
  10078. #define ADC1_PIN (GPIO_PIN_6)
  10079. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  10080. #define ADC2_PORT (GPIO_PORTE_BASE)
  10081. #define ADC2_PIN (GPIO_PIN_5)
  10082. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  10083. #define ADC3_PORT (GPIO_PORTE_BASE)
  10084. #define ADC3_PIN (GPIO_PIN_4)
  10085. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  10086. #define ADC4_PORT (GPIO_PORTD_BASE)
  10087. #define ADC4_PIN (GPIO_PIN_7)
  10088. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  10089. #define ADC5_PORT (GPIO_PORTD_BASE)
  10090. #define ADC5_PIN (GPIO_PIN_6)
  10091. #define ADC6_PERIPH (SYSCTL_PERIPH_GPIOD)
  10092. #define ADC6_PORT (GPIO_PORTD_BASE)
  10093. #define ADC6_PIN (GPIO_PIN_5)
  10094. #define ADC7_PERIPH (SYSCTL_PERIPH_GPIOD)
  10095. #define ADC7_PORT (GPIO_PORTD_BASE)
  10096. #define ADC7_PIN (GPIO_PIN_4)
  10097. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  10098. #define C0O_PORT (GPIO_PORTF_BASE)
  10099. #define C0O_PIN (GPIO_PIN_4)
  10100. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  10101. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  10102. #define C0_MINUS_PIN (GPIO_PIN_4)
  10103. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  10104. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  10105. #define C0_PLUS_PIN (GPIO_PIN_6)
  10106. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  10107. #define C1O_PORT (GPIO_PORTC_BASE)
  10108. #define C1O_PIN (GPIO_PIN_7)
  10109. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  10110. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  10111. #define C1_MINUS_PIN (GPIO_PIN_5)
  10112. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  10113. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  10114. #define C1_PLUS_PIN (GPIO_PIN_5)
  10115. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  10116. #define CCP0_PORT (GPIO_PORTD_BASE)
  10117. #define CCP0_PIN (GPIO_PIN_3)
  10118. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  10119. #define CCP1_PORT (GPIO_PORTA_BASE)
  10120. #define CCP1_PIN (GPIO_PIN_6)
  10121. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOF)
  10122. #define CCP2_PORT (GPIO_PORTF_BASE)
  10123. #define CCP2_PIN (GPIO_PIN_5)
  10124. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOA)
  10125. #define CCP3_PORT (GPIO_PORTA_BASE)
  10126. #define CCP3_PIN (GPIO_PIN_7)
  10127. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOF)
  10128. #define CCP4_PORT (GPIO_PORTF_BASE)
  10129. #define CCP4_PIN (GPIO_PIN_7)
  10130. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  10131. #define CCP5_PORT (GPIO_PORTC_BASE)
  10132. #define CCP5_PIN (GPIO_PIN_4)
  10133. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOD)
  10134. #define CCP6_PORT (GPIO_PORTD_BASE)
  10135. #define CCP6_PIN (GPIO_PIN_2)
  10136. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOG)
  10137. #define FAULT0_PORT (GPIO_PORTG_BASE)
  10138. #define FAULT0_PIN (GPIO_PIN_2)
  10139. #define FAULT1_PERIPH (SYSCTL_PERIPH_GPIOG)
  10140. #define FAULT1_PORT (GPIO_PORTG_BASE)
  10141. #define FAULT1_PIN (GPIO_PIN_4)
  10142. #define FAULT2_PERIPH (SYSCTL_PERIPH_GPIOG)
  10143. #define FAULT2_PORT (GPIO_PORTG_BASE)
  10144. #define FAULT2_PIN (GPIO_PIN_3)
  10145. #define FAULT3_PERIPH (SYSCTL_PERIPH_GPIOH)
  10146. #define FAULT3_PORT (GPIO_PORTH_BASE)
  10147. #define FAULT3_PIN (GPIO_PIN_2)
  10148. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  10149. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  10150. #define I2C0SCL_PIN (GPIO_PIN_2)
  10151. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  10152. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  10153. #define I2C0SDA_PIN (GPIO_PIN_3)
  10154. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOG)
  10155. #define I2C1SCL_PORT (GPIO_PORTG_BASE)
  10156. #define I2C1SCL_PIN (GPIO_PIN_0)
  10157. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOG)
  10158. #define I2C1SDA_PORT (GPIO_PORTG_BASE)
  10159. #define I2C1SDA_PIN (GPIO_PIN_1)
  10160. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOG)
  10161. #define IDX0_PORT (GPIO_PORTG_BASE)
  10162. #define IDX0_PIN (GPIO_PIN_5)
  10163. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  10164. #define NMI_PORT (GPIO_PORTB_BASE)
  10165. #define NMI_PIN (GPIO_PIN_7)
  10166. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOF)
  10167. #define PHA0_PORT (GPIO_PORTF_BASE)
  10168. #define PHA0_PIN (GPIO_PIN_6)
  10169. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOC)
  10170. #define PHB0_PORT (GPIO_PORTC_BASE)
  10171. #define PHB0_PIN (GPIO_PIN_6)
  10172. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  10173. #define PWM0_PORT (GPIO_PORTF_BASE)
  10174. #define PWM0_PIN (GPIO_PIN_0)
  10175. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  10176. #define PWM1_PORT (GPIO_PORTF_BASE)
  10177. #define PWM1_PIN (GPIO_PIN_1)
  10178. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  10179. #define PWM2_PORT (GPIO_PORTH_BASE)
  10180. #define PWM2_PIN (GPIO_PIN_0)
  10181. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  10182. #define PWM3_PORT (GPIO_PORTH_BASE)
  10183. #define PWM3_PIN (GPIO_PIN_1)
  10184. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOF)
  10185. #define PWM4_PORT (GPIO_PORTF_BASE)
  10186. #define PWM4_PIN (GPIO_PIN_2)
  10187. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOF)
  10188. #define PWM5_PORT (GPIO_PORTF_BASE)
  10189. #define PWM5_PIN (GPIO_PIN_3)
  10190. #define PWM6_PERIPH (SYSCTL_PERIPH_GPIOG)
  10191. #define PWM6_PORT (GPIO_PORTG_BASE)
  10192. #define PWM6_PIN (GPIO_PIN_6)
  10193. #define PWM7_PERIPH (SYSCTL_PERIPH_GPIOG)
  10194. #define PWM7_PORT (GPIO_PORTG_BASE)
  10195. #define PWM7_PIN (GPIO_PIN_7)
  10196. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  10197. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  10198. #define SSI0CLK_PIN (GPIO_PIN_2)
  10199. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  10200. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  10201. #define SSI0FSS_PIN (GPIO_PIN_3)
  10202. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10203. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  10204. #define SSI0RX_PIN (GPIO_PIN_4)
  10205. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10206. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  10207. #define SSI0TX_PIN (GPIO_PIN_5)
  10208. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  10209. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  10210. #define SSI1CLK_PIN (GPIO_PIN_0)
  10211. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  10212. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  10213. #define SSI1FSS_PIN (GPIO_PIN_1)
  10214. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  10215. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  10216. #define SSI1RX_PIN (GPIO_PIN_2)
  10217. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  10218. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  10219. #define SSI1TX_PIN (GPIO_PIN_3)
  10220. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10221. #define SWCLK_PORT (GPIO_PORTC_BASE)
  10222. #define SWCLK_PIN (GPIO_PIN_0)
  10223. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10224. #define SWDIO_PORT (GPIO_PORTC_BASE)
  10225. #define SWDIO_PIN (GPIO_PIN_1)
  10226. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10227. #define SWO_PORT (GPIO_PORTC_BASE)
  10228. #define SWO_PIN (GPIO_PIN_3)
  10229. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10230. #define TCK_PORT (GPIO_PORTC_BASE)
  10231. #define TCK_PIN (GPIO_PIN_0)
  10232. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  10233. #define TDI_PORT (GPIO_PORTC_BASE)
  10234. #define TDI_PIN (GPIO_PIN_2)
  10235. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10236. #define TDO_PORT (GPIO_PORTC_BASE)
  10237. #define TDO_PIN (GPIO_PIN_3)
  10238. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  10239. #define TMS_PORT (GPIO_PORTC_BASE)
  10240. #define TMS_PIN (GPIO_PIN_1)
  10241. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10242. #define U0RX_PORT (GPIO_PORTA_BASE)
  10243. #define U0RX_PIN (GPIO_PIN_0)
  10244. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10245. #define U0TX_PORT (GPIO_PORTA_BASE)
  10246. #define U0TX_PIN (GPIO_PIN_1)
  10247. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  10248. #define U1RX_PORT (GPIO_PORTB_BASE)
  10249. #define U1RX_PIN (GPIO_PIN_0)
  10250. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  10251. #define U1TX_PORT (GPIO_PORTB_BASE)
  10252. #define U1TX_PIN (GPIO_PIN_1)
  10253. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10254. #define U2RX_PORT (GPIO_PORTD_BASE)
  10255. #define U2RX_PIN (GPIO_PIN_0)
  10256. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10257. #define U2TX_PORT (GPIO_PORTD_BASE)
  10258. #define U2TX_PIN (GPIO_PIN_1)
  10259. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOH)
  10260. #define USB0EPEN_PORT (GPIO_PORTH_BASE)
  10261. #define USB0EPEN_PIN (GPIO_PIN_3)
  10262. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOH)
  10263. #define USB0PFLT_PORT (GPIO_PORTH_BASE)
  10264. #define USB0PFLT_PIN (GPIO_PIN_4)
  10265. #endif // PART_LM3S3749
  10266. //*****************************************************************************
  10267. //
  10268. // LM3S5632 Port/Pin Mapping Definitions
  10269. //
  10270. //*****************************************************************************
  10271. #ifdef PART_LM3S5632
  10272. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  10273. #define ADC0_PORT (GPIO_PORTE_BASE)
  10274. #define ADC0_PIN (GPIO_PIN_3)
  10275. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  10276. #define ADC1_PORT (GPIO_PORTE_BASE)
  10277. #define ADC1_PIN (GPIO_PIN_2)
  10278. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  10279. #define ADC2_PORT (GPIO_PORTE_BASE)
  10280. #define ADC2_PIN (GPIO_PIN_1)
  10281. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  10282. #define ADC3_PORT (GPIO_PORTE_BASE)
  10283. #define ADC3_PIN (GPIO_PIN_0)
  10284. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  10285. #define ADC4_PORT (GPIO_PORTD_BASE)
  10286. #define ADC4_PIN (GPIO_PIN_3)
  10287. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  10288. #define ADC5_PORT (GPIO_PORTD_BASE)
  10289. #define ADC5_PIN (GPIO_PIN_2)
  10290. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10291. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  10292. #define CAN0RX_PIN (GPIO_PIN_0)
  10293. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10294. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  10295. #define CAN0TX_PIN (GPIO_PIN_1)
  10296. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  10297. #define CCP0_PORT (GPIO_PORTB_BASE)
  10298. #define CCP0_PIN (GPIO_PIN_5)
  10299. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOB)
  10300. #define CCP1_PORT (GPIO_PORTB_BASE)
  10301. #define CCP1_PIN (GPIO_PIN_6)
  10302. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOC)
  10303. #define CCP2_PORT (GPIO_PORTC_BASE)
  10304. #define CCP2_PIN (GPIO_PIN_4)
  10305. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  10306. #define CCP3_PORT (GPIO_PORTE_BASE)
  10307. #define CCP3_PIN (GPIO_PIN_4)
  10308. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  10309. #define CCP4_PORT (GPIO_PORTC_BASE)
  10310. #define CCP4_PIN (GPIO_PIN_7)
  10311. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  10312. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  10313. #define I2C0SCL_PIN (GPIO_PIN_2)
  10314. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  10315. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  10316. #define I2C0SDA_PIN (GPIO_PIN_3)
  10317. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  10318. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  10319. #define I2C1SCL_PIN (GPIO_PIN_6)
  10320. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  10321. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  10322. #define I2C1SDA_PIN (GPIO_PIN_7)
  10323. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  10324. #define NMI_PORT (GPIO_PORTB_BASE)
  10325. #define NMI_PIN (GPIO_PIN_7)
  10326. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  10327. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  10328. #define SSI0CLK_PIN (GPIO_PIN_2)
  10329. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  10330. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  10331. #define SSI0FSS_PIN (GPIO_PIN_3)
  10332. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10333. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  10334. #define SSI0RX_PIN (GPIO_PIN_4)
  10335. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10336. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  10337. #define SSI0TX_PIN (GPIO_PIN_5)
  10338. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10339. #define SWCLK_PORT (GPIO_PORTC_BASE)
  10340. #define SWCLK_PIN (GPIO_PIN_0)
  10341. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10342. #define SWDIO_PORT (GPIO_PORTC_BASE)
  10343. #define SWDIO_PIN (GPIO_PIN_1)
  10344. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10345. #define SWO_PORT (GPIO_PORTC_BASE)
  10346. #define SWO_PIN (GPIO_PIN_3)
  10347. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10348. #define TCK_PORT (GPIO_PORTC_BASE)
  10349. #define TCK_PIN (GPIO_PIN_0)
  10350. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  10351. #define TDI_PORT (GPIO_PORTC_BASE)
  10352. #define TDI_PIN (GPIO_PIN_2)
  10353. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10354. #define TDO_PORT (GPIO_PORTC_BASE)
  10355. #define TDO_PIN (GPIO_PIN_3)
  10356. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  10357. #define TMS_PORT (GPIO_PORTC_BASE)
  10358. #define TMS_PIN (GPIO_PIN_1)
  10359. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10360. #define U0RX_PORT (GPIO_PORTA_BASE)
  10361. #define U0RX_PIN (GPIO_PIN_0)
  10362. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10363. #define U0TX_PORT (GPIO_PORTA_BASE)
  10364. #define U0TX_PIN (GPIO_PIN_1)
  10365. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  10366. #define U1RX_PORT (GPIO_PORTB_BASE)
  10367. #define U1RX_PIN (GPIO_PIN_0)
  10368. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  10369. #define U1TX_PORT (GPIO_PORTB_BASE)
  10370. #define U1TX_PIN (GPIO_PIN_1)
  10371. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOC)
  10372. #define USB0EPEN_PORT (GPIO_PORTC_BASE)
  10373. #define USB0EPEN_PIN (GPIO_PIN_5)
  10374. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOC)
  10375. #define USB0PFLT_PORT (GPIO_PORTC_BASE)
  10376. #define USB0PFLT_PIN (GPIO_PIN_6)
  10377. #endif // PART_LM3S5632
  10378. //*****************************************************************************
  10379. //
  10380. // LM3S5652 Port/Pin Mapping Definitions
  10381. //
  10382. //*****************************************************************************
  10383. #ifdef PART_LM3S5652
  10384. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  10385. #define ADC0_PORT (GPIO_PORTE_BASE)
  10386. #define ADC0_PIN (GPIO_PIN_3)
  10387. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  10388. #define ADC1_PORT (GPIO_PORTE_BASE)
  10389. #define ADC1_PIN (GPIO_PIN_2)
  10390. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  10391. #define ADC2_PORT (GPIO_PORTE_BASE)
  10392. #define ADC2_PIN (GPIO_PIN_1)
  10393. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  10394. #define ADC3_PORT (GPIO_PORTE_BASE)
  10395. #define ADC3_PIN (GPIO_PIN_0)
  10396. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  10397. #define ADC4_PORT (GPIO_PORTD_BASE)
  10398. #define ADC4_PIN (GPIO_PIN_3)
  10399. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  10400. #define ADC5_PORT (GPIO_PORTD_BASE)
  10401. #define ADC5_PIN (GPIO_PIN_2)
  10402. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  10403. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  10404. #define C0_MINUS_PIN (GPIO_PIN_4)
  10405. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  10406. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  10407. #define C0_PLUS_PIN (GPIO_PIN_6)
  10408. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10409. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  10410. #define CAN0RX_PIN (GPIO_PIN_0)
  10411. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10412. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  10413. #define CAN0TX_PIN (GPIO_PIN_1)
  10414. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  10415. #define CCP0_PORT (GPIO_PORTB_BASE)
  10416. #define CCP0_PIN (GPIO_PIN_5)
  10417. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  10418. #define CCP1_PORT (GPIO_PORTA_BASE)
  10419. #define CCP1_PIN (GPIO_PIN_6)
  10420. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOE)
  10421. #define CCP2_PORT (GPIO_PORTE_BASE)
  10422. #define CCP2_PIN (GPIO_PIN_4)
  10423. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOA)
  10424. #define CCP3_PORT (GPIO_PORTA_BASE)
  10425. #define CCP3_PIN (GPIO_PIN_7)
  10426. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  10427. #define CCP4_PORT (GPIO_PORTC_BASE)
  10428. #define CCP4_PIN (GPIO_PIN_7)
  10429. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  10430. #define CCP5_PORT (GPIO_PORTC_BASE)
  10431. #define CCP5_PIN (GPIO_PIN_4)
  10432. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  10433. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  10434. #define I2C0SCL_PIN (GPIO_PIN_2)
  10435. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  10436. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  10437. #define I2C0SDA_PIN (GPIO_PIN_3)
  10438. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  10439. #define NMI_PORT (GPIO_PORTB_BASE)
  10440. #define NMI_PIN (GPIO_PIN_7)
  10441. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  10442. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  10443. #define SSI0CLK_PIN (GPIO_PIN_2)
  10444. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  10445. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  10446. #define SSI0FSS_PIN (GPIO_PIN_3)
  10447. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10448. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  10449. #define SSI0RX_PIN (GPIO_PIN_4)
  10450. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10451. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  10452. #define SSI0TX_PIN (GPIO_PIN_5)
  10453. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10454. #define SWCLK_PORT (GPIO_PORTC_BASE)
  10455. #define SWCLK_PIN (GPIO_PIN_0)
  10456. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10457. #define SWDIO_PORT (GPIO_PORTC_BASE)
  10458. #define SWDIO_PIN (GPIO_PIN_1)
  10459. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10460. #define SWO_PORT (GPIO_PORTC_BASE)
  10461. #define SWO_PIN (GPIO_PIN_3)
  10462. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10463. #define TCK_PORT (GPIO_PORTC_BASE)
  10464. #define TCK_PIN (GPIO_PIN_0)
  10465. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  10466. #define TDI_PORT (GPIO_PORTC_BASE)
  10467. #define TDI_PIN (GPIO_PIN_2)
  10468. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10469. #define TDO_PORT (GPIO_PORTC_BASE)
  10470. #define TDO_PIN (GPIO_PIN_3)
  10471. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  10472. #define TMS_PORT (GPIO_PORTC_BASE)
  10473. #define TMS_PIN (GPIO_PIN_1)
  10474. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10475. #define U0RX_PORT (GPIO_PORTA_BASE)
  10476. #define U0RX_PIN (GPIO_PIN_0)
  10477. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10478. #define U0TX_PORT (GPIO_PORTA_BASE)
  10479. #define U0TX_PIN (GPIO_PIN_1)
  10480. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOC)
  10481. #define USB0EPEN_PORT (GPIO_PORTC_BASE)
  10482. #define USB0EPEN_PIN (GPIO_PIN_5)
  10483. #define USB0ID_PERIPH (SYSCTL_PERIPH_GPIOB)
  10484. #define USB0ID_PORT (GPIO_PORTB_BASE)
  10485. #define USB0ID_PIN (GPIO_PIN_0)
  10486. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOC)
  10487. #define USB0PFLT_PORT (GPIO_PORTC_BASE)
  10488. #define USB0PFLT_PIN (GPIO_PIN_6)
  10489. #define USB0VBUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  10490. #define USB0VBUS_PORT (GPIO_PORTB_BASE)
  10491. #define USB0VBUS_PIN (GPIO_PIN_1)
  10492. #endif // PART_LM3S5652
  10493. //*****************************************************************************
  10494. //
  10495. // LM3S5662 Port/Pin Mapping Definitions
  10496. //
  10497. //*****************************************************************************
  10498. #ifdef PART_LM3S5662
  10499. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  10500. #define ADC0_PORT (GPIO_PORTE_BASE)
  10501. #define ADC0_PIN (GPIO_PIN_3)
  10502. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  10503. #define ADC1_PORT (GPIO_PORTE_BASE)
  10504. #define ADC1_PIN (GPIO_PIN_2)
  10505. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  10506. #define ADC2_PORT (GPIO_PORTE_BASE)
  10507. #define ADC2_PIN (GPIO_PIN_1)
  10508. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  10509. #define ADC3_PORT (GPIO_PORTE_BASE)
  10510. #define ADC3_PIN (GPIO_PIN_0)
  10511. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  10512. #define CAN0RX_PORT (GPIO_PORTB_BASE)
  10513. #define CAN0RX_PIN (GPIO_PIN_4)
  10514. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  10515. #define CAN0TX_PORT (GPIO_PORTB_BASE)
  10516. #define CAN0TX_PIN (GPIO_PIN_5)
  10517. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  10518. #define CCP0_PORT (GPIO_PORTB_BASE)
  10519. #define CCP0_PIN (GPIO_PIN_2)
  10520. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOB)
  10521. #define CCP1_PORT (GPIO_PORTB_BASE)
  10522. #define CCP1_PIN (GPIO_PIN_6)
  10523. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOC)
  10524. #define CCP2_PORT (GPIO_PORTC_BASE)
  10525. #define CCP2_PIN (GPIO_PIN_4)
  10526. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  10527. #define CCP3_PORT (GPIO_PORTE_BASE)
  10528. #define CCP3_PIN (GPIO_PIN_4)
  10529. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  10530. #define CCP4_PORT (GPIO_PORTC_BASE)
  10531. #define CCP4_PIN (GPIO_PIN_7)
  10532. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOB)
  10533. #define FAULT0_PORT (GPIO_PORTB_BASE)
  10534. #define FAULT0_PIN (GPIO_PIN_3)
  10535. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  10536. #define NMI_PORT (GPIO_PORTB_BASE)
  10537. #define NMI_PIN (GPIO_PIN_7)
  10538. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  10539. #define PWM0_PORT (GPIO_PORTD_BASE)
  10540. #define PWM0_PIN (GPIO_PIN_0)
  10541. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  10542. #define PWM1_PORT (GPIO_PORTD_BASE)
  10543. #define PWM1_PIN (GPIO_PIN_1)
  10544. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOD)
  10545. #define PWM2_PORT (GPIO_PORTD_BASE)
  10546. #define PWM2_PIN (GPIO_PIN_2)
  10547. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOD)
  10548. #define PWM3_PORT (GPIO_PORTD_BASE)
  10549. #define PWM3_PIN (GPIO_PIN_3)
  10550. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOA)
  10551. #define PWM4_PORT (GPIO_PORTA_BASE)
  10552. #define PWM4_PIN (GPIO_PIN_6)
  10553. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOA)
  10554. #define PWM5_PORT (GPIO_PORTA_BASE)
  10555. #define PWM5_PIN (GPIO_PIN_7)
  10556. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  10557. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  10558. #define SSI0CLK_PIN (GPIO_PIN_2)
  10559. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  10560. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  10561. #define SSI0FSS_PIN (GPIO_PIN_3)
  10562. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10563. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  10564. #define SSI0RX_PIN (GPIO_PIN_4)
  10565. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10566. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  10567. #define SSI0TX_PIN (GPIO_PIN_5)
  10568. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10569. #define SWCLK_PORT (GPIO_PORTC_BASE)
  10570. #define SWCLK_PIN (GPIO_PIN_0)
  10571. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10572. #define SWDIO_PORT (GPIO_PORTC_BASE)
  10573. #define SWDIO_PIN (GPIO_PIN_1)
  10574. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10575. #define SWO_PORT (GPIO_PORTC_BASE)
  10576. #define SWO_PIN (GPIO_PIN_3)
  10577. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10578. #define TCK_PORT (GPIO_PORTC_BASE)
  10579. #define TCK_PIN (GPIO_PIN_0)
  10580. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  10581. #define TDI_PORT (GPIO_PORTC_BASE)
  10582. #define TDI_PIN (GPIO_PIN_2)
  10583. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10584. #define TDO_PORT (GPIO_PORTC_BASE)
  10585. #define TDO_PIN (GPIO_PIN_3)
  10586. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  10587. #define TMS_PORT (GPIO_PORTC_BASE)
  10588. #define TMS_PIN (GPIO_PIN_1)
  10589. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10590. #define U0RX_PORT (GPIO_PORTA_BASE)
  10591. #define U0RX_PIN (GPIO_PIN_0)
  10592. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10593. #define U0TX_PORT (GPIO_PORTA_BASE)
  10594. #define U0TX_PIN (GPIO_PIN_1)
  10595. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOC)
  10596. #define USB0EPEN_PORT (GPIO_PORTC_BASE)
  10597. #define USB0EPEN_PIN (GPIO_PIN_5)
  10598. #define USB0ID_PERIPH (SYSCTL_PERIPH_GPIOB)
  10599. #define USB0ID_PORT (GPIO_PORTB_BASE)
  10600. #define USB0ID_PIN (GPIO_PIN_0)
  10601. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOC)
  10602. #define USB0PFLT_PORT (GPIO_PORTC_BASE)
  10603. #define USB0PFLT_PIN (GPIO_PIN_6)
  10604. #define USB0VBUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  10605. #define USB0VBUS_PORT (GPIO_PORTB_BASE)
  10606. #define USB0VBUS_PIN (GPIO_PIN_1)
  10607. #endif // PART_LM3S5662
  10608. //*****************************************************************************
  10609. //
  10610. // LM3S5732 Port/Pin Mapping Definitions
  10611. //
  10612. //*****************************************************************************
  10613. #ifdef PART_LM3S5732
  10614. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  10615. #define ADC0_PORT (GPIO_PORTE_BASE)
  10616. #define ADC0_PIN (GPIO_PIN_3)
  10617. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  10618. #define ADC1_PORT (GPIO_PORTE_BASE)
  10619. #define ADC1_PIN (GPIO_PIN_2)
  10620. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  10621. #define ADC2_PORT (GPIO_PORTE_BASE)
  10622. #define ADC2_PIN (GPIO_PIN_1)
  10623. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  10624. #define ADC3_PORT (GPIO_PORTE_BASE)
  10625. #define ADC3_PIN (GPIO_PIN_0)
  10626. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  10627. #define ADC4_PORT (GPIO_PORTD_BASE)
  10628. #define ADC4_PIN (GPIO_PIN_3)
  10629. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  10630. #define ADC5_PORT (GPIO_PORTD_BASE)
  10631. #define ADC5_PIN (GPIO_PIN_2)
  10632. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10633. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  10634. #define CAN0RX_PIN (GPIO_PIN_0)
  10635. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10636. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  10637. #define CAN0TX_PIN (GPIO_PIN_1)
  10638. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  10639. #define CCP0_PORT (GPIO_PORTB_BASE)
  10640. #define CCP0_PIN (GPIO_PIN_5)
  10641. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOB)
  10642. #define CCP1_PORT (GPIO_PORTB_BASE)
  10643. #define CCP1_PIN (GPIO_PIN_6)
  10644. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOC)
  10645. #define CCP2_PORT (GPIO_PORTC_BASE)
  10646. #define CCP2_PIN (GPIO_PIN_4)
  10647. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  10648. #define CCP3_PORT (GPIO_PORTE_BASE)
  10649. #define CCP3_PIN (GPIO_PIN_4)
  10650. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  10651. #define CCP4_PORT (GPIO_PORTC_BASE)
  10652. #define CCP4_PIN (GPIO_PIN_7)
  10653. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  10654. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  10655. #define I2C0SCL_PIN (GPIO_PIN_2)
  10656. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  10657. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  10658. #define I2C0SDA_PIN (GPIO_PIN_3)
  10659. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  10660. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  10661. #define I2C1SCL_PIN (GPIO_PIN_6)
  10662. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  10663. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  10664. #define I2C1SDA_PIN (GPIO_PIN_7)
  10665. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  10666. #define NMI_PORT (GPIO_PORTB_BASE)
  10667. #define NMI_PIN (GPIO_PIN_7)
  10668. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  10669. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  10670. #define SSI0CLK_PIN (GPIO_PIN_2)
  10671. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  10672. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  10673. #define SSI0FSS_PIN (GPIO_PIN_3)
  10674. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10675. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  10676. #define SSI0RX_PIN (GPIO_PIN_4)
  10677. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10678. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  10679. #define SSI0TX_PIN (GPIO_PIN_5)
  10680. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10681. #define SWCLK_PORT (GPIO_PORTC_BASE)
  10682. #define SWCLK_PIN (GPIO_PIN_0)
  10683. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10684. #define SWDIO_PORT (GPIO_PORTC_BASE)
  10685. #define SWDIO_PIN (GPIO_PIN_1)
  10686. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10687. #define SWO_PORT (GPIO_PORTC_BASE)
  10688. #define SWO_PIN (GPIO_PIN_3)
  10689. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10690. #define TCK_PORT (GPIO_PORTC_BASE)
  10691. #define TCK_PIN (GPIO_PIN_0)
  10692. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  10693. #define TDI_PORT (GPIO_PORTC_BASE)
  10694. #define TDI_PIN (GPIO_PIN_2)
  10695. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10696. #define TDO_PORT (GPIO_PORTC_BASE)
  10697. #define TDO_PIN (GPIO_PIN_3)
  10698. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  10699. #define TMS_PORT (GPIO_PORTC_BASE)
  10700. #define TMS_PIN (GPIO_PIN_1)
  10701. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10702. #define U0RX_PORT (GPIO_PORTA_BASE)
  10703. #define U0RX_PIN (GPIO_PIN_0)
  10704. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10705. #define U0TX_PORT (GPIO_PORTA_BASE)
  10706. #define U0TX_PIN (GPIO_PIN_1)
  10707. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  10708. #define U1RX_PORT (GPIO_PORTB_BASE)
  10709. #define U1RX_PIN (GPIO_PIN_0)
  10710. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  10711. #define U1TX_PORT (GPIO_PORTB_BASE)
  10712. #define U1TX_PIN (GPIO_PIN_1)
  10713. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOC)
  10714. #define USB0EPEN_PORT (GPIO_PORTC_BASE)
  10715. #define USB0EPEN_PIN (GPIO_PIN_5)
  10716. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOC)
  10717. #define USB0PFLT_PORT (GPIO_PORTC_BASE)
  10718. #define USB0PFLT_PIN (GPIO_PIN_6)
  10719. #endif // PART_LM3S5732
  10720. //*****************************************************************************
  10721. //
  10722. // LM3S5737 Port/Pin Mapping Definitions
  10723. //
  10724. //*****************************************************************************
  10725. #ifdef PART_LM3S5737
  10726. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  10727. #define ADC0_PORT (GPIO_PORTE_BASE)
  10728. #define ADC0_PIN (GPIO_PIN_7)
  10729. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  10730. #define ADC1_PORT (GPIO_PORTE_BASE)
  10731. #define ADC1_PIN (GPIO_PIN_6)
  10732. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  10733. #define ADC2_PORT (GPIO_PORTE_BASE)
  10734. #define ADC2_PIN (GPIO_PIN_5)
  10735. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  10736. #define ADC3_PORT (GPIO_PORTE_BASE)
  10737. #define ADC3_PIN (GPIO_PIN_4)
  10738. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  10739. #define ADC4_PORT (GPIO_PORTD_BASE)
  10740. #define ADC4_PIN (GPIO_PIN_7)
  10741. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  10742. #define ADC5_PORT (GPIO_PORTD_BASE)
  10743. #define ADC5_PIN (GPIO_PIN_6)
  10744. #define ADC6_PERIPH (SYSCTL_PERIPH_GPIOD)
  10745. #define ADC6_PORT (GPIO_PORTD_BASE)
  10746. #define ADC6_PIN (GPIO_PIN_5)
  10747. #define ADC7_PERIPH (SYSCTL_PERIPH_GPIOD)
  10748. #define ADC7_PORT (GPIO_PORTD_BASE)
  10749. #define ADC7_PIN (GPIO_PIN_4)
  10750. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10751. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  10752. #define CAN0RX_PIN (GPIO_PIN_0)
  10753. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10754. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  10755. #define CAN0TX_PIN (GPIO_PIN_1)
  10756. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  10757. #define CCP0_PORT (GPIO_PORTB_BASE)
  10758. #define CCP0_PIN (GPIO_PIN_0)
  10759. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOB)
  10760. #define CCP1_PORT (GPIO_PORTB_BASE)
  10761. #define CCP1_PIN (GPIO_PIN_1)
  10762. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  10763. #define CCP2_PORT (GPIO_PORTB_BASE)
  10764. #define CCP2_PIN (GPIO_PIN_5)
  10765. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  10766. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  10767. #define I2C0SCL_PIN (GPIO_PIN_2)
  10768. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  10769. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  10770. #define I2C0SDA_PIN (GPIO_PIN_3)
  10771. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  10772. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  10773. #define I2C1SCL_PIN (GPIO_PIN_6)
  10774. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  10775. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  10776. #define I2C1SDA_PIN (GPIO_PIN_7)
  10777. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  10778. #define NMI_PORT (GPIO_PORTB_BASE)
  10779. #define NMI_PIN (GPIO_PIN_7)
  10780. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  10781. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  10782. #define SSI0CLK_PIN (GPIO_PIN_2)
  10783. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  10784. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  10785. #define SSI0FSS_PIN (GPIO_PIN_3)
  10786. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10787. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  10788. #define SSI0RX_PIN (GPIO_PIN_4)
  10789. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10790. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  10791. #define SSI0TX_PIN (GPIO_PIN_5)
  10792. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  10793. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  10794. #define SSI1CLK_PIN (GPIO_PIN_0)
  10795. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  10796. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  10797. #define SSI1FSS_PIN (GPIO_PIN_1)
  10798. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  10799. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  10800. #define SSI1RX_PIN (GPIO_PIN_2)
  10801. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  10802. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  10803. #define SSI1TX_PIN (GPIO_PIN_3)
  10804. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10805. #define SWCLK_PORT (GPIO_PORTC_BASE)
  10806. #define SWCLK_PIN (GPIO_PIN_0)
  10807. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10808. #define SWDIO_PORT (GPIO_PORTC_BASE)
  10809. #define SWDIO_PIN (GPIO_PIN_1)
  10810. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10811. #define SWO_PORT (GPIO_PORTC_BASE)
  10812. #define SWO_PIN (GPIO_PIN_3)
  10813. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10814. #define TCK_PORT (GPIO_PORTC_BASE)
  10815. #define TCK_PIN (GPIO_PIN_0)
  10816. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  10817. #define TDI_PORT (GPIO_PORTC_BASE)
  10818. #define TDI_PIN (GPIO_PIN_2)
  10819. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10820. #define TDO_PORT (GPIO_PORTC_BASE)
  10821. #define TDO_PIN (GPIO_PIN_3)
  10822. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  10823. #define TMS_PORT (GPIO_PORTC_BASE)
  10824. #define TMS_PIN (GPIO_PIN_1)
  10825. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10826. #define U0RX_PORT (GPIO_PORTA_BASE)
  10827. #define U0RX_PIN (GPIO_PIN_0)
  10828. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10829. #define U0TX_PORT (GPIO_PORTA_BASE)
  10830. #define U0TX_PIN (GPIO_PIN_1)
  10831. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOC)
  10832. #define USB0EPEN_PORT (GPIO_PORTC_BASE)
  10833. #define USB0EPEN_PIN (GPIO_PIN_5)
  10834. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOC)
  10835. #define USB0PFLT_PORT (GPIO_PORTC_BASE)
  10836. #define USB0PFLT_PIN (GPIO_PIN_6)
  10837. #endif // PART_LM3S5737
  10838. //*****************************************************************************
  10839. //
  10840. // LM3S5739 Port/Pin Mapping Definitions
  10841. //
  10842. //*****************************************************************************
  10843. #ifdef PART_LM3S5739
  10844. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  10845. #define ADC0_PORT (GPIO_PORTE_BASE)
  10846. #define ADC0_PIN (GPIO_PIN_7)
  10847. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  10848. #define ADC1_PORT (GPIO_PORTE_BASE)
  10849. #define ADC1_PIN (GPIO_PIN_6)
  10850. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  10851. #define ADC2_PORT (GPIO_PORTE_BASE)
  10852. #define ADC2_PIN (GPIO_PIN_5)
  10853. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  10854. #define ADC3_PORT (GPIO_PORTE_BASE)
  10855. #define ADC3_PIN (GPIO_PIN_4)
  10856. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  10857. #define ADC4_PORT (GPIO_PORTD_BASE)
  10858. #define ADC4_PIN (GPIO_PIN_7)
  10859. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  10860. #define ADC5_PORT (GPIO_PORTD_BASE)
  10861. #define ADC5_PIN (GPIO_PIN_6)
  10862. #define ADC6_PERIPH (SYSCTL_PERIPH_GPIOD)
  10863. #define ADC6_PORT (GPIO_PORTD_BASE)
  10864. #define ADC6_PIN (GPIO_PIN_5)
  10865. #define ADC7_PERIPH (SYSCTL_PERIPH_GPIOD)
  10866. #define ADC7_PORT (GPIO_PORTD_BASE)
  10867. #define ADC7_PIN (GPIO_PIN_4)
  10868. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  10869. #define C0O_PORT (GPIO_PORTF_BASE)
  10870. #define C0O_PIN (GPIO_PIN_4)
  10871. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  10872. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  10873. #define C0_MINUS_PIN (GPIO_PIN_4)
  10874. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  10875. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  10876. #define C0_PLUS_PIN (GPIO_PIN_6)
  10877. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOF)
  10878. #define C1O_PORT (GPIO_PORTF_BASE)
  10879. #define C1O_PIN (GPIO_PIN_5)
  10880. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  10881. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  10882. #define C1_MINUS_PIN (GPIO_PIN_5)
  10883. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  10884. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  10885. #define C1_PLUS_PIN (GPIO_PIN_5)
  10886. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10887. #define CAN0RX_PORT (GPIO_PORTA_BASE)
  10888. #define CAN0RX_PIN (GPIO_PIN_6)
  10889. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10890. #define CAN0TX_PORT (GPIO_PORTA_BASE)
  10891. #define CAN0TX_PIN (GPIO_PIN_7)
  10892. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOC)
  10893. #define CCP0_PORT (GPIO_PORTC_BASE)
  10894. #define CCP0_PIN (GPIO_PIN_6)
  10895. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOF)
  10896. #define CCP1_PORT (GPIO_PORTF_BASE)
  10897. #define CCP1_PIN (GPIO_PIN_6)
  10898. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOC)
  10899. #define CCP2_PORT (GPIO_PORTC_BASE)
  10900. #define CCP2_PIN (GPIO_PIN_4)
  10901. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOG)
  10902. #define CCP3_PORT (GPIO_PORTG_BASE)
  10903. #define CCP3_PIN (GPIO_PIN_4)
  10904. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  10905. #define CCP4_PORT (GPIO_PORTC_BASE)
  10906. #define CCP4_PIN (GPIO_PIN_7)
  10907. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOD)
  10908. #define CCP5_PORT (GPIO_PORTD_BASE)
  10909. #define CCP5_PIN (GPIO_PIN_2)
  10910. #define CCP6_PERIPH (SYSCTL_PERIPH_GPIOH)
  10911. #define CCP6_PORT (GPIO_PORTH_BASE)
  10912. #define CCP6_PIN (GPIO_PIN_0)
  10913. #define CCP7_PERIPH (SYSCTL_PERIPH_GPIOD)
  10914. #define CCP7_PORT (GPIO_PORTD_BASE)
  10915. #define CCP7_PIN (GPIO_PIN_3)
  10916. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  10917. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  10918. #define I2C0SCL_PIN (GPIO_PIN_2)
  10919. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  10920. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  10921. #define I2C0SDA_PIN (GPIO_PIN_3)
  10922. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOG)
  10923. #define I2C1SCL_PORT (GPIO_PORTG_BASE)
  10924. #define I2C1SCL_PIN (GPIO_PIN_0)
  10925. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOG)
  10926. #define I2C1SDA_PORT (GPIO_PORTG_BASE)
  10927. #define I2C1SDA_PIN (GPIO_PIN_1)
  10928. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  10929. #define NMI_PORT (GPIO_PORTB_BASE)
  10930. #define NMI_PIN (GPIO_PIN_7)
  10931. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  10932. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  10933. #define SSI0CLK_PIN (GPIO_PIN_2)
  10934. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  10935. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  10936. #define SSI0FSS_PIN (GPIO_PIN_3)
  10937. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10938. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  10939. #define SSI0RX_PIN (GPIO_PIN_4)
  10940. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10941. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  10942. #define SSI0TX_PIN (GPIO_PIN_5)
  10943. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  10944. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  10945. #define SSI1CLK_PIN (GPIO_PIN_0)
  10946. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  10947. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  10948. #define SSI1FSS_PIN (GPIO_PIN_1)
  10949. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  10950. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  10951. #define SSI1RX_PIN (GPIO_PIN_2)
  10952. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  10953. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  10954. #define SSI1TX_PIN (GPIO_PIN_3)
  10955. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10956. #define SWCLK_PORT (GPIO_PORTC_BASE)
  10957. #define SWCLK_PIN (GPIO_PIN_0)
  10958. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10959. #define SWDIO_PORT (GPIO_PORTC_BASE)
  10960. #define SWDIO_PIN (GPIO_PIN_1)
  10961. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10962. #define SWO_PORT (GPIO_PORTC_BASE)
  10963. #define SWO_PIN (GPIO_PIN_3)
  10964. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  10965. #define TCK_PORT (GPIO_PORTC_BASE)
  10966. #define TCK_PIN (GPIO_PIN_0)
  10967. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  10968. #define TDI_PORT (GPIO_PORTC_BASE)
  10969. #define TDI_PIN (GPIO_PIN_2)
  10970. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  10971. #define TDO_PORT (GPIO_PORTC_BASE)
  10972. #define TDO_PIN (GPIO_PIN_3)
  10973. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  10974. #define TMS_PORT (GPIO_PORTC_BASE)
  10975. #define TMS_PIN (GPIO_PIN_1)
  10976. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10977. #define U0RX_PORT (GPIO_PORTA_BASE)
  10978. #define U0RX_PIN (GPIO_PIN_0)
  10979. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  10980. #define U0TX_PORT (GPIO_PORTA_BASE)
  10981. #define U0TX_PIN (GPIO_PIN_1)
  10982. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  10983. #define U1RX_PORT (GPIO_PORTB_BASE)
  10984. #define U1RX_PIN (GPIO_PIN_0)
  10985. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  10986. #define U1TX_PORT (GPIO_PORTB_BASE)
  10987. #define U1TX_PIN (GPIO_PIN_1)
  10988. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10989. #define U2RX_PORT (GPIO_PORTD_BASE)
  10990. #define U2RX_PIN (GPIO_PIN_0)
  10991. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  10992. #define U2TX_PORT (GPIO_PORTD_BASE)
  10993. #define U2TX_PIN (GPIO_PIN_1)
  10994. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOH)
  10995. #define USB0EPEN_PORT (GPIO_PORTH_BASE)
  10996. #define USB0EPEN_PIN (GPIO_PIN_3)
  10997. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOH)
  10998. #define USB0PFLT_PORT (GPIO_PORTH_BASE)
  10999. #define USB0PFLT_PIN (GPIO_PIN_4)
  11000. #endif // PART_LM3S5739
  11001. //*****************************************************************************
  11002. //
  11003. // LM3S5747 Port/Pin Mapping Definitions
  11004. //
  11005. //*****************************************************************************
  11006. #ifdef PART_LM3S5747
  11007. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  11008. #define ADC0_PORT (GPIO_PORTE_BASE)
  11009. #define ADC0_PIN (GPIO_PIN_7)
  11010. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  11011. #define ADC1_PORT (GPIO_PORTE_BASE)
  11012. #define ADC1_PIN (GPIO_PIN_6)
  11013. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  11014. #define ADC2_PORT (GPIO_PORTE_BASE)
  11015. #define ADC2_PIN (GPIO_PIN_5)
  11016. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  11017. #define ADC3_PORT (GPIO_PORTE_BASE)
  11018. #define ADC3_PIN (GPIO_PIN_4)
  11019. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  11020. #define ADC4_PORT (GPIO_PORTD_BASE)
  11021. #define ADC4_PIN (GPIO_PIN_7)
  11022. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  11023. #define ADC5_PORT (GPIO_PORTD_BASE)
  11024. #define ADC5_PIN (GPIO_PIN_6)
  11025. #define ADC6_PERIPH (SYSCTL_PERIPH_GPIOD)
  11026. #define ADC6_PORT (GPIO_PORTD_BASE)
  11027. #define ADC6_PIN (GPIO_PIN_5)
  11028. #define ADC7_PERIPH (SYSCTL_PERIPH_GPIOD)
  11029. #define ADC7_PORT (GPIO_PORTD_BASE)
  11030. #define ADC7_PIN (GPIO_PIN_4)
  11031. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  11032. #define CAN0RX_PORT (GPIO_PORTB_BASE)
  11033. #define CAN0RX_PIN (GPIO_PIN_4)
  11034. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  11035. #define CAN0TX_PORT (GPIO_PORTB_BASE)
  11036. #define CAN0TX_PIN (GPIO_PIN_5)
  11037. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  11038. #define CCP0_PORT (GPIO_PORTB_BASE)
  11039. #define CCP0_PIN (GPIO_PIN_0)
  11040. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  11041. #define CCP1_PORT (GPIO_PORTA_BASE)
  11042. #define CCP1_PIN (GPIO_PIN_6)
  11043. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOE)
  11044. #define FAULT0_PORT (GPIO_PORTE_BASE)
  11045. #define FAULT0_PIN (GPIO_PIN_1)
  11046. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  11047. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  11048. #define I2C0SCL_PIN (GPIO_PIN_2)
  11049. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  11050. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  11051. #define I2C0SDA_PIN (GPIO_PIN_3)
  11052. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  11053. #define NMI_PORT (GPIO_PORTB_BASE)
  11054. #define NMI_PIN (GPIO_PIN_7)
  11055. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  11056. #define PWM0_PORT (GPIO_PORTD_BASE)
  11057. #define PWM0_PIN (GPIO_PIN_0)
  11058. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  11059. #define PWM1_PORT (GPIO_PORTD_BASE)
  11060. #define PWM1_PIN (GPIO_PIN_1)
  11061. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOD)
  11062. #define PWM2_PORT (GPIO_PORTD_BASE)
  11063. #define PWM2_PIN (GPIO_PIN_2)
  11064. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOD)
  11065. #define PWM3_PORT (GPIO_PORTD_BASE)
  11066. #define PWM3_PIN (GPIO_PIN_3)
  11067. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOF)
  11068. #define PWM4_PORT (GPIO_PORTF_BASE)
  11069. #define PWM4_PIN (GPIO_PIN_2)
  11070. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOF)
  11071. #define PWM5_PORT (GPIO_PORTF_BASE)
  11072. #define PWM5_PIN (GPIO_PIN_3)
  11073. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  11074. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  11075. #define SSI0CLK_PIN (GPIO_PIN_2)
  11076. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  11077. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  11078. #define SSI0FSS_PIN (GPIO_PIN_3)
  11079. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11080. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  11081. #define SSI0RX_PIN (GPIO_PIN_4)
  11082. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11083. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  11084. #define SSI0TX_PIN (GPIO_PIN_5)
  11085. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11086. #define SWCLK_PORT (GPIO_PORTC_BASE)
  11087. #define SWCLK_PIN (GPIO_PIN_0)
  11088. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11089. #define SWDIO_PORT (GPIO_PORTC_BASE)
  11090. #define SWDIO_PIN (GPIO_PIN_1)
  11091. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11092. #define SWO_PORT (GPIO_PORTC_BASE)
  11093. #define SWO_PIN (GPIO_PIN_3)
  11094. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11095. #define TCK_PORT (GPIO_PORTC_BASE)
  11096. #define TCK_PIN (GPIO_PIN_0)
  11097. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  11098. #define TDI_PORT (GPIO_PORTC_BASE)
  11099. #define TDI_PIN (GPIO_PIN_2)
  11100. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11101. #define TDO_PORT (GPIO_PORTC_BASE)
  11102. #define TDO_PIN (GPIO_PIN_3)
  11103. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11104. #define TMS_PORT (GPIO_PORTC_BASE)
  11105. #define TMS_PIN (GPIO_PIN_1)
  11106. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11107. #define U0RX_PORT (GPIO_PORTA_BASE)
  11108. #define U0RX_PIN (GPIO_PIN_0)
  11109. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11110. #define U0TX_PORT (GPIO_PORTA_BASE)
  11111. #define U0TX_PIN (GPIO_PIN_1)
  11112. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOC)
  11113. #define USB0EPEN_PORT (GPIO_PORTC_BASE)
  11114. #define USB0EPEN_PIN (GPIO_PIN_5)
  11115. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOC)
  11116. #define USB0PFLT_PORT (GPIO_PORTC_BASE)
  11117. #define USB0PFLT_PIN (GPIO_PIN_6)
  11118. #endif // PART_LM3S5747
  11119. //*****************************************************************************
  11120. //
  11121. // LM3S5749 Port/Pin Mapping Definitions
  11122. //
  11123. //*****************************************************************************
  11124. #ifdef PART_LM3S5749
  11125. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  11126. #define ADC0_PORT (GPIO_PORTE_BASE)
  11127. #define ADC0_PIN (GPIO_PIN_7)
  11128. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  11129. #define ADC1_PORT (GPIO_PORTE_BASE)
  11130. #define ADC1_PIN (GPIO_PIN_6)
  11131. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  11132. #define ADC2_PORT (GPIO_PORTE_BASE)
  11133. #define ADC2_PIN (GPIO_PIN_5)
  11134. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  11135. #define ADC3_PORT (GPIO_PORTE_BASE)
  11136. #define ADC3_PIN (GPIO_PIN_4)
  11137. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  11138. #define ADC4_PORT (GPIO_PORTD_BASE)
  11139. #define ADC4_PIN (GPIO_PIN_7)
  11140. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  11141. #define ADC5_PORT (GPIO_PORTD_BASE)
  11142. #define ADC5_PIN (GPIO_PIN_6)
  11143. #define ADC6_PERIPH (SYSCTL_PERIPH_GPIOD)
  11144. #define ADC6_PORT (GPIO_PORTD_BASE)
  11145. #define ADC6_PIN (GPIO_PIN_5)
  11146. #define ADC7_PERIPH (SYSCTL_PERIPH_GPIOD)
  11147. #define ADC7_PORT (GPIO_PORTD_BASE)
  11148. #define ADC7_PIN (GPIO_PIN_4)
  11149. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOF)
  11150. #define C0O_PORT (GPIO_PORTF_BASE)
  11151. #define C0O_PIN (GPIO_PIN_4)
  11152. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11153. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  11154. #define C0_MINUS_PIN (GPIO_PIN_4)
  11155. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11156. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  11157. #define C0_PLUS_PIN (GPIO_PIN_6)
  11158. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOF)
  11159. #define C1O_PORT (GPIO_PORTF_BASE)
  11160. #define C1O_PIN (GPIO_PIN_5)
  11161. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11162. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  11163. #define C1_MINUS_PIN (GPIO_PIN_5)
  11164. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11165. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  11166. #define C1_PLUS_PIN (GPIO_PIN_5)
  11167. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  11168. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  11169. #define CAN0RX_PIN (GPIO_PIN_0)
  11170. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  11171. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  11172. #define CAN0TX_PIN (GPIO_PIN_1)
  11173. #define CAN1RX_PERIPH (SYSCTL_PERIPH_GPIOF)
  11174. #define CAN1RX_PORT (GPIO_PORTF_BASE)
  11175. #define CAN1RX_PIN (GPIO_PIN_0)
  11176. #define CAN1TX_PERIPH (SYSCTL_PERIPH_GPIOF)
  11177. #define CAN1TX_PORT (GPIO_PORTF_BASE)
  11178. #define CAN1TX_PIN (GPIO_PIN_1)
  11179. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  11180. #define CCP0_PORT (GPIO_PORTB_BASE)
  11181. #define CCP0_PIN (GPIO_PIN_0)
  11182. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOB)
  11183. #define CCP1_PORT (GPIO_PORTB_BASE)
  11184. #define CCP1_PIN (GPIO_PIN_1)
  11185. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOC)
  11186. #define CCP2_PORT (GPIO_PORTC_BASE)
  11187. #define CCP2_PIN (GPIO_PIN_4)
  11188. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  11189. #define CCP3_PORT (GPIO_PORTC_BASE)
  11190. #define CCP3_PIN (GPIO_PIN_6)
  11191. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  11192. #define CCP4_PORT (GPIO_PORTC_BASE)
  11193. #define CCP4_PIN (GPIO_PIN_7)
  11194. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOG)
  11195. #define FAULT0_PORT (GPIO_PORTG_BASE)
  11196. #define FAULT0_PIN (GPIO_PIN_2)
  11197. #define FAULT1_PERIPH (SYSCTL_PERIPH_GPIOG)
  11198. #define FAULT1_PORT (GPIO_PORTG_BASE)
  11199. #define FAULT1_PIN (GPIO_PIN_4)
  11200. #define FAULT2_PERIPH (SYSCTL_PERIPH_GPIOG)
  11201. #define FAULT2_PORT (GPIO_PORTG_BASE)
  11202. #define FAULT2_PIN (GPIO_PIN_3)
  11203. #define FAULT3_PERIPH (SYSCTL_PERIPH_GPIOH)
  11204. #define FAULT3_PORT (GPIO_PORTH_BASE)
  11205. #define FAULT3_PIN (GPIO_PIN_2)
  11206. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  11207. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  11208. #define I2C0SCL_PIN (GPIO_PIN_2)
  11209. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  11210. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  11211. #define I2C0SDA_PIN (GPIO_PIN_3)
  11212. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  11213. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  11214. #define I2C1SCL_PIN (GPIO_PIN_6)
  11215. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  11216. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  11217. #define I2C1SDA_PIN (GPIO_PIN_7)
  11218. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOG)
  11219. #define IDX0_PORT (GPIO_PORTG_BASE)
  11220. #define IDX0_PIN (GPIO_PIN_5)
  11221. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  11222. #define NMI_PORT (GPIO_PORTB_BASE)
  11223. #define NMI_PIN (GPIO_PIN_7)
  11224. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOF)
  11225. #define PHA0_PORT (GPIO_PORTF_BASE)
  11226. #define PHA0_PIN (GPIO_PIN_6)
  11227. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOF)
  11228. #define PHB0_PORT (GPIO_PORTF_BASE)
  11229. #define PHB0_PIN (GPIO_PIN_7)
  11230. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOG)
  11231. #define PWM0_PORT (GPIO_PORTG_BASE)
  11232. #define PWM0_PIN (GPIO_PIN_0)
  11233. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOG)
  11234. #define PWM1_PORT (GPIO_PORTG_BASE)
  11235. #define PWM1_PIN (GPIO_PIN_1)
  11236. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOH)
  11237. #define PWM2_PORT (GPIO_PORTH_BASE)
  11238. #define PWM2_PIN (GPIO_PIN_0)
  11239. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOH)
  11240. #define PWM3_PORT (GPIO_PORTH_BASE)
  11241. #define PWM3_PIN (GPIO_PIN_1)
  11242. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOF)
  11243. #define PWM4_PORT (GPIO_PORTF_BASE)
  11244. #define PWM4_PIN (GPIO_PIN_2)
  11245. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOF)
  11246. #define PWM5_PORT (GPIO_PORTF_BASE)
  11247. #define PWM5_PIN (GPIO_PIN_3)
  11248. #define PWM6_PERIPH (SYSCTL_PERIPH_GPIOG)
  11249. #define PWM6_PORT (GPIO_PORTG_BASE)
  11250. #define PWM6_PIN (GPIO_PIN_6)
  11251. #define PWM7_PERIPH (SYSCTL_PERIPH_GPIOG)
  11252. #define PWM7_PORT (GPIO_PORTG_BASE)
  11253. #define PWM7_PIN (GPIO_PIN_7)
  11254. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  11255. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  11256. #define SSI0CLK_PIN (GPIO_PIN_2)
  11257. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  11258. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  11259. #define SSI0FSS_PIN (GPIO_PIN_3)
  11260. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11261. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  11262. #define SSI0RX_PIN (GPIO_PIN_4)
  11263. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11264. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  11265. #define SSI0TX_PIN (GPIO_PIN_5)
  11266. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  11267. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  11268. #define SSI1CLK_PIN (GPIO_PIN_0)
  11269. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  11270. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  11271. #define SSI1FSS_PIN (GPIO_PIN_1)
  11272. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  11273. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  11274. #define SSI1RX_PIN (GPIO_PIN_2)
  11275. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  11276. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  11277. #define SSI1TX_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. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  11306. #define U1RX_PORT (GPIO_PORTD_BASE)
  11307. #define U1RX_PIN (GPIO_PIN_2)
  11308. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  11309. #define U1TX_PORT (GPIO_PORTD_BASE)
  11310. #define U1TX_PIN (GPIO_PIN_3)
  11311. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOH)
  11312. #define USB0EPEN_PORT (GPIO_PORTH_BASE)
  11313. #define USB0EPEN_PIN (GPIO_PIN_3)
  11314. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOH)
  11315. #define USB0PFLT_PORT (GPIO_PORTH_BASE)
  11316. #define USB0PFLT_PIN (GPIO_PIN_4)
  11317. #endif // PART_LM3S5749
  11318. //*****************************************************************************
  11319. //
  11320. // LM3S5752 Port/Pin Mapping Definitions
  11321. //
  11322. //*****************************************************************************
  11323. #ifdef PART_LM3S5752
  11324. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  11325. #define ADC0_PORT (GPIO_PORTE_BASE)
  11326. #define ADC0_PIN (GPIO_PIN_3)
  11327. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  11328. #define ADC1_PORT (GPIO_PORTE_BASE)
  11329. #define ADC1_PIN (GPIO_PIN_2)
  11330. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  11331. #define ADC2_PORT (GPIO_PORTE_BASE)
  11332. #define ADC2_PIN (GPIO_PIN_1)
  11333. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  11334. #define ADC3_PORT (GPIO_PORTE_BASE)
  11335. #define ADC3_PIN (GPIO_PIN_0)
  11336. #define ADC4_PERIPH (SYSCTL_PERIPH_GPIOD)
  11337. #define ADC4_PORT (GPIO_PORTD_BASE)
  11338. #define ADC4_PIN (GPIO_PIN_3)
  11339. #define ADC5_PERIPH (SYSCTL_PERIPH_GPIOD)
  11340. #define ADC5_PORT (GPIO_PORTD_BASE)
  11341. #define ADC5_PIN (GPIO_PIN_2)
  11342. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11343. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  11344. #define C0_MINUS_PIN (GPIO_PIN_4)
  11345. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11346. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  11347. #define C0_PLUS_PIN (GPIO_PIN_6)
  11348. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  11349. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  11350. #define CAN0RX_PIN (GPIO_PIN_0)
  11351. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  11352. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  11353. #define CAN0TX_PIN (GPIO_PIN_1)
  11354. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  11355. #define CCP0_PORT (GPIO_PORTB_BASE)
  11356. #define CCP0_PIN (GPIO_PIN_5)
  11357. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  11358. #define CCP1_PORT (GPIO_PORTA_BASE)
  11359. #define CCP1_PIN (GPIO_PIN_6)
  11360. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOE)
  11361. #define CCP2_PORT (GPIO_PORTE_BASE)
  11362. #define CCP2_PIN (GPIO_PIN_4)
  11363. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOA)
  11364. #define CCP3_PORT (GPIO_PORTA_BASE)
  11365. #define CCP3_PIN (GPIO_PIN_7)
  11366. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  11367. #define CCP4_PORT (GPIO_PORTC_BASE)
  11368. #define CCP4_PIN (GPIO_PIN_7)
  11369. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  11370. #define CCP5_PORT (GPIO_PORTC_BASE)
  11371. #define CCP5_PIN (GPIO_PIN_4)
  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 NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  11379. #define NMI_PORT (GPIO_PORTB_BASE)
  11380. #define NMI_PIN (GPIO_PIN_7)
  11381. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  11382. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  11383. #define SSI0CLK_PIN (GPIO_PIN_2)
  11384. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  11385. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  11386. #define SSI0FSS_PIN (GPIO_PIN_3)
  11387. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11388. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  11389. #define SSI0RX_PIN (GPIO_PIN_4)
  11390. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11391. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  11392. #define SSI0TX_PIN (GPIO_PIN_5)
  11393. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11394. #define SWCLK_PORT (GPIO_PORTC_BASE)
  11395. #define SWCLK_PIN (GPIO_PIN_0)
  11396. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11397. #define SWDIO_PORT (GPIO_PORTC_BASE)
  11398. #define SWDIO_PIN (GPIO_PIN_1)
  11399. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11400. #define SWO_PORT (GPIO_PORTC_BASE)
  11401. #define SWO_PIN (GPIO_PIN_3)
  11402. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11403. #define TCK_PORT (GPIO_PORTC_BASE)
  11404. #define TCK_PIN (GPIO_PIN_0)
  11405. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  11406. #define TDI_PORT (GPIO_PORTC_BASE)
  11407. #define TDI_PIN (GPIO_PIN_2)
  11408. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11409. #define TDO_PORT (GPIO_PORTC_BASE)
  11410. #define TDO_PIN (GPIO_PIN_3)
  11411. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11412. #define TMS_PORT (GPIO_PORTC_BASE)
  11413. #define TMS_PIN (GPIO_PIN_1)
  11414. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11415. #define U0RX_PORT (GPIO_PORTA_BASE)
  11416. #define U0RX_PIN (GPIO_PIN_0)
  11417. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11418. #define U0TX_PORT (GPIO_PORTA_BASE)
  11419. #define U0TX_PIN (GPIO_PIN_1)
  11420. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOC)
  11421. #define USB0EPEN_PORT (GPIO_PORTC_BASE)
  11422. #define USB0EPEN_PIN (GPIO_PIN_5)
  11423. #define USB0ID_PERIPH (SYSCTL_PERIPH_GPIOB)
  11424. #define USB0ID_PORT (GPIO_PORTB_BASE)
  11425. #define USB0ID_PIN (GPIO_PIN_0)
  11426. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOC)
  11427. #define USB0PFLT_PORT (GPIO_PORTC_BASE)
  11428. #define USB0PFLT_PIN (GPIO_PIN_6)
  11429. #define USB0VBUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11430. #define USB0VBUS_PORT (GPIO_PORTB_BASE)
  11431. #define USB0VBUS_PIN (GPIO_PIN_1)
  11432. #endif // PART_LM3S5752
  11433. //*****************************************************************************
  11434. //
  11435. // LM3S5762 Port/Pin Mapping Definitions
  11436. //
  11437. //*****************************************************************************
  11438. #ifdef PART_LM3S5762
  11439. #define ADC0_PERIPH (SYSCTL_PERIPH_GPIOE)
  11440. #define ADC0_PORT (GPIO_PORTE_BASE)
  11441. #define ADC0_PIN (GPIO_PIN_3)
  11442. #define ADC1_PERIPH (SYSCTL_PERIPH_GPIOE)
  11443. #define ADC1_PORT (GPIO_PORTE_BASE)
  11444. #define ADC1_PIN (GPIO_PIN_2)
  11445. #define ADC2_PERIPH (SYSCTL_PERIPH_GPIOE)
  11446. #define ADC2_PORT (GPIO_PORTE_BASE)
  11447. #define ADC2_PIN (GPIO_PIN_1)
  11448. #define ADC3_PERIPH (SYSCTL_PERIPH_GPIOE)
  11449. #define ADC3_PORT (GPIO_PORTE_BASE)
  11450. #define ADC3_PIN (GPIO_PIN_0)
  11451. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOB)
  11452. #define CAN0RX_PORT (GPIO_PORTB_BASE)
  11453. #define CAN0RX_PIN (GPIO_PIN_4)
  11454. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOB)
  11455. #define CAN0TX_PORT (GPIO_PORTB_BASE)
  11456. #define CAN0TX_PIN (GPIO_PIN_5)
  11457. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  11458. #define CCP0_PORT (GPIO_PORTB_BASE)
  11459. #define CCP0_PIN (GPIO_PIN_2)
  11460. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOB)
  11461. #define CCP1_PORT (GPIO_PORTB_BASE)
  11462. #define CCP1_PIN (GPIO_PIN_6)
  11463. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOC)
  11464. #define CCP2_PORT (GPIO_PORTC_BASE)
  11465. #define CCP2_PIN (GPIO_PIN_4)
  11466. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  11467. #define CCP3_PORT (GPIO_PORTE_BASE)
  11468. #define CCP3_PIN (GPIO_PIN_4)
  11469. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  11470. #define CCP4_PORT (GPIO_PORTC_BASE)
  11471. #define CCP4_PIN (GPIO_PIN_7)
  11472. #define FAULT0_PERIPH (SYSCTL_PERIPH_GPIOB)
  11473. #define FAULT0_PORT (GPIO_PORTB_BASE)
  11474. #define FAULT0_PIN (GPIO_PIN_3)
  11475. #define NMI_PERIPH (SYSCTL_PERIPH_GPIOB)
  11476. #define NMI_PORT (GPIO_PORTB_BASE)
  11477. #define NMI_PIN (GPIO_PIN_7)
  11478. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  11479. #define PWM0_PORT (GPIO_PORTD_BASE)
  11480. #define PWM0_PIN (GPIO_PIN_0)
  11481. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  11482. #define PWM1_PORT (GPIO_PORTD_BASE)
  11483. #define PWM1_PIN (GPIO_PIN_1)
  11484. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOD)
  11485. #define PWM2_PORT (GPIO_PORTD_BASE)
  11486. #define PWM2_PIN (GPIO_PIN_2)
  11487. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOD)
  11488. #define PWM3_PORT (GPIO_PORTD_BASE)
  11489. #define PWM3_PIN (GPIO_PIN_3)
  11490. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOA)
  11491. #define PWM4_PORT (GPIO_PORTA_BASE)
  11492. #define PWM4_PIN (GPIO_PIN_6)
  11493. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOA)
  11494. #define PWM5_PORT (GPIO_PORTA_BASE)
  11495. #define PWM5_PIN (GPIO_PIN_7)
  11496. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  11497. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  11498. #define SSI0CLK_PIN (GPIO_PIN_2)
  11499. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  11500. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  11501. #define SSI0FSS_PIN (GPIO_PIN_3)
  11502. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11503. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  11504. #define SSI0RX_PIN (GPIO_PIN_4)
  11505. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11506. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  11507. #define SSI0TX_PIN (GPIO_PIN_5)
  11508. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11509. #define SWCLK_PORT (GPIO_PORTC_BASE)
  11510. #define SWCLK_PIN (GPIO_PIN_0)
  11511. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11512. #define SWDIO_PORT (GPIO_PORTC_BASE)
  11513. #define SWDIO_PIN (GPIO_PIN_1)
  11514. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11515. #define SWO_PORT (GPIO_PORTC_BASE)
  11516. #define SWO_PIN (GPIO_PIN_3)
  11517. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11518. #define TCK_PORT (GPIO_PORTC_BASE)
  11519. #define TCK_PIN (GPIO_PIN_0)
  11520. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  11521. #define TDI_PORT (GPIO_PORTC_BASE)
  11522. #define TDI_PIN (GPIO_PIN_2)
  11523. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11524. #define TDO_PORT (GPIO_PORTC_BASE)
  11525. #define TDO_PIN (GPIO_PIN_3)
  11526. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11527. #define TMS_PORT (GPIO_PORTC_BASE)
  11528. #define TMS_PIN (GPIO_PIN_1)
  11529. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11530. #define U0RX_PORT (GPIO_PORTA_BASE)
  11531. #define U0RX_PIN (GPIO_PIN_0)
  11532. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11533. #define U0TX_PORT (GPIO_PORTA_BASE)
  11534. #define U0TX_PIN (GPIO_PIN_1)
  11535. #define USB0EPEN_PERIPH (SYSCTL_PERIPH_GPIOC)
  11536. #define USB0EPEN_PORT (GPIO_PORTC_BASE)
  11537. #define USB0EPEN_PIN (GPIO_PIN_5)
  11538. #define USB0ID_PERIPH (SYSCTL_PERIPH_GPIOB)
  11539. #define USB0ID_PORT (GPIO_PORTB_BASE)
  11540. #define USB0ID_PIN (GPIO_PIN_0)
  11541. #define USB0PFLT_PERIPH (SYSCTL_PERIPH_GPIOC)
  11542. #define USB0PFLT_PORT (GPIO_PORTC_BASE)
  11543. #define USB0PFLT_PIN (GPIO_PIN_6)
  11544. #define USB0VBUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11545. #define USB0VBUS_PORT (GPIO_PORTB_BASE)
  11546. #define USB0VBUS_PIN (GPIO_PIN_1)
  11547. #endif // PART_LM3S5762
  11548. //*****************************************************************************
  11549. //
  11550. // LM3S6100 Port/Pin Mapping Definitions
  11551. //
  11552. //*****************************************************************************
  11553. #ifdef PART_LM3S6100
  11554. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOB)
  11555. #define C0O_PORT (GPIO_PORTB_BASE)
  11556. #define C0O_PIN (GPIO_PIN_5)
  11557. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11558. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  11559. #define C0_MINUS_PIN (GPIO_PIN_4)
  11560. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11561. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  11562. #define C0_PLUS_PIN (GPIO_PIN_6)
  11563. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  11564. #define CCP0_PORT (GPIO_PORTB_BASE)
  11565. #define CCP0_PIN (GPIO_PIN_0)
  11566. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  11567. #define CCP1_PORT (GPIO_PORTA_BASE)
  11568. #define CCP1_PIN (GPIO_PIN_6)
  11569. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  11570. #define CCP2_PORT (GPIO_PORTB_BASE)
  11571. #define CCP2_PIN (GPIO_PIN_1)
  11572. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  11573. #define CCP3_PORT (GPIO_PORTC_BASE)
  11574. #define CCP3_PIN (GPIO_PIN_6)
  11575. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  11576. #define LED0_PORT (GPIO_PORTF_BASE)
  11577. #define LED0_PIN (GPIO_PIN_3)
  11578. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  11579. #define LED1_PORT (GPIO_PORTF_BASE)
  11580. #define LED1_PIN (GPIO_PIN_2)
  11581. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  11582. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  11583. #define SSI0CLK_PIN (GPIO_PIN_2)
  11584. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  11585. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  11586. #define SSI0FSS_PIN (GPIO_PIN_3)
  11587. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11588. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  11589. #define SSI0RX_PIN (GPIO_PIN_4)
  11590. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11591. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  11592. #define SSI0TX_PIN (GPIO_PIN_5)
  11593. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11594. #define SWCLK_PORT (GPIO_PORTC_BASE)
  11595. #define SWCLK_PIN (GPIO_PIN_0)
  11596. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11597. #define SWDIO_PORT (GPIO_PORTC_BASE)
  11598. #define SWDIO_PIN (GPIO_PIN_1)
  11599. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11600. #define SWO_PORT (GPIO_PORTC_BASE)
  11601. #define SWO_PIN (GPIO_PIN_3)
  11602. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11603. #define TCK_PORT (GPIO_PORTC_BASE)
  11604. #define TCK_PIN (GPIO_PIN_0)
  11605. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  11606. #define TDI_PORT (GPIO_PORTC_BASE)
  11607. #define TDI_PIN (GPIO_PIN_2)
  11608. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11609. #define TDO_PORT (GPIO_PORTC_BASE)
  11610. #define TDO_PIN (GPIO_PIN_3)
  11611. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11612. #define TMS_PORT (GPIO_PORTC_BASE)
  11613. #define TMS_PIN (GPIO_PIN_1)
  11614. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  11615. #define TRST_PORT (GPIO_PORTB_BASE)
  11616. #define TRST_PIN (GPIO_PIN_7)
  11617. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11618. #define U0RX_PORT (GPIO_PORTA_BASE)
  11619. #define U0RX_PIN (GPIO_PIN_0)
  11620. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11621. #define U0TX_PORT (GPIO_PORTA_BASE)
  11622. #define U0TX_PIN (GPIO_PIN_1)
  11623. #endif // PART_LM3S6100
  11624. //*****************************************************************************
  11625. //
  11626. // LM3S6110 Port/Pin Mapping Definitions
  11627. //
  11628. //*****************************************************************************
  11629. #ifdef PART_LM3S6110
  11630. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  11631. #define C0O_PORT (GPIO_PORTD_BASE)
  11632. #define C0O_PIN (GPIO_PIN_7)
  11633. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11634. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  11635. #define C0_MINUS_PIN (GPIO_PIN_4)
  11636. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11637. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  11638. #define C0_PLUS_PIN (GPIO_PIN_6)
  11639. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11640. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  11641. #define C1_MINUS_PIN (GPIO_PIN_5)
  11642. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11643. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  11644. #define C1_PLUS_PIN (GPIO_PIN_5)
  11645. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11646. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  11647. #define C2_MINUS_PIN (GPIO_PIN_7)
  11648. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11649. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  11650. #define C2_PLUS_PIN (GPIO_PIN_6)
  11651. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  11652. #define CCP0_PORT (GPIO_PORTB_BASE)
  11653. #define CCP0_PIN (GPIO_PIN_0)
  11654. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  11655. #define CCP1_PORT (GPIO_PORTA_BASE)
  11656. #define CCP1_PIN (GPIO_PIN_6)
  11657. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  11658. #define CCP2_PORT (GPIO_PORTB_BASE)
  11659. #define CCP2_PIN (GPIO_PIN_1)
  11660. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  11661. #define CCP3_PORT (GPIO_PORTD_BASE)
  11662. #define CCP3_PIN (GPIO_PIN_4)
  11663. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOB)
  11664. #define FAULT_PORT (GPIO_PORTB_BASE)
  11665. #define FAULT_PIN (GPIO_PIN_3)
  11666. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  11667. #define LED0_PORT (GPIO_PORTF_BASE)
  11668. #define LED0_PIN (GPIO_PIN_3)
  11669. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  11670. #define LED1_PORT (GPIO_PORTF_BASE)
  11671. #define LED1_PIN (GPIO_PIN_2)
  11672. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  11673. #define PWM0_PORT (GPIO_PORTD_BASE)
  11674. #define PWM0_PIN (GPIO_PIN_0)
  11675. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  11676. #define PWM1_PORT (GPIO_PORTD_BASE)
  11677. #define PWM1_PIN (GPIO_PIN_1)
  11678. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  11679. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  11680. #define SSI0CLK_PIN (GPIO_PIN_2)
  11681. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  11682. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  11683. #define SSI0FSS_PIN (GPIO_PIN_3)
  11684. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11685. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  11686. #define SSI0RX_PIN (GPIO_PIN_4)
  11687. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11688. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  11689. #define SSI0TX_PIN (GPIO_PIN_5)
  11690. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11691. #define SWCLK_PORT (GPIO_PORTC_BASE)
  11692. #define SWCLK_PIN (GPIO_PIN_0)
  11693. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11694. #define SWDIO_PORT (GPIO_PORTC_BASE)
  11695. #define SWDIO_PIN (GPIO_PIN_1)
  11696. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11697. #define SWO_PORT (GPIO_PORTC_BASE)
  11698. #define SWO_PIN (GPIO_PIN_3)
  11699. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11700. #define TCK_PORT (GPIO_PORTC_BASE)
  11701. #define TCK_PIN (GPIO_PIN_0)
  11702. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  11703. #define TDI_PORT (GPIO_PORTC_BASE)
  11704. #define TDI_PIN (GPIO_PIN_2)
  11705. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11706. #define TDO_PORT (GPIO_PORTC_BASE)
  11707. #define TDO_PIN (GPIO_PIN_3)
  11708. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11709. #define TMS_PORT (GPIO_PORTC_BASE)
  11710. #define TMS_PIN (GPIO_PIN_1)
  11711. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  11712. #define TRST_PORT (GPIO_PORTB_BASE)
  11713. #define TRST_PIN (GPIO_PIN_7)
  11714. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11715. #define U0RX_PORT (GPIO_PORTA_BASE)
  11716. #define U0RX_PIN (GPIO_PIN_0)
  11717. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11718. #define U0TX_PORT (GPIO_PORTA_BASE)
  11719. #define U0TX_PIN (GPIO_PIN_1)
  11720. #endif // PART_LM3S6110
  11721. //*****************************************************************************
  11722. //
  11723. // LM3S6420 Port/Pin Mapping Definitions
  11724. //
  11725. //*****************************************************************************
  11726. #ifdef PART_LM3S6420
  11727. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  11728. #define C0O_PORT (GPIO_PORTD_BASE)
  11729. #define C0O_PIN (GPIO_PIN_7)
  11730. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11731. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  11732. #define C0_MINUS_PIN (GPIO_PIN_4)
  11733. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11734. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  11735. #define C0_PLUS_PIN (GPIO_PIN_6)
  11736. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  11737. #define C1O_PORT (GPIO_PORTE_BASE)
  11738. #define C1O_PIN (GPIO_PIN_6)
  11739. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11740. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  11741. #define C1_MINUS_PIN (GPIO_PIN_5)
  11742. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11743. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  11744. #define C1_PLUS_PIN (GPIO_PIN_5)
  11745. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  11746. #define CCP0_PORT (GPIO_PORTB_BASE)
  11747. #define CCP0_PIN (GPIO_PIN_0)
  11748. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  11749. #define CCP1_PORT (GPIO_PORTA_BASE)
  11750. #define CCP1_PIN (GPIO_PIN_6)
  11751. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  11752. #define CCP2_PORT (GPIO_PORTB_BASE)
  11753. #define CCP2_PIN (GPIO_PIN_1)
  11754. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  11755. #define CCP3_PORT (GPIO_PORTC_BASE)
  11756. #define CCP3_PIN (GPIO_PIN_6)
  11757. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  11758. #define LED0_PORT (GPIO_PORTF_BASE)
  11759. #define LED0_PIN (GPIO_PIN_3)
  11760. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  11761. #define LED1_PORT (GPIO_PORTF_BASE)
  11762. #define LED1_PIN (GPIO_PIN_2)
  11763. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  11764. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  11765. #define SSI0CLK_PIN (GPIO_PIN_2)
  11766. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  11767. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  11768. #define SSI0FSS_PIN (GPIO_PIN_3)
  11769. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11770. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  11771. #define SSI0RX_PIN (GPIO_PIN_4)
  11772. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11773. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  11774. #define SSI0TX_PIN (GPIO_PIN_5)
  11775. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11776. #define SWCLK_PORT (GPIO_PORTC_BASE)
  11777. #define SWCLK_PIN (GPIO_PIN_0)
  11778. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11779. #define SWDIO_PORT (GPIO_PORTC_BASE)
  11780. #define SWDIO_PIN (GPIO_PIN_1)
  11781. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11782. #define SWO_PORT (GPIO_PORTC_BASE)
  11783. #define SWO_PIN (GPIO_PIN_3)
  11784. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11785. #define TCK_PORT (GPIO_PORTC_BASE)
  11786. #define TCK_PIN (GPIO_PIN_0)
  11787. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  11788. #define TDI_PORT (GPIO_PORTC_BASE)
  11789. #define TDI_PIN (GPIO_PIN_2)
  11790. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11791. #define TDO_PORT (GPIO_PORTC_BASE)
  11792. #define TDO_PIN (GPIO_PIN_3)
  11793. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11794. #define TMS_PORT (GPIO_PORTC_BASE)
  11795. #define TMS_PIN (GPIO_PIN_1)
  11796. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  11797. #define TRST_PORT (GPIO_PORTB_BASE)
  11798. #define TRST_PIN (GPIO_PIN_7)
  11799. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11800. #define U0RX_PORT (GPIO_PORTA_BASE)
  11801. #define U0RX_PIN (GPIO_PIN_0)
  11802. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11803. #define U0TX_PORT (GPIO_PORTA_BASE)
  11804. #define U0TX_PIN (GPIO_PIN_1)
  11805. #endif // PART_LM3S6420
  11806. //*****************************************************************************
  11807. //
  11808. // LM3S6422 Port/Pin Mapping Definitions
  11809. //
  11810. //*****************************************************************************
  11811. #ifdef PART_LM3S6422
  11812. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  11813. #define C0O_PORT (GPIO_PORTD_BASE)
  11814. #define C0O_PIN (GPIO_PIN_7)
  11815. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11816. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  11817. #define C0_MINUS_PIN (GPIO_PIN_4)
  11818. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11819. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  11820. #define C0_PLUS_PIN (GPIO_PIN_6)
  11821. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  11822. #define C1O_PORT (GPIO_PORTC_BASE)
  11823. #define C1O_PIN (GPIO_PIN_5)
  11824. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11825. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  11826. #define C1_MINUS_PIN (GPIO_PIN_5)
  11827. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11828. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  11829. #define C1_PLUS_PIN (GPIO_PIN_5)
  11830. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  11831. #define CCP0_PORT (GPIO_PORTB_BASE)
  11832. #define CCP0_PIN (GPIO_PIN_0)
  11833. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  11834. #define CCP1_PORT (GPIO_PORTA_BASE)
  11835. #define CCP1_PIN (GPIO_PIN_6)
  11836. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  11837. #define CCP2_PORT (GPIO_PORTB_BASE)
  11838. #define CCP2_PIN (GPIO_PIN_1)
  11839. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  11840. #define CCP3_PORT (GPIO_PORTC_BASE)
  11841. #define CCP3_PIN (GPIO_PIN_6)
  11842. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  11843. #define LED0_PORT (GPIO_PORTF_BASE)
  11844. #define LED0_PIN (GPIO_PIN_3)
  11845. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  11846. #define LED1_PORT (GPIO_PORTF_BASE)
  11847. #define LED1_PIN (GPIO_PIN_2)
  11848. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  11849. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  11850. #define SSI0CLK_PIN (GPIO_PIN_2)
  11851. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  11852. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  11853. #define SSI0FSS_PIN (GPIO_PIN_3)
  11854. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11855. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  11856. #define SSI0RX_PIN (GPIO_PIN_4)
  11857. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11858. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  11859. #define SSI0TX_PIN (GPIO_PIN_5)
  11860. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11861. #define SWCLK_PORT (GPIO_PORTC_BASE)
  11862. #define SWCLK_PIN (GPIO_PIN_0)
  11863. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11864. #define SWDIO_PORT (GPIO_PORTC_BASE)
  11865. #define SWDIO_PIN (GPIO_PIN_1)
  11866. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11867. #define SWO_PORT (GPIO_PORTC_BASE)
  11868. #define SWO_PIN (GPIO_PIN_3)
  11869. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11870. #define TCK_PORT (GPIO_PORTC_BASE)
  11871. #define TCK_PIN (GPIO_PIN_0)
  11872. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  11873. #define TDI_PORT (GPIO_PORTC_BASE)
  11874. #define TDI_PIN (GPIO_PIN_2)
  11875. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11876. #define TDO_PORT (GPIO_PORTC_BASE)
  11877. #define TDO_PIN (GPIO_PIN_3)
  11878. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11879. #define TMS_PORT (GPIO_PORTC_BASE)
  11880. #define TMS_PIN (GPIO_PIN_1)
  11881. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  11882. #define TRST_PORT (GPIO_PORTB_BASE)
  11883. #define TRST_PIN (GPIO_PIN_7)
  11884. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11885. #define U0RX_PORT (GPIO_PORTA_BASE)
  11886. #define U0RX_PIN (GPIO_PIN_0)
  11887. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11888. #define U0TX_PORT (GPIO_PORTA_BASE)
  11889. #define U0TX_PIN (GPIO_PIN_1)
  11890. #endif // PART_LM3S6422
  11891. //*****************************************************************************
  11892. //
  11893. // LM3S6432 Port/Pin Mapping Definitions
  11894. //
  11895. //*****************************************************************************
  11896. #ifdef PART_LM3S6432
  11897. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  11898. #define C0O_PORT (GPIO_PORTD_BASE)
  11899. #define C0O_PIN (GPIO_PIN_7)
  11900. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11901. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  11902. #define C0_MINUS_PIN (GPIO_PIN_4)
  11903. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11904. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  11905. #define C0_PLUS_PIN (GPIO_PIN_6)
  11906. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  11907. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  11908. #define C1_MINUS_PIN (GPIO_PIN_5)
  11909. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11910. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  11911. #define C1_PLUS_PIN (GPIO_PIN_5)
  11912. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  11913. #define CCP0_PORT (GPIO_PORTB_BASE)
  11914. #define CCP0_PIN (GPIO_PIN_0)
  11915. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  11916. #define CCP1_PORT (GPIO_PORTA_BASE)
  11917. #define CCP1_PIN (GPIO_PIN_6)
  11918. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  11919. #define CCP2_PORT (GPIO_PORTB_BASE)
  11920. #define CCP2_PIN (GPIO_PIN_1)
  11921. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  11922. #define CCP3_PORT (GPIO_PORTC_BASE)
  11923. #define CCP3_PIN (GPIO_PIN_6)
  11924. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  11925. #define FAULT_PORT (GPIO_PORTD_BASE)
  11926. #define FAULT_PIN (GPIO_PIN_6)
  11927. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  11928. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  11929. #define I2C0SCL_PIN (GPIO_PIN_2)
  11930. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  11931. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  11932. #define I2C0SDA_PIN (GPIO_PIN_3)
  11933. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  11934. #define LED0_PORT (GPIO_PORTF_BASE)
  11935. #define LED0_PIN (GPIO_PIN_3)
  11936. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  11937. #define LED1_PORT (GPIO_PORTF_BASE)
  11938. #define LED1_PIN (GPIO_PIN_2)
  11939. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  11940. #define PWM0_PORT (GPIO_PORTD_BASE)
  11941. #define PWM0_PIN (GPIO_PIN_0)
  11942. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  11943. #define PWM1_PORT (GPIO_PORTD_BASE)
  11944. #define PWM1_PIN (GPIO_PIN_1)
  11945. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  11946. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  11947. #define SSI0CLK_PIN (GPIO_PIN_2)
  11948. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  11949. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  11950. #define SSI0FSS_PIN (GPIO_PIN_3)
  11951. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11952. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  11953. #define SSI0RX_PIN (GPIO_PIN_4)
  11954. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11955. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  11956. #define SSI0TX_PIN (GPIO_PIN_5)
  11957. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11958. #define SWCLK_PORT (GPIO_PORTC_BASE)
  11959. #define SWCLK_PIN (GPIO_PIN_0)
  11960. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11961. #define SWDIO_PORT (GPIO_PORTC_BASE)
  11962. #define SWDIO_PIN (GPIO_PIN_1)
  11963. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11964. #define SWO_PORT (GPIO_PORTC_BASE)
  11965. #define SWO_PIN (GPIO_PIN_3)
  11966. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  11967. #define TCK_PORT (GPIO_PORTC_BASE)
  11968. #define TCK_PIN (GPIO_PIN_0)
  11969. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  11970. #define TDI_PORT (GPIO_PORTC_BASE)
  11971. #define TDI_PIN (GPIO_PIN_2)
  11972. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  11973. #define TDO_PORT (GPIO_PORTC_BASE)
  11974. #define TDO_PIN (GPIO_PIN_3)
  11975. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  11976. #define TMS_PORT (GPIO_PORTC_BASE)
  11977. #define TMS_PIN (GPIO_PIN_1)
  11978. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  11979. #define TRST_PORT (GPIO_PORTB_BASE)
  11980. #define TRST_PIN (GPIO_PIN_7)
  11981. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11982. #define U0RX_PORT (GPIO_PORTA_BASE)
  11983. #define U0RX_PIN (GPIO_PIN_0)
  11984. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  11985. #define U0TX_PORT (GPIO_PORTA_BASE)
  11986. #define U0TX_PIN (GPIO_PIN_1)
  11987. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  11988. #define U1RX_PORT (GPIO_PORTD_BASE)
  11989. #define U1RX_PIN (GPIO_PIN_2)
  11990. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  11991. #define U1TX_PORT (GPIO_PORTD_BASE)
  11992. #define U1TX_PIN (GPIO_PIN_3)
  11993. #endif // PART_LM3S6432
  11994. //*****************************************************************************
  11995. //
  11996. // LM3S6537 Port/Pin Mapping Definitions
  11997. //
  11998. //*****************************************************************************
  11999. #ifdef PART_LM3S6537
  12000. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  12001. #define C0O_PORT (GPIO_PORTD_BASE)
  12002. #define C0O_PIN (GPIO_PIN_7)
  12003. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12004. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  12005. #define C0_MINUS_PIN (GPIO_PIN_4)
  12006. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12007. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  12008. #define C0_PLUS_PIN (GPIO_PIN_6)
  12009. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12010. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  12011. #define C1_MINUS_PIN (GPIO_PIN_5)
  12012. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12013. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  12014. #define C1_PLUS_PIN (GPIO_PIN_5)
  12015. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  12016. #define CCP0_PORT (GPIO_PORTD_BASE)
  12017. #define CCP0_PIN (GPIO_PIN_4)
  12018. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  12019. #define CCP1_PORT (GPIO_PORTA_BASE)
  12020. #define CCP1_PIN (GPIO_PIN_6)
  12021. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOD)
  12022. #define CCP2_PORT (GPIO_PORTD_BASE)
  12023. #define CCP2_PIN (GPIO_PIN_5)
  12024. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  12025. #define CCP3_PORT (GPIO_PORTC_BASE)
  12026. #define CCP3_PIN (GPIO_PIN_6)
  12027. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  12028. #define CCP4_PORT (GPIO_PORTA_BASE)
  12029. #define CCP4_PIN (GPIO_PIN_7)
  12030. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  12031. #define CCP5_PORT (GPIO_PORTC_BASE)
  12032. #define CCP5_PIN (GPIO_PIN_4)
  12033. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  12034. #define FAULT_PORT (GPIO_PORTD_BASE)
  12035. #define FAULT_PIN (GPIO_PIN_6)
  12036. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  12037. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  12038. #define I2C0SCL_PIN (GPIO_PIN_2)
  12039. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  12040. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  12041. #define I2C0SDA_PIN (GPIO_PIN_3)
  12042. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  12043. #define LED0_PORT (GPIO_PORTF_BASE)
  12044. #define LED0_PIN (GPIO_PIN_3)
  12045. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  12046. #define LED1_PORT (GPIO_PORTF_BASE)
  12047. #define LED1_PIN (GPIO_PIN_2)
  12048. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  12049. #define PWM0_PORT (GPIO_PORTD_BASE)
  12050. #define PWM0_PIN (GPIO_PIN_0)
  12051. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  12052. #define PWM1_PORT (GPIO_PORTD_BASE)
  12053. #define PWM1_PIN (GPIO_PIN_1)
  12054. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  12055. #define PWM2_PORT (GPIO_PORTB_BASE)
  12056. #define PWM2_PIN (GPIO_PIN_0)
  12057. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  12058. #define PWM3_PORT (GPIO_PORTB_BASE)
  12059. #define PWM3_PIN (GPIO_PIN_1)
  12060. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  12061. #define PWM4_PORT (GPIO_PORTE_BASE)
  12062. #define PWM4_PIN (GPIO_PIN_0)
  12063. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  12064. #define PWM5_PORT (GPIO_PORTE_BASE)
  12065. #define PWM5_PIN (GPIO_PIN_1)
  12066. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  12067. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  12068. #define SSI0CLK_PIN (GPIO_PIN_2)
  12069. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  12070. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  12071. #define SSI0FSS_PIN (GPIO_PIN_3)
  12072. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12073. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  12074. #define SSI0RX_PIN (GPIO_PIN_4)
  12075. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12076. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  12077. #define SSI0TX_PIN (GPIO_PIN_5)
  12078. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12079. #define SWCLK_PORT (GPIO_PORTC_BASE)
  12080. #define SWCLK_PIN (GPIO_PIN_0)
  12081. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12082. #define SWDIO_PORT (GPIO_PORTC_BASE)
  12083. #define SWDIO_PIN (GPIO_PIN_1)
  12084. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12085. #define SWO_PORT (GPIO_PORTC_BASE)
  12086. #define SWO_PIN (GPIO_PIN_3)
  12087. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12088. #define TCK_PORT (GPIO_PORTC_BASE)
  12089. #define TCK_PIN (GPIO_PIN_0)
  12090. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  12091. #define TDI_PORT (GPIO_PORTC_BASE)
  12092. #define TDI_PIN (GPIO_PIN_2)
  12093. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12094. #define TDO_PORT (GPIO_PORTC_BASE)
  12095. #define TDO_PIN (GPIO_PIN_3)
  12096. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12097. #define TMS_PORT (GPIO_PORTC_BASE)
  12098. #define TMS_PIN (GPIO_PIN_1)
  12099. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  12100. #define TRST_PORT (GPIO_PORTB_BASE)
  12101. #define TRST_PIN (GPIO_PIN_7)
  12102. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12103. #define U0RX_PORT (GPIO_PORTA_BASE)
  12104. #define U0RX_PIN (GPIO_PIN_0)
  12105. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12106. #define U0TX_PORT (GPIO_PORTA_BASE)
  12107. #define U0TX_PIN (GPIO_PIN_1)
  12108. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12109. #define U1RX_PORT (GPIO_PORTD_BASE)
  12110. #define U1RX_PIN (GPIO_PIN_2)
  12111. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12112. #define U1TX_PORT (GPIO_PORTD_BASE)
  12113. #define U1TX_PIN (GPIO_PIN_3)
  12114. #endif // PART_LM3S6537
  12115. //*****************************************************************************
  12116. //
  12117. // LM3S6610 Port/Pin Mapping Definitions
  12118. //
  12119. //*****************************************************************************
  12120. #ifdef PART_LM3S6610
  12121. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  12122. #define C0O_PORT (GPIO_PORTC_BASE)
  12123. #define C0O_PIN (GPIO_PIN_5)
  12124. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12125. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  12126. #define C0_MINUS_PIN (GPIO_PIN_4)
  12127. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12128. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  12129. #define C0_PLUS_PIN (GPIO_PIN_6)
  12130. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  12131. #define C1O_PORT (GPIO_PORTE_BASE)
  12132. #define C1O_PIN (GPIO_PIN_6)
  12133. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12134. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  12135. #define C1_MINUS_PIN (GPIO_PIN_5)
  12136. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12137. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  12138. #define C1_PLUS_PIN (GPIO_PIN_5)
  12139. #define C2O_PERIPH (SYSCTL_PERIPH_GPIOE)
  12140. #define C2O_PORT (GPIO_PORTE_BASE)
  12141. #define C2O_PIN (GPIO_PIN_7)
  12142. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12143. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  12144. #define C2_MINUS_PIN (GPIO_PIN_7)
  12145. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12146. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  12147. #define C2_PLUS_PIN (GPIO_PIN_6)
  12148. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  12149. #define CCP0_PORT (GPIO_PORTD_BASE)
  12150. #define CCP0_PIN (GPIO_PIN_4)
  12151. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  12152. #define CCP1_PORT (GPIO_PORTA_BASE)
  12153. #define CCP1_PIN (GPIO_PIN_6)
  12154. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOD)
  12155. #define CCP2_PORT (GPIO_PORTD_BASE)
  12156. #define CCP2_PIN (GPIO_PIN_5)
  12157. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  12158. #define CCP3_PORT (GPIO_PORTE_BASE)
  12159. #define CCP3_PIN (GPIO_PIN_0)
  12160. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  12161. #define CCP4_PORT (GPIO_PORTA_BASE)
  12162. #define CCP4_PIN (GPIO_PIN_7)
  12163. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  12164. #define CCP5_PORT (GPIO_PORTC_BASE)
  12165. #define CCP5_PIN (GPIO_PIN_4)
  12166. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  12167. #define FAULT_PORT (GPIO_PORTD_BASE)
  12168. #define FAULT_PIN (GPIO_PIN_6)
  12169. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  12170. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  12171. #define I2C0SCL_PIN (GPIO_PIN_2)
  12172. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  12173. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  12174. #define I2C0SDA_PIN (GPIO_PIN_3)
  12175. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  12176. #define IDX0_PORT (GPIO_PORTD_BASE)
  12177. #define IDX0_PIN (GPIO_PIN_7)
  12178. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  12179. #define LED0_PORT (GPIO_PORTF_BASE)
  12180. #define LED0_PIN (GPIO_PIN_3)
  12181. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  12182. #define LED1_PORT (GPIO_PORTF_BASE)
  12183. #define LED1_PIN (GPIO_PIN_2)
  12184. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOD)
  12185. #define PHA0_PORT (GPIO_PORTD_BASE)
  12186. #define PHA0_PIN (GPIO_PIN_1)
  12187. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOF)
  12188. #define PHB0_PORT (GPIO_PORTF_BASE)
  12189. #define PHB0_PIN (GPIO_PIN_0)
  12190. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  12191. #define PWM0_PORT (GPIO_PORTD_BASE)
  12192. #define PWM0_PIN (GPIO_PIN_0)
  12193. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  12194. #define PWM1_PORT (GPIO_PORTF_BASE)
  12195. #define PWM1_PIN (GPIO_PIN_1)
  12196. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  12197. #define PWM2_PORT (GPIO_PORTB_BASE)
  12198. #define PWM2_PIN (GPIO_PIN_0)
  12199. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  12200. #define PWM3_PORT (GPIO_PORTB_BASE)
  12201. #define PWM3_PIN (GPIO_PIN_1)
  12202. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  12203. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  12204. #define SSI0CLK_PIN (GPIO_PIN_2)
  12205. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  12206. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  12207. #define SSI0FSS_PIN (GPIO_PIN_3)
  12208. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12209. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  12210. #define SSI0RX_PIN (GPIO_PIN_4)
  12211. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12212. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  12213. #define SSI0TX_PIN (GPIO_PIN_5)
  12214. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12215. #define SWCLK_PORT (GPIO_PORTC_BASE)
  12216. #define SWCLK_PIN (GPIO_PIN_0)
  12217. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12218. #define SWDIO_PORT (GPIO_PORTC_BASE)
  12219. #define SWDIO_PIN (GPIO_PIN_1)
  12220. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12221. #define SWO_PORT (GPIO_PORTC_BASE)
  12222. #define SWO_PIN (GPIO_PIN_3)
  12223. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12224. #define TCK_PORT (GPIO_PORTC_BASE)
  12225. #define TCK_PIN (GPIO_PIN_0)
  12226. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  12227. #define TDI_PORT (GPIO_PORTC_BASE)
  12228. #define TDI_PIN (GPIO_PIN_2)
  12229. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12230. #define TDO_PORT (GPIO_PORTC_BASE)
  12231. #define TDO_PIN (GPIO_PIN_3)
  12232. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12233. #define TMS_PORT (GPIO_PORTC_BASE)
  12234. #define TMS_PIN (GPIO_PIN_1)
  12235. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  12236. #define TRST_PORT (GPIO_PORTB_BASE)
  12237. #define TRST_PIN (GPIO_PIN_7)
  12238. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12239. #define U0RX_PORT (GPIO_PORTA_BASE)
  12240. #define U0RX_PIN (GPIO_PIN_0)
  12241. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12242. #define U0TX_PORT (GPIO_PORTA_BASE)
  12243. #define U0TX_PIN (GPIO_PIN_1)
  12244. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12245. #define U1RX_PORT (GPIO_PORTD_BASE)
  12246. #define U1RX_PIN (GPIO_PIN_2)
  12247. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12248. #define U1TX_PORT (GPIO_PORTD_BASE)
  12249. #define U1TX_PIN (GPIO_PIN_3)
  12250. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  12251. #define U2RX_PORT (GPIO_PORTG_BASE)
  12252. #define U2RX_PIN (GPIO_PIN_0)
  12253. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  12254. #define U2TX_PORT (GPIO_PORTG_BASE)
  12255. #define U2TX_PIN (GPIO_PIN_1)
  12256. #endif // PART_LM3S6610
  12257. //*****************************************************************************
  12258. //
  12259. // LM3S6611 Port/Pin Mapping Definitions
  12260. //
  12261. //*****************************************************************************
  12262. #ifdef PART_LM3S6611
  12263. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  12264. #define C0O_PORT (GPIO_PORTC_BASE)
  12265. #define C0O_PIN (GPIO_PIN_5)
  12266. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12267. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  12268. #define C0_MINUS_PIN (GPIO_PIN_4)
  12269. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12270. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  12271. #define C0_PLUS_PIN (GPIO_PIN_6)
  12272. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  12273. #define C1O_PORT (GPIO_PORTE_BASE)
  12274. #define C1O_PIN (GPIO_PIN_6)
  12275. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12276. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  12277. #define C1_MINUS_PIN (GPIO_PIN_5)
  12278. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12279. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  12280. #define C1_PLUS_PIN (GPIO_PIN_5)
  12281. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  12282. #define CCP0_PORT (GPIO_PORTB_BASE)
  12283. #define CCP0_PIN (GPIO_PIN_0)
  12284. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOD)
  12285. #define CCP1_PORT (GPIO_PORTD_BASE)
  12286. #define CCP1_PIN (GPIO_PIN_7)
  12287. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  12288. #define CCP2_PORT (GPIO_PORTB_BASE)
  12289. #define CCP2_PIN (GPIO_PIN_1)
  12290. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  12291. #define CCP3_PORT (GPIO_PORTC_BASE)
  12292. #define CCP3_PIN (GPIO_PIN_6)
  12293. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  12294. #define CCP4_PORT (GPIO_PORTC_BASE)
  12295. #define CCP4_PIN (GPIO_PIN_7)
  12296. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  12297. #define CCP5_PORT (GPIO_PORTC_BASE)
  12298. #define CCP5_PIN (GPIO_PIN_4)
  12299. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  12300. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  12301. #define I2C0SCL_PIN (GPIO_PIN_2)
  12302. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  12303. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  12304. #define I2C0SDA_PIN (GPIO_PIN_3)
  12305. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  12306. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  12307. #define I2C1SCL_PIN (GPIO_PIN_6)
  12308. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  12309. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  12310. #define I2C1SDA_PIN (GPIO_PIN_7)
  12311. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  12312. #define LED0_PORT (GPIO_PORTF_BASE)
  12313. #define LED0_PIN (GPIO_PIN_3)
  12314. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  12315. #define LED1_PORT (GPIO_PORTF_BASE)
  12316. #define LED1_PIN (GPIO_PIN_2)
  12317. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  12318. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  12319. #define SSI0CLK_PIN (GPIO_PIN_2)
  12320. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  12321. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  12322. #define SSI0FSS_PIN (GPIO_PIN_3)
  12323. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12324. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  12325. #define SSI0RX_PIN (GPIO_PIN_4)
  12326. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12327. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  12328. #define SSI0TX_PIN (GPIO_PIN_5)
  12329. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  12330. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  12331. #define SSI1CLK_PIN (GPIO_PIN_0)
  12332. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  12333. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  12334. #define SSI1FSS_PIN (GPIO_PIN_1)
  12335. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  12336. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  12337. #define SSI1RX_PIN (GPIO_PIN_2)
  12338. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  12339. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  12340. #define SSI1TX_PIN (GPIO_PIN_3)
  12341. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12342. #define SWCLK_PORT (GPIO_PORTC_BASE)
  12343. #define SWCLK_PIN (GPIO_PIN_0)
  12344. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12345. #define SWDIO_PORT (GPIO_PORTC_BASE)
  12346. #define SWDIO_PIN (GPIO_PIN_1)
  12347. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12348. #define SWO_PORT (GPIO_PORTC_BASE)
  12349. #define SWO_PIN (GPIO_PIN_3)
  12350. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12351. #define TCK_PORT (GPIO_PORTC_BASE)
  12352. #define TCK_PIN (GPIO_PIN_0)
  12353. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  12354. #define TDI_PORT (GPIO_PORTC_BASE)
  12355. #define TDI_PIN (GPIO_PIN_2)
  12356. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12357. #define TDO_PORT (GPIO_PORTC_BASE)
  12358. #define TDO_PIN (GPIO_PIN_3)
  12359. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12360. #define TMS_PORT (GPIO_PORTC_BASE)
  12361. #define TMS_PIN (GPIO_PIN_1)
  12362. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  12363. #define TRST_PORT (GPIO_PORTB_BASE)
  12364. #define TRST_PIN (GPIO_PIN_7)
  12365. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12366. #define U0RX_PORT (GPIO_PORTA_BASE)
  12367. #define U0RX_PIN (GPIO_PIN_0)
  12368. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12369. #define U0TX_PORT (GPIO_PORTA_BASE)
  12370. #define U0TX_PIN (GPIO_PIN_1)
  12371. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12372. #define U1RX_PORT (GPIO_PORTD_BASE)
  12373. #define U1RX_PIN (GPIO_PIN_2)
  12374. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12375. #define U1TX_PORT (GPIO_PORTD_BASE)
  12376. #define U1TX_PIN (GPIO_PIN_3)
  12377. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  12378. #define U2RX_PORT (GPIO_PORTG_BASE)
  12379. #define U2RX_PIN (GPIO_PIN_0)
  12380. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  12381. #define U2TX_PORT (GPIO_PORTG_BASE)
  12382. #define U2TX_PIN (GPIO_PIN_1)
  12383. #endif // PART_LM3S6611
  12384. //*****************************************************************************
  12385. //
  12386. // LM3S6618 Port/Pin Mapping Definitions
  12387. //
  12388. //*****************************************************************************
  12389. #ifdef PART_LM3S6618
  12390. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  12391. #define C0O_PORT (GPIO_PORTC_BASE)
  12392. #define C0O_PIN (GPIO_PIN_5)
  12393. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12394. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  12395. #define C0_MINUS_PIN (GPIO_PIN_4)
  12396. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12397. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  12398. #define C0_PLUS_PIN (GPIO_PIN_6)
  12399. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12400. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  12401. #define C1_MINUS_PIN (GPIO_PIN_5)
  12402. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12403. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  12404. #define C1_PLUS_PIN (GPIO_PIN_5)
  12405. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  12406. #define CCP0_PORT (GPIO_PORTB_BASE)
  12407. #define CCP0_PIN (GPIO_PIN_0)
  12408. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  12409. #define CCP1_PORT (GPIO_PORTA_BASE)
  12410. #define CCP1_PIN (GPIO_PIN_6)
  12411. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  12412. #define CCP2_PORT (GPIO_PORTB_BASE)
  12413. #define CCP2_PIN (GPIO_PIN_1)
  12414. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  12415. #define CCP3_PORT (GPIO_PORTC_BASE)
  12416. #define CCP3_PIN (GPIO_PIN_6)
  12417. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  12418. #define CCP4_PORT (GPIO_PORTC_BASE)
  12419. #define CCP4_PIN (GPIO_PIN_7)
  12420. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  12421. #define CCP5_PORT (GPIO_PORTC_BASE)
  12422. #define CCP5_PIN (GPIO_PIN_4)
  12423. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  12424. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  12425. #define I2C0SCL_PIN (GPIO_PIN_2)
  12426. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  12427. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  12428. #define I2C0SDA_PIN (GPIO_PIN_3)
  12429. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOG)
  12430. #define I2C1SCL_PORT (GPIO_PORTG_BASE)
  12431. #define I2C1SCL_PIN (GPIO_PIN_0)
  12432. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  12433. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  12434. #define I2C1SDA_PIN (GPIO_PIN_7)
  12435. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  12436. #define LED0_PORT (GPIO_PORTF_BASE)
  12437. #define LED0_PIN (GPIO_PIN_3)
  12438. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  12439. #define LED1_PORT (GPIO_PORTF_BASE)
  12440. #define LED1_PIN (GPIO_PIN_2)
  12441. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  12442. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  12443. #define SSI0CLK_PIN (GPIO_PIN_2)
  12444. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  12445. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  12446. #define SSI0FSS_PIN (GPIO_PIN_3)
  12447. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12448. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  12449. #define SSI0RX_PIN (GPIO_PIN_4)
  12450. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12451. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  12452. #define SSI0TX_PIN (GPIO_PIN_5)
  12453. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  12454. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  12455. #define SSI1CLK_PIN (GPIO_PIN_0)
  12456. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  12457. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  12458. #define SSI1FSS_PIN (GPIO_PIN_1)
  12459. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  12460. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  12461. #define SSI1RX_PIN (GPIO_PIN_2)
  12462. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  12463. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  12464. #define SSI1TX_PIN (GPIO_PIN_3)
  12465. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12466. #define SWCLK_PORT (GPIO_PORTC_BASE)
  12467. #define SWCLK_PIN (GPIO_PIN_0)
  12468. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12469. #define SWDIO_PORT (GPIO_PORTC_BASE)
  12470. #define SWDIO_PIN (GPIO_PIN_1)
  12471. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12472. #define SWO_PORT (GPIO_PORTC_BASE)
  12473. #define SWO_PIN (GPIO_PIN_3)
  12474. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12475. #define TCK_PORT (GPIO_PORTC_BASE)
  12476. #define TCK_PIN (GPIO_PIN_0)
  12477. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  12478. #define TDI_PORT (GPIO_PORTC_BASE)
  12479. #define TDI_PIN (GPIO_PIN_2)
  12480. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12481. #define TDO_PORT (GPIO_PORTC_BASE)
  12482. #define TDO_PIN (GPIO_PIN_3)
  12483. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12484. #define TMS_PORT (GPIO_PORTC_BASE)
  12485. #define TMS_PIN (GPIO_PIN_1)
  12486. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  12487. #define TRST_PORT (GPIO_PORTB_BASE)
  12488. #define TRST_PIN (GPIO_PIN_7)
  12489. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12490. #define U0RX_PORT (GPIO_PORTA_BASE)
  12491. #define U0RX_PIN (GPIO_PIN_0)
  12492. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12493. #define U0TX_PORT (GPIO_PORTA_BASE)
  12494. #define U0TX_PIN (GPIO_PIN_1)
  12495. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12496. #define U1RX_PORT (GPIO_PORTD_BASE)
  12497. #define U1RX_PIN (GPIO_PIN_2)
  12498. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12499. #define U1TX_PORT (GPIO_PORTD_BASE)
  12500. #define U1TX_PIN (GPIO_PIN_3)
  12501. #endif // PART_LM3S6618
  12502. //*****************************************************************************
  12503. //
  12504. // LM3S6633 Port/Pin Mapping Definitions
  12505. //
  12506. //*****************************************************************************
  12507. #ifdef PART_LM3S6633
  12508. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  12509. #define C0O_PORT (GPIO_PORTC_BASE)
  12510. #define C0O_PIN (GPIO_PIN_5)
  12511. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12512. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  12513. #define C0_MINUS_PIN (GPIO_PIN_4)
  12514. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12515. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  12516. #define C0_PLUS_PIN (GPIO_PIN_6)
  12517. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  12518. #define CCP0_PORT (GPIO_PORTB_BASE)
  12519. #define CCP0_PIN (GPIO_PIN_0)
  12520. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  12521. #define CCP1_PORT (GPIO_PORTA_BASE)
  12522. #define CCP1_PIN (GPIO_PIN_6)
  12523. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  12524. #define CCP2_PORT (GPIO_PORTB_BASE)
  12525. #define CCP2_PIN (GPIO_PIN_1)
  12526. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  12527. #define CCP3_PORT (GPIO_PORTC_BASE)
  12528. #define CCP3_PIN (GPIO_PIN_6)
  12529. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  12530. #define CCP4_PORT (GPIO_PORTA_BASE)
  12531. #define CCP4_PIN (GPIO_PIN_7)
  12532. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOB)
  12533. #define CCP5_PORT (GPIO_PORTB_BASE)
  12534. #define CCP5_PIN (GPIO_PIN_5)
  12535. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  12536. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  12537. #define I2C0SCL_PIN (GPIO_PIN_2)
  12538. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  12539. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  12540. #define I2C0SDA_PIN (GPIO_PIN_3)
  12541. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  12542. #define LED0_PORT (GPIO_PORTF_BASE)
  12543. #define LED0_PIN (GPIO_PIN_3)
  12544. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  12545. #define LED1_PORT (GPIO_PORTF_BASE)
  12546. #define LED1_PIN (GPIO_PIN_2)
  12547. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  12548. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  12549. #define SSI0CLK_PIN (GPIO_PIN_2)
  12550. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  12551. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  12552. #define SSI0FSS_PIN (GPIO_PIN_3)
  12553. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12554. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  12555. #define SSI0RX_PIN (GPIO_PIN_4)
  12556. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12557. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  12558. #define SSI0TX_PIN (GPIO_PIN_5)
  12559. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12560. #define SWCLK_PORT (GPIO_PORTC_BASE)
  12561. #define SWCLK_PIN (GPIO_PIN_0)
  12562. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12563. #define SWDIO_PORT (GPIO_PORTC_BASE)
  12564. #define SWDIO_PIN (GPIO_PIN_1)
  12565. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12566. #define SWO_PORT (GPIO_PORTC_BASE)
  12567. #define SWO_PIN (GPIO_PIN_3)
  12568. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12569. #define TCK_PORT (GPIO_PORTC_BASE)
  12570. #define TCK_PIN (GPIO_PIN_0)
  12571. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  12572. #define TDI_PORT (GPIO_PORTC_BASE)
  12573. #define TDI_PIN (GPIO_PIN_2)
  12574. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12575. #define TDO_PORT (GPIO_PORTC_BASE)
  12576. #define TDO_PIN (GPIO_PIN_3)
  12577. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12578. #define TMS_PORT (GPIO_PORTC_BASE)
  12579. #define TMS_PIN (GPIO_PIN_1)
  12580. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  12581. #define TRST_PORT (GPIO_PORTB_BASE)
  12582. #define TRST_PIN (GPIO_PIN_7)
  12583. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12584. #define U0RX_PORT (GPIO_PORTA_BASE)
  12585. #define U0RX_PIN (GPIO_PIN_0)
  12586. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12587. #define U0TX_PORT (GPIO_PORTA_BASE)
  12588. #define U0TX_PIN (GPIO_PIN_1)
  12589. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12590. #define U1RX_PORT (GPIO_PORTD_BASE)
  12591. #define U1RX_PIN (GPIO_PIN_2)
  12592. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12593. #define U1TX_PORT (GPIO_PORTD_BASE)
  12594. #define U1TX_PIN (GPIO_PIN_3)
  12595. #endif // PART_LM3S6633
  12596. //*****************************************************************************
  12597. //
  12598. // LM3S6637 Port/Pin Mapping Definitions
  12599. //
  12600. //*****************************************************************************
  12601. #ifdef PART_LM3S6637
  12602. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  12603. #define C0O_PORT (GPIO_PORTD_BASE)
  12604. #define C0O_PIN (GPIO_PIN_7)
  12605. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12606. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  12607. #define C0_MINUS_PIN (GPIO_PIN_4)
  12608. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12609. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  12610. #define C0_PLUS_PIN (GPIO_PIN_6)
  12611. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  12612. #define C1O_PORT (GPIO_PORTC_BASE)
  12613. #define C1O_PIN (GPIO_PIN_5)
  12614. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12615. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  12616. #define C1_MINUS_PIN (GPIO_PIN_5)
  12617. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12618. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  12619. #define C1_PLUS_PIN (GPIO_PIN_5)
  12620. #define C2O_PERIPH (SYSCTL_PERIPH_GPIOC)
  12621. #define C2O_PORT (GPIO_PORTC_BASE)
  12622. #define C2O_PIN (GPIO_PIN_6)
  12623. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12624. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  12625. #define C2_MINUS_PIN (GPIO_PIN_7)
  12626. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12627. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  12628. #define C2_PLUS_PIN (GPIO_PIN_6)
  12629. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  12630. #define CCP0_PORT (GPIO_PORTB_BASE)
  12631. #define CCP0_PIN (GPIO_PIN_0)
  12632. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  12633. #define CCP1_PORT (GPIO_PORTA_BASE)
  12634. #define CCP1_PIN (GPIO_PIN_6)
  12635. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  12636. #define CCP2_PORT (GPIO_PORTB_BASE)
  12637. #define CCP2_PIN (GPIO_PIN_1)
  12638. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  12639. #define CCP3_PORT (GPIO_PORTD_BASE)
  12640. #define CCP3_PIN (GPIO_PIN_4)
  12641. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  12642. #define CCP4_PORT (GPIO_PORTA_BASE)
  12643. #define CCP4_PIN (GPIO_PIN_7)
  12644. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  12645. #define CCP5_PORT (GPIO_PORTC_BASE)
  12646. #define CCP5_PIN (GPIO_PIN_4)
  12647. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  12648. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  12649. #define I2C0SCL_PIN (GPIO_PIN_2)
  12650. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  12651. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  12652. #define I2C0SDA_PIN (GPIO_PIN_3)
  12653. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  12654. #define LED0_PORT (GPIO_PORTF_BASE)
  12655. #define LED0_PIN (GPIO_PIN_3)
  12656. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  12657. #define LED1_PORT (GPIO_PORTF_BASE)
  12658. #define LED1_PIN (GPIO_PIN_2)
  12659. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  12660. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  12661. #define SSI0CLK_PIN (GPIO_PIN_2)
  12662. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  12663. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  12664. #define SSI0FSS_PIN (GPIO_PIN_3)
  12665. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12666. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  12667. #define SSI0RX_PIN (GPIO_PIN_4)
  12668. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12669. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  12670. #define SSI0TX_PIN (GPIO_PIN_5)
  12671. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12672. #define SWCLK_PORT (GPIO_PORTC_BASE)
  12673. #define SWCLK_PIN (GPIO_PIN_0)
  12674. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12675. #define SWDIO_PORT (GPIO_PORTC_BASE)
  12676. #define SWDIO_PIN (GPIO_PIN_1)
  12677. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12678. #define SWO_PORT (GPIO_PORTC_BASE)
  12679. #define SWO_PIN (GPIO_PIN_3)
  12680. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12681. #define TCK_PORT (GPIO_PORTC_BASE)
  12682. #define TCK_PIN (GPIO_PIN_0)
  12683. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  12684. #define TDI_PORT (GPIO_PORTC_BASE)
  12685. #define TDI_PIN (GPIO_PIN_2)
  12686. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12687. #define TDO_PORT (GPIO_PORTC_BASE)
  12688. #define TDO_PIN (GPIO_PIN_3)
  12689. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12690. #define TMS_PORT (GPIO_PORTC_BASE)
  12691. #define TMS_PIN (GPIO_PIN_1)
  12692. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  12693. #define TRST_PORT (GPIO_PORTB_BASE)
  12694. #define TRST_PIN (GPIO_PIN_7)
  12695. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12696. #define U0RX_PORT (GPIO_PORTA_BASE)
  12697. #define U0RX_PIN (GPIO_PIN_0)
  12698. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12699. #define U0TX_PORT (GPIO_PORTA_BASE)
  12700. #define U0TX_PIN (GPIO_PIN_1)
  12701. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12702. #define U1RX_PORT (GPIO_PORTD_BASE)
  12703. #define U1RX_PIN (GPIO_PIN_2)
  12704. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12705. #define U1TX_PORT (GPIO_PORTD_BASE)
  12706. #define U1TX_PIN (GPIO_PIN_3)
  12707. #endif // PART_LM3S6637
  12708. //*****************************************************************************
  12709. //
  12710. // LM3S6730 Port/Pin Mapping Definitions
  12711. //
  12712. //*****************************************************************************
  12713. #ifdef PART_LM3S6730
  12714. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  12715. #define C0O_PORT (GPIO_PORTD_BASE)
  12716. #define C0O_PIN (GPIO_PIN_7)
  12717. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12718. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  12719. #define C0_MINUS_PIN (GPIO_PIN_4)
  12720. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12721. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  12722. #define C0_PLUS_PIN (GPIO_PIN_6)
  12723. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  12724. #define C1O_PORT (GPIO_PORTE_BASE)
  12725. #define C1O_PIN (GPIO_PIN_6)
  12726. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12727. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  12728. #define C1_MINUS_PIN (GPIO_PIN_5)
  12729. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12730. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  12731. #define C1_PLUS_PIN (GPIO_PIN_5)
  12732. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  12733. #define CCP0_PORT (GPIO_PORTB_BASE)
  12734. #define CCP0_PIN (GPIO_PIN_0)
  12735. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  12736. #define CCP1_PORT (GPIO_PORTA_BASE)
  12737. #define CCP1_PIN (GPIO_PIN_6)
  12738. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  12739. #define CCP2_PORT (GPIO_PORTB_BASE)
  12740. #define CCP2_PIN (GPIO_PIN_1)
  12741. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  12742. #define CCP3_PORT (GPIO_PORTC_BASE)
  12743. #define CCP3_PIN (GPIO_PIN_6)
  12744. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  12745. #define LED0_PORT (GPIO_PORTF_BASE)
  12746. #define LED0_PIN (GPIO_PIN_3)
  12747. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  12748. #define LED1_PORT (GPIO_PORTF_BASE)
  12749. #define LED1_PIN (GPIO_PIN_2)
  12750. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  12751. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  12752. #define SSI0CLK_PIN (GPIO_PIN_2)
  12753. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  12754. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  12755. #define SSI0FSS_PIN (GPIO_PIN_3)
  12756. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12757. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  12758. #define SSI0RX_PIN (GPIO_PIN_4)
  12759. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12760. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  12761. #define SSI0TX_PIN (GPIO_PIN_5)
  12762. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12763. #define SWCLK_PORT (GPIO_PORTC_BASE)
  12764. #define SWCLK_PIN (GPIO_PIN_0)
  12765. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12766. #define SWDIO_PORT (GPIO_PORTC_BASE)
  12767. #define SWDIO_PIN (GPIO_PIN_1)
  12768. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12769. #define SWO_PORT (GPIO_PORTC_BASE)
  12770. #define SWO_PIN (GPIO_PIN_3)
  12771. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12772. #define TCK_PORT (GPIO_PORTC_BASE)
  12773. #define TCK_PIN (GPIO_PIN_0)
  12774. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  12775. #define TDI_PORT (GPIO_PORTC_BASE)
  12776. #define TDI_PIN (GPIO_PIN_2)
  12777. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12778. #define TDO_PORT (GPIO_PORTC_BASE)
  12779. #define TDO_PIN (GPIO_PIN_3)
  12780. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12781. #define TMS_PORT (GPIO_PORTC_BASE)
  12782. #define TMS_PIN (GPIO_PIN_1)
  12783. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  12784. #define TRST_PORT (GPIO_PORTB_BASE)
  12785. #define TRST_PIN (GPIO_PIN_7)
  12786. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12787. #define U0RX_PORT (GPIO_PORTA_BASE)
  12788. #define U0RX_PIN (GPIO_PIN_0)
  12789. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12790. #define U0TX_PORT (GPIO_PORTA_BASE)
  12791. #define U0TX_PIN (GPIO_PIN_1)
  12792. #endif // PART_LM3S6730
  12793. //*****************************************************************************
  12794. //
  12795. // LM3S6753 Port/Pin Mapping Definitions
  12796. //
  12797. //*****************************************************************************
  12798. #ifdef PART_LM3S6753
  12799. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  12800. #define C0O_PORT (GPIO_PORTD_BASE)
  12801. #define C0O_PIN (GPIO_PIN_7)
  12802. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12803. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  12804. #define C0_MINUS_PIN (GPIO_PIN_4)
  12805. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12806. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  12807. #define C0_PLUS_PIN (GPIO_PIN_6)
  12808. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  12809. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  12810. #define C1_MINUS_PIN (GPIO_PIN_5)
  12811. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12812. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  12813. #define C1_PLUS_PIN (GPIO_PIN_5)
  12814. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  12815. #define CCP0_PORT (GPIO_PORTD_BASE)
  12816. #define CCP0_PIN (GPIO_PIN_4)
  12817. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  12818. #define CCP1_PORT (GPIO_PORTA_BASE)
  12819. #define CCP1_PIN (GPIO_PIN_6)
  12820. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOD)
  12821. #define CCP2_PORT (GPIO_PORTD_BASE)
  12822. #define CCP2_PIN (GPIO_PIN_5)
  12823. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  12824. #define CCP3_PORT (GPIO_PORTC_BASE)
  12825. #define CCP3_PIN (GPIO_PIN_6)
  12826. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  12827. #define FAULT_PORT (GPIO_PORTD_BASE)
  12828. #define FAULT_PIN (GPIO_PIN_6)
  12829. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  12830. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  12831. #define I2C0SCL_PIN (GPIO_PIN_2)
  12832. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  12833. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  12834. #define I2C0SDA_PIN (GPIO_PIN_3)
  12835. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  12836. #define IDX0_PORT (GPIO_PORTD_BASE)
  12837. #define IDX0_PIN (GPIO_PIN_0)
  12838. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  12839. #define LED0_PORT (GPIO_PORTF_BASE)
  12840. #define LED0_PIN (GPIO_PIN_3)
  12841. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  12842. #define LED1_PORT (GPIO_PORTF_BASE)
  12843. #define LED1_PIN (GPIO_PIN_2)
  12844. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  12845. #define PHA0_PORT (GPIO_PORTC_BASE)
  12846. #define PHA0_PIN (GPIO_PIN_4)
  12847. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOC)
  12848. #define PHB0_PORT (GPIO_PORTC_BASE)
  12849. #define PHB0_PIN (GPIO_PIN_7)
  12850. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  12851. #define PWM0_PORT (GPIO_PORTF_BASE)
  12852. #define PWM0_PIN (GPIO_PIN_0)
  12853. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  12854. #define PWM1_PORT (GPIO_PORTD_BASE)
  12855. #define PWM1_PIN (GPIO_PIN_1)
  12856. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  12857. #define PWM2_PORT (GPIO_PORTB_BASE)
  12858. #define PWM2_PIN (GPIO_PIN_0)
  12859. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  12860. #define PWM3_PORT (GPIO_PORTB_BASE)
  12861. #define PWM3_PIN (GPIO_PIN_1)
  12862. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  12863. #define PWM4_PORT (GPIO_PORTE_BASE)
  12864. #define PWM4_PIN (GPIO_PIN_0)
  12865. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  12866. #define PWM5_PORT (GPIO_PORTE_BASE)
  12867. #define PWM5_PIN (GPIO_PIN_1)
  12868. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  12869. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  12870. #define SSI0CLK_PIN (GPIO_PIN_2)
  12871. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  12872. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  12873. #define SSI0FSS_PIN (GPIO_PIN_3)
  12874. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12875. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  12876. #define SSI0RX_PIN (GPIO_PIN_4)
  12877. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12878. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  12879. #define SSI0TX_PIN (GPIO_PIN_5)
  12880. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12881. #define SWCLK_PORT (GPIO_PORTC_BASE)
  12882. #define SWCLK_PIN (GPIO_PIN_0)
  12883. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12884. #define SWDIO_PORT (GPIO_PORTC_BASE)
  12885. #define SWDIO_PIN (GPIO_PIN_1)
  12886. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12887. #define SWO_PORT (GPIO_PORTC_BASE)
  12888. #define SWO_PIN (GPIO_PIN_3)
  12889. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12890. #define TCK_PORT (GPIO_PORTC_BASE)
  12891. #define TCK_PIN (GPIO_PIN_0)
  12892. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  12893. #define TDI_PORT (GPIO_PORTC_BASE)
  12894. #define TDI_PIN (GPIO_PIN_2)
  12895. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12896. #define TDO_PORT (GPIO_PORTC_BASE)
  12897. #define TDO_PIN (GPIO_PIN_3)
  12898. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12899. #define TMS_PORT (GPIO_PORTC_BASE)
  12900. #define TMS_PIN (GPIO_PIN_1)
  12901. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  12902. #define TRST_PORT (GPIO_PORTB_BASE)
  12903. #define TRST_PIN (GPIO_PIN_7)
  12904. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12905. #define U0RX_PORT (GPIO_PORTA_BASE)
  12906. #define U0RX_PIN (GPIO_PIN_0)
  12907. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12908. #define U0TX_PORT (GPIO_PORTA_BASE)
  12909. #define U0TX_PIN (GPIO_PIN_1)
  12910. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12911. #define U1RX_PORT (GPIO_PORTD_BASE)
  12912. #define U1RX_PIN (GPIO_PIN_2)
  12913. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  12914. #define U1TX_PORT (GPIO_PORTD_BASE)
  12915. #define U1TX_PIN (GPIO_PIN_3)
  12916. #endif // PART_LM3S6753
  12917. //*****************************************************************************
  12918. //
  12919. // LM3S6816 Port/Pin Mapping Definitions
  12920. //
  12921. //*****************************************************************************
  12922. #ifdef PART_LM3S6816
  12923. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  12924. #define CCP0_PORT (GPIO_PORTB_BASE)
  12925. #define CCP0_PIN (GPIO_PIN_0)
  12926. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  12927. #define CCP1_PORT (GPIO_PORTA_BASE)
  12928. #define CCP1_PIN (GPIO_PIN_6)
  12929. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  12930. #define CCP2_PORT (GPIO_PORTB_BASE)
  12931. #define CCP2_PIN (GPIO_PIN_1)
  12932. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  12933. #define CCP3_PORT (GPIO_PORTC_BASE)
  12934. #define CCP3_PIN (GPIO_PIN_6)
  12935. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  12936. #define CCP4_PORT (GPIO_PORTA_BASE)
  12937. #define CCP4_PIN (GPIO_PIN_7)
  12938. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOB)
  12939. #define CCP5_PORT (GPIO_PORTB_BASE)
  12940. #define CCP5_PIN (GPIO_PIN_5)
  12941. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOE)
  12942. #define FAULT_PORT (GPIO_PORTE_BASE)
  12943. #define FAULT_PIN (GPIO_PIN_1)
  12944. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  12945. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  12946. #define I2C0SCL_PIN (GPIO_PIN_2)
  12947. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  12948. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  12949. #define I2C0SDA_PIN (GPIO_PIN_3)
  12950. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  12951. #define LED0_PORT (GPIO_PORTF_BASE)
  12952. #define LED0_PIN (GPIO_PIN_3)
  12953. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  12954. #define LED1_PORT (GPIO_PORTF_BASE)
  12955. #define LED1_PIN (GPIO_PIN_2)
  12956. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  12957. #define PWM0_PORT (GPIO_PORTD_BASE)
  12958. #define PWM0_PIN (GPIO_PIN_0)
  12959. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  12960. #define PWM1_PORT (GPIO_PORTD_BASE)
  12961. #define PWM1_PIN (GPIO_PIN_1)
  12962. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  12963. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  12964. #define SSI0CLK_PIN (GPIO_PIN_2)
  12965. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  12966. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  12967. #define SSI0FSS_PIN (GPIO_PIN_3)
  12968. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12969. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  12970. #define SSI0RX_PIN (GPIO_PIN_4)
  12971. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12972. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  12973. #define SSI0TX_PIN (GPIO_PIN_5)
  12974. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12975. #define SWCLK_PORT (GPIO_PORTC_BASE)
  12976. #define SWCLK_PIN (GPIO_PIN_0)
  12977. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12978. #define SWDIO_PORT (GPIO_PORTC_BASE)
  12979. #define SWDIO_PIN (GPIO_PIN_1)
  12980. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12981. #define SWO_PORT (GPIO_PORTC_BASE)
  12982. #define SWO_PIN (GPIO_PIN_3)
  12983. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  12984. #define TCK_PORT (GPIO_PORTC_BASE)
  12985. #define TCK_PIN (GPIO_PIN_0)
  12986. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  12987. #define TDI_PORT (GPIO_PORTC_BASE)
  12988. #define TDI_PIN (GPIO_PIN_2)
  12989. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  12990. #define TDO_PORT (GPIO_PORTC_BASE)
  12991. #define TDO_PIN (GPIO_PIN_3)
  12992. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  12993. #define TMS_PORT (GPIO_PORTC_BASE)
  12994. #define TMS_PIN (GPIO_PIN_1)
  12995. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  12996. #define TRST_PORT (GPIO_PORTB_BASE)
  12997. #define TRST_PIN (GPIO_PIN_7)
  12998. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  12999. #define U0RX_PORT (GPIO_PORTA_BASE)
  13000. #define U0RX_PIN (GPIO_PIN_0)
  13001. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13002. #define U0TX_PORT (GPIO_PORTA_BASE)
  13003. #define U0TX_PIN (GPIO_PIN_1)
  13004. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13005. #define U1RX_PORT (GPIO_PORTD_BASE)
  13006. #define U1RX_PIN (GPIO_PIN_2)
  13007. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13008. #define U1TX_PORT (GPIO_PORTD_BASE)
  13009. #define U1TX_PIN (GPIO_PIN_3)
  13010. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13011. #define U2RX_PORT (GPIO_PORTG_BASE)
  13012. #define U2RX_PIN (GPIO_PIN_0)
  13013. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13014. #define U2TX_PORT (GPIO_PORTG_BASE)
  13015. #define U2TX_PIN (GPIO_PIN_1)
  13016. #endif // PART_LM3S6816
  13017. //*****************************************************************************
  13018. //
  13019. // LM3S6911 Port/Pin Mapping Definitions
  13020. //
  13021. //*****************************************************************************
  13022. #ifdef PART_LM3S6911
  13023. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  13024. #define C0O_PORT (GPIO_PORTC_BASE)
  13025. #define C0O_PIN (GPIO_PIN_5)
  13026. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13027. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  13028. #define C0_MINUS_PIN (GPIO_PIN_4)
  13029. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13030. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  13031. #define C0_PLUS_PIN (GPIO_PIN_6)
  13032. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOE)
  13033. #define C1O_PORT (GPIO_PORTE_BASE)
  13034. #define C1O_PIN (GPIO_PIN_6)
  13035. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13036. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  13037. #define C1_MINUS_PIN (GPIO_PIN_5)
  13038. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13039. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  13040. #define C1_PLUS_PIN (GPIO_PIN_5)
  13041. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  13042. #define CCP0_PORT (GPIO_PORTB_BASE)
  13043. #define CCP0_PIN (GPIO_PIN_0)
  13044. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOD)
  13045. #define CCP1_PORT (GPIO_PORTD_BASE)
  13046. #define CCP1_PIN (GPIO_PIN_7)
  13047. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  13048. #define CCP2_PORT (GPIO_PORTB_BASE)
  13049. #define CCP2_PIN (GPIO_PIN_1)
  13050. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  13051. #define CCP3_PORT (GPIO_PORTC_BASE)
  13052. #define CCP3_PIN (GPIO_PIN_6)
  13053. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  13054. #define CCP4_PORT (GPIO_PORTC_BASE)
  13055. #define CCP4_PIN (GPIO_PIN_7)
  13056. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  13057. #define CCP5_PORT (GPIO_PORTC_BASE)
  13058. #define CCP5_PIN (GPIO_PIN_4)
  13059. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  13060. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  13061. #define I2C0SCL_PIN (GPIO_PIN_2)
  13062. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  13063. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  13064. #define I2C0SDA_PIN (GPIO_PIN_3)
  13065. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  13066. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  13067. #define I2C1SCL_PIN (GPIO_PIN_6)
  13068. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  13069. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  13070. #define I2C1SDA_PIN (GPIO_PIN_7)
  13071. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  13072. #define LED0_PORT (GPIO_PORTF_BASE)
  13073. #define LED0_PIN (GPIO_PIN_3)
  13074. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  13075. #define LED1_PORT (GPIO_PORTF_BASE)
  13076. #define LED1_PIN (GPIO_PIN_2)
  13077. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  13078. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  13079. #define SSI0CLK_PIN (GPIO_PIN_2)
  13080. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  13081. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  13082. #define SSI0FSS_PIN (GPIO_PIN_3)
  13083. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13084. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  13085. #define SSI0RX_PIN (GPIO_PIN_4)
  13086. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13087. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  13088. #define SSI0TX_PIN (GPIO_PIN_5)
  13089. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  13090. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  13091. #define SSI1CLK_PIN (GPIO_PIN_0)
  13092. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  13093. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  13094. #define SSI1FSS_PIN (GPIO_PIN_1)
  13095. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  13096. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  13097. #define SSI1RX_PIN (GPIO_PIN_2)
  13098. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  13099. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  13100. #define SSI1TX_PIN (GPIO_PIN_3)
  13101. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13102. #define SWCLK_PORT (GPIO_PORTC_BASE)
  13103. #define SWCLK_PIN (GPIO_PIN_0)
  13104. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13105. #define SWDIO_PORT (GPIO_PORTC_BASE)
  13106. #define SWDIO_PIN (GPIO_PIN_1)
  13107. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13108. #define SWO_PORT (GPIO_PORTC_BASE)
  13109. #define SWO_PIN (GPIO_PIN_3)
  13110. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13111. #define TCK_PORT (GPIO_PORTC_BASE)
  13112. #define TCK_PIN (GPIO_PIN_0)
  13113. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  13114. #define TDI_PORT (GPIO_PORTC_BASE)
  13115. #define TDI_PIN (GPIO_PIN_2)
  13116. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13117. #define TDO_PORT (GPIO_PORTC_BASE)
  13118. #define TDO_PIN (GPIO_PIN_3)
  13119. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13120. #define TMS_PORT (GPIO_PORTC_BASE)
  13121. #define TMS_PIN (GPIO_PIN_1)
  13122. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  13123. #define TRST_PORT (GPIO_PORTB_BASE)
  13124. #define TRST_PIN (GPIO_PIN_7)
  13125. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13126. #define U0RX_PORT (GPIO_PORTA_BASE)
  13127. #define U0RX_PIN (GPIO_PIN_0)
  13128. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13129. #define U0TX_PORT (GPIO_PORTA_BASE)
  13130. #define U0TX_PIN (GPIO_PIN_1)
  13131. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13132. #define U1RX_PORT (GPIO_PORTD_BASE)
  13133. #define U1RX_PIN (GPIO_PIN_2)
  13134. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13135. #define U1TX_PORT (GPIO_PORTD_BASE)
  13136. #define U1TX_PIN (GPIO_PIN_3)
  13137. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13138. #define U2RX_PORT (GPIO_PORTG_BASE)
  13139. #define U2RX_PIN (GPIO_PIN_0)
  13140. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13141. #define U2TX_PORT (GPIO_PORTG_BASE)
  13142. #define U2TX_PIN (GPIO_PIN_1)
  13143. #endif // PART_LM3S6911
  13144. //*****************************************************************************
  13145. //
  13146. // LM3S6916 Port/Pin Mapping Definitions
  13147. //
  13148. //*****************************************************************************
  13149. #ifdef PART_LM3S6916
  13150. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  13151. #define CCP0_PORT (GPIO_PORTB_BASE)
  13152. #define CCP0_PIN (GPIO_PIN_0)
  13153. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  13154. #define CCP1_PORT (GPIO_PORTA_BASE)
  13155. #define CCP1_PIN (GPIO_PIN_6)
  13156. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  13157. #define CCP2_PORT (GPIO_PORTB_BASE)
  13158. #define CCP2_PIN (GPIO_PIN_1)
  13159. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  13160. #define CCP3_PORT (GPIO_PORTC_BASE)
  13161. #define CCP3_PIN (GPIO_PIN_6)
  13162. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  13163. #define CCP4_PORT (GPIO_PORTA_BASE)
  13164. #define CCP4_PIN (GPIO_PIN_7)
  13165. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOB)
  13166. #define CCP5_PORT (GPIO_PORTB_BASE)
  13167. #define CCP5_PIN (GPIO_PIN_5)
  13168. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOE)
  13169. #define FAULT_PORT (GPIO_PORTE_BASE)
  13170. #define FAULT_PIN (GPIO_PIN_1)
  13171. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  13172. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  13173. #define I2C0SCL_PIN (GPIO_PIN_2)
  13174. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  13175. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  13176. #define I2C0SDA_PIN (GPIO_PIN_3)
  13177. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  13178. #define LED0_PORT (GPIO_PORTF_BASE)
  13179. #define LED0_PIN (GPIO_PIN_3)
  13180. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  13181. #define LED1_PORT (GPIO_PORTF_BASE)
  13182. #define LED1_PIN (GPIO_PIN_2)
  13183. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  13184. #define PWM0_PORT (GPIO_PORTD_BASE)
  13185. #define PWM0_PIN (GPIO_PIN_0)
  13186. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  13187. #define PWM1_PORT (GPIO_PORTD_BASE)
  13188. #define PWM1_PIN (GPIO_PIN_1)
  13189. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  13190. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  13191. #define SSI0CLK_PIN (GPIO_PIN_2)
  13192. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  13193. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  13194. #define SSI0FSS_PIN (GPIO_PIN_3)
  13195. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13196. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  13197. #define SSI0RX_PIN (GPIO_PIN_4)
  13198. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13199. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  13200. #define SSI0TX_PIN (GPIO_PIN_5)
  13201. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13202. #define SWCLK_PORT (GPIO_PORTC_BASE)
  13203. #define SWCLK_PIN (GPIO_PIN_0)
  13204. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13205. #define SWDIO_PORT (GPIO_PORTC_BASE)
  13206. #define SWDIO_PIN (GPIO_PIN_1)
  13207. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13208. #define SWO_PORT (GPIO_PORTC_BASE)
  13209. #define SWO_PIN (GPIO_PIN_3)
  13210. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13211. #define TCK_PORT (GPIO_PORTC_BASE)
  13212. #define TCK_PIN (GPIO_PIN_0)
  13213. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  13214. #define TDI_PORT (GPIO_PORTC_BASE)
  13215. #define TDI_PIN (GPIO_PIN_2)
  13216. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13217. #define TDO_PORT (GPIO_PORTC_BASE)
  13218. #define TDO_PIN (GPIO_PIN_3)
  13219. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13220. #define TMS_PORT (GPIO_PORTC_BASE)
  13221. #define TMS_PIN (GPIO_PIN_1)
  13222. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  13223. #define TRST_PORT (GPIO_PORTB_BASE)
  13224. #define TRST_PIN (GPIO_PIN_7)
  13225. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13226. #define U0RX_PORT (GPIO_PORTA_BASE)
  13227. #define U0RX_PIN (GPIO_PIN_0)
  13228. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13229. #define U0TX_PORT (GPIO_PORTA_BASE)
  13230. #define U0TX_PIN (GPIO_PIN_1)
  13231. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13232. #define U1RX_PORT (GPIO_PORTD_BASE)
  13233. #define U1RX_PIN (GPIO_PIN_2)
  13234. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13235. #define U1TX_PORT (GPIO_PORTD_BASE)
  13236. #define U1TX_PIN (GPIO_PIN_3)
  13237. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13238. #define U2RX_PORT (GPIO_PORTG_BASE)
  13239. #define U2RX_PIN (GPIO_PIN_0)
  13240. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13241. #define U2TX_PORT (GPIO_PORTG_BASE)
  13242. #define U2TX_PIN (GPIO_PIN_1)
  13243. #endif // PART_LM3S6916
  13244. //*****************************************************************************
  13245. //
  13246. // LM3S6918 Port/Pin Mapping Definitions
  13247. //
  13248. //*****************************************************************************
  13249. #ifdef PART_LM3S6918
  13250. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  13251. #define C0O_PORT (GPIO_PORTC_BASE)
  13252. #define C0O_PIN (GPIO_PIN_5)
  13253. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13254. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  13255. #define C0_MINUS_PIN (GPIO_PIN_4)
  13256. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13257. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  13258. #define C0_PLUS_PIN (GPIO_PIN_6)
  13259. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13260. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  13261. #define C1_MINUS_PIN (GPIO_PIN_5)
  13262. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13263. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  13264. #define C1_PLUS_PIN (GPIO_PIN_5)
  13265. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  13266. #define CCP0_PORT (GPIO_PORTB_BASE)
  13267. #define CCP0_PIN (GPIO_PIN_0)
  13268. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  13269. #define CCP1_PORT (GPIO_PORTA_BASE)
  13270. #define CCP1_PIN (GPIO_PIN_6)
  13271. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  13272. #define CCP2_PORT (GPIO_PORTB_BASE)
  13273. #define CCP2_PIN (GPIO_PIN_1)
  13274. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  13275. #define CCP3_PORT (GPIO_PORTC_BASE)
  13276. #define CCP3_PIN (GPIO_PIN_6)
  13277. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOC)
  13278. #define CCP4_PORT (GPIO_PORTC_BASE)
  13279. #define CCP4_PIN (GPIO_PIN_7)
  13280. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  13281. #define CCP5_PORT (GPIO_PORTC_BASE)
  13282. #define CCP5_PIN (GPIO_PIN_4)
  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_GPIOG)
  13290. #define I2C1SCL_PORT (GPIO_PORTG_BASE)
  13291. #define I2C1SCL_PIN (GPIO_PIN_0)
  13292. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  13293. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  13294. #define I2C1SDA_PIN (GPIO_PIN_7)
  13295. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  13296. #define LED0_PORT (GPIO_PORTF_BASE)
  13297. #define LED0_PIN (GPIO_PIN_3)
  13298. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  13299. #define LED1_PORT (GPIO_PORTF_BASE)
  13300. #define LED1_PIN (GPIO_PIN_2)
  13301. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  13302. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  13303. #define SSI0CLK_PIN (GPIO_PIN_2)
  13304. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  13305. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  13306. #define SSI0FSS_PIN (GPIO_PIN_3)
  13307. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13308. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  13309. #define SSI0RX_PIN (GPIO_PIN_4)
  13310. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13311. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  13312. #define SSI0TX_PIN (GPIO_PIN_5)
  13313. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  13314. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  13315. #define SSI1CLK_PIN (GPIO_PIN_0)
  13316. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  13317. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  13318. #define SSI1FSS_PIN (GPIO_PIN_1)
  13319. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  13320. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  13321. #define SSI1RX_PIN (GPIO_PIN_2)
  13322. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  13323. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  13324. #define SSI1TX_PIN (GPIO_PIN_3)
  13325. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13326. #define SWCLK_PORT (GPIO_PORTC_BASE)
  13327. #define SWCLK_PIN (GPIO_PIN_0)
  13328. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13329. #define SWDIO_PORT (GPIO_PORTC_BASE)
  13330. #define SWDIO_PIN (GPIO_PIN_1)
  13331. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13332. #define SWO_PORT (GPIO_PORTC_BASE)
  13333. #define SWO_PIN (GPIO_PIN_3)
  13334. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13335. #define TCK_PORT (GPIO_PORTC_BASE)
  13336. #define TCK_PIN (GPIO_PIN_0)
  13337. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  13338. #define TDI_PORT (GPIO_PORTC_BASE)
  13339. #define TDI_PIN (GPIO_PIN_2)
  13340. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13341. #define TDO_PORT (GPIO_PORTC_BASE)
  13342. #define TDO_PIN (GPIO_PIN_3)
  13343. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13344. #define TMS_PORT (GPIO_PORTC_BASE)
  13345. #define TMS_PIN (GPIO_PIN_1)
  13346. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  13347. #define TRST_PORT (GPIO_PORTB_BASE)
  13348. #define TRST_PIN (GPIO_PIN_7)
  13349. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13350. #define U0RX_PORT (GPIO_PORTA_BASE)
  13351. #define U0RX_PIN (GPIO_PIN_0)
  13352. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13353. #define U0TX_PORT (GPIO_PORTA_BASE)
  13354. #define U0TX_PIN (GPIO_PIN_1)
  13355. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13356. #define U1RX_PORT (GPIO_PORTD_BASE)
  13357. #define U1RX_PIN (GPIO_PIN_2)
  13358. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13359. #define U1TX_PORT (GPIO_PORTD_BASE)
  13360. #define U1TX_PIN (GPIO_PIN_3)
  13361. #endif // PART_LM3S6918
  13362. //*****************************************************************************
  13363. //
  13364. // LM3S6938 Port/Pin Mapping Definitions
  13365. //
  13366. //*****************************************************************************
  13367. #ifdef PART_LM3S6938
  13368. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOB)
  13369. #define C0O_PORT (GPIO_PORTB_BASE)
  13370. #define C0O_PIN (GPIO_PIN_6)
  13371. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13372. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  13373. #define C0_MINUS_PIN (GPIO_PIN_4)
  13374. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13375. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  13376. #define C0_PLUS_PIN (GPIO_PIN_6)
  13377. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  13378. #define C1O_PORT (GPIO_PORTC_BASE)
  13379. #define C1O_PIN (GPIO_PIN_5)
  13380. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13381. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  13382. #define C1_MINUS_PIN (GPIO_PIN_5)
  13383. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13384. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  13385. #define C1_PLUS_PIN (GPIO_PIN_5)
  13386. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13387. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  13388. #define C2_MINUS_PIN (GPIO_PIN_7)
  13389. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13390. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  13391. #define C2_PLUS_PIN (GPIO_PIN_6)
  13392. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  13393. #define CCP0_PORT (GPIO_PORTB_BASE)
  13394. #define CCP0_PIN (GPIO_PIN_0)
  13395. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  13396. #define CCP1_PORT (GPIO_PORTA_BASE)
  13397. #define CCP1_PIN (GPIO_PIN_6)
  13398. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  13399. #define CCP2_PORT (GPIO_PORTB_BASE)
  13400. #define CCP2_PIN (GPIO_PIN_1)
  13401. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  13402. #define CCP3_PORT (GPIO_PORTE_BASE)
  13403. #define CCP3_PIN (GPIO_PIN_0)
  13404. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  13405. #define CCP4_PORT (GPIO_PORTA_BASE)
  13406. #define CCP4_PIN (GPIO_PIN_7)
  13407. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  13408. #define CCP5_PORT (GPIO_PORTC_BASE)
  13409. #define CCP5_PIN (GPIO_PIN_4)
  13410. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  13411. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  13412. #define I2C0SCL_PIN (GPIO_PIN_2)
  13413. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  13414. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  13415. #define I2C0SDA_PIN (GPIO_PIN_3)
  13416. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  13417. #define LED0_PORT (GPIO_PORTF_BASE)
  13418. #define LED0_PIN (GPIO_PIN_3)
  13419. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  13420. #define LED1_PORT (GPIO_PORTF_BASE)
  13421. #define LED1_PIN (GPIO_PIN_2)
  13422. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  13423. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  13424. #define SSI0CLK_PIN (GPIO_PIN_2)
  13425. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  13426. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  13427. #define SSI0FSS_PIN (GPIO_PIN_3)
  13428. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13429. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  13430. #define SSI0RX_PIN (GPIO_PIN_4)
  13431. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13432. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  13433. #define SSI0TX_PIN (GPIO_PIN_5)
  13434. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13435. #define SWCLK_PORT (GPIO_PORTC_BASE)
  13436. #define SWCLK_PIN (GPIO_PIN_0)
  13437. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13438. #define SWDIO_PORT (GPIO_PORTC_BASE)
  13439. #define SWDIO_PIN (GPIO_PIN_1)
  13440. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13441. #define SWO_PORT (GPIO_PORTC_BASE)
  13442. #define SWO_PIN (GPIO_PIN_3)
  13443. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13444. #define TCK_PORT (GPIO_PORTC_BASE)
  13445. #define TCK_PIN (GPIO_PIN_0)
  13446. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  13447. #define TDI_PORT (GPIO_PORTC_BASE)
  13448. #define TDI_PIN (GPIO_PIN_2)
  13449. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13450. #define TDO_PORT (GPIO_PORTC_BASE)
  13451. #define TDO_PIN (GPIO_PIN_3)
  13452. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13453. #define TMS_PORT (GPIO_PORTC_BASE)
  13454. #define TMS_PIN (GPIO_PIN_1)
  13455. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  13456. #define TRST_PORT (GPIO_PORTB_BASE)
  13457. #define TRST_PIN (GPIO_PIN_7)
  13458. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13459. #define U0RX_PORT (GPIO_PORTA_BASE)
  13460. #define U0RX_PIN (GPIO_PIN_0)
  13461. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13462. #define U0TX_PORT (GPIO_PORTA_BASE)
  13463. #define U0TX_PIN (GPIO_PIN_1)
  13464. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13465. #define U1RX_PORT (GPIO_PORTD_BASE)
  13466. #define U1RX_PIN (GPIO_PIN_2)
  13467. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13468. #define U1TX_PORT (GPIO_PORTD_BASE)
  13469. #define U1TX_PIN (GPIO_PIN_3)
  13470. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13471. #define U2RX_PORT (GPIO_PORTG_BASE)
  13472. #define U2RX_PIN (GPIO_PIN_0)
  13473. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13474. #define U2TX_PORT (GPIO_PORTG_BASE)
  13475. #define U2TX_PIN (GPIO_PIN_1)
  13476. #endif // PART_LM3S6938
  13477. //*****************************************************************************
  13478. //
  13479. // LM3S6950 Port/Pin Mapping Definitions
  13480. //
  13481. //*****************************************************************************
  13482. #ifdef PART_LM3S6950
  13483. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOB)
  13484. #define C0O_PORT (GPIO_PORTB_BASE)
  13485. #define C0O_PIN (GPIO_PIN_6)
  13486. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13487. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  13488. #define C0_MINUS_PIN (GPIO_PIN_4)
  13489. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13490. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  13491. #define C0_PLUS_PIN (GPIO_PIN_6)
  13492. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  13493. #define C1O_PORT (GPIO_PORTC_BASE)
  13494. #define C1O_PIN (GPIO_PIN_5)
  13495. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13496. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  13497. #define C1_MINUS_PIN (GPIO_PIN_5)
  13498. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13499. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  13500. #define C1_PLUS_PIN (GPIO_PIN_5)
  13501. #define C2O_PERIPH (SYSCTL_PERIPH_GPIOC)
  13502. #define C2O_PORT (GPIO_PORTC_BASE)
  13503. #define C2O_PIN (GPIO_PIN_6)
  13504. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13505. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  13506. #define C2_MINUS_PIN (GPIO_PIN_7)
  13507. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13508. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  13509. #define C2_PLUS_PIN (GPIO_PIN_6)
  13510. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  13511. #define CCP0_PORT (GPIO_PORTD_BASE)
  13512. #define CCP0_PIN (GPIO_PIN_4)
  13513. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  13514. #define CCP1_PORT (GPIO_PORTA_BASE)
  13515. #define CCP1_PIN (GPIO_PIN_6)
  13516. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOD)
  13517. #define CCP2_PORT (GPIO_PORTD_BASE)
  13518. #define CCP2_PIN (GPIO_PIN_5)
  13519. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  13520. #define CCP3_PORT (GPIO_PORTE_BASE)
  13521. #define CCP3_PIN (GPIO_PIN_4)
  13522. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  13523. #define CCP4_PORT (GPIO_PORTA_BASE)
  13524. #define CCP4_PIN (GPIO_PIN_7)
  13525. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  13526. #define CCP5_PORT (GPIO_PORTC_BASE)
  13527. #define CCP5_PIN (GPIO_PIN_4)
  13528. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  13529. #define FAULT_PORT (GPIO_PORTD_BASE)
  13530. #define FAULT_PIN (GPIO_PIN_6)
  13531. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  13532. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  13533. #define I2C0SCL_PIN (GPIO_PIN_2)
  13534. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  13535. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  13536. #define I2C0SDA_PIN (GPIO_PIN_3)
  13537. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  13538. #define IDX0_PORT (GPIO_PORTD_BASE)
  13539. #define IDX0_PIN (GPIO_PIN_7)
  13540. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  13541. #define LED0_PORT (GPIO_PORTF_BASE)
  13542. #define LED0_PIN (GPIO_PIN_3)
  13543. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  13544. #define LED1_PORT (GPIO_PORTF_BASE)
  13545. #define LED1_PIN (GPIO_PIN_2)
  13546. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOD)
  13547. #define PHA0_PORT (GPIO_PORTD_BASE)
  13548. #define PHA0_PIN (GPIO_PIN_1)
  13549. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOF)
  13550. #define PHB0_PORT (GPIO_PORTF_BASE)
  13551. #define PHB0_PIN (GPIO_PIN_0)
  13552. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  13553. #define PWM0_PORT (GPIO_PORTD_BASE)
  13554. #define PWM0_PIN (GPIO_PIN_0)
  13555. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  13556. #define PWM1_PORT (GPIO_PORTF_BASE)
  13557. #define PWM1_PIN (GPIO_PIN_1)
  13558. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  13559. #define PWM2_PORT (GPIO_PORTB_BASE)
  13560. #define PWM2_PIN (GPIO_PIN_0)
  13561. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  13562. #define PWM3_PORT (GPIO_PORTB_BASE)
  13563. #define PWM3_PIN (GPIO_PIN_1)
  13564. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  13565. #define PWM4_PORT (GPIO_PORTE_BASE)
  13566. #define PWM4_PIN (GPIO_PIN_6)
  13567. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  13568. #define PWM5_PORT (GPIO_PORTE_BASE)
  13569. #define PWM5_PIN (GPIO_PIN_7)
  13570. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  13571. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  13572. #define SSI0CLK_PIN (GPIO_PIN_2)
  13573. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  13574. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  13575. #define SSI0FSS_PIN (GPIO_PIN_3)
  13576. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13577. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  13578. #define SSI0RX_PIN (GPIO_PIN_4)
  13579. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13580. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  13581. #define SSI0TX_PIN (GPIO_PIN_5)
  13582. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  13583. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  13584. #define SSI1CLK_PIN (GPIO_PIN_0)
  13585. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  13586. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  13587. #define SSI1FSS_PIN (GPIO_PIN_1)
  13588. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  13589. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  13590. #define SSI1RX_PIN (GPIO_PIN_2)
  13591. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  13592. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  13593. #define SSI1TX_PIN (GPIO_PIN_3)
  13594. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13595. #define SWCLK_PORT (GPIO_PORTC_BASE)
  13596. #define SWCLK_PIN (GPIO_PIN_0)
  13597. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13598. #define SWDIO_PORT (GPIO_PORTC_BASE)
  13599. #define SWDIO_PIN (GPIO_PIN_1)
  13600. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13601. #define SWO_PORT (GPIO_PORTC_BASE)
  13602. #define SWO_PIN (GPIO_PIN_3)
  13603. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13604. #define TCK_PORT (GPIO_PORTC_BASE)
  13605. #define TCK_PIN (GPIO_PIN_0)
  13606. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  13607. #define TDI_PORT (GPIO_PORTC_BASE)
  13608. #define TDI_PIN (GPIO_PIN_2)
  13609. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13610. #define TDO_PORT (GPIO_PORTC_BASE)
  13611. #define TDO_PIN (GPIO_PIN_3)
  13612. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13613. #define TMS_PORT (GPIO_PORTC_BASE)
  13614. #define TMS_PIN (GPIO_PIN_1)
  13615. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  13616. #define TRST_PORT (GPIO_PORTB_BASE)
  13617. #define TRST_PIN (GPIO_PIN_7)
  13618. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13619. #define U0RX_PORT (GPIO_PORTA_BASE)
  13620. #define U0RX_PIN (GPIO_PIN_0)
  13621. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13622. #define U0TX_PORT (GPIO_PORTA_BASE)
  13623. #define U0TX_PIN (GPIO_PIN_1)
  13624. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13625. #define U1RX_PORT (GPIO_PORTD_BASE)
  13626. #define U1RX_PIN (GPIO_PIN_2)
  13627. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13628. #define U1TX_PORT (GPIO_PORTD_BASE)
  13629. #define U1TX_PIN (GPIO_PIN_3)
  13630. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13631. #define U2RX_PORT (GPIO_PORTG_BASE)
  13632. #define U2RX_PIN (GPIO_PIN_0)
  13633. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13634. #define U2TX_PORT (GPIO_PORTG_BASE)
  13635. #define U2TX_PIN (GPIO_PIN_1)
  13636. #endif // PART_LM3S6950
  13637. //*****************************************************************************
  13638. //
  13639. // LM3S6952 Port/Pin Mapping Definitions
  13640. //
  13641. //*****************************************************************************
  13642. #ifdef PART_LM3S6952
  13643. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOB)
  13644. #define C0O_PORT (GPIO_PORTB_BASE)
  13645. #define C0O_PIN (GPIO_PIN_6)
  13646. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13647. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  13648. #define C0_MINUS_PIN (GPIO_PIN_4)
  13649. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13650. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  13651. #define C0_PLUS_PIN (GPIO_PIN_6)
  13652. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  13653. #define C1O_PORT (GPIO_PORTC_BASE)
  13654. #define C1O_PIN (GPIO_PIN_5)
  13655. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13656. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  13657. #define C1_MINUS_PIN (GPIO_PIN_5)
  13658. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13659. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  13660. #define C1_PLUS_PIN (GPIO_PIN_5)
  13661. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13662. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  13663. #define C2_MINUS_PIN (GPIO_PIN_7)
  13664. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13665. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  13666. #define C2_PLUS_PIN (GPIO_PIN_6)
  13667. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  13668. #define CCP0_PORT (GPIO_PORTD_BASE)
  13669. #define CCP0_PIN (GPIO_PIN_4)
  13670. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  13671. #define CCP1_PORT (GPIO_PORTA_BASE)
  13672. #define CCP1_PIN (GPIO_PIN_6)
  13673. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOD)
  13674. #define CCP2_PORT (GPIO_PORTD_BASE)
  13675. #define CCP2_PIN (GPIO_PIN_5)
  13676. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  13677. #define CCP3_PORT (GPIO_PORTE_BASE)
  13678. #define CCP3_PIN (GPIO_PIN_0)
  13679. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  13680. #define FAULT_PORT (GPIO_PORTD_BASE)
  13681. #define FAULT_PIN (GPIO_PIN_6)
  13682. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  13683. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  13684. #define I2C0SCL_PIN (GPIO_PIN_2)
  13685. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  13686. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  13687. #define I2C0SDA_PIN (GPIO_PIN_3)
  13688. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  13689. #define IDX0_PORT (GPIO_PORTD_BASE)
  13690. #define IDX0_PIN (GPIO_PIN_7)
  13691. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  13692. #define LED0_PORT (GPIO_PORTF_BASE)
  13693. #define LED0_PIN (GPIO_PIN_3)
  13694. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  13695. #define LED1_PORT (GPIO_PORTF_BASE)
  13696. #define LED1_PIN (GPIO_PIN_2)
  13697. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  13698. #define PHA0_PORT (GPIO_PORTC_BASE)
  13699. #define PHA0_PIN (GPIO_PIN_4)
  13700. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOF)
  13701. #define PHB0_PORT (GPIO_PORTF_BASE)
  13702. #define PHB0_PIN (GPIO_PIN_0)
  13703. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOD)
  13704. #define PWM0_PORT (GPIO_PORTD_BASE)
  13705. #define PWM0_PIN (GPIO_PIN_0)
  13706. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  13707. #define PWM1_PORT (GPIO_PORTD_BASE)
  13708. #define PWM1_PIN (GPIO_PIN_1)
  13709. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  13710. #define PWM2_PORT (GPIO_PORTB_BASE)
  13711. #define PWM2_PIN (GPIO_PIN_0)
  13712. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  13713. #define PWM3_PORT (GPIO_PORTB_BASE)
  13714. #define PWM3_PIN (GPIO_PIN_1)
  13715. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  13716. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  13717. #define SSI0CLK_PIN (GPIO_PIN_2)
  13718. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  13719. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  13720. #define SSI0FSS_PIN (GPIO_PIN_3)
  13721. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13722. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  13723. #define SSI0RX_PIN (GPIO_PIN_4)
  13724. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13725. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  13726. #define SSI0TX_PIN (GPIO_PIN_5)
  13727. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13728. #define SWCLK_PORT (GPIO_PORTC_BASE)
  13729. #define SWCLK_PIN (GPIO_PIN_0)
  13730. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13731. #define SWDIO_PORT (GPIO_PORTC_BASE)
  13732. #define SWDIO_PIN (GPIO_PIN_1)
  13733. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13734. #define SWO_PORT (GPIO_PORTC_BASE)
  13735. #define SWO_PIN (GPIO_PIN_3)
  13736. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13737. #define TCK_PORT (GPIO_PORTC_BASE)
  13738. #define TCK_PIN (GPIO_PIN_0)
  13739. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  13740. #define TDI_PORT (GPIO_PORTC_BASE)
  13741. #define TDI_PIN (GPIO_PIN_2)
  13742. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13743. #define TDO_PORT (GPIO_PORTC_BASE)
  13744. #define TDO_PIN (GPIO_PIN_3)
  13745. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13746. #define TMS_PORT (GPIO_PORTC_BASE)
  13747. #define TMS_PIN (GPIO_PIN_1)
  13748. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  13749. #define TRST_PORT (GPIO_PORTB_BASE)
  13750. #define TRST_PIN (GPIO_PIN_7)
  13751. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13752. #define U0RX_PORT (GPIO_PORTA_BASE)
  13753. #define U0RX_PIN (GPIO_PIN_0)
  13754. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13755. #define U0TX_PORT (GPIO_PORTA_BASE)
  13756. #define U0TX_PIN (GPIO_PIN_1)
  13757. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13758. #define U1RX_PORT (GPIO_PORTD_BASE)
  13759. #define U1RX_PIN (GPIO_PIN_2)
  13760. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13761. #define U1TX_PORT (GPIO_PORTD_BASE)
  13762. #define U1TX_PIN (GPIO_PIN_3)
  13763. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13764. #define U2RX_PORT (GPIO_PORTG_BASE)
  13765. #define U2RX_PIN (GPIO_PIN_0)
  13766. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13767. #define U2TX_PORT (GPIO_PORTG_BASE)
  13768. #define U2TX_PIN (GPIO_PIN_1)
  13769. #endif // PART_LM3S6952
  13770. //*****************************************************************************
  13771. //
  13772. // LM3S6965 Port/Pin Mapping Definitions
  13773. //
  13774. //*****************************************************************************
  13775. #ifdef PART_LM3S6965
  13776. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  13777. #define C0O_PORT (GPIO_PORTC_BASE)
  13778. #define C0O_PIN (GPIO_PIN_5)
  13779. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13780. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  13781. #define C0_MINUS_PIN (GPIO_PIN_4)
  13782. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13783. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  13784. #define C0_PLUS_PIN (GPIO_PIN_6)
  13785. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  13786. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  13787. #define C1_MINUS_PIN (GPIO_PIN_5)
  13788. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13789. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  13790. #define C1_PLUS_PIN (GPIO_PIN_5)
  13791. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  13792. #define CCP0_PORT (GPIO_PORTD_BASE)
  13793. #define CCP0_PIN (GPIO_PIN_4)
  13794. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOD)
  13795. #define CCP1_PORT (GPIO_PORTD_BASE)
  13796. #define CCP1_PIN (GPIO_PIN_7)
  13797. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOD)
  13798. #define CCP2_PORT (GPIO_PORTD_BASE)
  13799. #define CCP2_PIN (GPIO_PIN_5)
  13800. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  13801. #define CCP3_PORT (GPIO_PORTC_BASE)
  13802. #define CCP3_PIN (GPIO_PIN_6)
  13803. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  13804. #define FAULT_PORT (GPIO_PORTD_BASE)
  13805. #define FAULT_PIN (GPIO_PIN_6)
  13806. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  13807. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  13808. #define I2C0SCL_PIN (GPIO_PIN_2)
  13809. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  13810. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  13811. #define I2C0SDA_PIN (GPIO_PIN_3)
  13812. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  13813. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  13814. #define I2C1SCL_PIN (GPIO_PIN_6)
  13815. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  13816. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  13817. #define I2C1SDA_PIN (GPIO_PIN_7)
  13818. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  13819. #define IDX0_PORT (GPIO_PORTD_BASE)
  13820. #define IDX0_PIN (GPIO_PIN_0)
  13821. #define IDX1_PERIPH (SYSCTL_PERIPH_GPIOF)
  13822. #define IDX1_PORT (GPIO_PORTF_BASE)
  13823. #define IDX1_PIN (GPIO_PIN_1)
  13824. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  13825. #define LED0_PORT (GPIO_PORTF_BASE)
  13826. #define LED0_PIN (GPIO_PIN_3)
  13827. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  13828. #define LED1_PORT (GPIO_PORTF_BASE)
  13829. #define LED1_PIN (GPIO_PIN_2)
  13830. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  13831. #define PHA0_PORT (GPIO_PORTC_BASE)
  13832. #define PHA0_PIN (GPIO_PIN_4)
  13833. #define PHA1_PERIPH (SYSCTL_PERIPH_GPIOE)
  13834. #define PHA1_PORT (GPIO_PORTE_BASE)
  13835. #define PHA1_PIN (GPIO_PIN_3)
  13836. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOC)
  13837. #define PHB0_PORT (GPIO_PORTC_BASE)
  13838. #define PHB0_PIN (GPIO_PIN_7)
  13839. #define PHB1_PERIPH (SYSCTL_PERIPH_GPIOE)
  13840. #define PHB1_PORT (GPIO_PORTE_BASE)
  13841. #define PHB1_PIN (GPIO_PIN_2)
  13842. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  13843. #define PWM0_PORT (GPIO_PORTF_BASE)
  13844. #define PWM0_PIN (GPIO_PIN_0)
  13845. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOD)
  13846. #define PWM1_PORT (GPIO_PORTD_BASE)
  13847. #define PWM1_PIN (GPIO_PIN_1)
  13848. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  13849. #define PWM2_PORT (GPIO_PORTB_BASE)
  13850. #define PWM2_PIN (GPIO_PIN_0)
  13851. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  13852. #define PWM3_PORT (GPIO_PORTB_BASE)
  13853. #define PWM3_PIN (GPIO_PIN_1)
  13854. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  13855. #define PWM4_PORT (GPIO_PORTE_BASE)
  13856. #define PWM4_PIN (GPIO_PIN_0)
  13857. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  13858. #define PWM5_PORT (GPIO_PORTE_BASE)
  13859. #define PWM5_PIN (GPIO_PIN_1)
  13860. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  13861. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  13862. #define SSI0CLK_PIN (GPIO_PIN_2)
  13863. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  13864. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  13865. #define SSI0FSS_PIN (GPIO_PIN_3)
  13866. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13867. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  13868. #define SSI0RX_PIN (GPIO_PIN_4)
  13869. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13870. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  13871. #define SSI0TX_PIN (GPIO_PIN_5)
  13872. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13873. #define SWCLK_PORT (GPIO_PORTC_BASE)
  13874. #define SWCLK_PIN (GPIO_PIN_0)
  13875. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13876. #define SWDIO_PORT (GPIO_PORTC_BASE)
  13877. #define SWDIO_PIN (GPIO_PIN_1)
  13878. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13879. #define SWO_PORT (GPIO_PORTC_BASE)
  13880. #define SWO_PIN (GPIO_PIN_3)
  13881. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13882. #define TCK_PORT (GPIO_PORTC_BASE)
  13883. #define TCK_PIN (GPIO_PIN_0)
  13884. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  13885. #define TDI_PORT (GPIO_PORTC_BASE)
  13886. #define TDI_PIN (GPIO_PIN_2)
  13887. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13888. #define TDO_PORT (GPIO_PORTC_BASE)
  13889. #define TDO_PIN (GPIO_PIN_3)
  13890. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  13891. #define TMS_PORT (GPIO_PORTC_BASE)
  13892. #define TMS_PIN (GPIO_PIN_1)
  13893. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  13894. #define TRST_PORT (GPIO_PORTB_BASE)
  13895. #define TRST_PIN (GPIO_PIN_7)
  13896. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13897. #define U0RX_PORT (GPIO_PORTA_BASE)
  13898. #define U0RX_PIN (GPIO_PIN_0)
  13899. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13900. #define U0TX_PORT (GPIO_PORTA_BASE)
  13901. #define U0TX_PIN (GPIO_PIN_1)
  13902. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13903. #define U1RX_PORT (GPIO_PORTD_BASE)
  13904. #define U1RX_PIN (GPIO_PIN_2)
  13905. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13906. #define U1TX_PORT (GPIO_PORTD_BASE)
  13907. #define U1TX_PIN (GPIO_PIN_3)
  13908. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13909. #define U2RX_PORT (GPIO_PORTG_BASE)
  13910. #define U2RX_PIN (GPIO_PIN_0)
  13911. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  13912. #define U2TX_PORT (GPIO_PORTG_BASE)
  13913. #define U2TX_PIN (GPIO_PIN_1)
  13914. #endif // PART_LM3S6965
  13915. //*****************************************************************************
  13916. //
  13917. // LM3S8530 Port/Pin Mapping Definitions
  13918. //
  13919. //*****************************************************************************
  13920. #ifdef PART_LM3S8530
  13921. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13922. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  13923. #define CAN0RX_PIN (GPIO_PIN_0)
  13924. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  13925. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  13926. #define CAN0TX_PIN (GPIO_PIN_1)
  13927. #define CAN1RX_PERIPH (SYSCTL_PERIPH_GPIOF)
  13928. #define CAN1RX_PORT (GPIO_PORTF_BASE)
  13929. #define CAN1RX_PIN (GPIO_PIN_0)
  13930. #define CAN1TX_PERIPH (SYSCTL_PERIPH_GPIOF)
  13931. #define CAN1TX_PORT (GPIO_PORTF_BASE)
  13932. #define CAN1TX_PIN (GPIO_PIN_1)
  13933. #define CAN2RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  13934. #define CAN2RX_PORT (GPIO_PORTE_BASE)
  13935. #define CAN2RX_PIN (GPIO_PIN_4)
  13936. #define CAN2TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  13937. #define CAN2TX_PORT (GPIO_PORTE_BASE)
  13938. #define CAN2TX_PIN (GPIO_PIN_5)
  13939. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  13940. #define CCP0_PORT (GPIO_PORTB_BASE)
  13941. #define CCP0_PIN (GPIO_PIN_0)
  13942. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  13943. #define CCP1_PORT (GPIO_PORTA_BASE)
  13944. #define CCP1_PIN (GPIO_PIN_6)
  13945. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  13946. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  13947. #define I2C0SCL_PIN (GPIO_PIN_2)
  13948. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  13949. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  13950. #define I2C0SDA_PIN (GPIO_PIN_3)
  13951. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  13952. #define LED0_PORT (GPIO_PORTF_BASE)
  13953. #define LED0_PIN (GPIO_PIN_3)
  13954. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  13955. #define LED1_PORT (GPIO_PORTF_BASE)
  13956. #define LED1_PIN (GPIO_PIN_2)
  13957. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  13958. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  13959. #define SSI0CLK_PIN (GPIO_PIN_2)
  13960. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  13961. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  13962. #define SSI0FSS_PIN (GPIO_PIN_3)
  13963. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13964. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  13965. #define SSI0RX_PIN (GPIO_PIN_4)
  13966. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  13967. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  13968. #define SSI0TX_PIN (GPIO_PIN_5)
  13969. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  13970. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  13971. #define SSI1CLK_PIN (GPIO_PIN_0)
  13972. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  13973. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  13974. #define SSI1FSS_PIN (GPIO_PIN_1)
  13975. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  13976. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  13977. #define SSI1RX_PIN (GPIO_PIN_2)
  13978. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  13979. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  13980. #define SSI1TX_PIN (GPIO_PIN_3)
  13981. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13982. #define SWCLK_PORT (GPIO_PORTC_BASE)
  13983. #define SWCLK_PIN (GPIO_PIN_0)
  13984. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13985. #define SWDIO_PORT (GPIO_PORTC_BASE)
  13986. #define SWDIO_PIN (GPIO_PIN_1)
  13987. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13988. #define SWO_PORT (GPIO_PORTC_BASE)
  13989. #define SWO_PIN (GPIO_PIN_3)
  13990. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  13991. #define TCK_PORT (GPIO_PORTC_BASE)
  13992. #define TCK_PIN (GPIO_PIN_0)
  13993. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  13994. #define TDI_PORT (GPIO_PORTC_BASE)
  13995. #define TDI_PIN (GPIO_PIN_2)
  13996. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  13997. #define TDO_PORT (GPIO_PORTC_BASE)
  13998. #define TDO_PIN (GPIO_PIN_3)
  13999. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14000. #define TMS_PORT (GPIO_PORTC_BASE)
  14001. #define TMS_PIN (GPIO_PIN_1)
  14002. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  14003. #define TRST_PORT (GPIO_PORTB_BASE)
  14004. #define TRST_PIN (GPIO_PIN_7)
  14005. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14006. #define U0RX_PORT (GPIO_PORTA_BASE)
  14007. #define U0RX_PIN (GPIO_PIN_0)
  14008. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14009. #define U0TX_PORT (GPIO_PORTA_BASE)
  14010. #define U0TX_PIN (GPIO_PIN_1)
  14011. #endif // PART_LM3S8530
  14012. //*****************************************************************************
  14013. //
  14014. // LM3S8538 Port/Pin Mapping Definitions
  14015. //
  14016. //*****************************************************************************
  14017. #ifdef PART_LM3S8538
  14018. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOB)
  14019. #define C0O_PORT (GPIO_PORTB_BASE)
  14020. #define C0O_PIN (GPIO_PIN_6)
  14021. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14022. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  14023. #define C0_MINUS_PIN (GPIO_PIN_4)
  14024. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14025. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  14026. #define C0_PLUS_PIN (GPIO_PIN_6)
  14027. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  14028. #define C1O_PORT (GPIO_PORTC_BASE)
  14029. #define C1O_PIN (GPIO_PIN_5)
  14030. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14031. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  14032. #define C1_MINUS_PIN (GPIO_PIN_5)
  14033. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14034. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  14035. #define C1_PLUS_PIN (GPIO_PIN_5)
  14036. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14037. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  14038. #define C2_MINUS_PIN (GPIO_PIN_7)
  14039. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14040. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  14041. #define C2_PLUS_PIN (GPIO_PIN_6)
  14042. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14043. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  14044. #define CAN0RX_PIN (GPIO_PIN_0)
  14045. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14046. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  14047. #define CAN0TX_PIN (GPIO_PIN_1)
  14048. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  14049. #define CCP0_PORT (GPIO_PORTB_BASE)
  14050. #define CCP0_PIN (GPIO_PIN_0)
  14051. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  14052. #define CCP1_PORT (GPIO_PORTA_BASE)
  14053. #define CCP1_PIN (GPIO_PIN_6)
  14054. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  14055. #define CCP2_PORT (GPIO_PORTB_BASE)
  14056. #define CCP2_PIN (GPIO_PIN_1)
  14057. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  14058. #define CCP3_PORT (GPIO_PORTE_BASE)
  14059. #define CCP3_PIN (GPIO_PIN_0)
  14060. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  14061. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  14062. #define I2C0SCL_PIN (GPIO_PIN_2)
  14063. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  14064. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  14065. #define I2C0SDA_PIN (GPIO_PIN_3)
  14066. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  14067. #define LED0_PORT (GPIO_PORTF_BASE)
  14068. #define LED0_PIN (GPIO_PIN_3)
  14069. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  14070. #define LED1_PORT (GPIO_PORTF_BASE)
  14071. #define LED1_PIN (GPIO_PIN_2)
  14072. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  14073. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  14074. #define SSI0CLK_PIN (GPIO_PIN_2)
  14075. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  14076. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  14077. #define SSI0FSS_PIN (GPIO_PIN_3)
  14078. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14079. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  14080. #define SSI0RX_PIN (GPIO_PIN_4)
  14081. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14082. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  14083. #define SSI0TX_PIN (GPIO_PIN_5)
  14084. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14085. #define SWCLK_PORT (GPIO_PORTC_BASE)
  14086. #define SWCLK_PIN (GPIO_PIN_0)
  14087. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14088. #define SWDIO_PORT (GPIO_PORTC_BASE)
  14089. #define SWDIO_PIN (GPIO_PIN_1)
  14090. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14091. #define SWO_PORT (GPIO_PORTC_BASE)
  14092. #define SWO_PIN (GPIO_PIN_3)
  14093. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14094. #define TCK_PORT (GPIO_PORTC_BASE)
  14095. #define TCK_PIN (GPIO_PIN_0)
  14096. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  14097. #define TDI_PORT (GPIO_PORTC_BASE)
  14098. #define TDI_PIN (GPIO_PIN_2)
  14099. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14100. #define TDO_PORT (GPIO_PORTC_BASE)
  14101. #define TDO_PIN (GPIO_PIN_3)
  14102. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14103. #define TMS_PORT (GPIO_PORTC_BASE)
  14104. #define TMS_PIN (GPIO_PIN_1)
  14105. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  14106. #define TRST_PORT (GPIO_PORTB_BASE)
  14107. #define TRST_PIN (GPIO_PIN_7)
  14108. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14109. #define U0RX_PORT (GPIO_PORTA_BASE)
  14110. #define U0RX_PIN (GPIO_PIN_0)
  14111. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14112. #define U0TX_PORT (GPIO_PORTA_BASE)
  14113. #define U0TX_PIN (GPIO_PIN_1)
  14114. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14115. #define U1RX_PORT (GPIO_PORTD_BASE)
  14116. #define U1RX_PIN (GPIO_PIN_2)
  14117. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14118. #define U1TX_PORT (GPIO_PORTD_BASE)
  14119. #define U1TX_PIN (GPIO_PIN_3)
  14120. #endif // PART_LM3S8538
  14121. //*****************************************************************************
  14122. //
  14123. // LM3S8630 Port/Pin Mapping Definitions
  14124. //
  14125. //*****************************************************************************
  14126. #ifdef PART_LM3S8630
  14127. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14128. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  14129. #define CAN0RX_PIN (GPIO_PIN_0)
  14130. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14131. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  14132. #define CAN0TX_PIN (GPIO_PIN_1)
  14133. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  14134. #define CCP0_PORT (GPIO_PORTB_BASE)
  14135. #define CCP0_PIN (GPIO_PIN_0)
  14136. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  14137. #define CCP1_PORT (GPIO_PORTA_BASE)
  14138. #define CCP1_PIN (GPIO_PIN_6)
  14139. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  14140. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  14141. #define I2C0SCL_PIN (GPIO_PIN_2)
  14142. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  14143. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  14144. #define I2C0SDA_PIN (GPIO_PIN_3)
  14145. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  14146. #define LED0_PORT (GPIO_PORTF_BASE)
  14147. #define LED0_PIN (GPIO_PIN_3)
  14148. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  14149. #define LED1_PORT (GPIO_PORTF_BASE)
  14150. #define LED1_PIN (GPIO_PIN_2)
  14151. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  14152. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  14153. #define SSI0CLK_PIN (GPIO_PIN_2)
  14154. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  14155. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  14156. #define SSI0FSS_PIN (GPIO_PIN_3)
  14157. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14158. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  14159. #define SSI0RX_PIN (GPIO_PIN_4)
  14160. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14161. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  14162. #define SSI0TX_PIN (GPIO_PIN_5)
  14163. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14164. #define SWCLK_PORT (GPIO_PORTC_BASE)
  14165. #define SWCLK_PIN (GPIO_PIN_0)
  14166. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14167. #define SWDIO_PORT (GPIO_PORTC_BASE)
  14168. #define SWDIO_PIN (GPIO_PIN_1)
  14169. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14170. #define SWO_PORT (GPIO_PORTC_BASE)
  14171. #define SWO_PIN (GPIO_PIN_3)
  14172. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14173. #define TCK_PORT (GPIO_PORTC_BASE)
  14174. #define TCK_PIN (GPIO_PIN_0)
  14175. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  14176. #define TDI_PORT (GPIO_PORTC_BASE)
  14177. #define TDI_PIN (GPIO_PIN_2)
  14178. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14179. #define TDO_PORT (GPIO_PORTC_BASE)
  14180. #define TDO_PIN (GPIO_PIN_3)
  14181. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14182. #define TMS_PORT (GPIO_PORTC_BASE)
  14183. #define TMS_PIN (GPIO_PIN_1)
  14184. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  14185. #define TRST_PORT (GPIO_PORTB_BASE)
  14186. #define TRST_PIN (GPIO_PIN_7)
  14187. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14188. #define U0RX_PORT (GPIO_PORTA_BASE)
  14189. #define U0RX_PIN (GPIO_PIN_0)
  14190. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14191. #define U0TX_PORT (GPIO_PORTA_BASE)
  14192. #define U0TX_PIN (GPIO_PIN_1)
  14193. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14194. #define U1RX_PORT (GPIO_PORTD_BASE)
  14195. #define U1RX_PIN (GPIO_PIN_2)
  14196. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14197. #define U1TX_PORT (GPIO_PORTD_BASE)
  14198. #define U1TX_PIN (GPIO_PIN_3)
  14199. #endif // PART_LM3S8630
  14200. //*****************************************************************************
  14201. //
  14202. // LM3S8730 Port/Pin Mapping Definitions
  14203. //
  14204. //*****************************************************************************
  14205. #ifdef PART_LM3S8730
  14206. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14207. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  14208. #define CAN0RX_PIN (GPIO_PIN_0)
  14209. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14210. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  14211. #define CAN0TX_PIN (GPIO_PIN_1)
  14212. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  14213. #define CCP0_PORT (GPIO_PORTB_BASE)
  14214. #define CCP0_PIN (GPIO_PIN_0)
  14215. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  14216. #define CCP1_PORT (GPIO_PORTA_BASE)
  14217. #define CCP1_PIN (GPIO_PIN_6)
  14218. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  14219. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  14220. #define I2C0SCL_PIN (GPIO_PIN_2)
  14221. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  14222. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  14223. #define I2C0SDA_PIN (GPIO_PIN_3)
  14224. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  14225. #define LED0_PORT (GPIO_PORTF_BASE)
  14226. #define LED0_PIN (GPIO_PIN_3)
  14227. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  14228. #define LED1_PORT (GPIO_PORTF_BASE)
  14229. #define LED1_PIN (GPIO_PIN_2)
  14230. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  14231. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  14232. #define SSI0CLK_PIN (GPIO_PIN_2)
  14233. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  14234. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  14235. #define SSI0FSS_PIN (GPIO_PIN_3)
  14236. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14237. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  14238. #define SSI0RX_PIN (GPIO_PIN_4)
  14239. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14240. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  14241. #define SSI0TX_PIN (GPIO_PIN_5)
  14242. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14243. #define SWCLK_PORT (GPIO_PORTC_BASE)
  14244. #define SWCLK_PIN (GPIO_PIN_0)
  14245. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14246. #define SWDIO_PORT (GPIO_PORTC_BASE)
  14247. #define SWDIO_PIN (GPIO_PIN_1)
  14248. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14249. #define SWO_PORT (GPIO_PORTC_BASE)
  14250. #define SWO_PIN (GPIO_PIN_3)
  14251. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14252. #define TCK_PORT (GPIO_PORTC_BASE)
  14253. #define TCK_PIN (GPIO_PIN_0)
  14254. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  14255. #define TDI_PORT (GPIO_PORTC_BASE)
  14256. #define TDI_PIN (GPIO_PIN_2)
  14257. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14258. #define TDO_PORT (GPIO_PORTC_BASE)
  14259. #define TDO_PIN (GPIO_PIN_3)
  14260. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14261. #define TMS_PORT (GPIO_PORTC_BASE)
  14262. #define TMS_PIN (GPIO_PIN_1)
  14263. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  14264. #define TRST_PORT (GPIO_PORTB_BASE)
  14265. #define TRST_PIN (GPIO_PIN_7)
  14266. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14267. #define U0RX_PORT (GPIO_PORTA_BASE)
  14268. #define U0RX_PIN (GPIO_PIN_0)
  14269. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14270. #define U0TX_PORT (GPIO_PORTA_BASE)
  14271. #define U0TX_PIN (GPIO_PIN_1)
  14272. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14273. #define U1RX_PORT (GPIO_PORTD_BASE)
  14274. #define U1RX_PIN (GPIO_PIN_2)
  14275. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14276. #define U1TX_PORT (GPIO_PORTD_BASE)
  14277. #define U1TX_PIN (GPIO_PIN_3)
  14278. #endif // PART_LM3S8730
  14279. //*****************************************************************************
  14280. //
  14281. // LM3S8733 Port/Pin Mapping Definitions
  14282. //
  14283. //*****************************************************************************
  14284. #ifdef PART_LM3S8733
  14285. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  14286. #define C0O_PORT (GPIO_PORTD_BASE)
  14287. #define C0O_PIN (GPIO_PIN_7)
  14288. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14289. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  14290. #define C0_MINUS_PIN (GPIO_PIN_4)
  14291. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14292. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  14293. #define C0_PLUS_PIN (GPIO_PIN_6)
  14294. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  14295. #define C1O_PORT (GPIO_PORTC_BASE)
  14296. #define C1O_PIN (GPIO_PIN_5)
  14297. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14298. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  14299. #define C1_MINUS_PIN (GPIO_PIN_5)
  14300. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14301. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  14302. #define C1_PLUS_PIN (GPIO_PIN_5)
  14303. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14304. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  14305. #define C2_MINUS_PIN (GPIO_PIN_7)
  14306. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14307. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  14308. #define C2_PLUS_PIN (GPIO_PIN_6)
  14309. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14310. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  14311. #define CAN0RX_PIN (GPIO_PIN_0)
  14312. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14313. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  14314. #define CAN0TX_PIN (GPIO_PIN_1)
  14315. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  14316. #define CCP0_PORT (GPIO_PORTB_BASE)
  14317. #define CCP0_PIN (GPIO_PIN_0)
  14318. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  14319. #define CCP1_PORT (GPIO_PORTA_BASE)
  14320. #define CCP1_PIN (GPIO_PIN_6)
  14321. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  14322. #define CCP2_PORT (GPIO_PORTB_BASE)
  14323. #define CCP2_PIN (GPIO_PIN_1)
  14324. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  14325. #define CCP3_PORT (GPIO_PORTD_BASE)
  14326. #define CCP3_PIN (GPIO_PIN_4)
  14327. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  14328. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  14329. #define I2C0SCL_PIN (GPIO_PIN_2)
  14330. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  14331. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  14332. #define I2C0SDA_PIN (GPIO_PIN_3)
  14333. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  14334. #define LED0_PORT (GPIO_PORTF_BASE)
  14335. #define LED0_PIN (GPIO_PIN_3)
  14336. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  14337. #define LED1_PORT (GPIO_PORTF_BASE)
  14338. #define LED1_PIN (GPIO_PIN_2)
  14339. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  14340. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  14341. #define SSI0CLK_PIN (GPIO_PIN_2)
  14342. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  14343. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  14344. #define SSI0FSS_PIN (GPIO_PIN_3)
  14345. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14346. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  14347. #define SSI0RX_PIN (GPIO_PIN_4)
  14348. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14349. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  14350. #define SSI0TX_PIN (GPIO_PIN_5)
  14351. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14352. #define SWCLK_PORT (GPIO_PORTC_BASE)
  14353. #define SWCLK_PIN (GPIO_PIN_0)
  14354. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14355. #define SWDIO_PORT (GPIO_PORTC_BASE)
  14356. #define SWDIO_PIN (GPIO_PIN_1)
  14357. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14358. #define SWO_PORT (GPIO_PORTC_BASE)
  14359. #define SWO_PIN (GPIO_PIN_3)
  14360. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14361. #define TCK_PORT (GPIO_PORTC_BASE)
  14362. #define TCK_PIN (GPIO_PIN_0)
  14363. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  14364. #define TDI_PORT (GPIO_PORTC_BASE)
  14365. #define TDI_PIN (GPIO_PIN_2)
  14366. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14367. #define TDO_PORT (GPIO_PORTC_BASE)
  14368. #define TDO_PIN (GPIO_PIN_3)
  14369. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14370. #define TMS_PORT (GPIO_PORTC_BASE)
  14371. #define TMS_PIN (GPIO_PIN_1)
  14372. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  14373. #define TRST_PORT (GPIO_PORTB_BASE)
  14374. #define TRST_PIN (GPIO_PIN_7)
  14375. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14376. #define U0RX_PORT (GPIO_PORTA_BASE)
  14377. #define U0RX_PIN (GPIO_PIN_0)
  14378. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14379. #define U0TX_PORT (GPIO_PORTA_BASE)
  14380. #define U0TX_PIN (GPIO_PIN_1)
  14381. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14382. #define U1RX_PORT (GPIO_PORTD_BASE)
  14383. #define U1RX_PIN (GPIO_PIN_2)
  14384. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14385. #define U1TX_PORT (GPIO_PORTD_BASE)
  14386. #define U1TX_PIN (GPIO_PIN_3)
  14387. #endif // PART_LM3S8733
  14388. //*****************************************************************************
  14389. //
  14390. // LM3S8738 Port/Pin Mapping Definitions
  14391. //
  14392. //*****************************************************************************
  14393. #ifdef PART_LM3S8738
  14394. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  14395. #define C0O_PORT (GPIO_PORTC_BASE)
  14396. #define C0O_PIN (GPIO_PIN_5)
  14397. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14398. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  14399. #define C0_MINUS_PIN (GPIO_PIN_4)
  14400. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14401. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  14402. #define C0_PLUS_PIN (GPIO_PIN_6)
  14403. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14404. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  14405. #define CAN0RX_PIN (GPIO_PIN_0)
  14406. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14407. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  14408. #define CAN0TX_PIN (GPIO_PIN_1)
  14409. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  14410. #define CCP0_PORT (GPIO_PORTB_BASE)
  14411. #define CCP0_PIN (GPIO_PIN_0)
  14412. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  14413. #define CCP1_PORT (GPIO_PORTA_BASE)
  14414. #define CCP1_PIN (GPIO_PIN_6)
  14415. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  14416. #define CCP2_PORT (GPIO_PORTB_BASE)
  14417. #define CCP2_PIN (GPIO_PIN_1)
  14418. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  14419. #define CCP3_PORT (GPIO_PORTC_BASE)
  14420. #define CCP3_PIN (GPIO_PIN_6)
  14421. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  14422. #define CCP4_PORT (GPIO_PORTA_BASE)
  14423. #define CCP4_PIN (GPIO_PIN_7)
  14424. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOB)
  14425. #define CCP5_PORT (GPIO_PORTB_BASE)
  14426. #define CCP5_PIN (GPIO_PIN_5)
  14427. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  14428. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  14429. #define I2C0SCL_PIN (GPIO_PIN_2)
  14430. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  14431. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  14432. #define I2C0SDA_PIN (GPIO_PIN_3)
  14433. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  14434. #define LED0_PORT (GPIO_PORTF_BASE)
  14435. #define LED0_PIN (GPIO_PIN_3)
  14436. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  14437. #define LED1_PORT (GPIO_PORTF_BASE)
  14438. #define LED1_PIN (GPIO_PIN_2)
  14439. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  14440. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  14441. #define SSI0CLK_PIN (GPIO_PIN_2)
  14442. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  14443. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  14444. #define SSI0FSS_PIN (GPIO_PIN_3)
  14445. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14446. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  14447. #define SSI0RX_PIN (GPIO_PIN_4)
  14448. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14449. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  14450. #define SSI0TX_PIN (GPIO_PIN_5)
  14451. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  14452. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  14453. #define SSI1CLK_PIN (GPIO_PIN_0)
  14454. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  14455. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  14456. #define SSI1FSS_PIN (GPIO_PIN_1)
  14457. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  14458. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  14459. #define SSI1RX_PIN (GPIO_PIN_2)
  14460. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  14461. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  14462. #define SSI1TX_PIN (GPIO_PIN_3)
  14463. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14464. #define SWCLK_PORT (GPIO_PORTC_BASE)
  14465. #define SWCLK_PIN (GPIO_PIN_0)
  14466. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14467. #define SWDIO_PORT (GPIO_PORTC_BASE)
  14468. #define SWDIO_PIN (GPIO_PIN_1)
  14469. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14470. #define SWO_PORT (GPIO_PORTC_BASE)
  14471. #define SWO_PIN (GPIO_PIN_3)
  14472. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14473. #define TCK_PORT (GPIO_PORTC_BASE)
  14474. #define TCK_PIN (GPIO_PIN_0)
  14475. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  14476. #define TDI_PORT (GPIO_PORTC_BASE)
  14477. #define TDI_PIN (GPIO_PIN_2)
  14478. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14479. #define TDO_PORT (GPIO_PORTC_BASE)
  14480. #define TDO_PIN (GPIO_PIN_3)
  14481. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14482. #define TMS_PORT (GPIO_PORTC_BASE)
  14483. #define TMS_PIN (GPIO_PIN_1)
  14484. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  14485. #define TRST_PORT (GPIO_PORTB_BASE)
  14486. #define TRST_PIN (GPIO_PIN_7)
  14487. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14488. #define U0RX_PORT (GPIO_PORTA_BASE)
  14489. #define U0RX_PIN (GPIO_PIN_0)
  14490. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14491. #define U0TX_PORT (GPIO_PORTA_BASE)
  14492. #define U0TX_PIN (GPIO_PIN_1)
  14493. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14494. #define U1RX_PORT (GPIO_PORTD_BASE)
  14495. #define U1RX_PIN (GPIO_PIN_2)
  14496. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14497. #define U1TX_PORT (GPIO_PORTD_BASE)
  14498. #define U1TX_PIN (GPIO_PIN_3)
  14499. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  14500. #define U2RX_PORT (GPIO_PORTG_BASE)
  14501. #define U2RX_PIN (GPIO_PIN_0)
  14502. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  14503. #define U2TX_PORT (GPIO_PORTG_BASE)
  14504. #define U2TX_PIN (GPIO_PIN_1)
  14505. #endif // PART_LM3S8738
  14506. //*****************************************************************************
  14507. //
  14508. // LM3S8930 Port/Pin Mapping Definitions
  14509. //
  14510. //*****************************************************************************
  14511. #ifdef PART_LM3S8930
  14512. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14513. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  14514. #define CAN0RX_PIN (GPIO_PIN_0)
  14515. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14516. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  14517. #define CAN0TX_PIN (GPIO_PIN_1)
  14518. #define CAN1RX_PERIPH (SYSCTL_PERIPH_GPIOF)
  14519. #define CAN1RX_PORT (GPIO_PORTF_BASE)
  14520. #define CAN1RX_PIN (GPIO_PIN_0)
  14521. #define CAN1TX_PERIPH (SYSCTL_PERIPH_GPIOF)
  14522. #define CAN1TX_PORT (GPIO_PORTF_BASE)
  14523. #define CAN1TX_PIN (GPIO_PIN_1)
  14524. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  14525. #define CCP0_PORT (GPIO_PORTB_BASE)
  14526. #define CCP0_PIN (GPIO_PIN_0)
  14527. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  14528. #define CCP1_PORT (GPIO_PORTA_BASE)
  14529. #define CCP1_PIN (GPIO_PIN_6)
  14530. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  14531. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  14532. #define I2C0SCL_PIN (GPIO_PIN_2)
  14533. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  14534. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  14535. #define I2C0SDA_PIN (GPIO_PIN_3)
  14536. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  14537. #define LED0_PORT (GPIO_PORTF_BASE)
  14538. #define LED0_PIN (GPIO_PIN_3)
  14539. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  14540. #define LED1_PORT (GPIO_PORTF_BASE)
  14541. #define LED1_PIN (GPIO_PIN_2)
  14542. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  14543. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  14544. #define SSI0CLK_PIN (GPIO_PIN_2)
  14545. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  14546. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  14547. #define SSI0FSS_PIN (GPIO_PIN_3)
  14548. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14549. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  14550. #define SSI0RX_PIN (GPIO_PIN_4)
  14551. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14552. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  14553. #define SSI0TX_PIN (GPIO_PIN_5)
  14554. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14555. #define SWCLK_PORT (GPIO_PORTC_BASE)
  14556. #define SWCLK_PIN (GPIO_PIN_0)
  14557. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14558. #define SWDIO_PORT (GPIO_PORTC_BASE)
  14559. #define SWDIO_PIN (GPIO_PIN_1)
  14560. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14561. #define SWO_PORT (GPIO_PORTC_BASE)
  14562. #define SWO_PIN (GPIO_PIN_3)
  14563. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14564. #define TCK_PORT (GPIO_PORTC_BASE)
  14565. #define TCK_PIN (GPIO_PIN_0)
  14566. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  14567. #define TDI_PORT (GPIO_PORTC_BASE)
  14568. #define TDI_PIN (GPIO_PIN_2)
  14569. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14570. #define TDO_PORT (GPIO_PORTC_BASE)
  14571. #define TDO_PIN (GPIO_PIN_3)
  14572. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14573. #define TMS_PORT (GPIO_PORTC_BASE)
  14574. #define TMS_PIN (GPIO_PIN_1)
  14575. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  14576. #define TRST_PORT (GPIO_PORTB_BASE)
  14577. #define TRST_PIN (GPIO_PIN_7)
  14578. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14579. #define U0RX_PORT (GPIO_PORTA_BASE)
  14580. #define U0RX_PIN (GPIO_PIN_0)
  14581. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14582. #define U0TX_PORT (GPIO_PORTA_BASE)
  14583. #define U0TX_PIN (GPIO_PIN_1)
  14584. #endif // PART_LM3S8930
  14585. //*****************************************************************************
  14586. //
  14587. // LM3S8933 Port/Pin Mapping Definitions
  14588. //
  14589. //*****************************************************************************
  14590. #ifdef PART_LM3S8933
  14591. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOD)
  14592. #define C0O_PORT (GPIO_PORTD_BASE)
  14593. #define C0O_PIN (GPIO_PIN_7)
  14594. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14595. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  14596. #define C0_MINUS_PIN (GPIO_PIN_4)
  14597. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14598. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  14599. #define C0_PLUS_PIN (GPIO_PIN_6)
  14600. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  14601. #define C1O_PORT (GPIO_PORTC_BASE)
  14602. #define C1O_PIN (GPIO_PIN_5)
  14603. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14604. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  14605. #define C1_MINUS_PIN (GPIO_PIN_5)
  14606. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14607. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  14608. #define C1_PLUS_PIN (GPIO_PIN_5)
  14609. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14610. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  14611. #define C2_MINUS_PIN (GPIO_PIN_7)
  14612. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14613. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  14614. #define C2_PLUS_PIN (GPIO_PIN_6)
  14615. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14616. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  14617. #define CAN0RX_PIN (GPIO_PIN_0)
  14618. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14619. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  14620. #define CAN0TX_PIN (GPIO_PIN_1)
  14621. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  14622. #define CCP0_PORT (GPIO_PORTB_BASE)
  14623. #define CCP0_PIN (GPIO_PIN_0)
  14624. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  14625. #define CCP1_PORT (GPIO_PORTA_BASE)
  14626. #define CCP1_PIN (GPIO_PIN_6)
  14627. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  14628. #define CCP2_PORT (GPIO_PORTB_BASE)
  14629. #define CCP2_PIN (GPIO_PIN_1)
  14630. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOD)
  14631. #define CCP3_PORT (GPIO_PORTD_BASE)
  14632. #define CCP3_PIN (GPIO_PIN_4)
  14633. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  14634. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  14635. #define I2C0SCL_PIN (GPIO_PIN_2)
  14636. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  14637. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  14638. #define I2C0SDA_PIN (GPIO_PIN_3)
  14639. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  14640. #define LED0_PORT (GPIO_PORTF_BASE)
  14641. #define LED0_PIN (GPIO_PIN_3)
  14642. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  14643. #define LED1_PORT (GPIO_PORTF_BASE)
  14644. #define LED1_PIN (GPIO_PIN_2)
  14645. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  14646. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  14647. #define SSI0CLK_PIN (GPIO_PIN_2)
  14648. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  14649. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  14650. #define SSI0FSS_PIN (GPIO_PIN_3)
  14651. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14652. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  14653. #define SSI0RX_PIN (GPIO_PIN_4)
  14654. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14655. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  14656. #define SSI0TX_PIN (GPIO_PIN_5)
  14657. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14658. #define SWCLK_PORT (GPIO_PORTC_BASE)
  14659. #define SWCLK_PIN (GPIO_PIN_0)
  14660. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14661. #define SWDIO_PORT (GPIO_PORTC_BASE)
  14662. #define SWDIO_PIN (GPIO_PIN_1)
  14663. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14664. #define SWO_PORT (GPIO_PORTC_BASE)
  14665. #define SWO_PIN (GPIO_PIN_3)
  14666. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14667. #define TCK_PORT (GPIO_PORTC_BASE)
  14668. #define TCK_PIN (GPIO_PIN_0)
  14669. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  14670. #define TDI_PORT (GPIO_PORTC_BASE)
  14671. #define TDI_PIN (GPIO_PIN_2)
  14672. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14673. #define TDO_PORT (GPIO_PORTC_BASE)
  14674. #define TDO_PIN (GPIO_PIN_3)
  14675. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14676. #define TMS_PORT (GPIO_PORTC_BASE)
  14677. #define TMS_PIN (GPIO_PIN_1)
  14678. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  14679. #define TRST_PORT (GPIO_PORTB_BASE)
  14680. #define TRST_PIN (GPIO_PIN_7)
  14681. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14682. #define U0RX_PORT (GPIO_PORTA_BASE)
  14683. #define U0RX_PIN (GPIO_PIN_0)
  14684. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14685. #define U0TX_PORT (GPIO_PORTA_BASE)
  14686. #define U0TX_PIN (GPIO_PIN_1)
  14687. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14688. #define U1RX_PORT (GPIO_PORTD_BASE)
  14689. #define U1RX_PIN (GPIO_PIN_2)
  14690. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14691. #define U1TX_PORT (GPIO_PORTD_BASE)
  14692. #define U1TX_PIN (GPIO_PIN_3)
  14693. #endif // PART_LM3S8933
  14694. //*****************************************************************************
  14695. //
  14696. // LM3S8938 Port/Pin Mapping Definitions
  14697. //
  14698. //*****************************************************************************
  14699. #ifdef PART_LM3S8938
  14700. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOB)
  14701. #define C0O_PORT (GPIO_PORTB_BASE)
  14702. #define C0O_PIN (GPIO_PIN_6)
  14703. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14704. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  14705. #define C0_MINUS_PIN (GPIO_PIN_4)
  14706. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14707. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  14708. #define C0_PLUS_PIN (GPIO_PIN_6)
  14709. #define C1O_PERIPH (SYSCTL_PERIPH_GPIOC)
  14710. #define C1O_PORT (GPIO_PORTC_BASE)
  14711. #define C1O_PIN (GPIO_PIN_5)
  14712. #define C1_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14713. #define C1_MINUS_PORT (GPIO_PORTB_BASE)
  14714. #define C1_MINUS_PIN (GPIO_PIN_5)
  14715. #define C1_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14716. #define C1_PLUS_PORT (GPIO_PORTC_BASE)
  14717. #define C1_PLUS_PIN (GPIO_PIN_5)
  14718. #define C2O_PERIPH (SYSCTL_PERIPH_GPIOC)
  14719. #define C2O_PORT (GPIO_PORTC_BASE)
  14720. #define C2O_PIN (GPIO_PIN_6)
  14721. #define C2_MINUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14722. #define C2_MINUS_PORT (GPIO_PORTC_BASE)
  14723. #define C2_MINUS_PIN (GPIO_PIN_7)
  14724. #define C2_PLUS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14725. #define C2_PLUS_PORT (GPIO_PORTC_BASE)
  14726. #define C2_PLUS_PIN (GPIO_PIN_6)
  14727. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14728. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  14729. #define CAN0RX_PIN (GPIO_PIN_0)
  14730. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14731. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  14732. #define CAN0TX_PIN (GPIO_PIN_1)
  14733. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  14734. #define CCP0_PORT (GPIO_PORTB_BASE)
  14735. #define CCP0_PIN (GPIO_PIN_0)
  14736. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOE)
  14737. #define CCP1_PORT (GPIO_PORTE_BASE)
  14738. #define CCP1_PIN (GPIO_PIN_3)
  14739. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  14740. #define CCP2_PORT (GPIO_PORTB_BASE)
  14741. #define CCP2_PIN (GPIO_PIN_1)
  14742. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOE)
  14743. #define CCP3_PORT (GPIO_PORTE_BASE)
  14744. #define CCP3_PIN (GPIO_PIN_0)
  14745. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOE)
  14746. #define CCP4_PORT (GPIO_PORTE_BASE)
  14747. #define CCP4_PIN (GPIO_PIN_2)
  14748. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOC)
  14749. #define CCP5_PORT (GPIO_PORTC_BASE)
  14750. #define CCP5_PIN (GPIO_PIN_4)
  14751. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  14752. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  14753. #define I2C0SCL_PIN (GPIO_PIN_2)
  14754. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  14755. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  14756. #define I2C0SDA_PIN (GPIO_PIN_3)
  14757. #define I2C1SCL_PERIPH (SYSCTL_PERIPH_GPIOA)
  14758. #define I2C1SCL_PORT (GPIO_PORTA_BASE)
  14759. #define I2C1SCL_PIN (GPIO_PIN_6)
  14760. #define I2C1SDA_PERIPH (SYSCTL_PERIPH_GPIOA)
  14761. #define I2C1SDA_PORT (GPIO_PORTA_BASE)
  14762. #define I2C1SDA_PIN (GPIO_PIN_7)
  14763. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  14764. #define LED0_PORT (GPIO_PORTF_BASE)
  14765. #define LED0_PIN (GPIO_PIN_3)
  14766. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  14767. #define LED1_PORT (GPIO_PORTF_BASE)
  14768. #define LED1_PIN (GPIO_PIN_2)
  14769. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  14770. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  14771. #define SSI0CLK_PIN (GPIO_PIN_2)
  14772. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  14773. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  14774. #define SSI0FSS_PIN (GPIO_PIN_3)
  14775. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14776. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  14777. #define SSI0RX_PIN (GPIO_PIN_4)
  14778. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14779. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  14780. #define SSI0TX_PIN (GPIO_PIN_5)
  14781. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14782. #define SWCLK_PORT (GPIO_PORTC_BASE)
  14783. #define SWCLK_PIN (GPIO_PIN_0)
  14784. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14785. #define SWDIO_PORT (GPIO_PORTC_BASE)
  14786. #define SWDIO_PIN (GPIO_PIN_1)
  14787. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14788. #define SWO_PORT (GPIO_PORTC_BASE)
  14789. #define SWO_PIN (GPIO_PIN_3)
  14790. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14791. #define TCK_PORT (GPIO_PORTC_BASE)
  14792. #define TCK_PIN (GPIO_PIN_0)
  14793. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  14794. #define TDI_PORT (GPIO_PORTC_BASE)
  14795. #define TDI_PIN (GPIO_PIN_2)
  14796. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14797. #define TDO_PORT (GPIO_PORTC_BASE)
  14798. #define TDO_PIN (GPIO_PIN_3)
  14799. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14800. #define TMS_PORT (GPIO_PORTC_BASE)
  14801. #define TMS_PIN (GPIO_PIN_1)
  14802. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  14803. #define TRST_PORT (GPIO_PORTB_BASE)
  14804. #define TRST_PIN (GPIO_PIN_7)
  14805. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14806. #define U0RX_PORT (GPIO_PORTA_BASE)
  14807. #define U0RX_PIN (GPIO_PIN_0)
  14808. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14809. #define U0TX_PORT (GPIO_PORTA_BASE)
  14810. #define U0TX_PIN (GPIO_PIN_1)
  14811. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14812. #define U1RX_PORT (GPIO_PORTD_BASE)
  14813. #define U1RX_PIN (GPIO_PIN_2)
  14814. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14815. #define U1TX_PORT (GPIO_PORTD_BASE)
  14816. #define U1TX_PIN (GPIO_PIN_3)
  14817. #define U2RX_PERIPH (SYSCTL_PERIPH_GPIOG)
  14818. #define U2RX_PORT (GPIO_PORTG_BASE)
  14819. #define U2RX_PIN (GPIO_PIN_0)
  14820. #define U2TX_PERIPH (SYSCTL_PERIPH_GPIOG)
  14821. #define U2TX_PORT (GPIO_PORTG_BASE)
  14822. #define U2TX_PIN (GPIO_PIN_1)
  14823. #endif // PART_LM3S8938
  14824. //*****************************************************************************
  14825. //
  14826. // LM3S8962 Port/Pin Mapping Definitions
  14827. //
  14828. //*****************************************************************************
  14829. #ifdef PART_LM3S8962
  14830. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOB)
  14831. #define C0O_PORT (GPIO_PORTB_BASE)
  14832. #define C0O_PIN (GPIO_PIN_5)
  14833. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14834. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  14835. #define C0_MINUS_PIN (GPIO_PIN_4)
  14836. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  14837. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  14838. #define C0_PLUS_PIN (GPIO_PIN_6)
  14839. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14840. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  14841. #define CAN0RX_PIN (GPIO_PIN_0)
  14842. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14843. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  14844. #define CAN0TX_PIN (GPIO_PIN_1)
  14845. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOD)
  14846. #define CCP0_PORT (GPIO_PORTD_BASE)
  14847. #define CCP0_PIN (GPIO_PIN_4)
  14848. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  14849. #define CCP1_PORT (GPIO_PORTA_BASE)
  14850. #define CCP1_PIN (GPIO_PIN_6)
  14851. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOD)
  14852. #define FAULT_PORT (GPIO_PORTD_BASE)
  14853. #define FAULT_PIN (GPIO_PIN_6)
  14854. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  14855. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  14856. #define I2C0SCL_PIN (GPIO_PIN_2)
  14857. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  14858. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  14859. #define I2C0SDA_PIN (GPIO_PIN_3)
  14860. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOD)
  14861. #define IDX0_PORT (GPIO_PORTD_BASE)
  14862. #define IDX0_PIN (GPIO_PIN_7)
  14863. #define IDX1_PERIPH (SYSCTL_PERIPH_GPIOF)
  14864. #define IDX1_PORT (GPIO_PORTF_BASE)
  14865. #define IDX1_PIN (GPIO_PIN_1)
  14866. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  14867. #define LED0_PORT (GPIO_PORTF_BASE)
  14868. #define LED0_PIN (GPIO_PIN_3)
  14869. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  14870. #define LED1_PORT (GPIO_PORTF_BASE)
  14871. #define LED1_PIN (GPIO_PIN_2)
  14872. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  14873. #define PHA0_PORT (GPIO_PORTC_BASE)
  14874. #define PHA0_PIN (GPIO_PIN_4)
  14875. #define PHA1_PERIPH (SYSCTL_PERIPH_GPIOE)
  14876. #define PHA1_PORT (GPIO_PORTE_BASE)
  14877. #define PHA1_PIN (GPIO_PIN_3)
  14878. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOC)
  14879. #define PHB0_PORT (GPIO_PORTC_BASE)
  14880. #define PHB0_PIN (GPIO_PIN_6)
  14881. #define PHB1_PERIPH (SYSCTL_PERIPH_GPIOE)
  14882. #define PHB1_PORT (GPIO_PORTE_BASE)
  14883. #define PHB1_PIN (GPIO_PIN_2)
  14884. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  14885. #define PWM0_PORT (GPIO_PORTF_BASE)
  14886. #define PWM0_PIN (GPIO_PIN_0)
  14887. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOG)
  14888. #define PWM1_PORT (GPIO_PORTG_BASE)
  14889. #define PWM1_PIN (GPIO_PIN_1)
  14890. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOB)
  14891. #define PWM2_PORT (GPIO_PORTB_BASE)
  14892. #define PWM2_PIN (GPIO_PIN_0)
  14893. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOB)
  14894. #define PWM3_PORT (GPIO_PORTB_BASE)
  14895. #define PWM3_PIN (GPIO_PIN_1)
  14896. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  14897. #define PWM4_PORT (GPIO_PORTE_BASE)
  14898. #define PWM4_PIN (GPIO_PIN_0)
  14899. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  14900. #define PWM5_PORT (GPIO_PORTE_BASE)
  14901. #define PWM5_PIN (GPIO_PIN_1)
  14902. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  14903. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  14904. #define SSI0CLK_PIN (GPIO_PIN_2)
  14905. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  14906. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  14907. #define SSI0FSS_PIN (GPIO_PIN_3)
  14908. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14909. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  14910. #define SSI0RX_PIN (GPIO_PIN_4)
  14911. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14912. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  14913. #define SSI0TX_PIN (GPIO_PIN_5)
  14914. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14915. #define SWCLK_PORT (GPIO_PORTC_BASE)
  14916. #define SWCLK_PIN (GPIO_PIN_0)
  14917. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14918. #define SWDIO_PORT (GPIO_PORTC_BASE)
  14919. #define SWDIO_PIN (GPIO_PIN_1)
  14920. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14921. #define SWO_PORT (GPIO_PORTC_BASE)
  14922. #define SWO_PIN (GPIO_PIN_3)
  14923. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  14924. #define TCK_PORT (GPIO_PORTC_BASE)
  14925. #define TCK_PIN (GPIO_PIN_0)
  14926. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  14927. #define TDI_PORT (GPIO_PORTC_BASE)
  14928. #define TDI_PIN (GPIO_PIN_2)
  14929. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  14930. #define TDO_PORT (GPIO_PORTC_BASE)
  14931. #define TDO_PIN (GPIO_PIN_3)
  14932. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  14933. #define TMS_PORT (GPIO_PORTC_BASE)
  14934. #define TMS_PIN (GPIO_PIN_1)
  14935. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  14936. #define TRST_PORT (GPIO_PORTB_BASE)
  14937. #define TRST_PIN (GPIO_PIN_7)
  14938. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14939. #define U0RX_PORT (GPIO_PORTA_BASE)
  14940. #define U0RX_PIN (GPIO_PIN_0)
  14941. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  14942. #define U0TX_PORT (GPIO_PORTA_BASE)
  14943. #define U0TX_PIN (GPIO_PIN_1)
  14944. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14945. #define U1RX_PORT (GPIO_PORTD_BASE)
  14946. #define U1RX_PIN (GPIO_PIN_2)
  14947. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14948. #define U1TX_PORT (GPIO_PORTD_BASE)
  14949. #define U1TX_PIN (GPIO_PIN_3)
  14950. #endif // PART_LM3S8962
  14951. //*****************************************************************************
  14952. //
  14953. // LM3S8970 Port/Pin Mapping Definitions
  14954. //
  14955. //*****************************************************************************
  14956. #ifdef PART_LM3S8970
  14957. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14958. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  14959. #define CAN0RX_PIN (GPIO_PIN_0)
  14960. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  14961. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  14962. #define CAN0TX_PIN (GPIO_PIN_1)
  14963. #define CAN1RX_PERIPH (SYSCTL_PERIPH_GPIOF)
  14964. #define CAN1RX_PORT (GPIO_PORTF_BASE)
  14965. #define CAN1RX_PIN (GPIO_PIN_0)
  14966. #define CAN1TX_PERIPH (SYSCTL_PERIPH_GPIOF)
  14967. #define CAN1TX_PORT (GPIO_PORTF_BASE)
  14968. #define CAN1TX_PIN (GPIO_PIN_1)
  14969. #define CAN2RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  14970. #define CAN2RX_PORT (GPIO_PORTE_BASE)
  14971. #define CAN2RX_PIN (GPIO_PIN_4)
  14972. #define CAN2TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  14973. #define CAN2TX_PORT (GPIO_PORTE_BASE)
  14974. #define CAN2TX_PIN (GPIO_PIN_5)
  14975. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  14976. #define CCP0_PORT (GPIO_PORTB_BASE)
  14977. #define CCP0_PIN (GPIO_PIN_0)
  14978. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  14979. #define CCP1_PORT (GPIO_PORTA_BASE)
  14980. #define CCP1_PIN (GPIO_PIN_6)
  14981. #define I2C0SCL_PERIPH (SYSCTL_PERIPH_GPIOB)
  14982. #define I2C0SCL_PORT (GPIO_PORTB_BASE)
  14983. #define I2C0SCL_PIN (GPIO_PIN_2)
  14984. #define I2C0SDA_PERIPH (SYSCTL_PERIPH_GPIOB)
  14985. #define I2C0SDA_PORT (GPIO_PORTB_BASE)
  14986. #define I2C0SDA_PIN (GPIO_PIN_3)
  14987. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  14988. #define LED0_PORT (GPIO_PORTF_BASE)
  14989. #define LED0_PIN (GPIO_PIN_3)
  14990. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  14991. #define LED1_PORT (GPIO_PORTF_BASE)
  14992. #define LED1_PIN (GPIO_PIN_2)
  14993. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  14994. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  14995. #define SSI0CLK_PIN (GPIO_PIN_2)
  14996. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  14997. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  14998. #define SSI0FSS_PIN (GPIO_PIN_3)
  14999. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  15000. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  15001. #define SSI0RX_PIN (GPIO_PIN_4)
  15002. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  15003. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  15004. #define SSI0TX_PIN (GPIO_PIN_5)
  15005. #define SSI1CLK_PERIPH (SYSCTL_PERIPH_GPIOE)
  15006. #define SSI1CLK_PORT (GPIO_PORTE_BASE)
  15007. #define SSI1CLK_PIN (GPIO_PIN_0)
  15008. #define SSI1FSS_PERIPH (SYSCTL_PERIPH_GPIOE)
  15009. #define SSI1FSS_PORT (GPIO_PORTE_BASE)
  15010. #define SSI1FSS_PIN (GPIO_PIN_1)
  15011. #define SSI1RX_PERIPH (SYSCTL_PERIPH_GPIOE)
  15012. #define SSI1RX_PORT (GPIO_PORTE_BASE)
  15013. #define SSI1RX_PIN (GPIO_PIN_2)
  15014. #define SSI1TX_PERIPH (SYSCTL_PERIPH_GPIOE)
  15015. #define SSI1TX_PORT (GPIO_PORTE_BASE)
  15016. #define SSI1TX_PIN (GPIO_PIN_3)
  15017. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  15018. #define SWCLK_PORT (GPIO_PORTC_BASE)
  15019. #define SWCLK_PIN (GPIO_PIN_0)
  15020. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  15021. #define SWDIO_PORT (GPIO_PORTC_BASE)
  15022. #define SWDIO_PIN (GPIO_PIN_1)
  15023. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  15024. #define SWO_PORT (GPIO_PORTC_BASE)
  15025. #define SWO_PIN (GPIO_PIN_3)
  15026. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  15027. #define TCK_PORT (GPIO_PORTC_BASE)
  15028. #define TCK_PIN (GPIO_PIN_0)
  15029. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  15030. #define TDI_PORT (GPIO_PORTC_BASE)
  15031. #define TDI_PIN (GPIO_PIN_2)
  15032. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  15033. #define TDO_PORT (GPIO_PORTC_BASE)
  15034. #define TDO_PIN (GPIO_PIN_3)
  15035. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  15036. #define TMS_PORT (GPIO_PORTC_BASE)
  15037. #define TMS_PIN (GPIO_PIN_1)
  15038. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  15039. #define TRST_PORT (GPIO_PORTB_BASE)
  15040. #define TRST_PIN (GPIO_PIN_7)
  15041. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  15042. #define U0RX_PORT (GPIO_PORTA_BASE)
  15043. #define U0RX_PIN (GPIO_PIN_0)
  15044. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  15045. #define U0TX_PORT (GPIO_PORTA_BASE)
  15046. #define U0TX_PIN (GPIO_PIN_1)
  15047. #define U1RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  15048. #define U1RX_PORT (GPIO_PORTD_BASE)
  15049. #define U1RX_PIN (GPIO_PIN_2)
  15050. #define U1TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  15051. #define U1TX_PORT (GPIO_PORTD_BASE)
  15052. #define U1TX_PIN (GPIO_PIN_3)
  15053. #endif // PART_LM3S8970
  15054. //*****************************************************************************
  15055. //
  15056. // LM3S8971 Port/Pin Mapping Definitions
  15057. //
  15058. //*****************************************************************************
  15059. #ifdef PART_LM3S8971
  15060. #define C0O_PERIPH (SYSCTL_PERIPH_GPIOC)
  15061. #define C0O_PORT (GPIO_PORTC_BASE)
  15062. #define C0O_PIN (GPIO_PIN_5)
  15063. #define C0_MINUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  15064. #define C0_MINUS_PORT (GPIO_PORTB_BASE)
  15065. #define C0_MINUS_PIN (GPIO_PIN_4)
  15066. #define C0_PLUS_PERIPH (SYSCTL_PERIPH_GPIOB)
  15067. #define C0_PLUS_PORT (GPIO_PORTB_BASE)
  15068. #define C0_PLUS_PIN (GPIO_PIN_6)
  15069. #define CAN0RX_PERIPH (SYSCTL_PERIPH_GPIOD)
  15070. #define CAN0RX_PORT (GPIO_PORTD_BASE)
  15071. #define CAN0RX_PIN (GPIO_PIN_0)
  15072. #define CAN0TX_PERIPH (SYSCTL_PERIPH_GPIOD)
  15073. #define CAN0TX_PORT (GPIO_PORTD_BASE)
  15074. #define CAN0TX_PIN (GPIO_PIN_1)
  15075. #define CCP0_PERIPH (SYSCTL_PERIPH_GPIOB)
  15076. #define CCP0_PORT (GPIO_PORTB_BASE)
  15077. #define CCP0_PIN (GPIO_PIN_0)
  15078. #define CCP1_PERIPH (SYSCTL_PERIPH_GPIOA)
  15079. #define CCP1_PORT (GPIO_PORTA_BASE)
  15080. #define CCP1_PIN (GPIO_PIN_6)
  15081. #define CCP2_PERIPH (SYSCTL_PERIPH_GPIOB)
  15082. #define CCP2_PORT (GPIO_PORTB_BASE)
  15083. #define CCP2_PIN (GPIO_PIN_1)
  15084. #define CCP3_PERIPH (SYSCTL_PERIPH_GPIOC)
  15085. #define CCP3_PORT (GPIO_PORTC_BASE)
  15086. #define CCP3_PIN (GPIO_PIN_6)
  15087. #define CCP4_PERIPH (SYSCTL_PERIPH_GPIOA)
  15088. #define CCP4_PORT (GPIO_PORTA_BASE)
  15089. #define CCP4_PIN (GPIO_PIN_7)
  15090. #define CCP5_PERIPH (SYSCTL_PERIPH_GPIOB)
  15091. #define CCP5_PORT (GPIO_PORTB_BASE)
  15092. #define CCP5_PIN (GPIO_PIN_5)
  15093. #define FAULT_PERIPH (SYSCTL_PERIPH_GPIOB)
  15094. #define FAULT_PORT (GPIO_PORTB_BASE)
  15095. #define FAULT_PIN (GPIO_PIN_3)
  15096. #define IDX0_PERIPH (SYSCTL_PERIPH_GPIOB)
  15097. #define IDX0_PORT (GPIO_PORTB_BASE)
  15098. #define IDX0_PIN (GPIO_PIN_2)
  15099. #define LED0_PERIPH (SYSCTL_PERIPH_GPIOF)
  15100. #define LED0_PORT (GPIO_PORTF_BASE)
  15101. #define LED0_PIN (GPIO_PIN_3)
  15102. #define LED1_PERIPH (SYSCTL_PERIPH_GPIOF)
  15103. #define LED1_PORT (GPIO_PORTF_BASE)
  15104. #define LED1_PIN (GPIO_PIN_2)
  15105. #define PHA0_PERIPH (SYSCTL_PERIPH_GPIOC)
  15106. #define PHA0_PORT (GPIO_PORTC_BASE)
  15107. #define PHA0_PIN (GPIO_PIN_4)
  15108. #define PHB0_PERIPH (SYSCTL_PERIPH_GPIOC)
  15109. #define PHB0_PORT (GPIO_PORTC_BASE)
  15110. #define PHB0_PIN (GPIO_PIN_7)
  15111. #define PWM0_PERIPH (SYSCTL_PERIPH_GPIOF)
  15112. #define PWM0_PORT (GPIO_PORTF_BASE)
  15113. #define PWM0_PIN (GPIO_PIN_0)
  15114. #define PWM1_PERIPH (SYSCTL_PERIPH_GPIOF)
  15115. #define PWM1_PORT (GPIO_PORTF_BASE)
  15116. #define PWM1_PIN (GPIO_PIN_1)
  15117. #define PWM2_PERIPH (SYSCTL_PERIPH_GPIOD)
  15118. #define PWM2_PORT (GPIO_PORTD_BASE)
  15119. #define PWM2_PIN (GPIO_PIN_2)
  15120. #define PWM3_PERIPH (SYSCTL_PERIPH_GPIOD)
  15121. #define PWM3_PORT (GPIO_PORTD_BASE)
  15122. #define PWM3_PIN (GPIO_PIN_3)
  15123. #define PWM4_PERIPH (SYSCTL_PERIPH_GPIOE)
  15124. #define PWM4_PORT (GPIO_PORTE_BASE)
  15125. #define PWM4_PIN (GPIO_PIN_0)
  15126. #define PWM5_PERIPH (SYSCTL_PERIPH_GPIOE)
  15127. #define PWM5_PORT (GPIO_PORTE_BASE)
  15128. #define PWM5_PIN (GPIO_PIN_1)
  15129. #define SSI0CLK_PERIPH (SYSCTL_PERIPH_GPIOA)
  15130. #define SSI0CLK_PORT (GPIO_PORTA_BASE)
  15131. #define SSI0CLK_PIN (GPIO_PIN_2)
  15132. #define SSI0FSS_PERIPH (SYSCTL_PERIPH_GPIOA)
  15133. #define SSI0FSS_PORT (GPIO_PORTA_BASE)
  15134. #define SSI0FSS_PIN (GPIO_PIN_3)
  15135. #define SSI0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  15136. #define SSI0RX_PORT (GPIO_PORTA_BASE)
  15137. #define SSI0RX_PIN (GPIO_PIN_4)
  15138. #define SSI0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  15139. #define SSI0TX_PORT (GPIO_PORTA_BASE)
  15140. #define SSI0TX_PIN (GPIO_PIN_5)
  15141. #define SWCLK_PERIPH (SYSCTL_PERIPH_GPIOC)
  15142. #define SWCLK_PORT (GPIO_PORTC_BASE)
  15143. #define SWCLK_PIN (GPIO_PIN_0)
  15144. #define SWDIO_PERIPH (SYSCTL_PERIPH_GPIOC)
  15145. #define SWDIO_PORT (GPIO_PORTC_BASE)
  15146. #define SWDIO_PIN (GPIO_PIN_1)
  15147. #define SWO_PERIPH (SYSCTL_PERIPH_GPIOC)
  15148. #define SWO_PORT (GPIO_PORTC_BASE)
  15149. #define SWO_PIN (GPIO_PIN_3)
  15150. #define TCK_PERIPH (SYSCTL_PERIPH_GPIOC)
  15151. #define TCK_PORT (GPIO_PORTC_BASE)
  15152. #define TCK_PIN (GPIO_PIN_0)
  15153. #define TDI_PERIPH (SYSCTL_PERIPH_GPIOC)
  15154. #define TDI_PORT (GPIO_PORTC_BASE)
  15155. #define TDI_PIN (GPIO_PIN_2)
  15156. #define TDO_PERIPH (SYSCTL_PERIPH_GPIOC)
  15157. #define TDO_PORT (GPIO_PORTC_BASE)
  15158. #define TDO_PIN (GPIO_PIN_3)
  15159. #define TMS_PERIPH (SYSCTL_PERIPH_GPIOC)
  15160. #define TMS_PORT (GPIO_PORTC_BASE)
  15161. #define TMS_PIN (GPIO_PIN_1)
  15162. #define TRST_PERIPH (SYSCTL_PERIPH_GPIOB)
  15163. #define TRST_PORT (GPIO_PORTB_BASE)
  15164. #define TRST_PIN (GPIO_PIN_7)
  15165. #define U0RX_PERIPH (SYSCTL_PERIPH_GPIOA)
  15166. #define U0RX_PORT (GPIO_PORTA_BASE)
  15167. #define U0RX_PIN (GPIO_PIN_0)
  15168. #define U0TX_PERIPH (SYSCTL_PERIPH_GPIOA)
  15169. #define U0TX_PORT (GPIO_PORTA_BASE)
  15170. #define U0TX_PIN (GPIO_PIN_1)
  15171. #endif // PART_LM3S8971
  15172. //*****************************************************************************
  15173. //
  15174. // Pin Mapping Functions
  15175. //
  15176. // This section describes the code that is responsible for handling the
  15177. // mapping of peripheral functions to their physical location on the pins of
  15178. // a device.
  15179. //
  15180. //*****************************************************************************
  15181. //*****************************************************************************
  15182. //
  15183. // Definitions to support mapping GPIO Ports and Pins to their function.
  15184. //
  15185. //*****************************************************************************
  15186. //*****************************************************************************
  15187. //
  15188. // Configures the specified ADC pin to function as an ADC pin.
  15189. //
  15190. // \param ulName is one of the valid names for the ADC pins.
  15191. //
  15192. // This function takes on of the valid names for an ADC pin and configures
  15193. // the pin for its ADC functionality depending on the part that is defined.
  15194. //
  15195. // The valid names for the pins are as follows: \b ADC0, \b ADC1, \b ADC2,
  15196. // \b ADC3, \b ADC4, \b ADC5, \b ADC6, or \b ADC7.
  15197. //
  15198. // \sa GPIOPinTypeADC() in order to configure multiple ADC pins at once.
  15199. //
  15200. // \return None.
  15201. //
  15202. //*****************************************************************************
  15203. #define PinTypeADC(ulName) GPIOPinTypeADC(ulName##_PORT, ulName##_PIN)
  15204. //*****************************************************************************
  15205. //
  15206. // Configures the specified CAN pin to function as a CAN pin.
  15207. //
  15208. // \param ulName is one of the valid names for the CAN pins.
  15209. //
  15210. // This function takes one of the valid names for a CAN pin and configures
  15211. // the pin for its CAN functionality depending on the part that is defined.
  15212. //
  15213. // The valid names for the pins are as follows: \b CAN0RX, \b CAN0TX,
  15214. // \b CAN1RX, \b CAN1TX, \b CAN2RX, or \b CAN2TX.
  15215. //
  15216. // \sa GPIOPinTypeCAN() in order to configure multiple CAN pins at once.
  15217. //
  15218. // \return None.
  15219. //
  15220. //*****************************************************************************
  15221. #define PinTypeCAN(ulName) GPIOPinTypeCAN(ulName##_PORT, ulName##_PIN)
  15222. //*****************************************************************************
  15223. //
  15224. // Configures the specified comparator pin to function as a comparator pin.
  15225. //
  15226. // \param ulName is one of the valid names for the Comparator pins.
  15227. //
  15228. // This function takes one of the valid names for a comparator pin and
  15229. // configures the pin for its comparator functionality depending on the part
  15230. // that is defined.
  15231. //
  15232. // The valid names for the pins are as follows: \b C0_MINUS, \b C0_PLUS,
  15233. // \b C1_MINUS, \b C1_PLUS, \b C2_MINUS, or \b C2_PLUS.
  15234. //
  15235. // \sa GPIOPinTypeComparator() in order to configure multiple comparator pins
  15236. // at once.
  15237. //
  15238. // \return None.
  15239. //
  15240. //*****************************************************************************
  15241. #define PinTypeComparator(ulName) \
  15242. GPIOPinTypeComparator(ulName##_PORT, \
  15243. ulName##_PIN)
  15244. //*****************************************************************************
  15245. //
  15246. // Configures the specified I2C pin to function as an I2C pin.
  15247. //
  15248. // \param ulName is one of the valid names for the I2C pins.
  15249. //
  15250. // This function takes one of the valid names for an I2C pin and configures
  15251. // the pin for its I2C functionality depending on the part that is defined.
  15252. //
  15253. // The valid names for the pins are as follows: \b I2C0SCL, \b I2C0SDA,
  15254. // \b I2C1SCL, or \b I2C1SDA.
  15255. //
  15256. // \sa GPIOPinTypeI2C() in order to configure multiple I2C pins at once.
  15257. //
  15258. // \return None.
  15259. //
  15260. //*****************************************************************************
  15261. #define PinTypeI2C(ulName) GPIOPinTypeI2C(ulName##_PORT, ulName##_PIN)
  15262. //*****************************************************************************
  15263. //
  15264. // Configures the specified PWM pin to function as a PWM pin.
  15265. //
  15266. // \param ulName is one of the valid names for the PWM pins.
  15267. //
  15268. // This function takes one of the valid names for a PWM pin and configures
  15269. // the pin for its PWM functionality depending on the part that is defined.
  15270. //
  15271. // The valid names for the pins are as follows: \b PWM0, \b PWM1, \b PWM2,
  15272. // \b PWM3, \b PWM4, \b PWM5, or \b FAULT.
  15273. //
  15274. // \sa GPIOPinTypePWM() in order to configure multiple PWM pins at once.
  15275. //
  15276. // \return None.
  15277. //
  15278. //*****************************************************************************
  15279. #define PinTypePWM(ulName) GPIOPinTypePWM(ulName##_PORT, ulName##_PIN)
  15280. //*****************************************************************************
  15281. //
  15282. // Configures the specified QEI pin to function as a QEI pin.
  15283. //
  15284. // \param ulName is one of the valid names for the QEI pins.
  15285. //
  15286. // This function takes one of the valid names for a QEI pin and configures
  15287. // the pin for its QEI functionality depending on the part that is defined.
  15288. //
  15289. // The valid names for the pins are as follows: \b PHA0, \b PHB0, \b IDX0,
  15290. // \b PHA1, \b PHB1, or \b IDX1.
  15291. //
  15292. // \sa GPIOPinTypeQEI() in order to configure multiple QEI pins at once.
  15293. //
  15294. // \return None.
  15295. //
  15296. //*****************************************************************************
  15297. #define PinTypeQEI(ulName) GPIOPinTypeQEI(ulName##_PORT, ulName##_PIN)
  15298. //*****************************************************************************
  15299. //
  15300. // Configures the specified SSI pin to function as an SSI pin.
  15301. //
  15302. // \param ulName is one of the valid names for the SSI pins.
  15303. //
  15304. // This function takes one of the valid names for an SSI pin and configures
  15305. // the pin for its SSI functionality depending on the part that is defined.
  15306. //
  15307. // The valid names for the pins are as follows: \b SSI0CLK, \b SSI0FSS,
  15308. // \b SSI0RX, \b SSI0TX, \b SSI1CLK, \b SSI1FSS, \b SSI1RX, or \b SSI1TX.
  15309. //
  15310. // \sa GPIOPinTypeSSI() in order to configure multiple SSI pins at once.
  15311. //
  15312. // \return None.
  15313. //
  15314. //*****************************************************************************
  15315. #define PinTypeSSI(ulName) GPIOPinTypeSSI(ulName##_PORT, ulName##_PIN)
  15316. //*****************************************************************************
  15317. //
  15318. // Configures the specified Timer pin to function as a Timer pin.
  15319. //
  15320. // \param ulName is one of the valid names for the Timer pins.
  15321. //
  15322. // This function takes one of the valid names for a Timer pin and configures
  15323. // the pin for its Timer functionality depending on the part that is defined.
  15324. //
  15325. // The valid names for the pins are as follows: \b CCP0, \b CCP1, \b CCP2,
  15326. // \b CCP3, \b CCP4, \b CCP5, \b CCP6, or \b CCP7.
  15327. //
  15328. // \sa GPIOPinTypeTimer() in order to configure multiple CCP pins at once.
  15329. //
  15330. // \return None.
  15331. //
  15332. //*****************************************************************************
  15333. #define PinTypeTimer(ulName) GPIOPinTypeTimer(ulName##_PORT, ulName##_PIN)
  15334. //*****************************************************************************
  15335. //
  15336. // Configures the specified UART pin to function as a UART pin.
  15337. //
  15338. // \param ulName is one of the valid names for the UART pins.
  15339. //
  15340. // This function takes one of the valid names for a UART pin and configures
  15341. // the pin for its UART functionality depending on the part that is defined.
  15342. //
  15343. // The valid names for the pins are as follows: \b U0RX, \b U0TX, \b U1RX,
  15344. // \b U1TX, \b U2RX, or \b U2TX.
  15345. //
  15346. // \sa GPIOPinTypeUART() in order to configure multiple UART pins at once.
  15347. //
  15348. // \return None.
  15349. //
  15350. //*****************************************************************************
  15351. #define PinTypeUART(ulName) GPIOPinTypeUART(ulName##_PORT, ulName##_PIN)
  15352. //*****************************************************************************
  15353. //
  15354. //! Configures the specified USB digital pin to function as a USB pin.
  15355. //!
  15356. //! \param ulName is one of the valid names for a USB digital pin.
  15357. //!
  15358. //! This function takes one of the valid names for a USB digital pin and
  15359. //! configures the pin for its USB functionality depending on the part that is
  15360. //! defined.
  15361. //!
  15362. //! The valid names for the pins are as follows: \b EPEN or \b PFAULT.
  15363. //!
  15364. //! \sa GPIOPinTypeUSBDigital() in order to configure multiple USB pins at
  15365. //! once.
  15366. //!
  15367. //! \return None.
  15368. //
  15369. //*****************************************************************************
  15370. #define PinTypeUSBDigital(ulName) \
  15371. GPIOPinTypeUSBDigital(ulName##_PORT, \
  15372. ulName##_PIN)
  15373. //*****************************************************************************
  15374. //
  15375. //! Enables the peripheral port used by the given pin.
  15376. //!
  15377. //! \param ulName is one of the valid names for a pin.
  15378. //!
  15379. //! This function takes one of the valid names for a pin function and
  15380. //! enables the peripheral port for that pin depending on the part that is
  15381. //! defined.
  15382. //!
  15383. //! Any valid pin name can be used.
  15384. //!
  15385. //! \sa SysCtlPeripheralEnable() in order to enable a single port when
  15386. //! multiple pins are on the same port.
  15387. //!
  15388. //! \return None.
  15389. //
  15390. //*****************************************************************************
  15391. #define PeripheralEnable(ulName) \
  15392. SysCtlPeripheralEnable(ulName##_PERIPH)
  15393. #endif // __PIN_MAP_H__