Skip to content

Commit 8876b7e

Browse files
author
Marcus Chang
committed
Removed static declaration for the StorageVolumeManager in the CFStore because this componenent is shared across all users of the flash. Added define guards to the CFStore location and size so that these can be changed from the settings file.
1 parent bd4eca3 commit 8876b7e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

features/storage/FEATURE_STORAGE/cfstore/source/cfstore_svm.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@
2929
* so it can be called by the C-HAL implementation configuration_store.c
3030
*/
3131

32+
#ifndef CFSTORE_SVM_VOL_01_START_OFFSET
3233
#define CFSTORE_SVM_VOL_01_START_OFFSET 0x80000UL
34+
#endif
35+
36+
#ifndef CFSTORE_SVM_VOL_01_SIZE
3337
#define CFSTORE_SVM_VOL_01_SIZE 0x80000UL
38+
#endif
3439

3540
#ifdef CFSTORE_CONFIG_BACKEND_FLASH_ENABLED
3641
extern ARM_DRIVER_STORAGE ARM_Driver_Storage_MTD_K64F;
@@ -39,7 +44,7 @@ static ARM_DRIVER_STORAGE *cfstore_svm_storage_drv = &ARM_Driver_Storage_MTD_K64
3944
#endif /* CFSTORE_CONFIG_BACKEND_FLASH_ENABLED */
4045

4146
/* the storage volume manager instance used to generate virtual mtd descriptors */
42-
static StorageVolumeManager volumeManager;
47+
StorageVolumeManager volumeManager;
4348

4449
/* used only for the initialization of the volume-manager. */
4550
static void cfstore_svm_volume_manager_initialize_callback(int32_t status)

0 commit comments

Comments
 (0)