Skip to content

Commit 7b110f0

Browse files
author
Rohit Grover
committed
make use of symbol BLOCK1_SIZE to replace a naked constant
1 parent 0c5a7be commit 7b110f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/storage_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static const ARM_STORAGE_CAPABILITIES caps = {
228228
};
229229

230230
static const ARM_STORAGE_INFO info = {
231-
.total_storage = 512 * 1024, /**< Total available storage, in units of octets. */
231+
.total_storage = BLOCK1_SIZE, /**< Total available storage, in units of octets. By default, BLOCK0 is reserved to hold program code. */
232232

233233
.program_unit = PROGRAM_UNIT,
234234
.optimal_program_unit = OPTIMAL_PROGRAM_UNIT,

0 commit comments

Comments
 (0)