From cf2618101ef832a9652d84b43ed5f558da401248 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 21 Dec 2021 19:36:58 -0800 Subject: Consolidated UART Headers --- src/drivers/uart.a.h | 11 ----------- src/drivers/uart.c | 2 +- src/drivers/uart.h | 6 ++++++ 3 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 src/drivers/uart.a.h (limited to 'src/drivers') diff --git a/src/drivers/uart.a.h b/src/drivers/uart.a.h deleted file mode 100644 index c14fa69..0000000 --- a/src/drivers/uart.a.h +++ /dev/null @@ -1,11 +0,0 @@ -#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); - -#endif diff --git a/src/drivers/uart.c b/src/drivers/uart.c index f7f15c2..bc67ca4 100644 --- a/src/drivers/uart.c +++ b/src/drivers/uart.c @@ -1,4 +1,4 @@ -#include "uart.a.h" +#include "uart.h" void uart_hexn(unsigned long c_val) { uart_hex(c_val); 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); -- cgit v1.2.1