![]() |
uartlite
Vitis Drivers API Documentation
|
This file contains a design example using the low-level driver functions and macros of the UartLite driver (XUartLite).
The user must provide a physical loopback such that data which is transmitted will be received.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00b rpm 04/25/02 First release 1.00b sv 06/13/05 Minor changes to comply to Doxygen and coding guidelines 2.00a ktn 10/20/09 Updated to use HAL processor APIs and minor changes for coding guidelines. 3.2 ms 01/23/17 Added xil_printf statement in main function to ensure that "Successfully ran" and "Failed" strings are available in all examples. This is a fix for CR-965028. 3.9 gm 07/08/23 Added SDT support 3.13 vlt 12/18/25 Update Doxygen comments to include SDT flow details. 3.13 vlt 03/15/26 Updated BaseAddress type from u32 to UINTPTR to support 64-bit addressing
Functions | |
| int | UartLiteLowLevelExample (UINTPTR UartliteBaseAddress) |
| This function does a minimal test on the UartLite device using the low-level driver macros and functions. More... | |
| int | main (void) |
| Main function to call the example. More... | |
| int main | ( | void | ) |
Main function to call the example.
References UartLiteLowLevelExample().
| int UartLiteLowLevelExample | ( | UINTPTR | UartliteBaseAddress | ) |
This function does a minimal test on the UartLite device using the low-level driver macros and functions.
This function sends data and expects to receive the data through the UartLite. A physical loopback must be done by the user with the transmit and receive signals of the UartLite.
| UartliteBaseAddress | contains the base address of the device |
References XUartLite_RecvByte(), and XUartLite_SendByte().
Referenced by main().