Chau Vo / device_configuration

Dependents:   F103-Web-Server

Fork of my_eeprom_funcs by Chau Vo

Revision:
3:69e1c4ed69e1
Parent:
1:6bdc99dd8e0a
Child:
4:944a4646b825
--- a/my_eeprom_funcs.h	Tue Sep 30 21:17:32 2014 +0000
+++ b/my_eeprom_funcs.h	Thu Oct 02 19:41:15 2014 +0000
@@ -3,6 +3,25 @@
 
 #include "eeprom.h"
 
+
+//Debug is disabled by default
+#if 1
+//Enable debug
+#include <cstdio>
+#define DBG(x, ...) std::printf("[main : DBG]"x"\r\n", ##__VA_ARGS__); 
+#define WARN(x, ...) std::printf("[main : WARN]"x"\r\n", ##__VA_ARGS__); 
+#define ERR(x, ...) std::printf("[main : ERR]"x"\r\n", ##__VA_ARGS__); 
+
+#else
+//Disable debug
+#define DBG(x, ...) 
+#define WARN(x, ...)
+#define ERR(x, ...) 
+
+#endif
+
+
+
 /*
 * Default device network configuration
 */