GPIO
however, the only meaningful data returned is whether the pin is terminated with a pull-up or
down resistor.
Returns:
None
10.2.1.10 ROM_GPIOPadConfigSet
Sets the pad configuration for the specified pin(s).
Prototype:
void
ROM_GPIOPadConfigSet(uint32_t ui32Port,
uint8_t ui8Pins,
uint32_t ui32Strength,
uint32_t ui32PinType)
ROM Location:
ROM_APITABLE
is an array of pointers located at
0x0100.0010
.
ROM_GPIOTABLE
is an array of pointers located at
ROM_APITABLE[4]
.
ROM_GPIOPadConfigSet
is a function pointer located at
ROM_GPIOTABLE[5]
.
Parameters:
ui32Port
is the base address of the GPIO port.
ui8Pins
is the bit-packed representation of the pin(s).
ui32Strength
specifies the output drive strength.
ui32PinType
specifies the pin type.
Description:
This function sets the drive strength and type for the specified pin(s) on the selected GPIO
port. For pin(s) configured as input ports, the pad is configured as requested, but the only real
effect on the input is the configuration of the pull-up or pull-down termination.
The parameter
ui32Strength
can be one of the following values:
GPIO_STRENGTH_2MA
GPIO_STRENGTH_4MA
GPIO_STRENGTH_8MA
GPIO_STRENGTH_8MA_SC
where
GPIO_STRENGTH_xMA
specifies either 2, 4, or 8 mA output drive strength, and
GPIO_OUT_STRENGTH_8MA_SC
specifies 8 mA output drive with slew control.
The parameter
ui32PinType
can be one of the following values:
GPIO_PIN_TYPE_STD
GPIO_PIN_TYPE_STD_WPU
GPIO_PIN_TYPE_STD_WPD
GPIO_PIN_TYPE_OD
GPIO_PIN_TYPE_OD_WPU
GPIO_PIN_TYPE_OD_WPD
GPIO_PIN_TYPE_ANALOG
94
April 8, 2013
Summary of Contents for Tiva TM4C123GH6PM
Page 26: ...Boot Loader 26 April 8 2013...
Page 68: ...Controller Area Network CAN 68 April 8 2013...
Page 122: ...Hibernation Module 122 April 8 2013...
Page 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Page 152: ...Memory Protection Unit MPU 152 April 8 2013...
Page 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Page 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Page 222: ...System Control 222 April 8 2013...
Page 270: ...UART 270 April 8 2013...
Page 296: ...uDMA Controller 296 April 8 2013...
Page 351: ...April 8 2013 351...