mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 22:05:21 +00:00
boards/esp32-wrover-kit: Mount tmpfs on bring up
This commit is contained in:
parent
31816d2726
commit
4cde8dab5a
1 changed files with 11 additions and 0 deletions
|
|
@ -143,6 +143,17 @@ int esp32_bringup(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_FS_TMPFS
|
||||
/* Mount the tmpfs file system */
|
||||
|
||||
ret = nx_mount(NULL, CONFIG_LIBC_TMPDIR, "tmpfs", 0, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to mount tmpfs at %s: %d\n",
|
||||
CONFIG_LIBC_TMPDIR, ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MMCSD
|
||||
ret = esp32_mmcsd_initialize(0);
|
||||
if (ret < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue