boards/esp32c3: Add tmpfs mounting when bringing up
This commit is contained in:
parent
c90fffcc09
commit
7c9c9907ef
|
@ -76,6 +76,17 @@ int esp32c3_bringup(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_FS_TMPFS
|
||||
/* Mount the tmpfs file system */
|
||||
|
||||
ret = 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_DEV_GPIO
|
||||
ret = esp32c3_gpio_init();
|
||||
if (ret < 0)
|
||||
|
|
Loading…
Reference in New Issue