GPIO
Note:
This cannot be used to turn any pin into a SSI pin; it only configures a SSI pin for proper
operation.
Returns:
None.
10.2.1.24 ROM_GPIOPinTypeTimer
Configures pin(s) for use by the Timer peripheral.
Prototype:
void
ROM_GPIOPinTypeTimer(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_GPIOPinTypeTimer is a function pointer located at ROM_GPIOTABLE[20].
Parameters:
ui32Port is the base address of the GPIO port.
ui8Pins is the bit-packed representation of the pin(s).
Description:
The CCP pins must be properly configured for the timer 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 timer pin; it only configures a timer pin for proper
operation.
Returns:
None.
10.2.1.25 ROM_GPIOPinTypeUART
Configures pin(s) for use by the UART peripheral.
Prototype:
void
ROM_GPIOPinTypeUART(uint32_t ui32Port,
uint8_t ui8Pins)
April 8, 2013 103