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
@@ -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
@@ -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
@@ -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");
@@ -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
@@ -1,3 +1,3 @@
SRC_FILES := hfa21.c
SRC_FILES := hfa21_wifi.c
include $(KERNEL_ROOT)/compiler.mk