The unified diff between revisions [23a3e9a5..] and [7f3278b1..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'uart.h'
# # old_revision [23a3e9a50b4034343e3bd217d2c225dcaec064dd] # new_revision [7f3278b164104bb0564a391a1f7b4fd955a3904a] # # patch "uart.h" # from [4acdb1f160b933d1653b3ac765f110cd71332112] # to [86972bb7765797e0b5e660710beed2a9bbd9ec13] # ============================================================ --- uart.h 4acdb1f160b933d1653b3ac765f110cd71332112 +++ uart.h 86972bb7765797e0b5e660710beed2a9bbd9ec13 @@ -3,6 +3,7 @@ #include "types.h" +#ifdef USE_UART void init_uart(void); void putch(char c); void putstr(char *s); @@ -10,5 +11,14 @@ bool getch(char *c); void putint_s(int n); void puthex(unsigned int n); bool getch(char *c); +#else +#define init_uart() ((void)0) +#define putch(x) ((void)0) +#define putstr(x) ((void)0) +#define putint(x) ((void)0) +#define putint_s(x) ((void)0) +#define puthex(x) ((void)0) +#define getch(x) (FALSE) +#endif #endif /* __UART_H */