From 696c9f6fe074f494c0a567918b6bd6ec4ee1f1b2 Mon Sep 17 00:00:00 2001 From: Liu_Weichao Date: Tue, 8 Nov 2022 17:02:39 +0800 Subject: [PATCH] fix MountUsb function error --- .../XiZi_IIoT/board/aiit-arm32-board/Kconfig | 6 ++-- .../XiZi_IIoT/board/aiit-arm32-board/board.c | 2 -- .../third_party_driver/usb/Kconfig | 12 +++++++- .../third_party_driver/usb/connect_usb.c | 8 ++++++ .../board/aiit-riscv64-board/board.c | 2 +- .../XiZi_IIoT/board/edu-riscv64/board.c | 2 +- Ubiquitous/XiZi_IIoT/board/ok1052-c/Kconfig | 5 +++- .../ok1052-c/third_party_driver/usb/Kconfig | 10 +++++++ .../third_party_driver/usb/connect_usb.c | 28 ++++++++++++------- .../board/stm32f407-st-discovery/Kconfig | 8 ++++++ .../board/stm32f407-st-discovery/board.c | 2 -- .../third_party_driver/usb/Kconfig | 16 +++++++++-- .../third_party_driver/usb/connect_usb.c | 8 ++++++ .../XiZi_IIoT/board/xidatong-arm32/Kconfig | 5 +++- .../third_party_driver/usb/Kconfig | 10 +++++++ .../third_party_driver/usb/connect_usb.c | 28 ++++++++++++------- .../XiZi_IIoT/board/xidatong-riscv64/board.c | 2 +- .../XiZi_IIoT/board/xiwangtong-arm32/Kconfig | 5 +++- .../third_party_driver/usb/Kconfig | 10 +++++++ .../third_party_driver/usb/connect_usb.c | 28 ++++++++++++------- Ubiquitous/XiZi_IIoT/kernel/include/xs_init.h | 2 +- Ubiquitous/XiZi_IIoT/kernel/thread/init.c | 2 +- 22 files changed, 154 insertions(+), 47 deletions(-) diff --git a/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/Kconfig b/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/Kconfig index 708dcb889..56757c3a3 100644 --- a/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/Kconfig +++ b/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/Kconfig @@ -35,9 +35,11 @@ menu "aiit-arm32-board feature" menu "config board peripheral" config MOUNT_SDCARD - bool "mount sd card" + bool + default n + config MOUNT_USB + bool default n - select BSP_USING_SDIO endmenu endmenu endmenu diff --git a/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/board.c b/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/board.c index 4e0688746..cb386904b 100644 --- a/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/board.c +++ b/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/board.c @@ -51,7 +51,6 @@ extern int HwSramInit(void); extern int Stm32HwAdcInit(void); extern int Stm32HwDacInit(void); extern int Stm32HwLcdInit(void); -extern int STM32USBHostRegister(void); extern int Stm32HwUsbInit(void); static void ClockConfiguration() @@ -151,7 +150,6 @@ struct InitSequenceDesc _board_init[] = #endif #ifdef BSP_USING_USB #ifdef BSP_USING_STM32_USBH - { "STM32USBHostRegister", STM32USBHostRegister }, { "hw usb", Stm32HwUsbInit }, #endif #endif diff --git a/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/third_party_driver/usb/Kconfig b/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/third_party_driver/usb/Kconfig index 4fcd37871..93fdfd6f4 100644 --- a/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/third_party_driver/usb/Kconfig +++ b/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/third_party_driver/usb/Kconfig @@ -1,6 +1,6 @@ config BSP_USING_STM32_USBH bool "Using usb host" - default y + default n if BSP_USING_STM32_USBH config USB_BUS_NAME string "usb bus name" @@ -11,5 +11,15 @@ config BSP_USING_STM32_USBH config USB_DEVICE_NAME string "usb bus device name" default "usb_dev" + config MOUNT_USB_FS + bool "mount usb file system" + default y + select MOUNT_USB + + if MOUNT_USB_FS + config MOUNT_USB_FS_TYPE + int "choose file system type : FATFS(0) LWEXT4(3)" + default 0 + endif endif diff --git a/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/third_party_driver/usb/connect_usb.c b/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/third_party_driver/usb/connect_usb.c index 64b5668ea..52934f7db 100644 --- a/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/third_party_driver/usb/connect_usb.c +++ b/Ubiquitous/XiZi_IIoT/board/aiit-arm32-board/third_party_driver/usb/connect_usb.c @@ -25,6 +25,14 @@ uint32 UdiskRead_new_api(void *dev, struct BusBlockReadParam *read_param); uint32 UdiskWirte_new_api(void *dev, struct BusBlockWriteParam *write_param); +#ifdef MOUNT_USB +int MountUsb(void) +{ + STM32USBHostRegister(); + return 0; +} +#endif + static uint32 UdiskOpenNewApi(void *dev) { return EOK; diff --git a/Ubiquitous/XiZi_IIoT/board/aiit-riscv64-board/board.c b/Ubiquitous/XiZi_IIoT/board/aiit-riscv64-board/board.c index d267826a5..a74dc25e9 100644 --- a/Ubiquitous/XiZi_IIoT/board/aiit-riscv64-board/board.c +++ b/Ubiquitous/XiZi_IIoT/board/aiit-riscv64-board/board.c @@ -71,7 +71,7 @@ extern int HwCh376Init(void); * @description: Mount USB * @return 0 */ -int MountUSB(void) +int MountUsb(void) { if (MountFilesystem(USB_BUS_NAME, USB_DEVICE_NAME, USB_DRIVER_NAME, FSTYPE_CH376, "/") == 0) KPrintf("usb mount to '/'"); diff --git a/Ubiquitous/XiZi_IIoT/board/edu-riscv64/board.c b/Ubiquitous/XiZi_IIoT/board/edu-riscv64/board.c index 6dd32085d..2bac67d22 100644 --- a/Ubiquitous/XiZi_IIoT/board/edu-riscv64/board.c +++ b/Ubiquitous/XiZi_IIoT/board/edu-riscv64/board.c @@ -68,7 +68,7 @@ extern int HwSpiInit(void); * @description: Mount USB * @return 0 */ -int MountUSB(void) +int MountUsb(void) { if (MountFilesystem(USB_BUS_NAME, USB_DEVICE_NAME, USB_DRIVER_NAME, FSTYPE_CH376, "/") == 0) KPrintf("usb mount to '/'\n"); diff --git a/Ubiquitous/XiZi_IIoT/board/ok1052-c/Kconfig b/Ubiquitous/XiZi_IIoT/board/ok1052-c/Kconfig index ee6105f9a..d70794d68 100644 --- a/Ubiquitous/XiZi_IIoT/board/ok1052-c/Kconfig +++ b/Ubiquitous/XiZi_IIoT/board/ok1052-c/Kconfig @@ -42,7 +42,10 @@ menu "ok1052-c feature" menu "config board peripheral" config MOUNT_SDCARD - bool "mount sd card" + bool + default n + config MOUNT_USB + bool default n endmenu diff --git a/Ubiquitous/XiZi_IIoT/board/ok1052-c/third_party_driver/usb/Kconfig b/Ubiquitous/XiZi_IIoT/board/ok1052-c/third_party_driver/usb/Kconfig index a1f439ca9..eee8330b9 100644 --- a/Ubiquitous/XiZi_IIoT/board/ok1052-c/third_party_driver/usb/Kconfig +++ b/Ubiquitous/XiZi_IIoT/board/ok1052-c/third_party_driver/usb/Kconfig @@ -11,5 +11,15 @@ config BSP_USING_NXP_USBH config USB_DEVICE_NAME string "usb bus device name" default "usb_dev" + config MOUNT_USB_FS + bool "mount usb file system" + default y + select MOUNT_USB + + if MOUNT_USB_FS + config MOUNT_USB_FS_TYPE + int "choose file system type : FATFS(0) LWEXT4(3)" + default 0 + endif endif diff --git a/Ubiquitous/XiZi_IIoT/board/ok1052-c/third_party_driver/usb/connect_usb.c b/Ubiquitous/XiZi_IIoT/board/ok1052-c/third_party_driver/usb/connect_usb.c index b86762899..cdff41df4 100644 --- a/Ubiquitous/XiZi_IIoT/board/ok1052-c/third_party_driver/usb/connect_usb.c +++ b/Ubiquitous/XiZi_IIoT/board/ok1052-c/third_party_driver/usb/connect_usb.c @@ -34,6 +34,8 @@ Modification: extern usb_host_msd_command_instance_t g_MsdCommandInstance; usb_host_handle g_HostHandle; +static void UsbHostTask(void* parameter); + extern usb_status_t USB_HostMsdReadApi(usb_host_msd_command_instance_t *msdCommandInstance, uint8_t *buffer, uint32_t pos, uint32_t block_size, uint32_t block_num); extern usb_status_t USB_HostMsdWriteApi(usb_host_msd_command_instance_t *msdCommandInstance, const uint8_t *buffer, uint32_t pos, uint32_t block_size, uint32_t block_num); @@ -148,6 +150,22 @@ void UsbUnmountFileSystem() { UnmountFileSystem(UDISK_MOUNTPOINT); } + +#ifdef MOUNT_USB +int MountUsb(void) +{ + int32 usb_host_task = 0; + usb_host_task = KTaskCreate("usbh", UsbHostTask, NONE, + USB_HOST_STACK_SIZE, 8); + if(usb_host_task < 0) { + KPrintf("usb_host_task create failed ...%s %d.\n", __FUNCTION__,__LINE__); + return ERROR; + } + + StartupKTask(usb_host_task); + return 0; +} +#endif #endif static uint32 UsbHostOpen(void *dev) @@ -258,7 +276,6 @@ static int BoardUsbDevBend(void) int Imxrt1052HwUsbHostInit(void) { x_err_t ret = EOK; - int32 usb_host_task = 0; static struct UsbBus usb_bus; memset(&usb_bus, 0, sizeof(struct UsbBus)); @@ -280,15 +297,6 @@ int Imxrt1052HwUsbHostInit(void) return ERROR; } - usb_host_task = KTaskCreate("usbh", UsbHostTask, NONE, - USB_HOST_STACK_SIZE, 8); - if(usb_host_task < 0) { - KPrintf("usb_host_task create failed ...%s %d.\n", __FUNCTION__,__LINE__); - return ERROR; - } - - StartupKTask(usb_host_task); - return ret; } diff --git a/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/Kconfig b/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/Kconfig index b7f97a747..179ebeadd 100644 --- a/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/Kconfig +++ b/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/Kconfig @@ -33,6 +33,14 @@ menu "stm32f407-st-discovery feature" default 0x20000000 endmenu + menu "config board peripheral" + config MOUNT_SDCARD + bool + default n + config MOUNT_USB + bool + default n + endmenu endmenu endmenu diff --git a/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/board.c b/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/board.c index 91a757661..12d5289d8 100644 --- a/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/board.c +++ b/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/board.c @@ -50,7 +50,6 @@ extern int Stm32HwRtcInit(); extern int HwSdioInit(); extern int Stm32HwAdcInit(void); extern int Stm32HwDacInit(void); -extern int STM32USBHostRegister(void); extern int Stm32HwUsbInit(void); #ifdef BSP_USING_LWIP extern int ETH_BSP_Config(); @@ -143,7 +142,6 @@ struct InitSequenceDesc _board_init[] = #endif #ifdef BSP_USING_USB #ifdef BSP_USING_STM32_USBH - { "STM32USBHostRegister", STM32USBHostRegister }, { "hw usb", Stm32HwUsbInit }, #endif #endif diff --git a/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/third_party_driver/usb/Kconfig b/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/third_party_driver/usb/Kconfig index 69d2536d9..746ee30e7 100644 --- a/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/third_party_driver/usb/Kconfig +++ b/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/third_party_driver/usb/Kconfig @@ -1,6 +1,7 @@ config BSP_USING_STM32_USBH bool "Using usb host" - default y + default n + if BSP_USING_STM32_USBH config USB_BUS_NAME string "usb bus name" default "usb" @@ -9,4 +10,15 @@ config BSP_USING_STM32_USBH default "usb_drv" config USB_DEVICE_NAME string "usb bus device name" - default "usb_dev" \ No newline at end of file + default "usb_dev" + config MOUNT_USB_FS + bool "mount usb file system" + default y + select MOUNT_USB + + if MOUNT_USB_FS + config MOUNT_USB_FS_TYPE + int "choose file system type : FATFS(0) LWEXT4(3)" + default 0 + endif + endif diff --git a/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/third_party_driver/usb/connect_usb.c b/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/third_party_driver/usb/connect_usb.c index eb10628cf..c7fdd28a0 100644 --- a/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/third_party_driver/usb/connect_usb.c +++ b/Ubiquitous/XiZi_IIoT/board/stm32f407-st-discovery/third_party_driver/usb/connect_usb.c @@ -27,6 +27,14 @@ uint32 UdiskRead_new_api(void *dev, struct BusBlockReadParam *read_param); uint32 UdiskWirte_new_api(void *dev, struct BusBlockWriteParam *write_param); +#ifdef MOUNT_USB +int MountUsb(void) +{ + STM32USBHostRegister(); + return 0; +} +#endif + static uint32 UdiskOpenNewApi(void *dev) { return EOK; diff --git a/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/Kconfig b/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/Kconfig index 9c7c7989e..faa887906 100644 --- a/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/Kconfig +++ b/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/Kconfig @@ -42,7 +42,10 @@ menu "xidatong-arm32 feature" menu "config board peripheral" config MOUNT_SDCARD - bool "mount sd card" + bool + default n + config MOUNT_USB + bool default n endmenu diff --git a/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/third_party_driver/usb/Kconfig b/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/third_party_driver/usb/Kconfig index a1f439ca9..eee8330b9 100644 --- a/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/third_party_driver/usb/Kconfig +++ b/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/third_party_driver/usb/Kconfig @@ -11,5 +11,15 @@ config BSP_USING_NXP_USBH config USB_DEVICE_NAME string "usb bus device name" default "usb_dev" + config MOUNT_USB_FS + bool "mount usb file system" + default y + select MOUNT_USB + + if MOUNT_USB_FS + config MOUNT_USB_FS_TYPE + int "choose file system type : FATFS(0) LWEXT4(3)" + default 0 + endif endif diff --git a/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/third_party_driver/usb/connect_usb.c b/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/third_party_driver/usb/connect_usb.c index 998b4c9e2..945440aef 100644 --- a/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/third_party_driver/usb/connect_usb.c +++ b/Ubiquitous/XiZi_IIoT/board/xidatong-arm32/third_party_driver/usb/connect_usb.c @@ -34,6 +34,8 @@ Modification: extern usb_host_msd_command_instance_t g_MsdCommandInstance; usb_host_handle g_HostHandle; +static void UsbHostTask(void* parameter); + extern usb_status_t USB_HostMsdReadApi(usb_host_msd_command_instance_t *msdCommandInstance, uint8_t *buffer, uint32_t pos, uint32_t block_size, uint32_t block_num); extern usb_status_t USB_HostMsdWriteApi(usb_host_msd_command_instance_t *msdCommandInstance, const uint8_t *buffer, uint32_t pos, uint32_t block_size, uint32_t block_num); @@ -148,6 +150,22 @@ void UsbUnmountFileSystem() { UnmountFileSystem(UDISK_MOUNTPOINT); } + +#ifdef MOUNT_USB +int MountUsb(void) +{ + int32 usb_host_task = 0; + usb_host_task = KTaskCreate("usbh", UsbHostTask, NONE, + USB_HOST_STACK_SIZE, 8); + if(usb_host_task < 0) { + KPrintf("usb_host_task create failed ...%s %d.\n", __FUNCTION__,__LINE__); + return ERROR; + } + + StartupKTask(usb_host_task); + return 0; +} +#endif #endif static uint32 UsbHostOpen(void *dev) @@ -258,7 +276,6 @@ static int BoardUsbDevBend(void) int Imxrt1052HwUsbHostInit(void) { x_err_t ret = EOK; - int32 usb_host_task = 0; static struct UsbBus usb_bus; memset(&usb_bus, 0, sizeof(struct UsbBus)); @@ -280,15 +297,6 @@ int Imxrt1052HwUsbHostInit(void) return ERROR; } - usb_host_task = KTaskCreate("usbh", UsbHostTask, NONE, - USB_HOST_STACK_SIZE, 8); - if(usb_host_task < 0) { - KPrintf("usb_host_task create failed ...%s %d.\n", __FUNCTION__,__LINE__); - return ERROR; - } - - StartupKTask(usb_host_task); - return ret; } diff --git a/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/board.c b/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/board.c index b6b365a6c..42ee200ce 100644 --- a/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/board.c +++ b/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/board.c @@ -70,7 +70,7 @@ extern int HwWdtInit(void); * @description: Mount USB * @return 0 */ -int MountUSB(void) +int MountUsb(void) { if (MountFilesystem(USB_BUS_NAME, USB_DEVICE_NAME, USB_DRIVER_NAME, FSTYPE_CH376, "/") == 0) KPrintf("usb mount to '/'\n"); diff --git a/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/Kconfig b/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/Kconfig index 98ba98b3b..410ff0272 100644 --- a/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/Kconfig +++ b/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/Kconfig @@ -42,7 +42,10 @@ menu "xiwangtong-arm32 feature" menu "config board peripheral" config MOUNT_SDCARD - bool "mount sd card" + bool + default n + config MOUNT_USB + bool default n endmenu diff --git a/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/third_party_driver/usb/Kconfig b/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/third_party_driver/usb/Kconfig index a1f439ca9..eee8330b9 100644 --- a/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/third_party_driver/usb/Kconfig +++ b/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/third_party_driver/usb/Kconfig @@ -11,5 +11,15 @@ config BSP_USING_NXP_USBH config USB_DEVICE_NAME string "usb bus device name" default "usb_dev" + config MOUNT_USB_FS + bool "mount usb file system" + default y + select MOUNT_USB + + if MOUNT_USB_FS + config MOUNT_USB_FS_TYPE + int "choose file system type : FATFS(0) LWEXT4(3)" + default 0 + endif endif diff --git a/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/third_party_driver/usb/connect_usb.c b/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/third_party_driver/usb/connect_usb.c index c1db7d384..dde0fab92 100644 --- a/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/third_party_driver/usb/connect_usb.c +++ b/Ubiquitous/XiZi_IIoT/board/xiwangtong-arm32/third_party_driver/usb/connect_usb.c @@ -34,6 +34,8 @@ Modification: extern usb_host_msd_command_instance_t g_MsdCommandInstance; usb_host_handle g_HostHandle; +static void UsbHostTask(void* parameter); + extern usb_status_t USB_HostMsdReadApi(usb_host_msd_command_instance_t *msdCommandInstance, uint8_t *buffer, uint32_t pos, uint32_t block_size, uint32_t block_num); extern usb_status_t USB_HostMsdWriteApi(usb_host_msd_command_instance_t *msdCommandInstance, const uint8_t *buffer, uint32_t pos, uint32_t block_size, uint32_t block_num); @@ -148,6 +150,22 @@ void UsbUnmountFileSystem() { UnmountFileSystem(UDISK_MOUNTPOINT); } + +#ifdef MOUNT_USB +int MountUsb(void) +{ + int32 usb_host_task = 0; + usb_host_task = KTaskCreate("usbh", UsbHostTask, NONE, + USB_HOST_STACK_SIZE, 8); + if(usb_host_task < 0) { + KPrintf("usb_host_task create failed ...%s %d.\n", __FUNCTION__,__LINE__); + return ERROR; + } + + StartupKTask(usb_host_task); + return 0; +} +#endif #endif static uint32 UsbHostOpen(void *dev) @@ -258,7 +276,6 @@ static int BoardUsbDevBend(void) int Imxrt1052HwUsbHostInit(void) { x_err_t ret = EOK; - int32 usb_host_task = 0; static struct UsbBus usb_bus; memset(&usb_bus, 0, sizeof(struct UsbBus)); @@ -280,15 +297,6 @@ int Imxrt1052HwUsbHostInit(void) return ERROR; } - usb_host_task = KTaskCreate("usbh", UsbHostTask, NONE, - USB_HOST_STACK_SIZE, 8); - if(usb_host_task < 0) { - KPrintf("usb_host_task create failed ...%s %d.\n", __FUNCTION__,__LINE__); - return ERROR; - } - - StartupKTask(usb_host_task); - return ret; } diff --git a/Ubiquitous/XiZi_IIoT/kernel/include/xs_init.h b/Ubiquitous/XiZi_IIoT/kernel/include/xs_init.h index 09e813178..8a40631c3 100644 --- a/Ubiquitous/XiZi_IIoT/kernel/include/xs_init.h +++ b/Ubiquitous/XiZi_IIoT/kernel/include/xs_init.h @@ -44,7 +44,7 @@ extern int Lwext4Init(void); extern int LibcSystemInit(void); extern int RtcNtpSyncInit(void); extern int MountSDCard(void); -extern int MountUSB(void); +extern int MountUsb(void); extern int DfsMountTable(void); extern int userShellInit(void); extern int STM32USBHostRegister(void); diff --git a/Ubiquitous/XiZi_IIoT/kernel/thread/init.c b/Ubiquitous/XiZi_IIoT/kernel/thread/init.c index 9d453c8f0..c04dc28d6 100644 --- a/Ubiquitous/XiZi_IIoT/kernel/thread/init.c +++ b/Ubiquitous/XiZi_IIoT/kernel/thread/init.c @@ -117,7 +117,7 @@ struct InitSequenceDesc env_init[] = { "MountSDCard", MountSDCard }, #endif #ifdef MOUNT_USB - { "MountUSB", MountUSB }, + { "MountUsb", MountUsb }, #endif #ifdef FS_VFS_MNTTABLE { "DfsMountTable", DfsMountTable },