update(rtthread): add check for use dfs
Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
@@ -265,6 +265,7 @@ if GetDepend(['PKG_CHERRYUSB_HOST']):
|
|||||||
src += Glob('class/vendor/serial/usbh_pl2303.c')
|
src += Glob('class/vendor/serial/usbh_pl2303.c')
|
||||||
|
|
||||||
if GetDepend(['PKG_CHERRYUSB_HOST_TEMPLATE']):
|
if GetDepend(['PKG_CHERRYUSB_HOST_TEMPLATE']):
|
||||||
|
CPPDEFINES+=['TEST_USBH_MSC=0']
|
||||||
src += Glob('demo/usb_host.c')
|
src += Glob('demo/usb_host.c')
|
||||||
|
|
||||||
if GetDepend('RT_USING_DFS') and GetDepend(['PKG_CHERRYUSB_HOST_MSC']):
|
if GetDepend('RT_USING_DFS') and GetDepend(['PKG_CHERRYUSB_HOST_MSC']):
|
||||||
|
|||||||
@@ -11,11 +11,15 @@
|
|||||||
|
|
||||||
#define DEV_FORMAT "/dev/sd%c"
|
#define DEV_FORMAT "/dev/sd%c"
|
||||||
|
|
||||||
|
#ifndef RT_USING_DFS_ELMFAT
|
||||||
|
#error "RT_USING_DFS_ELMFAT must be enabled to use USB mass storage device"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_USB_DFS_MOUNT_POINT
|
#ifndef CONFIG_USB_DFS_MOUNT_POINT
|
||||||
#define CONFIG_USB_DFS_MOUNT_POINT "/"
|
#define CONFIG_USB_DFS_MOUNT_POINT "/"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SOC_SERIES_STM32H7) || defined(SOC_SERIES_STM32F7) || \
|
#if defined(SOC_SERIES_STM32H7) || defined(SOC_SERIES_STM32F7) || defined(SOC_SERIES_STM32H7RS) ||\
|
||||||
defined(SOC_HPM5000) || defined(SOC_HPM6000) || defined(SOC_HPM6E00) || defined(BSP_USING_BL61X)
|
defined(SOC_HPM5000) || defined(SOC_HPM6000) || defined(SOC_HPM6E00) || defined(BSP_USING_BL61X)
|
||||||
#ifndef RT_USING_CACHE
|
#ifndef RT_USING_CACHE
|
||||||
#error usbh msc must enable RT_USING_CACHE in this chip
|
#error usbh msc must enable RT_USING_CACHE in this chip
|
||||||
|
|||||||
Reference in New Issue
Block a user