停用QSPI_ELM
停用TMPFS_ELM SD挂在到"/"根目录 数据库文件修改存储路径 配置文件修改存储路径
This commit is contained in:
1 parent
5006477fc9
commit
c3741e1888
7 files changed
+15
-12
No files matched your search
@@ -96,7 +96,7 @@ int spi_flash_init(void)
|
||||
LOG_I("MTD device 'sysdata' created.");
|
||||
return RT_EOK;
|
||||
}
|
||||
INIT_DEVICE_EXPORT(spi_flash_init);
|
||||
//INIT_DEVICE_EXPORT(spi_flash_init);
|
||||
|
||||
int qspi_fal(void)
|
||||
{
|
||||
@@ -125,4 +125,4 @@ int qspi_fal(void)
|
||||
}
|
||||
return RT_EOK;
|
||||
}
|
||||
INIT_COMPONENT_EXPORT(qspi_fal);
|
||||
//INIT_COMPONENT_EXPORT(qspi_fal);
|
||||
@@ -24,11 +24,11 @@ void sd_mount(void *parameter)
|
||||
{
|
||||
if (rt_device_find("sd") != RT_NULL)
|
||||
{
|
||||
LOG_I("Create file path /sddisk");
|
||||
mkdir("/sddisk", 0777);
|
||||
if (dfs_mount("sd", "/sddisk", "elm", 0, NULL) == RT_EOK)
|
||||
LOG_I("Create file path /disk");
|
||||
//mkdir("/sddisk", 0777);
|
||||
if (dfs_mount("sd", "/", "elm", 0, NULL) == RT_EOK)
|
||||
{
|
||||
LOG_I("SD card mounted to '/sddisk' successfully");
|
||||
LOG_I("SD card mounted to 'disk' successfully");
|
||||
// 挂载成功,释放信号量
|
||||
if (mount_sem != RT_NULL)
|
||||
{
|
||||
|
||||
@@ -39,4 +39,4 @@ int init_tmpfs_root(void)
|
||||
}
|
||||
|
||||
/* 在应用初始化阶段运行(确保系统已就绪) */
|
||||
INIT_DEVICE_EXPORT(init_tmpfs_root);
|
||||
//INIT_DEVICE_EXPORT(init_tmpfs_root);
|
||||
Reference in new issue
Block a user