aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/uart.a.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-21 19:28:07 -0800
committerChristian Cunningham <cc@localhost>2021-12-21 19:28:07 -0800
commit969b39a6970d3c4f5ddb89048699325c96939d32 (patch)
treedd351a858cb89b651f14d51e287138bd48328d19 /src/drivers/uart.a.h
parentc7d005f021c5deb324b227acffb12284efc42a41 (diff)
Added Debug Output Pseudo Functions
Diffstat (limited to 'src/drivers/uart.a.h')
-rw-r--r--src/drivers/uart.a.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/uart.a.h b/src/drivers/uart.a.h
index cd4498e..c14fa69 100644
--- a/src/drivers/uart.a.h
+++ b/src/drivers/uart.a.h
@@ -1,6 +1,9 @@
#ifndef DRIVERS_UART_A_H
#define DRIVERS_UART_A_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);