boards/esp32-devkitc: Mount tmpfs on bring up

This commit is contained in:
Gustavo Henrique Nihei
2021-03-15 15:52:41 -03:00
committed by Xiang Xiao
parent 8cf752db55
commit a3f6a5fbb6
@@ -174,6 +174,17 @@ int esp32_bringup(void)
} }
#endif #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 #ifdef CONFIG_MMCSD
ret = esp32_mmcsd_initialize(0); ret = esp32_mmcsd_initialize(0);
if (ret < 0) if (ret < 0)