diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-07-03 08:18:24 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-07-03 08:18:24 -0600 |
commit | d93e86a5b218825946068fa70b263d75d09d4623 (patch) | |
tree | b2bc2567396164dd7b936a9e629cda210beeb49e /nuttx/fs/procfs | |
parent | 89f677b1bdacf0b98277b5819ed22ca0a286da60 (diff) | |
download | px4-nuttx-d93e86a5b218825946068fa70b263d75d09d4623.tar.gz px4-nuttx-d93e86a5b218825946068fa70b263d75d09d4623.tar.bz2 px4-nuttx-d93e86a5b218825946068fa70b263d75d09d4623.zip |
Add STM32 CCM heep procfs
Diffstat (limited to 'nuttx/fs/procfs')
-rw-r--r-- | nuttx/fs/procfs/Kconfig | 5 | ||||
-rw-r--r-- | nuttx/fs/procfs/fs_procfs.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/nuttx/fs/procfs/Kconfig b/nuttx/fs/procfs/Kconfig index ff10519fe..16fb8ce97 100644 --- a/nuttx/fs/procfs/Kconfig +++ b/nuttx/fs/procfs/Kconfig @@ -54,6 +54,11 @@ config FS_PROCFS_EXCLUDE_SMARTFS depends on FS_SMARTFS default n +config FS_PROCFS_EXCLUDE_CCM + bool "Exclude ccm memory usage" + depends on STM32_CCMEXCLUDE + default n + endmenu endif diff --git a/nuttx/fs/procfs/fs_procfs.c b/nuttx/fs/procfs/fs_procfs.c index 9d3602d2e..9ed3c3e58 100644 --- a/nuttx/fs/procfs/fs_procfs.c +++ b/nuttx/fs/procfs/fs_procfs.c @@ -81,6 +81,9 @@ extern const struct procfs_operations uptime_operations; extern const struct procfs_operations mtd_procfsoperations; extern const struct procfs_operations part_procfsoperations; extern const struct procfs_operations smartfs_procfsoperations; +#if defined(CONFIG_STM32_CCMEXCLUDE) && defined(CONFIG_MM_MULTIHEAP) && !defined(FS_PROCFS_EXCLUDE_CCM) +extern const struct procfs_operations ccm_procfsoperations; +#endif /**************************************************************************** * Private Types @@ -114,6 +117,9 @@ static const struct procfs_entry_s g_procfsentries[] = #if !defined(CONFIG_FS_PROCFS_EXCLUDE_UPTIME) { "uptime", &uptime_operations }, #endif +#if defined(CONFIG_STM32_CCMEXCLUDE) && defined(CONFIG_MM_MULTIHEAP) && !defined(FS_PROCFS_EXCLUDE_CCM) + { "ccm", &ccm_procfsoperations }, +#endif }; static const uint8_t g_procfsentrycount = sizeof(g_procfsentries) / |