24 #ifndef __RFLPC_UART_H__
25 #define __RFLPC_UART_H__
27 #ifdef RFLPC_CONFIG_ENABLE_UART
29 #include "../nxp/LPC17xx.h"
30 #include "../interrupt.h"
int rflpc_uart_init_ex(rflpc_uart_t uart_num, int dll, int dlm, int divadd, int mulval)
Inits the UART e, using 8 bits data, no parity and 1 stop bit.
char rflpc_uart_getchar(rflpc_uart_t uart_num)
Gets a character from the uart.
void rflpc_uart_set_rx_callback(rflpc_uart_t uart_num, rflpc_irq_handler_t callback)
Sets the uart rx callback.
int rflpc_uart_byte_available(rflpc_uart_t uart_num)
Test the reception FIFO.
rflpc_uart_t
Constants that represents the UART port you want to use in uart driver functions. ...
int rflpc_uart_init(rflpc_uart_t uart_num)
Inits the UART e, using 11520 baud, 8 bits data, no parity and 1 stop bit.
void rflpc_uart_putchar(rflpc_uart_t uart_num, char c)
Sends a byte to the uart.
void(* rflpc_irq_handler_t)(void)
Interrupt handler type.