Copyright©2009LuminaryMicro,Inc.SW-EK-LM3S9B90-ewb-UG-4652EK-LM3S9B90FirmwareDevelopmentPackageUSER’SGUIDELegalDisclaimersandTrademarkInformationINFORMATIONINTHISDOCUMENTISPROVIDEDINCONNECTIONWITHLUMINARYMICROPRODUCTS.NOLICENSE,EXPRESSORIMPLIED,BYESTOPPELOROTHERWISE,TOANYINTELLECTUALPROPERTYRIGHTSISGRANTEDBYTHISDOCUMENT.EXCEPTASPROVIDEDINLUMINARYMICRO’STERMSANDCONDITIONSOFSALEFORSUCHPRODUCTS,LUMINARYMICROASSUMESNOLIABILITYWHATSOEVER,ANDLUMINARYMICRODISCLAIMSANYEXPRESSORIMPLIEDWARRANTY,RELATINGTOSALEAND/ORUSEOFLUMINARYMICRO’SPRODUCTSINCLUDINGLIABILITYORWARRANTIESRELATINGTOFITNESSFORAPARTICU-LARPURPOSE,MERCHANTABILITY,ORINFRINGEMENTOFANYPATENT,COPYRIGHTOROTHERINTELLECTUALPROPERTYRIGHT.LUMINARYMICRO’SPRODUCTSARENOTINTENDEDFORUSEINMEDICAL,LIFESAVING,ORLIFE-SUSTAININGAPPLICATIONS.LuminaryMicromaymakechangestospecificationsandproductdescriptionsatanytime,withoutnotice.ContactyourlocalLuminaryMicrosalesofficeoryourdistributortoobtainthelatestspecificationsandbeforeplacingyourproductorder.Designersmustnotrelyontheabsenceorcharacteristicsofanyfeaturesorinstructionsmarked“reserved”or“undefined.”LuminaryMicroreservestheseforfuturedefinitionandshallhavenoresponsibilitywhatsoeverforconflictsorincompatibilitiesarisingfromfuturechangestothem.Copyright©2009LuminaryMicro,Inc.Allrightsreserved.Stellaris,LuminaryMicro,andtheLuminaryMicrologoareregisteredtrademarksofLuminaryMicro,Inc.oritssubsidiariesintheUnitedStatesandothercountries.ARMandThumbareregisteredtrademarksandCortexisatrademarkofARMLimited.Othernamesandbrandsmaybeclaimedasthepropertyofothers.LuminaryMicro,Inc.108WildBasin,Suite350Austin,TX78746Main:+1-512-279-8800Fax:+1-512-279-8879’sGuideTableofContentsLegalDisclaimersandTrademarkInformation................................2RevisionInformation...............................................21Introduction.................................................52ExampleApplications...........................................72.1AESPre-expandedKey(aes_expanded_key)...............................72.2AESNormalKey(aes_set_key)......................................72.3Bit-Banding(bitband)............................................72.4Blinky(blinky)................................................72.5EthernetwithlwIP(enet_lwip).......................................82.6EthernetwithPTP(enet_ptpd).......................................82.7EthernetwithuIP(enet_uip)........................................82.8GPIOJTAGRecovery(gpio_jtag).....................................92.9HelloWorld(hello)..............................................92.10Interrupts(interrupts)............................................92.11MPU(mpu_fault)...............................................92.12QuickStartGame(qs-adventure).....................................102.13Timer(timers)................................................102.14UART(uart_echo)..............................................102.15uDMA(udma_demo)............................................112.16USBGenericBulkDevice(usb_dev_bulk).................................112.17USBHIDKeyboardDevice(usb_dev_keyboard).............................112.18USBHIDMouseDevice(usb_dev_mouse)................................122.19USBSerialDevice(usb_dev_serial)....................................122.20USBHIDKeyboardHost(usb_host_keyboard)..............................122.21USBHIDMouseHost(usb_host_mouse).................................122.22USBMassStorageClassHost(usb_host_msc).............................122.23Watchdog(watchdog)............................................133DevelopmentSystemUtilities......................................154CommandLineProcessingModule...................................234.1Introduction..................................................234.2APIFunctions................................................234.3ProgrammingExample...........................................255CPUUsageModule.............................................275.1Introduction..................................................275.2APIFunctions................................................275.3ProgrammingExample...........................................286FlashParameterBlockModule......................................316.1Introduction..................................................316.2APIFunctions................................................316.3ProgrammingExample...........................................337IntegerSquareRootModule.......................................357.1Introduction..................................................357.2APIFunctions................................................357.3ProgrammingExample...........................................368EthernetBoardLocatorModule.....................................378.1Introduction..................................................37May11,20093TableofContents8.2APIFunctions..........................