comparison 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
comparison
equal deleted inserted replaced
420:2174fb133dbe 421:3f7d80f37bfc
103 103
104 /* Exported functions --------------------------------------------------------*/ 104 /* Exported functions --------------------------------------------------------*/
105 void ext_flash_write_settings(void); 105 void ext_flash_write_settings(void);
106 uint8_t ext_flash_read_settings(void); 106 uint8_t ext_flash_read_settings(void);
107 107
108 void ext_flash_write_devicedata(void); 108 void ext_flash_write_devicedata(uint8_t resetRing);
109 uint16_t ext_flash_read_devicedata(uint8_t *buffer, uint16_t max_length); 109 uint16_t ext_flash_read_devicedata(uint8_t *buffer, uint16_t max_length);
110 void ext_flash_read_fixed_16_devicedata_blocks_formated_128byte_total(uint8_t *buffer); 110 void ext_flash_read_fixed_16_devicedata_blocks_formated_128byte_total(uint8_t *buffer);
111 111
112 #ifndef BOOTLOADER_STANDALONE 112 #ifndef BOOTLOADER_STANDALONE
113 void ext_flash_write_vpm(SVpm *vpmInput); 113 void ext_flash_write_vpm(SVpm *vpmInput);