Source code for the Trusted Boot Module.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
tbm-mcu/include/console.h

12 lines
436 B

#pragma once
#include <stdio.h>
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);