m1n1/src/uart.h
Hector Martin 81aaf2ed35 Basic exceptions, irq, cache mgmt support
Signed-off-by: Hector Martin <marcan@marcan.st>
2021-01-17 00:49:22 +09:00

25 lines
397 B
C

/* SPDX-License-Identifier: MIT */
#ifndef UART_H
#define UART_H
#include "types.h"
void uart_init(void);
void uart_putbyte(u8 c);
u8 uart_getbyte(void);
void uart_putchar(u8 c);
u8 uart_getchar(void);
void uart_write(const void *buf, size_t count);
size_t uart_read(void *buf, size_t count);
void uart_puts(const char *s);
void uart_setbaud(int baudrate);
void uart_flush(void);
#endif