aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/uart.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-21 19:36:58 -0800
committerChristian Cunningham <cc@localhost>2021-12-21 19:36:58 -0800
commitcf2618101ef832a9652d84b43ed5f558da401248 (patch)
tree6d9c60a6ecb9ae22fb0223f30127dbda76d2fe74 /src/drivers/uart.h
parent969b39a6970d3c4f5ddb89048699325c96939d32 (diff)
Consolidated UART Headers
Diffstat (limited to 'src/drivers/uart.h')
-rw-r--r--src/drivers/uart.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/uart.h b/src/drivers/uart.h
index 9f1319b..c3f8e86 100644
--- a/src/drivers/uart.h
+++ b/src/drivers/uart.h
@@ -1,6 +1,12 @@
#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);
+#define PRINTI_DBG(X) uart_char('[');uart_string(__FILE__);uart_char(':');uart_10(__LINE__);uart_string("] ");uart_10(X);
+
+extern void uart_char(unsigned char c);
+extern void uart_hex(unsigned long data);
+extern void uart_string(char* message);
void uart_hexn(unsigned long);
void uart_10(unsigned long);