diff options
author | Christian Cunningham <cc@localhost> | 2022-01-05 14:27:09 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-05 14:27:09 -0800 |
commit | 866a6ca0e749f4446b7fdc7579a6d553df85ec10 (patch) | |
tree | d259223d85c224d649c6c38675e99b155d50cf48 /include/drivers | |
parent | 3a8ed19bf83f11ff00c4904fab2cc083b7e33478 (diff) |
Moved includes to its own directory
Diffstat (limited to 'include/drivers')
-rw-r--r-- | include/drivers/uart.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/drivers/uart.h b/include/drivers/uart.h new file mode 100644 index 0000000..b83732f --- /dev/null +++ b/include/drivers/uart.h @@ -0,0 +1,15 @@ +#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);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_string(char* message); +extern void uart_hex(unsigned long data); + +void uart_10(unsigned long); +void uart_hexn(unsigned long); + +#endif |