HTTP Server upon new mbed Ethernet Interface. Based on original code by Henry Leinen.

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of HTTP_server by pablo gindel

Revision:
2:dc9184e97328
Parent:
0:fcceff3299be
--- a/debug.h	Fri Jul 26 22:33:47 2013 +0000
+++ b/debug.h	Sun Jul 28 07:53:35 2013 +0000
@@ -1,16 +1,31 @@
-
 #ifndef __DEBUG_H__
 #define __DEBUG_H__
 
 
-#ifdef DEBUG
+#if (DEBUG == 3)
+
 #define INFO(x, ...) std::printf("[INFO: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
 #define WARN(x, ...) std::printf("[WARN: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
 #define ERR(x, ...) std::printf("[ERR: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
+
+#elif (DEBUG == 2)
+
+#define INFO(x, ...)
+#define WARN(x, ...) std::printf("[WARN: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
+#define ERR(x, ...) std::printf("[ERR: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
+
+#elif (DEBUG == 1)
+
+#define INFO(x, ...)
+#define WARN(x, ...)
+#define ERR(x, ...) std::printf("[ERR: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
+
 #else
+
 #define INFO(x, ...)
 #define WARN(x, ...)
 #define ERR(x, ...)
+
 #endif