Skip to content

Commit 326775d

Browse files
authored
Merge pull request #134 from whj4674672/master
【修复】未开启 FLASH_FS 时报错的问题
2 parents 9b3d827 + 4ab5c0d commit 326775d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

libraries/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,13 @@ menu "On-chip Peripheral"
304304
if BSP_USING_USBH
305305
menuconfig RT_USBH_MSTORAGE
306306
bool "Enable Udisk Drivers"
307+
select RT_USING_DFS
308+
select RT_USING_DFS_ELMFAT
307309
default n
308310
if RT_USBH_MSTORAGE
309311
config UDISK_MOUNTPOINT
310-
string "Udisk mount dir"
311-
default "/"
312+
string "Udisk mount dir"
313+
default "/"
312314
endif
313315
endif
314316

projects/art_pi_blink_led/board/port/filesystem.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@
1919
#error "Please define DFS_FILESYSTEM_TYPES_MAX more than 4"
2020
#endif
2121

22+
#ifdef BSP_USING_SPI_FLASH_FS
23+
#include "fal.h"
24+
#endif
25+
2226
#include <dfs_fs.h>
2327
#include "dfs_romfs.h"
2428
#include "drv_sdio.h"
25-
#include "fal.h"
29+
2630
#define DBG_TAG "app.filesystem"
2731
#define DBG_LVL DBG_INFO
2832
#include <rtdbg.h>

0 commit comments

Comments
 (0)