diff Discovery/Inc/externLogbookFlash.h @ 421:3f7d80f37bfc ImprovmentNVM_2

Enable sequentionel writing of device data: DeviceData was always written to the start of the the DD ringbuffer causing everytime a sector erase delay (~200ms). To avoid this the ring buffer functionality has been activated. To be backward compatible the latest DD set will be written to DD ring buffer start at shutdown time. In case of a reset the firmware scans for the latest DD block and restores its content giving the same data consistency intervall (10 minutes) as the previous implementation without having the 200ms penality for sector erases
author ideenmodellierer
date Mon, 10 Feb 2020 19:25:09 +0100
parents 1b9847d40e81
children 86fcac4cc43a
line wrap: on
line diff
--- a/Discovery/Inc/externLogbookFlash.h	Mon Feb 10 19:15:27 2020 +0100
+++ b/Discovery/Inc/externLogbookFlash.h	Mon Feb 10 19:25:09 2020 +0100
@@ -105,7 +105,7 @@
 void ext_flash_write_settings(void);
 uint8_t ext_flash_read_settings(void);
 
-void ext_flash_write_devicedata(void);
+void ext_flash_write_devicedata(uint8_t resetRing);
 uint16_t ext_flash_read_devicedata(uint8_t *buffer, uint16_t max_length);
 void ext_flash_read_fixed_16_devicedata_blocks_formated_128byte_total(uint8_t *buffer);