#pragma once #include struct usart_console; struct usart_console *console_init(unsigned dev_id); FILE *console_to_fp(struct usart_console *console); int console_peek(char *c, struct usart_console *console, int block); int console_getc(char *c, struct usart_console *console); int console_getline(struct usart_console *console, char *buf, size_t n); ssize_t console_read(struct usart_console *console, char *buf, size_t n);