configs/stm32f103-minimum/src: Add PROCFS automount support

This commit is contained in:
Alan Carvalho de Assis 2019-04-14 08:35:49 -06:00 committed by Gregory Nutt
parent 4179b8416f
commit 839620a954
2 changed files with 21 additions and 0 deletions

View File

@ -206,6 +206,17 @@ int stm32_bringup(void)
}
#endif
#ifdef CONFIG_FS_PROCFS
/* Mount the procfs file system */
ret = mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n",
STM32_PROCFS_MOUNTPOINT, ret);
}
#endif
#ifdef HAVE_AT24
/* Initialize the AT24 driver */

View File

@ -70,6 +70,16 @@
# undef HAVE_AT24
#endif
/* procfs File System */
#ifdef CONFIG_FS_PROCFS
# ifdef CONFIG_NSH_PROC_MOUNTPOINT
# define STM32_PROCFS_MOUNTPOINT CONFIG_NSH_PROC_MOUNTPOINT
# else
# define STM32_PROCFS_MOUNTPOINT "/proc"
# endif
#endif
/* If we are going to mount the AT24, then they user must also have told
* us what to do with it by setting one of these.
*/