blob: 24def78df5e5a549b808adc0227696a9d4e05a71 (
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);
static inline void serial_writestring(const char *str) {
for (size_t i = 0; i < strlen(str); i++)
write_serial(str[i]);
}
#endif
|