GPIO
Parameters:
ui32Port
is the base address of the GPIO port.
ui8Pin
is the pin number.
Description:
This function gets the direction and control mode for a specified pin on the selected GPIO port.
The pin can be configured as either an input or output under software control, or it can be under
hardware control. The type of control and direction are returned as an enumerated data type.
Returns:
Returns one of the enumerated data types described for
10.2.1.4 ROM_GPIODirModeSet
Sets the direction and mode of the specified pin(s).
Prototype:
void
ROM_GPIODirModeSet(uint32_t ui32Port,
uint8_t ui8Pins,
uint32_t ui32PinIO)
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_GPIODirModeSet
is a function pointer located at
ROM_GPIOTABLE[1]
.
Parameters:
ui32Port
is the base address of the GPIO port
ui8Pins
is the bit-packed representation of the pin(s).
ui32PinIO
is the pin direction and/or mode.
Description:
This function will set the specified pin(s) on the selected GPIO port as either an input or output
under software control, or it will set the pin to be under hardware control.
The parameter
ui32PinIO
is an enumerated data type that can be one of the following values:
GPIO_DIR_MODE_IN
GPIO_DIR_MODE_OUT
GPIO_DIR_MODE_HW
where
GPIO_DIR_MODE_IN
specifies that the pin is programmed as a software controlled
input,
GPIO_DIR_MODE_OUT
specifies that the pin is programmed as a software controlled
output, and
GPIO_DIR_MODE_HW
specifies that the pin is placed under hardware control.
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.
must also be used to configure the corresponding pad(s) in order
for them to propagate the signal to/from the GPIO.
90
April 8, 2013
Содержание Tiva TM4C123GH6PM
Страница 26: ...Boot Loader 26 April 8 2013...
Страница 68: ...Controller Area Network CAN 68 April 8 2013...
Страница 122: ...Hibernation Module 122 April 8 2013...
Страница 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Страница 152: ...Memory Protection Unit MPU 152 April 8 2013...
Страница 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Страница 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Страница 222: ...System Control 222 April 8 2013...
Страница 270: ...UART 270 April 8 2013...
Страница 296: ...uDMA Controller 296 April 8 2013...
Страница 351: ...April 8 2013 351...