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
, or it can be explicitly hard-coded if it is constant and known (to save
the code/execution overhead of a call to
If the peripheral clock has been changed to PIOSC (via
), 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
Summary of Contents for Tiva TM4C123GH6PM
Page 26: ...Boot Loader 26 April 8 2013...
Page 68: ...Controller Area Network CAN 68 April 8 2013...
Page 122: ...Hibernation Module 122 April 8 2013...
Page 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Page 152: ...Memory Protection Unit MPU 152 April 8 2013...
Page 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Page 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Page 222: ...System Control 222 April 8 2013...
Page 270: ...UART 270 April 8 2013...
Page 296: ...uDMA Controller 296 April 8 2013...
Page 351: ...April 8 2013 351...