summaryrefslogtreecommitdiff
path: root/src/kernel/core/monitor.h
blob: bb8e16ee38c0d750d96f5fb14902ee20b2f6b327 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef DEF_MONITOR_H
#define DEF_MONITOR_H

#include "types.h"

void monitor_put(char c);
void monitor_clear();
void monitor_write(char *s);
void monitor_writeHex(uint32_t v);
void monitor_writeDec(uint32_t v);

#define NL monitor_put('\n');
#define TAB monitor_put('\t');
#define WHERE { monitor_write("(kernel:");	\
				monitor_write(__FILE__);	\
				monitor_write(":");			\
				monitor_writeDec(__LINE__);	\
				monitor_write(")\t"); }

#endif