forked from xuos/xiuos
fix MountUsb function error
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user