mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
STM32F429i Discovery uses CCM procfs and so needs FS_PROCFS_REGISTER=y
This commit is contained in:
@@ -742,6 +742,7 @@ CONFIG_FS_MQUEUE_MPATH="/var/mqueue"
|
|||||||
# CONFIG_FS_SMARTFS is not set
|
# CONFIG_FS_SMARTFS is not set
|
||||||
# CONFIG_FS_BINFS is not set
|
# CONFIG_FS_BINFS is not set
|
||||||
CONFIG_FS_PROCFS=y
|
CONFIG_FS_PROCFS=y
|
||||||
|
CONFIG_FS_PROCFS_REGISTER=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# System Logging
|
# System Logging
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
#include "stm32_ccm.h"
|
||||||
#include "stm32f746g-disco.h"
|
#include "stm32f746g-disco.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -61,5 +62,24 @@
|
|||||||
|
|
||||||
int board_app_initialize(void)
|
int board_app_initialize(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_FS_PROCFS
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
/* Mount the procfs file system */
|
||||||
|
|
||||||
|
ret = mount(NULL, SAMV71_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
|
||||||
|
if (ret < 0)
|
||||||
|
{
|
||||||
|
SYSLOG("ERROR: Failed to mount procfs at %s: %d\n",
|
||||||
|
SAMV71_PROCFS_MOUNTPOINT, ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_STM32_CCM_PROCFS
|
||||||
|
/* Register the CCM procfs entry */
|
||||||
|
|
||||||
|
(void)ccm_procfs_register();
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,16 @@
|
|||||||
/****************************************************************************************************
|
/****************************************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************************************/
|
****************************************************************************************************/
|
||||||
|
/* 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
|
||||||
|
|
||||||
/* STM32F736G Discovery GPIOs ***********************************************************************/
|
/* STM32F736G Discovery GPIOs ***********************************************************************/
|
||||||
/* The STM32F746G-DISCO board has numerous LEDs but only one, LD1 located near the reset button, that
|
/* The STM32F746G-DISCO board has numerous LEDs but only one, LD1 located near the reset button, that
|
||||||
* can be controlled by software (LD2 is a power indicator, LD3-6 indicate USB status, LD7 is
|
* can be controlled by software (LD2 is a power indicator, LD3-6 indicate USB status, LD7 is
|
||||||
|
|||||||
Reference in New Issue
Block a user