Example application of the WifiPlusClick library for use of WifiPlusClick HW Module from Mikroe.com

Dependencies:   WifiPlusClick mbed

WifiPlusClick Example

This is a sample application to demonstrate the usage of the WifiPlusClick library.

Import libraryWifiPlusClick

Implementation of the WifiPlusClick hardware module.

Revision:
0:0a7aeb6d4526
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debug.h	Mon Jul 29 16:03:21 2013 +0000
@@ -0,0 +1,27 @@
+#ifndef __DEBUG_H__
+#define __DEBUG_H__
+
+
+#ifdef DEBUG
+#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__);
+#else
+#define INFO(x, ...)
+#define WARN(x, ...)
+//#define ERR(x, ...)
+#endif
+#define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
+
+
+#ifdef ENABLE_STACK_CHECK
+#define BEGIN_STACK_CHECK()     char _stack_check; _stack_check = 0xA5
+#define RETURN_STACK_CHECK(x)   if (_stack_check != 0xA5){ error("STACK CHECK"); while(1); } return (x)
+#define END_STACK_CHECK()       if (_stack_check != 0xA5){ error("STACK CHECK"); while(1); } return
+#else
+#define BEGIN_STACK_CHECK()
+#define RETURN_STACK_CHECK(x)   return (x)
+#define END_STACK_CHECK()       return
+#endif
+
+
+#endif //   __DEBUG_H__
\ No newline at end of file