diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-30 17:20:01 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-30 17:20:01 -0600 |
commit | 942cded68b0097a90603cce7f1435e76432fb97c (patch) | |
tree | 52d7aa5ae91b110506808f39cddfbbc644968548 /apps/platform | |
parent | 60e159c7232cb5e8b45d6302479753880611fc14 (diff) | |
download | nuttx-942cded68b0097a90603cce7f1435e76432fb97c.tar.gz nuttx-942cded68b0097a90603cce7f1435e76432fb97c.tar.bz2 nuttx-942cded68b0097a90603cce7f1435e76432fb97c.zip |
apps/platform/mikroe-stm32f4 now support platform-specific configuration data. From Ken Pettit
Diffstat (limited to 'apps/platform')
-rw-r--r-- | apps/platform/mikroe-stm32f4/Kconfig | 38 | ||||
-rw-r--r-- | apps/platform/mikroe-stm32f4/Make.defs | 2 |
2 files changed, 39 insertions, 1 deletions
diff --git a/apps/platform/mikroe-stm32f4/Kconfig b/apps/platform/mikroe-stm32f4/Kconfig index b6672b7fb..55a1475bd 100644 --- a/apps/platform/mikroe-stm32f4/Kconfig +++ b/apps/platform/mikroe-stm32f4/Kconfig @@ -4,4 +4,42 @@ # if ARCH_BOARD_MIKROE_STM32F4 + +if PLATFORM_CONFIGDATA + +choice + prompt "Config Data save location" + default MIKROE_STM32F4_CONFIGDATA_PART + +config MIKROE_STM32F4_CONFIGDATA_PART + bool "Dedicated FLASH partition" + +config MIKROE_STM32F4_CONFIGDATA_FS + bool "File system file" + +config MIKROE_STM32F4_CONFIGDATA_ROM + bool "Program ROM (R/O)" + +endchoice + +if MIKROE_STM32F4_CONFIGDATA_FS + +config MIKROE_STM32F4_CONFIGDATA_FILENAME + string "Path of file to save config data" + ---help--- + Specifies the fully qualified filename where application configuration + data is stored on the filesystem. + +endif + +if MIKROE_STM32F4_CONFIGDATA_PART + +config MIKROE_STM32F4_CONFIGDATA_PART_SIZE + int "Size (in erase blocks) of configuration data partition" + default 2 + +endif + +endif + endif diff --git a/apps/platform/mikroe-stm32f4/Make.defs b/apps/platform/mikroe-stm32f4/Make.defs index bf0cc47ed..825df1695 100644 --- a/apps/platform/mikroe-stm32f4/Make.defs +++ b/apps/platform/mikroe-stm32f4/Make.defs @@ -36,4 +36,4 @@ # Add platform specific sources to ASRCS and CSRCS # ASRCS += xyz.S -# CSRCS += xyz.c +CSRCS += mikroe_configdata.c |