EasyManua.ls Logo

Texas Instruments Tiva TM4C123GH6PM - Page 257

Texas Instruments Tiva TM4C123GH6PM
352 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UART
22.2.1.14 ROM_UARTConfigGetExpClk
Gets the current configuration of a UART.
Prototype:
void
ROM_UARTConfigGetExpClk(uint32_t ui32Base,
uint32_t ui32UARTClk,
uint32_t
*
pui32Baud,
uint32_t
*
pui32Config)
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_UARTConfigGetExpClk is a function pointer located at ROM_UARTTABLE[6].
Parameters:
ui32Base is the base address of the UART port.
ui32UARTClk is the rate of the clock supplied to the UART module.
pui32Baud is a pointer to storage for the baud rate.
pui32Config is a pointer to storage for the data format.
Description:
The baud rate and data format for the UART is determined, given an explicitly provided
peripheral clock (hence the ExpClk suffix). The returned baud rate is the actual baud
rate; it may not be the exact baud rate requested or an “official” baud rate. The data
format returned in pui32Config is enumerated the same as the ui32Config parameter of
ROM_UARTConfigSetExpClk().
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.15 ROM_UARTConfigSetExpClk
Sets the configuration of a UART.
Prototype:
void
ROM_UARTConfigSetExpClk(uint32_t ui32Base,
uint32_t ui32UARTClk,
uint32_t ui32Baud,
uint32_t ui32Config)
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_UARTConfigSetExpClk is a function pointer located at ROM_UARTTABLE[5].
April 8, 2013 257

Related product manuals