File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed
bsp/renesas/ra8d1-vision-board/board Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,25 @@ menu "Hardware Drivers Config"
2121 select RT_USING_MTD_NOR
2222 select BSP_USING_ONCHIP_FLASH
2323 default n
24- config BSP_USING_SDCARD_FS
24+
25+ menuconfig BSP_USING_SDCARD_FS
2526 bool "Enable SDCARD filesystem"
2627 select BSP_USING_SDHI
2728 select BSP_USING_SDHI1
2829 select RT_USING_DFS_ELMFAT
2930 default n
31+
32+ if BSP_USING_SDCARD_FS
33+
34+ config SDHI_USING_CD
35+ bool "enable RA_SDHI_CD_PIN"
36+ default y
37+
38+ config RA_SDHI_CD_PIN
39+ string "SD Card hot plug detection pin"
40+ default "p503"
41+ endif
42+
3043 config BSP_USING_SPICARD_FS
3144 bool "Enable SPI FLASH filesystem"
3245 select BSP_USING_SCI
Original file line number Diff line number Diff line change 44#ifdef BSP_USING_FS
55
66#include <dfs_fs.h>
7+ #include <rtdbg.h>
78
89#define DBG_TAG "app.filesystem"
910#define DBG_LVL DBG_INFO
10- #include <rtdbg.h>
11-
12- #define SDHI_USING_CD
13- #define RA_SDHI_CD_PIN "p503"
1411
1512#ifdef BSP_USING_OPENMV
1613#include "led.h"
@@ -175,11 +172,6 @@ int sd_mount(void)
175172
176173int mount_init (void )
177174{
178- mmcsd_wait_cd_changed (0 );
179-
180- sdcard_change ();
181- mmcsd_wait_cd_changed (RT_WAITING_FOREVER );
182-
183175 rt_thread_mdelay (200 );
184176 sd_mount ();
185177 return RT_EOK ;
You can’t perform that action at this time.
0 commit comments