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"
21
21
select RT_USING_MTD_NOR
22
22
select BSP_USING_ONCHIP_FLASH
23
23
default n
24
- config BSP_USING_SDCARD_FS
24
+
25
+ menuconfig BSP_USING_SDCARD_FS
25
26
bool "Enable SDCARD filesystem"
26
27
select BSP_USING_SDHI
27
28
select BSP_USING_SDHI1
28
29
select RT_USING_DFS_ELMFAT
29
30
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
+
30
43
config BSP_USING_SPICARD_FS
31
44
bool "Enable SPI FLASH filesystem"
32
45
select BSP_USING_SCI
Original file line number Diff line number Diff line change 4
4
#ifdef BSP_USING_FS
5
5
6
6
#include <dfs_fs.h>
7
+ #include <rtdbg.h>
7
8
8
9
#define DBG_TAG "app.filesystem"
9
10
#define DBG_LVL DBG_INFO
10
- #include <rtdbg.h>
11
-
12
- #define SDHI_USING_CD
13
- #define RA_SDHI_CD_PIN "p503"
14
11
15
12
#ifdef BSP_USING_OPENMV
16
13
#include "led.h"
@@ -175,11 +172,6 @@ int sd_mount(void)
175
172
176
173
int mount_init (void )
177
174
{
178
- mmcsd_wait_cd_changed (0 );
179
-
180
- sdcard_change ();
181
- mmcsd_wait_cd_changed (RT_WAITING_FOREVER );
182
-
183
175
rt_thread_mdelay (200 );
184
176
sd_mount ();
185
177
return RT_EOK ;
You can’t perform that action at this time.
0 commit comments