2022-02-09 16:20:45 +00:00
|
|
|
#ifndef SERIAL_H
|
|
|
|
#define SERIAL_H
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#define PORT 0x3f8 // COM1
|
|
|
|
|
|
|
|
int serial_init();
|
|
|
|
int dbg_putchar(int c);
|
|
|
|
int vdbgf(const char *restrict format, va_list ap);
|
|
|
|
int dbgf(const char *restrict format, ...);
|
2022-02-09 17:33:06 +00:00
|
|
|
int warn(const char *restrict format, ...);
|
|
|
|
int error(const char *restrict format, ...);
|
|
|
|
int fixme(const char *restrict format, ...);
|
2022-02-10 08:01:43 +00:00
|
|
|
int todo(const char *restrict format, ...);
|
|
|
|
void panic(const char *restrict format, ...);
|
2022-02-09 16:20:45 +00:00
|
|
|
|
|
|
|
#endif
|