@@ -774,6 +774,8 @@ int _storage_config_TDB_EXTERNAL()
774
774
return MBED_ERROR_UNSUPPORTED;
775
775
#endif
776
776
777
+ #ifdef MBED_CONF_STORAGE_TDB_EXTERNAL_INTERNAL_BASE_ADDRESS
778
+
777
779
bd_size_t internal_rbp_size = MBED_CONF_STORAGE_TDB_EXTERNAL_RBP_INTERNAL_SIZE;
778
780
bd_addr_t internal_start_address = MBED_CONF_STORAGE_TDB_EXTERNAL_INTERNAL_BASE_ADDRESS;
779
781
@@ -842,13 +844,18 @@ int _storage_config_TDB_EXTERNAL()
842
844
kvstore_config.flags_mask = ~(0 );
843
845
844
846
return _storage_config_tdb_external_common ();
847
+ #else
848
+ return MBED_ERROR_CONFIG_UNSUPPORTED;
849
+ #endif
845
850
}
846
851
847
852
int _storage_config_TDB_EXTERNAL_NO_RBP ()
848
853
{
849
854
#if !SECURESTORE_ENABLED
850
855
return MBED_ERROR_UNSUPPORTED;
851
856
#endif
857
+
858
+ #ifdef MBED_CONF_STORAGE_TDB_EXTERNAL_NO_RBP_EXTERNAL_BASE_ADDRESS
852
859
bd_size_t size = MBED_CONF_STORAGE_TDB_EXTERNAL_NO_RBP_EXTERNAL_SIZE;
853
860
bd_addr_t address = MBED_CONF_STORAGE_TDB_EXTERNAL_NO_RBP_EXTERNAL_BASE_ADDRESS;
854
861
@@ -879,6 +886,9 @@ int _storage_config_TDB_EXTERNAL_NO_RBP()
879
886
kvstore_config.flags_mask = ~(KVStore::REQUIRE_REPLAY_PROTECTION_FLAG);
880
887
881
888
return _storage_config_tdb_external_common ();
889
+ #else
890
+ return MBED_ERROR_CONFIG_UNSUPPORTED;
891
+ #endif
882
892
}
883
893
884
894
int _storage_config_tdb_external_common ()
@@ -938,6 +948,7 @@ int _storage_config_FILESYSTEM()
938
948
return MBED_ERROR_UNSUPPORTED;
939
949
#endif
940
950
951
+ #ifdef MBED_CONF_STORAGE_FILESYSTEM_INTERNAL_BASE_ADDRESS
941
952
filesystemstore_folder_path = STR (MBED_CONF_STORAGE_FILESYSTEM_FOLDER_PATH);
942
953
943
954
bd_size_t internal_rbp_size = MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE;
@@ -1017,6 +1028,9 @@ int _storage_config_FILESYSTEM()
1017
1028
kvstore_config.flags_mask = ~(0 );
1018
1029
1019
1030
return _storage_config_filesystem_common ();
1031
+ #else
1032
+ return MBED_ERROR_CONFIG_UNSUPPORTED;
1033
+ #endif
1020
1034
}
1021
1035
1022
1036
int _storage_config_FILESYSTEM_NO_RBP ()
@@ -1025,6 +1039,7 @@ int _storage_config_FILESYSTEM_NO_RBP()
1025
1039
return MBED_ERROR_UNSUPPORTED;
1026
1040
#endif
1027
1041
1042
+ #ifdef MBED_CONF_STORAGE_FILESYSTEM_NO_RBP_EXTERNAL_BASE_ADDRESS
1028
1043
filesystemstore_folder_path = STR (MBED_CONF_STORAGE_FILESYSTEM_NO_RBP_FOLDER_PATH);
1029
1044
1030
1045
bd_size_t size = MBED_CONF_STORAGE_FILESYSTEM_NO_RBP_EXTERNAL_SIZE;
@@ -1059,6 +1074,9 @@ int _storage_config_FILESYSTEM_NO_RBP()
1059
1074
kvstore_config.flags_mask = ~(KVStore::REQUIRE_REPLAY_PROTECTION_FLAG);
1060
1075
1061
1076
return _storage_config_filesystem_common ();
1077
+ #else
1078
+ return MBED_ERROR_CONFIG_UNSUPPORTED;
1079
+ #endif
1062
1080
}
1063
1081
1064
1082
int _storage_config_filesystem_common ()
0 commit comments