diff options
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/uart.a.h | 11 | ||||
-rw-r--r-- | src/drivers/uart.c | 2 | ||||
-rw-r--r-- | src/drivers/uart.h | 6 |
3 files changed, 7 insertions, 12 deletions
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); |