41 #define M2M_LOG_NONE 0 42 #define M2M_LOG_ERROR 1 43 #define M2M_LOG_INFO 2 47 #if (defined __APP_APS3_CORTUS__) 48 #define M2M_LOG_LEVEL M2M_LOG_ERROR 50 #define M2M_LOG_LEVEL M2M_LOG_REQ 54 #if !((defined __MSP430FR5739)||(defined __MCF964548__)) 61 #if (CONF_WINC_DEBUG == 1) 62 #define M2M_PRINT(...) do{CONF_WINC_PRINTF(__VA_ARGS__);}while(0) 63 #if (M2M_LOG_LEVEL >= M2M_LOG_ERROR) 65 #define M2M_ERR(...) do{CONF_WINC_PRINTF("(APP)(ERR)[%s][%d]",__FUNCTION__,__LINE__); CONF_WINC_PRINTF(__VA_ARGS__);CONF_WINC_PRINTF("\r");}while(0) 66 #if (M2M_LOG_LEVEL >= M2M_LOG_INFO) 68 #define M2M_INFO(...) do{CONF_WINC_PRINTF("(APP)(INFO)"); CONF_WINC_PRINTF(__VA_ARGS__);CONF_WINC_PRINTF("\r");}while(0) 69 #if (M2M_LOG_LEVEL >= M2M_LOG_REQ) 71 #define M2M_REQ(...) do{CONF_WINC_PRINTF("(APP)(R)"); CONF_WINC_PRINTF(__VA_ARGS__);CONF_WINC_PRINTF("\r");}while(0) 72 #if (M2M_LOG_LEVEL >= M2M_LOG_DBG) 74 #define M2M_DBG(...) do{CONF_WINC_PRINTF("(APP)(DBG)[%s][%d]",__FUNCTION__,__LINE__); CONF_WINC_PRINTF(__VA_ARGS__);CONF_WINC_PRINTF("\r");}while(0) 84 #define M2M_PRINT(...) 87 #if (!defined __MCF964548__)||(!defined __SAMD21J18A__) 88 static void M2M_ERR(
const char *_format, ...)
91 static void M2M_DBG(
const char *_format, ...)
94 static void M2M_REQ(
const char *_format, ...)
97 static void M2M_INFO(
const char *_format, ...)
101 static void M2M_PRINT(
const char *_format, ...)
This module contains WINC3400 BSP APIs declarations.
This module contains WINC3400 BSP APIs declarations.