blob: 23f6907b3a633040f5eb4a2f90bee6dabfaf1bdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef SERIAL_H
#define SERIAL_H
#include <kernel/string.h>
int serial_init(void);
char read_serial(void);
void write_serial(char a);
inline void serial_writestring(const char *str) {
for (size_t i = 0; i < strlen(str); i++)
write_serial(str[i]);
}
#endif
|