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.

debug.h

Committer:
leihen
Date:
2013-07-29
Revision:
0:0a7aeb6d4526

File content as of revision 0:0a7aeb6d4526:

#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__