Data logger with STM32 F7 spi,sdcard,wifi working. FTP not yet

Dependencies:   BSP_DISCO_F746NG LCD_DISCO_F746NG NSAPITests NetworkSocketAPI RTC-DS1307 SDFileSystem SD_DISCO_F746NG TS_DISCO_F746NG X_NUCLEO_IDW01M1v2 mbed-dev mbed-rtos

debug.h

Committer:
MikGa87
Date:
2017-01-26
Revision:
12:4b39c6fb8f21
Parent:
1:5eb93d7d6eca

File content as of revision 12:4b39c6fb8f21:

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


#endif