summaryrefslogtreecommitdiff
path: root/digital/beacon/src/debug.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-04-03 18:35:01 +0200
committerFlorent Duchon2012-04-03 19:34:39 +0200
commitacf4617c9f264dc5813abb4b305d8c1d76ad19b0 (patch)
treeccf5c8aac133d9bbee8a43fc7d09ffcee29be133 /digital/beacon/src/debug.h
parent1fa4caab2da5558efddd4a5dc892da5dea28921b (diff)
digital/beacon: file restructuration (license header)
Diffstat (limited to 'digital/beacon/src/debug.h')
-rw-r--r--digital/beacon/src/debug.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/digital/beacon/src/debug.h b/digital/beacon/src/debug.h
index ab166fe9..3e79501d 100644
--- a/digital/beacon/src/debug.h
+++ b/digital/beacon/src/debug.h
@@ -26,7 +26,15 @@
#define _DEBUG_H
#include <stdio.h>
+#include "configuration.h"
+#define OPEN_USART HAL_OpenUsart
+#define CLOSE_USART HAL_CloseUsart
+#define WRITE_USART HAL_WriteUsart
+#define READ_USART HAL_ReadUsart
+#define USART_CHANNEL APP_USART_CHANNEL
+
+
// #define DEBUG_POSITION_ENABLE
// #define DEBUG_UPDATE_ENABLE
// #define DEBUG_RECOVERY_ENABLE
@@ -71,4 +79,12 @@
#define DEBUG_TRUST(f,s...) ((void)0)
#endif
+/* This function initializes the USART interface for debugging on avr */
+void initSerialInterface(void);
+
+/* RX USART Callback */
+void usartRXCallback(uint16_t bytesToRead);
+
+/* This function sends data string via the USART interface */
+void uprintf(char *format, ...);
#endif