From e59f23ad5c60dc08f281ccc7a794f4482e55ad00 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Fri, 24 Jun 2016 01:16:57 +0200 Subject: Don't compile usart_helpers.o when USART_DEBUG is not defined Signed-off-by: Amir Hammad --- src/usart_helpers.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/usart_helpers.h b/src/usart_helpers.h index 2a2f561..eef43fa 100644 --- a/src/usart_helpers.h +++ b/src/usart_helpers.h @@ -35,6 +35,7 @@ struct usart_commands{ }; +#ifdef USART_DEBUG void usart_init(uint32_t usart, uint32_t baudrate); void usart_printf(const char *str, ...); void usart_vprintf(const char *str, va_list va); @@ -42,8 +43,6 @@ void usart_fifo_send(void); void usart_call_cmd(struct usart_commands * commands); void usart_interrupt(void); - -#ifdef USART_DEBUG #define LOG_PRINTF(format, ...) usart_printf(format, ##__VA_ARGS__); #define LOG_FLUSH() usart_fifo_send() #else -- cgit