Example of UART-DMA transfers taken form the npx cmsis driver libary

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

UART

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]UARTxPointer to selected UART peripheral, should be:

  • LPC_UART0: UART0 peripheral
  • LPC_UART1: UART1 peripheral
  • LPC_UART2: UART2 peripheral
  • LPC_UART3: UART3 peripheral
[in]baudrateDesired UART baud rate.
Returns:
Error status, could be:
  • SUCCESS
  • ERROR

Definition at line 59 of file lpc17xx_uart.c.