GPIO
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_GPIOPinTypeUART is a function pointer located at ROM_GPIOTABLE[21].
Parameters:
ui32Port is the base address of the GPIO port.
ui8Pins is the bit-packed representation of the pin(s).
Description:
The UART pins must be properly configured for the UART peripheral to function correctly. This
function provides a typical configuration for those pin(s); other configurations may work as well
depending upon the board setup (for example, using the on-chip pull-ups).
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.
Note:
This cannot be used to turn any pin into a UART pin; it only configures a UART pin for proper
operation.
Returns:
None.
10.2.1.26 ROM_GPIOPinTypeUSBAnalog
Configures pin(s) for use by the USB peripheral.
Prototype:
void
ROM_GPIOPinTypeUSBAnalog(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_GPIOPinTypeUSBAnalog is a function pointer located at ROM_GPIOTABLE[28].
Parameters:
ui32Port is the base address of the GPIO port.
ui8Pins is the bit-packed representation of the pin(s).
Description:
Some USB analog pins must be properly configured for the USB peripheral to function correctly.
This function provides the proper configuration for any USB pin(s). This can also be used to
configure the EPEN and PFAULT pins so that they are no longer used by the USB controller.
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.
104 April 8, 2013