aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-24 15:21:54 -0800
committerChristian Cunningham <cc@localhost>2021-12-24 15:21:54 -0800
commit3a366988a0077474075d8f33ad76514d2fa0c5d6 (patch)
tree7aa293e59bee8308825e029069d395c628d230cd /src/drivers
parentd44bf5acb015edaeacc022f423bae4743b868f53 (diff)
Standardized Formatting
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/uart.c8
-rw-r--r--src/drivers/uart.h5
2 files changed, 8 insertions, 5 deletions
diff --git a/src/drivers/uart.c b/src/drivers/uart.c
index 64bd73a..a45f86d 100644
--- a/src/drivers/uart.c
+++ b/src/drivers/uart.c
@@ -1,11 +1,13 @@
#include "../drivers/uart.h"
-void uart_hexn(unsigned long c_val) {
+void uart_hexn(unsigned long c_val)
+{
uart_hex(c_val);
- uart_char(0x0a);
+ uart_char('\n');
}
-void uart_10(unsigned long val) {
+void uart_10(unsigned long val)
+{
unsigned long t = val;
unsigned long c;
char buffer[11] = "0000000000\0";
diff --git a/src/drivers/uart.h b/src/drivers/uart.h
index c3f8e86..21e8795 100644
--- a/src/drivers/uart.h
+++ b/src/drivers/uart.h
@@ -1,8 +1,9 @@
#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);
+#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_hex(unsigned long data);