sync wangweigen_master

This commit is contained in:
Wang_Weigen
2021-10-18 18:10:36 +08:00
164 changed files with 18788 additions and 1075 deletions

View File

@@ -4,7 +4,7 @@ if CONNECTION_ADAPTER_ZIGBEE
default y
if ADAPTER_E18
source "$APP_DIR/Framework/connection/zigbee/E18/Kconfig"
source "$APP_DIR/Framework/connection/zigbee/e18/Kconfig"
endif
endif

View File

@@ -1,7 +1,7 @@
SRC_FILES := adapter_zigbee.c
ifeq ($(CONFIG_ADAPTER_E18),y)
SRC_DIR += E18
SRC_DIR += e18
endif
include $(KERNEL_ROOT)/compiler.mk

View File

@@ -79,39 +79,6 @@ static int E18UartOpen(struct Adapter *adapter)
return 0;
}
static int AtCmdConfigAndCheck(ATAgentType agent, char *cmd, char *check)
{
char *result = NULL;
if (NULL == agent || NULL == cmd || NULL == check ) {
return -1;
}
ATReplyType reply = CreateATReply(64);
if (NULL == reply) {
printf("%s %d at_create_resp failed!\n",__func__,__LINE__);
return -1;
}
ATOrderSend(agent, REPLY_TIME_OUT, reply, cmd);
PrivTaskDelay(3000);
result = GetReplyText(reply);
if (!result) {
printf("%s %n get reply failed.\n",__func__,__LINE__);
goto __exit;
}
if(0 != strncmp(result, check, strlen(check))) {
printf("%s %d check[%s] reply[%s] failed.\n",__func__,__LINE__,check,result);
goto __exit;
}
return 0;
__exit:
DeleteATReply(reply);
return -1;
}
static int E18NetworkModeConfig(struct Adapter *adapter)
{
int ret = 0;