Tel(020)3873097638730977Fax38730925(GPIO)..................................................................................11.1GPIO.....................................................................................................................11.2GPIO.....................................................................................................21.3GPIO.....................................................................................................4iTel(020)3873097638730977Fax38730925(GPIO)voidGPIODirModeSet(unsignedlongulPort,unsignedcharucPins,unsignedlongulPinIO)5unsignedlongGPIODirModeGet(unsignedlongulPort,unsignedcharucPin)6voidGPIOPadConfigSet(unsignedlongulPort,unsignedcharucPins,unsignedlongulStrength,unsignedlongulPadType)6voidGPIOPadConfigGet(unsignedlongulPort,unsignedcharucPin,unsignedlong*pulStrength,unsignedlong*pulPadType)7voidGPIOPinTypeGPIOInput(unsignedlongulPort,unsignedcharucPins)7voidGPIOPinTypeGPIOOutput(unsignedlongulPort,unsignedcharucPins)7voidGPIOPinTypeGPIOOutputOD(unsignedlongulPort,unsignedcharucPins)7voidGPIOPinTypeADC(unsignedlongulPort,unsignedcharucPins)8voidGPIOPinTypeCAN(unsignedlongulPort,unsignedcharucPins)8voidGPIOPinTypeComparator(unsignedlongulPort,unsignedcharucPins)8voidGPIOPinTypeI2C(unsignedlongulPort,unsignedcharucPins)8voidGPIOPinTypePWM(unsignedlongulPort,unsignedcharucPins)8voidGPIOPinTypeQEI(unsignedlongulPort,unsignedcharucPins)9voidGPIOPinTypeSSI(unsignedlongulPort,unsignedcharucPins)9voidGPIOPinTypeTimer(unsignedlongulPort,unsignedcharucPins)9voidGPIOPinTypeUART(unsignedlongulPort,unsignedcharucPins)9voidGPIOPinTypeUSBDigital(unsignedlongulPort,unsignedcharucPins)9voidGPIOPinWrite(unsignedlongulPort,unsignedcharucPins,unsignedcharucVal)10longGPIOPinRead(unsignedlongulPort,unsignedcharucPins)10voidGPIOIntTypeSet(unsignedlongulPort,unsignedcharucPins,unsignedlongulIntType)12unsignedlongGPIOIntTypeGet(unsignedlongulPort,unsignedcharucPin)12voidGPIOPinIntEnable(unsignedlongulPort,unsignedcharucPins)12voidGPIOPinIntDisable(unsignedlongulPort,unsignedcharucPins)13longGPIOPinIntStatus(unsignedlongulPort,tBooleanbMasked)13voidGPIOPinIntClear(unsignedlongulPort,unsignedcharucPins)13voidGPIOPortIntRegister(unsignedlongulPort,void(*pfnIntHandler)(void))13voidGPIOPortIntUnregister(unsignedlongulPort)131.1GPIOI/OInput/OutputStellarisARMI/OGPIOGeneralPurposeInput/OutputGPIO38GPIOGPIOPAPBPCPDPEPFPGPHGPIO8PAPA0PA7GPIOFiRMFoundationIPforReal-TimeMicrocontrollers60/GPIOGPIOzGPIO1Tel(020)3873097638730977Fax38730925z/5VzzGPIO2mA4mA8mASlewRate8mA1.2GPIOStellarisARMGPIO31(Input)U1InternalBusReadPulsePin1.1GPIO1.1GPIOSchmitt-triggeredinputU1GPIOReadPulsePinInternalBus2(Output)T1T2DCPQQU1GNDVDDWritePulseInternalBusPinU2ReadPulse1.2GPIO2Tel(020)3873097638730977Fax38730925(OutputOD)T1DCPQQU1GNDWritePulseInternalBusPinU2ReadPulse1.3GPIO1.3GPIOT1T110GNDPin4.710k3.3V5VI2C4GPIO1.4PinVDD3.3VPinVDDD10.6VD1VDD3.9VPinGNDD20.6V3Tel(020)3873097638730977Fax38730925(SYSCTL_PERIPH_GPIOB);//GPIOBSysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG);//GPIOG2GPIOGPIOGPIOPinType4Tel(020)3873097638730977Fax38730925()GPIOvoidGPIODirModeSet(unsignedlongulPort,unsignedcharucPins,unsignedlongulPinIO)ulPortGPIOGPIO_PORTA_BASE//GPIOA0x40004000GPIO_PORTB_BASE//GPIOB0x40005000GPIO_PORTC_BASE//GPIOC0x40006000GPIO_PORTD_BASE//GPIOD0x40007000GPIO_PORTE_BASE//GPIOE0x40024000GPIO_PORTF_BASE//GPIOF0x40025000GPIO_PORTG_BASE//GPIOG0x40026000GPIO_PORTH_BASE//GPIOH0x400270002008LM3S3xxx/5xxxLM3S1xxx/2xxxAHBGPIOSysCtlGPIOAHBEnable()AHBulPortGPIO_PORTA_AHB_BASE//GPIOAAHBGPIO_PORTB_AHB_BASE//GPIOBAHBGPIO_PORTC_AHB_BASE//GPIOCAHBGPIO_PORTD_AHB_BASE//GPIODAHBGPIO_PORTE_AHB_BASE//GPIOEAHBGPIO_PORTF_AHB_BASE//GPIOFAHBGPIO_PORTG_AHB_BASE//GPIOGAHBGPIO_PORTH_AHB_BASE//GPIOHAHBucPinsGPIO_PIN_0//GPIO00x01GPIO_PIN_1//GPIO10x02GPIO_PIN_2//GPIO20x04GPIO_PIN_3//GPIO30x08GPIO_PIN_4//GPIO40x105Tel(020)3873097638730977Fax38730925()GPIOunsignedlongGPIODirModeGet(unsignedlongulPort,unsignedcharucPin)ulPortGPIOucPins1.1ulPinIO1.3GPIOPadConfigSet()GPIOvoidGPIOPadConfigSet(unsignedlongulPort,unsignedcharucPins,unsignedlongulStrength,unsignedlongulPadType)ulPortGPIOucPinsulStrengthGPIO_STRENGTH_2MA//2mAGPIO_STRENGTH_4MA//4mAGPIO_STRENGTH_8MA//8mAGPIO_STRENGTH_8MA_SC//SlewRate8mAulPadTypeGPIO_PIN_TYPE_STD//GPIO_PIN_TYPE