Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of my_eeprom_funcs by
Diff: my_eeprom_funcs.cpp
- Revision:
- 4:944a4646b825
- Parent:
- 3:69e1c4ed69e1
- Child:
- 5:eea03d0eb95a
diff -r 69e1c4ed69e1 -r 944a4646b825 my_eeprom_funcs.cpp
--- 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
*/
