UART
Parameters:
ui32Base is the base address of the UART port.
ui32UARTClk is the rate of the clock supplied to the UART module.
ui32Baud is the desired baud rate.
ui32Config is the data format for the port (number of data bits, number of stop bits, and parity).
Description:
This function configures the UART for operation in the specified data format. The baud rate is
provided in the ui32Baud parameter and the data format in the ui32Config parameter.
The ui32Config parameter is the logical OR of three values: the number of
data bits, the number of stop bits, and the parity. UART_CONFIG_WLEN_8,
UART_CONFIG_WLEN_7, UART_CONFIG_WLEN_6, and UART_CONFIG_WLEN_5
select from eight to five data bits per byte (respectively). UART_CONFIG_STOP_ONE
and UART_CONFIG_STOP_TWO select one or two stop bits (respectively).
UART_CONFIG_PAR_NONE, UART_CONFIG_PAR_EVEN, UART_CONFIG_PAR_ODD,
UART_CONFIG_PAR_ONE, and UART_CONFIG_PAR_ZERO select the parity mode (no
parity bit, even parity bit, odd parity bit, parity bit always one, and parity bit always zero,
respectively).
The peripheral clock is the same as the processor clock. This is the value returned by
ROM_SysCtlClockGet(), or it can be explicitly hard-coded if it is constant and known (to save
the code/execution overhead of a call to ROM_SysCtlClockGet()).
If the peripheral clock has been changed to PIOSC (via ROM_UARTClockSourceSet()), the
peripheral clock should be specified as 16,000,000 (the nominal rate of PIOSC).
Returns:
None.
22.2.1.16 ROM_UARTDisable
Disables transmitting and receiving.
Prototype:
void
ROM_UARTDisable(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_UARTDisable is a function pointer located at ROM_UARTTABLE[8].
Parameters:
ui32Base is the base address of the UART port.
Description:
Clears the UARTEN, TXE, and RXE bits, then waits for the end of transmission of the current
character, and flushes the transmit FIFO.
Returns:
None.
258 April 8, 2013