aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-05 14:27:09 -0800
committerChristian Cunningham <cc@localhost>2022-01-05 14:27:09 -0800
commit866a6ca0e749f4446b7fdc7579a6d553df85ec10 (patch)
treed259223d85c224d649c6c38675e99b155d50cf48 /src/drivers
parent3a8ed19bf83f11ff00c4904fab2cc083b7e33478 (diff)
Moved includes to its own directory
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/uart.c2
-rw-r--r--src/drivers/uart.h15
2 files changed, 1 insertions, 16 deletions
diff --git a/src/drivers/uart.c b/src/drivers/uart.c
index 142a5c3..f6fe79b 100644
--- a/src/drivers/uart.c
+++ b/src/drivers/uart.c
@@ -1,4 +1,4 @@
-#include "../drivers/uart.h"
+#include <drivers/uart.h>
void uart_10(unsigned long val)
{
diff --git a/src/drivers/uart.h b/src/drivers/uart.h
deleted file mode 100644
index b83732f..0000000
--- a/src/drivers/uart.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef DRIVERS_UART_H
-#define DRIVERS_UART_H
-
-#define PRINTS_DBG(X) uart_char('[');uart_string(__FILE__);uart_char(':');uart_10(__LINE__);uart_string("] ");uart_string(X);uart_char('\n');
-#define PRINTX_DBG(X) uart_char('[');uart_string(__FILE__);uart_char(':');uart_10(__LINE__);uart_string("] ");uart_hex((unsigned long)X);uart_char('\n');
-#define PRINTI_DBG(X) uart_char('[');uart_string(__FILE__);uart_char(':');uart_10(__LINE__);uart_string("] ");uart_10((unsigned long)X);uart_char('\n');
-
-extern void uart_char(unsigned char c);
-extern void uart_string(char* message);
-extern void uart_hex(unsigned long data);
-
-void uart_10(unsigned long);
-void uart_hexn(unsigned long);
-
-#endif