refactor connection directory to follow code standards

This commit is contained in:
Liu_Weichao 2021-10-15 11:05:36 +08:00
parent 8f6cac9797
commit 06c9c6ecc4
34 changed files with 23 additions and 23 deletions

View File

@ -3,6 +3,6 @@ config ADAPTER_EC200T
default y
if ADAPTER_EC200T
source "$APP_DIR/Framework/connection/4G/EC200T/Kconfig"
source "$APP_DIR/Framework/connection/4g/ec200t/Kconfig"
endif

View File

@ -1,7 +1,7 @@
SRC_FILES := adapter_4G.c
SRC_FILES := adapter_4g.c
ifeq ($(CONFIG_ADAPTER_EC200T),y)
SRC_DIR += EC200T
SRC_DIR += ec200t
endif
include $(KERNEL_ROOT)/compiler.mk

View File

@ -1,3 +1,3 @@
SRC_FILES := hfa21.c
SRC_FILES := adapter_5g.c
include $(KERNEL_ROOT)/compiler.mk

View File

@ -11,7 +11,7 @@
*/
/**
* @file adapter_5G.c
* @file adapter_5g.c
* @brief Implement the connection 5G adapter function
* @version 1.1
* @author AIIT XUOS Lab

View File

@ -18,7 +18,7 @@ if SUPPORT_CONNECTION_FRAMEWORK
bool "Using 4G adapter device"
default n
if CONNECTION_ADAPTER_4G
source "$APP_DIR/Framework/connection/4G/Kconfig"
source "$APP_DIR/Framework/connection/4g/Kconfig"
endif
menuconfig CONNECTION_ADAPTER_NB
@ -60,6 +60,6 @@ if SUPPORT_CONNECTION_FRAMEWORK
bool "Using 5G adapter device"
default n
if CONNECTION_ADAPTER_5G
source "$APP_DIR/Framework/connection/5G/Kconfig"
source "$APP_DIR/Framework/connection/5g/Kconfig"
endif
endif

View File

@ -5,7 +5,7 @@ ifeq ($(CONFIG_CONNECTION_ADAPTER_LORA),y)
endif
ifeq ($(CONFIG_CONNECTION_ADAPTER_4G),y)
SRC_DIR += 4G
SRC_DIR += 4g
endif
ifeq ($(CONFIG_CONNECTION_ADAPTER_NB),y)
@ -29,7 +29,7 @@ ifeq ($(CONFIG_CONNECTION_ADAPTER_ZIGBEE),y)
endif
ifeq ($(CONFIG_CONNECTION_ADAPTER_5G),y)
SRC_DIR += 5G
SRC_DIR += 5g
endif
include $(KERNEL_ROOT)/compiler.mk

View File

@ -3,5 +3,5 @@ config ADAPTER_HC08
default y
if ADAPTER_HC08
source "$APP_DIR/Framework/connection/bluetooth/HC08/Kconfig"
source "$APP_DIR/Framework/connection/bluetooth/hc08/Kconfig"
endif

View File

@ -1,7 +1,7 @@
SRC_FILES := adapter_bluetooth.c
ifeq ($(CONFIG_ADAPTER_HC08),y)
SRC_DIR += HC08
SRC_DIR += hc08
endif
include $(KERNEL_ROOT)/compiler.mk

View File

@ -1,7 +1,7 @@
config ADAPTER_HFA21
config ADAPTER_HFA21_WIFI
bool "Using wifi adapter device HFA21"
default y
if ADAPTER_HFA21
source "$APP_DIR/Framework/connection/wifi/HFA21/Kconfig"
if ADAPTER_HFA21_WIFI
source "$APP_DIR/Framework/connection/wifi/hfa21_wifi/Kconfig"
endif

View File

@ -1,7 +1,7 @@
SRC_FILES := adapter_wifi.c
ifeq ($(CONFIG_ADAPTER_HFA21),y)
SRC_DIR += HFA21
ifeq ($(CONFIG_ADAPTER_HFA21_WIFI),y)
SRC_DIR += hfa21_wifi
endif
include $(KERNEL_ROOT)/compiler.mk

View File

@ -21,7 +21,7 @@
#include <adapter.h>
#include <bus_pin.h>
#ifdef ADAPTER_HFA21
#ifdef ADAPTER_HFA21_WIFI
extern AdapterProductInfoType Hfa21Attach(struct Adapter *adapter);
#endif
@ -65,7 +65,7 @@ int AdapterWifiInit(void)
return -1;
}
#ifdef ADAPTER_HFA21
#ifdef ADAPTER_HFA21_WIFI
AdapterProductInfoType product_info = Hfa21Attach(adapter);
if (!product_info) {
printf("AdapterWifiInit hfa21 attach error\n");

View File

@ -1,6 +1,6 @@
config ADAPTER_WIFI_HFA21
string "HFA21 adapter name"
default "hfa21"
string "HFA21 WIFI adapter name"
default "hfa21_wifi"
if ADD_XIUOS_FETURES

View File

@ -1,3 +1,3 @@
SRC_FILES := adapter_5G.c
SRC_FILES := hfa21_wifi.c
include $(KERNEL_ROOT)/compiler.mk

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