@@ -32,7 +32,7 @@
#include "tinystdio.h"
#endif
-#define DBG if(0)
+//#define DBG if(0)
#if defined ( __ICCARM__ )
#define DEVICE_MAC "00-00-00-00-00-03"
@@ -26,6 +26,17 @@
+#ifdef __ICCARM__
+ #define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)
+#endif
+
+PUTCHAR_PROTOTYPE
+{
+ USART_SendData(USER_USART, (u8) ch);
+ while(USART_GetFlagStatus(USER_USART, USART_FLAG_TXE) == RESET) {}
+ return ch;
+}
#ifdef BT6702_SERVICE
#define UPS_RBUF_SIZE 1024
#else
@@ -58,13 +58,13 @@
#define __packed __attribute__(( packed ))
-//#define DEBUG
+#define DEBUG
-/*#ifdef DEBUG
+#ifdef DEBUG
#define DBG
-#else*/
+#else
#define DBG if (0)
-//#endif
/* Exported macro ------------------------------------------------------------*/