diff options
Diffstat (limited to 'uart.h')
-rw-r--r-- | uart.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -19,10 +19,16 @@ #ifndef FMK_UART_H #define FMK_UART_H +#ifdef WITH_UART void uart_setup(void); void uart_putchar(int c); void uart_printf(const char *fmt, ...); void uart_puts(const char *s); -void uart0_isr(void); +#else +static inline void uart_setup(void) { } +static inline void uart_putchar(int c) { (void)c; } +static inline void uart_printf(const char *fmt, ...) { (void)fmt; } +static inline void uart_puts(const char *s) { (void)s; } +#endif #endif /* FMK_UART_H */ |