43#define uart_set_baud( id, baud ) Chip_UART_SetBaud( usart_cfg[id].ptr, baud )
44#define uart_config_data( id, cfg ) Chip_UART_ConfigData( usart_cfg[id].ptr, cfg )
45#define uart_tx_enable( id ) Chip_UART_TXEnable( usart_cfg[id].ptr )
46#define uart_tx_disable( id ) Chip_UART_TXDisable( usart_cfg[id].ptr )
47#define uart_int_enable( id, mask ) Chip_UART_IntEnable( usart_cfg[id].ptr, mask )
48#define uart_int_disable( id, mask ) Chip_UART_IntDisable( usart_cfg[id].ptr, mask )
49#define uart_send_char( id, ch ) Chip_UART_SendByte( usart_cfg[id].ptr, ch )
50#define uart_read_char( id ) Chip_UART_ReadByte( usart_cfg[id].ptr )
51#define uart_send( id, msg, len ) Chip_UART_SendRB( usart_cfg[id].ptr, &txring, msg, len )
52#define uart_read( id, buf, len ) Chip_UART_ReadRB( usart_cfg[id].ptr, &rxring, buf, len )
IRQn_Type
Definition LPC176x5x.h:56
RINGBUFF_T rxring
Definition lpc17_uartrb.h:41
struct lpc_uart_cfg lpc_uart_cfg_t
RINGBUFF_T txring
Definition lpc17_uartrb.h:41
volatile lpc_uart_cfg_t usart_cfg[4]
Definition lpc17_uartrb.h:39
void uart_init(uint8_t id)
Definition lpc17_uart.c:37
Definition lpc17_uart.h:33
IRQn_Type irq
Definition lpc17_uart.h:35
LPC_USART_T * ptr
Definition lpc17_uart.h:34