GPIO
where
GPIO_PIN_TYPE_STD
∗
specifies a push-pull pin,
GPIO_PIN_TYPE_OD
∗
specifies an
open-drain pin,
∗
_WPU
specifies a weak pull-up,
∗
_WPD
specifies a weak pull-down, and
GPIO_PIN_TYPE_ANALOG
specifies an analog input.
The pin(s) are specified using a bit-packed byte, where each bit that is set identifies the pin to
be accessed, and where bit 0 of the byte represents GPIO port pin 0, bit 1 represents GPIO
port pin 1, and so on.
Returns:
None.
10.2.1.11 ROM_GPIOPinConfigure
Configures the alternate function of a GPIO pin.
Prototype:
void
ROM_GPIOPinConfigure(uint32_t ui32PinConfig)
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_GPIOPinConfigure
is a function pointer located at
ROM_GPIOTABLE[26]
.
Parameters:
ui32PinConfig
is the pin configuration value, specified as only one of the
GPIO_P
??_???
values.
Description:
This function configures the pin mux that selects the peripheral function associated with a
particular GPIO pin. Only one peripheral function at a time can be associated with a GPIO
pin, and each peripheral function should only be associated with a single GPIO pin at a time
(despite the fact that many of them can be associated with more than one GPIO pin).
Returns:
None.
10.2.1.12 ROM_GPIOPinRead
Reads the values present of the specified pin(s).
Prototype:
int32_t
ROM_GPIOPinRead(uint32_t ui32Port,
uint8_t ui8Pins)
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_GPIOPinRead
is a function pointer located at
ROM_GPIOTABLE[11]
.
April 8, 2013
95
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...