64 typedef void (*
uart_callback_t) (
void * extra_data, uint8_t *buf,
int len,
void *pxTaskWoken);
101 static inline int uart_stdio_msgwaiting(
void) {
void uart_set_callback(void *arg, uart_callback_t callback)
uint8_t stopbits
Definition: k_uart.h:47
void uart_init(struct uart_conf *conf)
Initialise UART with the uart_conf data structure.
Usart configuration, to be used with the uart_init call.
Definition: k_uart.h:43
void(* uart_callback_t)(void *extra_data, uint8_t *buf, int len, void *pxTaskWoken)
In order to catch incoming chars use the callback.
Definition: k_uart.h:64
const char * device
Definition: k_uart.h:44
uint8_t paritysetting
Definition: k_uart.h:48
int uart_messages_waiting(int handle)
uint8_t checkparity
Definition: k_uart.h:49
void uart_putstr(char *buf, int len)
Send char buffer on UART.
void uart_putc(char c)
Polling putchar.
uint8_t databits
Definition: k_uart.h:46
void uart_insert(char c, void *pxTaskWoken)
Insert a character to the RX buffer of a uart.
char uart_getc(void)
Buffered getchar.
uint32_t baudrate
Definition: k_uart.h:45