support adapter_lora and sx1278 device on aiit-arm32-board

This commit is contained in:
Liu_Weichao
2021-11-10 16:32:17 +08:00
parent 7b82f2a60b
commit c631063b7a
25 changed files with 934 additions and 100 deletions

View File

@@ -72,14 +72,14 @@ int AdapterZigbeeInit(void)
ret = AdapterZigbeeRegister(adapter);
if (ret < 0) {
printf("AdapterZigbeeRegister register zigbee adapter error\n");
free(adapter);
PrivFree(adapter);
return -1;
}
#ifdef ADAPTER_E18
AdapterProductInfoType product_info = E18Attach(adapter);
if (!product_info) {
printf("AdapterZigbeeRegister e18 attach error\n");
free(adapter);
PrivFree(adapter);
return -1;
}

View File

@@ -255,7 +255,7 @@ static int E18Ioctl(struct Adapter *adapter, int cmd, void *args)
return ret;
}
static int E18Join(struct Adapter *adapter, const char *priv_net_group)
static int E18Join(struct Adapter *adapter, unsigned char *priv_net_group)
{
int ret = 0;