usart.h
Go to the documentation of this file.
void usart_set_callback(usart_callback_t callback)
void(* usart_callback_t)(uint8_t *buf, int len, void *pxTaskWoken)
In order to catch incoming chars use the callback.
Definition: usart.h:68
int usart_messages_waiting(int handle)
void usart_insert(char c, void *pxTaskWoken)
Insert a character to the RX buffer of a usart.
void usart_init(struct usart_conf *conf)
Initialise UART with the usart_conf data structure.