diff options
| author | sakumisu <[email protected]> | 2025-04-26 17:22:47 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-04-26 17:22:47 +0800 |
| commit | 0c3a64516d1074dbb4ccccd6eeba59c35451323e (patch) | |
| tree | dc76d6130e3cf921d02c288ab4ee34cbbab2eb03 /platform/rtthread | |
| parent | 95d968bd57336d0f44e32db94529e2fabe3b2f92 (diff) | |
update(rtthread): add check for use dfs
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'platform/rtthread')
| -rw-r--r-- | platform/rtthread/usbh_dfs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/rtthread/usbh_dfs.c b/platform/rtthread/usbh_dfs.c index eee64a0b..128d2345 100644 --- a/platform/rtthread/usbh_dfs.c +++ b/platform/rtthread/usbh_dfs.c @@ -11,11 +11,15 @@ #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 #define CONFIG_USB_DFS_MOUNT_POINT "/" #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) #ifndef RT_USING_CACHE #error usbh msc must enable RT_USING_CACHE in this chip |
