summaryrefslogtreecommitdiff
path: root/src/usart_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/usart_helpers.h')
-rw-r--r--src/usart_helpers.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/usart_helpers.h b/src/usart_helpers.h
index e62f67d..445a477 100644
--- a/src/usart_helpers.h
+++ b/src/usart_helpers.h
@@ -29,24 +29,17 @@
BEGIN_DECLS
-struct usart_commands{
- const char * cmd;
- void (*callback)(const char * arg);
-};
-
-
#ifdef USART_DEBUG
void usart_init(uint32_t usart, uint32_t baudrate);
void usart_printf(const char *str, ...);
void usart_fifo_send(void);
-
-void usart_call_cmd(struct usart_commands * commands);
void usart_interrupt(void);
+
+void debug_usart_init() {
+
#define LOG_PRINTF(format, ...) usart_printf(format, ##__VA_ARGS__);
-#define LOG_FLUSH() usart_fifo_send()
#else
#define LOG_PRINTF(dummy, ...) ((void)dummy)
-#define LOG_FLUSH()
#endif
END_DECLS