apps/platform/mikroe-stm32f4 now support platform-specific configuration data. From Ken Pettit

This commit is contained in:
Gregory Nutt 2013-10-30 17:20:01 -06:00
parent 125c7fd8fa
commit be5e345860
4 changed files with 42 additions and 2 deletions

View File

@ -714,4 +714,6 @@
(2013-10-30).
* apps/examples/cc3000: Fine tuning of memory usage from David Sidrane
(2013-10-30).
* apps/platform/mikroe-stm32f4: Now supports storage of configuration
data. From Ken Pettit (2013-10-30).

View File

@ -82,7 +82,7 @@ enum config_data_e
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C" {
#els
#else
#define EXTERN extern
#endif

View File

@ -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

View File

@ -36,4 +36,4 @@
# Add platform specific sources to ASRCS and CSRCS
# ASRCS += xyz.S
# CSRCS += xyz.c
CSRCS += mikroe_configdata.c