blob: fa3a35e588680dfd8ee5cec858bae2edd46f6513 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef _STDIO_H_
#define _STDIO_H_
#include <stdarg.h>
#include <string.h>
#include <kernel/tty.h>
#include <printf_internal.h>
#include <kernel/serial.h>
#define EOF (-1)
extern bool serial_debug;
int printf(const char* format, ...);
int sprintf(char* buf, const char* format, ...);
int print(const char* str);
int putc(const char c);
char getc(void); //for now void
class Debug
{
public:
static void set_serial_debug(bool state);
};
#endif
|