blob: 21e8795af0c58e04937d1d8455e616150e75dad5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#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_hex(unsigned long data);
extern void uart_string(char* message);
void uart_hexn(unsigned long);
void uart_10(unsigned long);
#endif
|