Skip to content

Commit 0c5a7be

Browse files
author
Rohit Grover
committed
white space diffs
1 parent 717651e commit 0c5a7be

File tree

1 file changed

+29
-30
lines changed

1 file changed

+29
-30
lines changed

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

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ static const ARM_STORAGE_CAPABILITIES caps = {
221221
/* Enable chip-erase functionality if we own all of block-1. */
222222
#if ((!defined (YOTTA_CFG_CONFIG_HARDWARE_MTD_START_ADDR) || (YOTTA_CFG_CONFIG_HARDWARE_MTD_START_ADDR == BLOCK1_START_ADDR)) && \
223223
(!defined (YOTTA_CFG_CONFIG_HARDWARE_MTD_SIZE) || (YOTTA_CFG_CONFIG_HARDWARE_MTD_SIZE == BLOCK1_SIZE)))
224-
.erase_all = 1, /**< Supports EraseChip operation. */
224+
.erase_all = 1, /**< Supports EraseChip operation. */
225225
#else
226-
.erase_all = 0, /**< Supports EraseChip operation. */
226+
.erase_all = 0, /**< Supports EraseChip operation. */
227227
#endif
228228
};
229229

@@ -233,19 +233,19 @@ static const ARM_STORAGE_INFO info = {
233233
.program_unit = PROGRAM_UNIT,
234234
.optimal_program_unit = OPTIMAL_PROGRAM_UNIT,
235235

236-
.program_cycles = ARM_STORAGE_PROGRAM_CYCLES_INFINITE, /**< A measure of endurance for reprogramming.
237-
* Use ARM_STOR_PROGRAM_CYCLES_INFINITE for infinite or unknown endurance. */
236+
.program_cycles = ARM_STORAGE_PROGRAM_CYCLES_INFINITE, /**< A measure of endurance for reprogramming.
237+
* Use ARM_STOR_PROGRAM_CYCLES_INFINITE for infinite or unknown endurance. */
238238

239-
.erased_value = 0x1, /**< Contents of erased memory (1 to indicate erased octets with state 0xFF). */
240-
.memory_mapped = 1,
239+
.erased_value = 0x1, /**< Contents of erased memory (1 to indicate erased octets with state 0xFF). */
240+
.memory_mapped = 1,
241241

242-
.programmability = ARM_STORAGE_PROGRAMMABILITY_ERASABLE, /**< A value of type enum ARM_STOR_PROGRAMMABILITY. */
243-
.retention_level = ARM_RETENTION_NVM,
244-
.security = {
245-
.acls = 0, /**< against internal software attacks using ACLs. */
246-
.rollback_protection = 0, /**< roll-back protection. */
247-
.tamper_proof = 0, /**< tamper-proof memory (will be deleted on tamper-attempts using board level or chip level sensors). */
248-
.internal_flash = 1, /**< Internal flash. */
242+
.programmability = ARM_STORAGE_PROGRAMMABILITY_ERASABLE, /**< A value of type enum ARM_STOR_PROGRAMMABILITY. */
243+
.retention_level = ARM_RETENTION_NVM,
244+
.security = {
245+
.acls = 0, /**< against internal software attacks using ACLs. */
246+
.rollback_protection = 0, /**< roll-back protection. */
247+
.tamper_proof = 0, /**< tamper-proof memory (will be deleted on tamper-attempts using board level or chip level sensors). */
248+
.internal_flash = 1, /**< Internal flash. */
249249

250250
.software_attacks = 0,
251251
.board_level_attacks = 0,
@@ -254,7 +254,6 @@ static const ARM_STORAGE_INFO info = {
254254
}
255255
};
256256

257-
258257
/**
259258
* This is the command code written into the first FCCOB register, FCCOB0.
260259
*/
@@ -944,7 +943,7 @@ static int32_t eraseAll(void)
944943
static ARM_STORAGE_STATUS getStatus(void)
945944
{
946945
ARM_STORAGE_STATUS status = {
947-
.busy = 0,
946+
.busy = 0,
948947
.error = 0,
949948
};
950949

@@ -972,7 +971,7 @@ static uint32_t resolveAddress(uint64_t addr) {
972971
return (uint32_t)addr;
973972
}
974973

975-
int32_t nextBlock(const ARM_STORAGE_BLOCK* prevP, ARM_STORAGE_BLOCK *nextP)
974+
int32_t nextBlock(const ARM_STORAGE_BLOCK *prevP, ARM_STORAGE_BLOCK *nextP)
976975
{
977976
if (prevP == NULL) {
978977
/* fetching the first block (instead of next) */
@@ -1021,20 +1020,20 @@ int32_t getBlock(uint64_t addr, ARM_STORAGE_BLOCK *blockP)
10211020
}
10221021

10231022
ARM_DRIVER_STORAGE ARM_Driver_Storage_(0) = {
1024-
.GetVersion = getVersion,
1025-
.GetCapabilities = getCapabilities,
1026-
.Initialize = initialize,
1027-
.Uninitialize = uninitialize,
1028-
.PowerControl = powerControl,
1029-
.ReadData = readData,
1030-
.ProgramData = programData,
1031-
.Erase = erase,
1032-
.EraseAll = eraseAll,
1033-
.GetStatus = getStatus,
1034-
.GetInfo = getInfo,
1035-
.ResolveAddress = resolveAddress,
1036-
.GetNextBlock = nextBlock,
1037-
.GetBlock = getBlock
1023+
.GetVersion = getVersion,
1024+
.GetCapabilities = getCapabilities,
1025+
.Initialize = initialize,
1026+
.Uninitialize = uninitialize,
1027+
.PowerControl = powerControl,
1028+
.ReadData = readData,
1029+
.ProgramData = programData,
1030+
.Erase = erase,
1031+
.EraseAll = eraseAll,
1032+
.GetStatus = getStatus,
1033+
.GetInfo = getInfo,
1034+
.ResolveAddress = resolveAddress,
1035+
.GetNextBlock = nextBlock,
1036+
.GetBlock = getBlock
10381037
};
10391038

10401039
#endif /* #if DEVICE_STORAGE */

0 commit comments

Comments
 (0)