@@ -221,9 +221,9 @@ static const ARM_STORAGE_CAPABILITIES caps = {
221
221
/* Enable chip-erase functionality if we own all of block-1. */
222
222
#if ((!defined (YOTTA_CFG_CONFIG_HARDWARE_MTD_START_ADDR ) || (YOTTA_CFG_CONFIG_HARDWARE_MTD_START_ADDR == BLOCK1_START_ADDR )) && \
223
223
(!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. */
225
225
#else
226
- .erase_all = 0 , /**< Supports EraseChip operation. */
226
+ .erase_all = 0 , /**< Supports EraseChip operation. */
227
227
#endif
228
228
};
229
229
@@ -233,19 +233,19 @@ static const ARM_STORAGE_INFO info = {
233
233
.program_unit = PROGRAM_UNIT ,
234
234
.optimal_program_unit = OPTIMAL_PROGRAM_UNIT ,
235
235
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. */
238
238
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 ,
241
241
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. */
249
249
250
250
.software_attacks = 0 ,
251
251
.board_level_attacks = 0 ,
@@ -254,7 +254,6 @@ static const ARM_STORAGE_INFO info = {
254
254
}
255
255
};
256
256
257
-
258
257
/**
259
258
* This is the command code written into the first FCCOB register, FCCOB0.
260
259
*/
@@ -944,7 +943,7 @@ static int32_t eraseAll(void)
944
943
static ARM_STORAGE_STATUS getStatus (void )
945
944
{
946
945
ARM_STORAGE_STATUS status = {
947
- .busy = 0 ,
946
+ .busy = 0 ,
948
947
.error = 0 ,
949
948
};
950
949
@@ -972,7 +971,7 @@ static uint32_t resolveAddress(uint64_t addr) {
972
971
return (uint32_t )addr ;
973
972
}
974
973
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 )
976
975
{
977
976
if (prevP == NULL ) {
978
977
/* fetching the first block (instead of next) */
@@ -1021,20 +1020,20 @@ int32_t getBlock(uint64_t addr, ARM_STORAGE_BLOCK *blockP)
1021
1020
}
1022
1021
1023
1022
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
1038
1037
};
1039
1038
1040
1039
#endif /* #if DEVICE_STORAGE */
0 commit comments