41#define uart_set_baud( id, baud ) Chip_UART_SetBaud( usart_cfg[id].ptr, baud )
42#define uart_config_data( id, cfg ) Chip_UART_ConfigData( usart_cfg[id].ptr, cfg )
43#define uart_tx_enable( id ) Chip_UART_TXEnable( usart_cfg[id].ptr )
44#define uart_tx_disable( id ) Chip_UART_TXDisable( usart_cfg[id].ptr )
45#define uart_int_enable( id, mask ) Chip_UART_IntEnable( usart_cfg[id].ptr, mask )
46#define uart_int_disable( id, mask ) Chip_UART_IntDisable( usart_cfg[id].ptr, mask )
47#define uart_send_char( id, ch ) Chip_UART_SendByte( usart_cfg[id].ptr, ch )
48#define uart_read_char( id ) Chip_UART_ReadByte( usart_cfg[id].ptr )
49#define uart_send( id, msg, len ) Chip_UART_SendBlocking( usart_cfg[id].ptr, msg, len )
50#define uart_read( id, buf, len ) Chip_UART_ReadBlocking( usart_cfg[id].ptr, buf, len )
IRQn_Type
Definition LPC176x5x.h:56
struct lpc_uart_cfg lpc_uart_cfg_t
void uart_init(uint8_t id)
Definition lpc17_uart.c:37
const lpc_uart_cfg_t usart_cfg[4]
Definition lpc17_uart.c:30
Definition lpc17_uart.h:33
CHIP_SYSCTL_PCLK_T sysclk
Definition lpc17_uart.h:36
IRQn_Type irq
Definition lpc17_uart.h:35
LPC_USART_T * ptr
Definition lpc17_uart.h:34