diff --git a/APP_Framework/Framework/connection/adapter.h b/APP_Framework/Framework/connection/adapter.h index 71fbd65c5..27ef3031e 100644 --- a/APP_Framework/Framework/connection/adapter.h +++ b/APP_Framework/Framework/connection/adapter.h @@ -27,7 +27,7 @@ #include #include #include -#include +#include "at_agent.h" #ifdef __cplusplus extern "C" { diff --git a/APP_Framework/Framework/connection/adapter_agent.c b/APP_Framework/Framework/connection/adapter_agent.c index 4e2702d15..2e072451f 100755 --- a/APP_Framework/Framework/connection/adapter_agent.c +++ b/APP_Framework/Framework/connection/adapter_agent.c @@ -31,6 +31,10 @@ #ifdef ADD_RTTHREAD_FEATURES #include #endif + +#include "at_agent.h" +#include "adapter.h" + #define AT_CMD_MAX_LEN 128 #define AT_AGENT_MAX 2 static char send_buf[AT_CMD_MAX_LEN]; diff --git a/APP_Framework/Framework/connection/at_agent.h b/APP_Framework/Framework/connection/at_agent.h index 7de80be3f..4e9c3f016 100755 --- a/APP_Framework/Framework/connection/at_agent.h +++ b/APP_Framework/Framework/connection/at_agent.h @@ -58,17 +58,7 @@ struct ATAgent uint32 maintain_len; uint32 maintain_max; -#ifdef ADD_XIZI_FEATURES - -#if defined(ADAPTER_GM800TF) || defined(ADAPTER_EC801E) pthread_mutex_t lock; -#else - int lock; -#endif - -#else // ADD_XIZI_FEATURES - pthread_mutex_t lock; -#endif ATReplyType reply; char reply_lr_end; diff --git a/Ubiquitous/XiZi_IIoT/resources/ethernet/LwIP/arch/cc.h b/Ubiquitous/XiZi_IIoT/resources/ethernet/LwIP/arch/cc.h index 46640e347..d7a8e7547 100644 --- a/Ubiquitous/XiZi_IIoT/resources/ethernet/LwIP/arch/cc.h +++ b/Ubiquitous/XiZi_IIoT/resources/ethernet/LwIP/arch/cc.h @@ -32,10 +32,16 @@ #ifndef __CC_H__ #define __CC_H__ -#include "stdio.h" +// IWYU pragma: begin_exports + +#include + +#include "sys/time.h" #include "main.h" +// IWYU pragma: end_exports + //typedef unsigned char u8_t; //typedef signed char s8_t; //typedef unsigned short u16_t;