Example of UART-DMA transfers taken form the npx cmsis driver libary
Modules | |
UART Public Macros | |
UART Private Macros | |
UART Public Types | |
UART Public Functions | |
Functions | |
static Status | uart_set_divisors (LPC_UART_TypeDef *UARTx, uint32_t baudrate) |
Determines best dividers to get a target clock rate. |
Function Documentation
static Status uart_set_divisors | ( | LPC_UART_TypeDef * | UARTx, |
uint32_t | baudrate | ||
) | [static] |
Determines best dividers to get a target clock rate.
- Parameters:
-
[in] UARTx Pointer to selected UART peripheral, should be: - LPC_UART0: UART0 peripheral
- LPC_UART1: UART1 peripheral
- LPC_UART2: UART2 peripheral
- LPC_UART3: UART3 peripheral
[in] baudrate Desired UART baud rate.
- Returns:
- Error status, could be:
- SUCCESS
- ERROR
Definition at line 59 of file lpc17xx_uart.c.
Generated on Tue Jul 12 2022 10:57:55 by 1.7.2