@@ -113,7 +113,7 @@ static void eeprom_flash_initialize(void)
113
113
wdata [14 ] = (uint8_t )(EEPROM_FLASH_MAGIC_2 >> 16 );
114
114
wdata [15 ] = (uint8_t )(EEPROM_FLASH_MAGIC_2 >> 24 );
115
115
116
- stm32l4_flash_program ((uint32_t )eeprom_flash_data + 1 * EEPROM_FLASH_BANK - 16 , 16 , & wdata [0 ]);
116
+ stm32l4_flash_program ((uint32_t )eeprom_flash_data + 1 * EEPROM_FLASH_BANK - 16 , & wdata [0 ], 16 );
117
117
118
118
stm32l4_flash_lock ();
119
119
@@ -208,7 +208,7 @@ static void eeprom_flash_write(uint32_t offset, const uint8_t *data)
208
208
wdata [6 ] = 0x00 ;
209
209
wdata [7 ] = 0x00 ;
210
210
211
- stm32l4_flash_program ((uint32_t )eeprom_flash_data + eeprom_flash_slot , 8 , & wdata [0 ]);
211
+ stm32l4_flash_program ((uint32_t )eeprom_flash_data + eeprom_flash_slot , & wdata [0 ], 8 );
212
212
213
213
eeprom_flash_slot += 8 ;
214
214
}
@@ -244,7 +244,7 @@ static void eeprom_flash_write(uint32_t offset, const uint8_t *data)
244
244
eeprom_flash_read (soffset + 4 , & wdata [4 ]);
245
245
}
246
246
247
- stm32l4_flash_program ((uint32_t )eeprom_flash_data + sbottom + soffset , 8 , & wdata [0 ]);
247
+ stm32l4_flash_program ((uint32_t )eeprom_flash_data + sbottom + soffset , & wdata [0 ], 8 );
248
248
}
249
249
250
250
sequence = ((eeprom_flash_data [eeprom_flash_limit + 0 ] << 0 ) |
@@ -271,7 +271,7 @@ static void eeprom_flash_write(uint32_t offset, const uint8_t *data)
271
271
wdata [14 ] = (uint8_t )(EEPROM_FLASH_MAGIC_2 >> 16 );
272
272
wdata [15 ] = (uint8_t )(EEPROM_FLASH_MAGIC_2 >> 24 );
273
273
274
- stm32l4_flash_program ((uint32_t )eeprom_flash_data + sbottom + EEPROM_FLASH_BANK - 16 , 16 , & wdata [0 ]);
274
+ stm32l4_flash_program ((uint32_t )eeprom_flash_data + sbottom + EEPROM_FLASH_BANK - 16 , & wdata [0 ], 16 );
275
275
276
276
eeprom_flash_bottom = sbottom ;
277
277
eeprom_flash_top = sbottom + EEPROM_FLASH_SIZE ;
0 commit comments