summaryrefslogtreecommitdiff
path: root/bsp/stm32
diff options
context:
space:
mode:
authorRbb666 <[email protected]>2024-04-18 15:28:52 +0800
committerMeco Man <[email protected]>2024-04-18 20:32:47 -0400
commit3c9b7b1f96545d6abd42b0ee2f91f16b992bd776 (patch)
treea6e9543e530b88fede25dc6e6470a776015f8580 /bsp/stm32
parent204c3253be9c10e208556a623b40a77bb716ab24 (diff)
[bsp][renesas][stm32]Fix some bsp probelm in 5.1.x.
Diffstat (limited to 'bsp/stm32')
-rw-r--r--bsp/stm32/stm32f407-rt-spark/board/ports/drv_filesystem.c2
-rw-r--r--bsp/stm32/stm32h750-artpi/board/port/filesystem.c10
-rw-r--r--bsp/stm32/stm32h7s7-st-disco/board/port/filesystem.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/bsp/stm32/stm32f407-rt-spark/board/ports/drv_filesystem.c b/bsp/stm32/stm32f407-rt-spark/board/ports/drv_filesystem.c
index 8f3f532662..1ed53bf820 100644
--- a/bsp/stm32/stm32f407-rt-spark/board/ports/drv_filesystem.c
+++ b/bsp/stm32/stm32f407-rt-spark/board/ports/drv_filesystem.c
@@ -30,7 +30,7 @@
#ifdef BSP_USING_SDCARD_FATFS
static int onboard_sdcard_mount(void)
{
- if (dfs_mount("sd0", "/sdcard", "elm", 0, 0) == RT_EOK)
+ if (dfs_mount("sd", "/sdcard", "elm", 0, 0) == RT_EOK)
{
LOG_I("SD card mount to '/sdcard'");
}
diff --git a/bsp/stm32/stm32h750-artpi/board/port/filesystem.c b/bsp/stm32/stm32h750-artpi/board/port/filesystem.c
index a88c1b1b95..d878f9bbcd 100644
--- a/bsp/stm32/stm32h750-artpi/board/port/filesystem.c
+++ b/bsp/stm32/stm32h750-artpi/board/port/filesystem.c
@@ -32,7 +32,7 @@
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
-
+#ifdef RT_USING_DFS_ROMFS
#include "dfs_romfs.h"
#ifdef RT_USING_DFS_ELMFAT
@@ -54,7 +54,7 @@ const struct romfs_dirent romfs_root =
{
ROMFS_DIRENT_DIR, "/", (rt_uint8_t *)_romfs_root, sizeof(_romfs_root) / sizeof(_romfs_root[0])
};
-
+#endif
#ifdef BSP_USING_SDCARD_FS
@@ -65,19 +65,19 @@ static void _sdcard_mount(void)
{
rt_device_t device;
- device = rt_device_find("sd0");
+ device = rt_device_find("sd");
if (device == NULL)
{
mmcsd_wait_cd_changed(0);
sdcard_change();
mmcsd_wait_cd_changed(RT_WAITING_FOREVER);
- device = rt_device_find("sd0");
+ device = rt_device_find("sd");
}
if (device != RT_NULL)
{
- if (dfs_mount("sd0", "/sdcard", "elm", 0, 0) == RT_EOK)
+ if (dfs_mount("sd", "/sdcard", "elm", 0, 0) == RT_EOK)
{
LOG_I("sd card mount to '/sdcard'");
}
diff --git a/bsp/stm32/stm32h7s7-st-disco/board/port/filesystem.c b/bsp/stm32/stm32h7s7-st-disco/board/port/filesystem.c
index a88c1b1b95..7e20e4f19b 100644
--- a/bsp/stm32/stm32h7s7-st-disco/board/port/filesystem.c
+++ b/bsp/stm32/stm32h7s7-st-disco/board/port/filesystem.c
@@ -65,19 +65,19 @@ static void _sdcard_mount(void)
{
rt_device_t device;
- device = rt_device_find("sd0");
+ device = rt_device_find("sd");
if (device == NULL)
{
mmcsd_wait_cd_changed(0);
sdcard_change();
mmcsd_wait_cd_changed(RT_WAITING_FOREVER);
- device = rt_device_find("sd0");
+ device = rt_device_find("sd");
}
if (device != RT_NULL)
{
- if (dfs_mount("sd0", "/sdcard", "elm", 0, 0) == RT_EOK)
+ if (dfs_mount("sd", "/sdcard", "elm", 0, 0) == RT_EOK)
{
LOG_I("sd card mount to '/sdcard'");
}