mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-04 03:49:10 +00:00
81aaf2ed35
Signed-off-by: Hector Martin <marcan@marcan.st>
25 lines
397 B
C
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
|