File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
components/storage/blockdevice/COMPONENT_FLASHIAP Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -88,11 +88,7 @@ static char fslittle_fopen_utest_msg_g[FSLITTLE_UTEST_MSG_BUF_SIZE];
88
88
#define FSLITTLE_FOPEN_TEST_MOUNT_PT_PATH " /" FSLITTLE_FOPEN_TEST_MOUNT_PT_NAME
89
89
#define FSLITTLE_FOPEN_TEST_WORK_BUF_SIZE_1 64
90
90
#define FSLITTLE_FOPEN_TEST_FILEPATH_MAX_DEPTH 20
91
- #ifdef TARGET_SAML21J18A
92
- static const int MAX_TEST_SIZE = 64 * 1024 ;
93
- #else
94
- static const int MAX_TEST_SIZE = 256 * 1024 * 2 ;
95
- #endif
91
+ static const int MAX_TEST_SIZE = MBED_CONF_FLASHIAP_BLOCK_DEVICE_MAX_TEST_SIZE;
96
92
static const char *sd_badfile_path = " /sd/badfile.txt" ;
97
93
static const char *sd_testfile_path = " /sd/test.txt" ;
98
94
@@ -1431,11 +1427,7 @@ control_t fslittle_fopen_test_15(const size_t call_count)
1431
1427
{
1432
1428
int32_t ret = 0 ;
1433
1429
fslittle_kv_data_t *node = fslittle_fopen_test_15_kv_data;
1434
- #ifdef TARGET_SAML21J18A
1435
- const int32_t num_blocks = 3 ; /* each file 768b */
1436
- #else
1437
- const int32_t num_blocks = 100 ; /* each file ~25kB */
1438
- #endif
1430
+ const int32_t num_blocks = MBED_CONF_FLASHIAP_BLOCK_DEVICE_NUM_BLOCKS;
1439
1431
1440
1432
FSLITTLE_DBGLOG (" %s:entered\n " , __func__);
1441
1433
(void ) call_count;
Original file line number Diff line number Diff line change 8
8
"size" : {
9
9
"help" : " Memory allocated for block device." ,
10
10
"value" : " 0"
11
+ },
12
+ "num-blocks" : {
13
+ "help" : " Number of 256 byte blocks to use per file in the stress test" ,
14
+ "value" : 100
15
+ },
16
+ "max-test-size" : {
17
+ "help" : " Maximum size of the FlashIAP block device" ,
18
+ "value" : " 256 * 1024 * 2"
11
19
}
12
20
},
13
21
"target_overrides" : {
17
25
},
18
26
"SAML21J18A" : {
19
27
"base-address" : " 0x30000" ,
20
- "size" : " 0x10000"
28
+ "size" : " 0x10000" ,
29
+ "num-blocks" : 3 ,
30
+ "max-test-size" : " 64 * 1024"
21
31
}
22
32
}
23
33
}
You can’t perform that action at this time.
0 commit comments