From acf4617c9f264dc5813abb4b305d8c1d76ad19b0 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Tue, 3 Apr 2012 18:35:01 +0200 Subject: digital/beacon: file restructuration (license header) --- digital/beacon/src/debug.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'digital/beacon/src/debug.h') 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 +#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 -- cgit v1.2.3