Used with eeprom_flash to write network configuration to STM32F103 flash

Dependents:   F103-Web-Server

Fork of my_eeprom_funcs by Chau Vo

Revision:
4:944a4646b825
Parent:
3:69e1c4ed69e1
Child:
5:eea03d0eb95a
--- a/my_eeprom_funcs.cpp	Thu Oct 02 19:41:15 2014 +0000
+++ b/my_eeprom_funcs.cpp	Sat Oct 04 20:24:46 2014 +0000
@@ -2,6 +2,23 @@
 #include "my_eeprom_funcs.h"
 
 
+//Debug is disabled by default
+#if 1
+//Enable debug
+#include <cstdio>
+#define DBG(x, ...) std::printf("[eeprom : DBG]"x"\r\n", ##__VA_ARGS__); 
+#define WARN(x, ...) std::printf("[eeprom : WARN]"x"\r\n", ##__VA_ARGS__); 
+#define ERR(x, ...) std::printf("[eeprom : ERR]"x"\r\n", ##__VA_ARGS__); 
+
+#else
+//Disable debug
+#define DBG(x, ...) 
+#define WARN(x, ...)
+#define ERR(x, ...) 
+
+#endif
+
+
 /*
 * EEPROM functions
 */