apps/platform/mikroe-stm32f4 now support platform-specific configuration data. From Ken Pettit
This commit is contained in:
parent
125c7fd8fa
commit
be5e345860
@ -714,4 +714,6 @@
|
|||||||
(2013-10-30).
|
(2013-10-30).
|
||||||
* apps/examples/cc3000: Fine tuning of memory usage from David Sidrane
|
* apps/examples/cc3000: Fine tuning of memory usage from David Sidrane
|
||||||
(2013-10-30).
|
(2013-10-30).
|
||||||
|
* apps/platform/mikroe-stm32f4: Now supports storage of configuration
|
||||||
|
data. From Ken Pettit (2013-10-30).
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ enum config_data_e
|
|||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
#define EXTERN extern "C"
|
#define EXTERN extern "C"
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#els
|
#else
|
||||||
|
|
||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
@ -4,4 +4,42 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
if ARCH_BOARD_MIKROE_STM32F4
|
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
|
endif
|
||||||
|
@ -36,4 +36,4 @@
|
|||||||
# Add platform specific sources to ASRCS and CSRCS
|
# Add platform specific sources to ASRCS and CSRCS
|
||||||
|
|
||||||
# ASRCS += xyz.S
|
# ASRCS += xyz.S
|
||||||
# CSRCS += xyz.c
|
CSRCS += mikroe_configdata.c
|
||||||
|
Loading…
Reference in New Issue
Block a user