UART
22.2.1.12 ROM_UARTClockSourceGet
Gets the baud clock source for the specified UART.
Prototype:
uint32_t
ROM_UARTClockSourceGet(uint32_t ui32Base)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_UARTTABLE is an array of pointers located at ROM_APITABLE[1].
ROM_UARTClockSourceGet is a function pointer located at ROM_UARTTABLE[32].
Parameters:
ui32Base is the base address of the UART port.
Description:
This function returns the baud clock source for the specified UART. The possible baud clock
source are the system clock (UART_CLOCK_SYSTEM) or the precision internal oscillator
(UART_CLOCK_PIOSC).
Returns:
None.
22.2.1.13 ROM_UARTClockSourceSet
Sets the baud clock source for the specified UART.
Prototype:
void
ROM_UARTClockSourceSet(uint32_t ui32Base,
uint32_t ui32Source)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_UARTTABLE is an array of pointers located at ROM_APITABLE[1].
ROM_UARTClockSourceSet is a function pointer located at ROM_UARTTABLE[31].
Parameters:
ui32Base is the base address of the UART port.
ui32Source is the baud clock source for the UART.
Description:
This function allows the baud clock source for the UART to be selected. The possible clock
source are the system clock (UART_CLOCK_SYSTEM) or the precision internal oscillator
(UART_CLOCK_PIOSC).
Changing the baud clock source will change the baud rate generated by the UART. Therefore,
the baud rate should be reconfigured after any change to the baud clock source.
Returns:
None.
256 April 8, 2013