27 lines
377 B
C
27 lines
377 B
C
|
|
#ifndef iotelic_log_H
|
|
#define iotelic_log_H
|
|
|
|
#include "iot_io_api.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
//#if defined(DEBUG_PRINTF)
|
|
#define LOG(Format, ...) \
|
|
do { \
|
|
iot_printf(Format, ##__VA_ARGS__); \
|
|
iot_printf("\n"); \
|
|
} while(0)
|
|
//#else
|
|
// #define LOG()
|
|
//#endif
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // iotelic_log_H
|