marlin2_i2/Marlin/src/HAL/HAL_LPC1768
victorpv 8998f31ee1 Update LPC persistent store to initialize eeprom.dat with FF
This change initialize any data in eeprom.dat beyond the current file size to FF.
That way if eeprom.dat is deleted and created again, it doesn't take the old values or random ones, but rather starts with FF in all positions as a real brand new or erased eeprom.dat
Currently if you delete eeprom.dat and restart the board, the new file is created in the same sector with the same content, since FAT does not actually delete the data, just marks the sector as free. I tested by deleting the file, and then rebooting the board, and checking the file content.
The change can be tested in the same way, deleting, rebooting the board, and then the new content should be all FF.

If an eeprom file already exist with data on it, but smaller than E2END, it will be padded with FF on first access, so it will not have random or old content appended.
2017-10-07 02:18:42 -05:00
..
include 2.0 compile issues 2017-09-28 10:16:25 -05:00
arduino.cpp General fixes for LPC1768 (#7834) 2017-10-04 15:40:54 -05:00
debug_extra_script.py General fixes for LPC1768 (#7834) 2017-10-04 15:40:54 -05:00
endstop_interrupts.h HAL for Re:ARM (LPC1768) architecture 2017-08-31 18:21:38 -05:00
fastio.h M355 S0, S1 fixes & faster LCD, SD card 2017-09-27 19:26:00 -05:00
HAL.cpp General fixes for LPC1768 (#7834) 2017-10-04 15:40:54 -05:00
HAL.h Tweak HAL_adc_start_conversion 2017-09-27 10:41:27 -05:00
HAL_spi.cpp Cleanup warnings 2017-09-30 16:47:17 -05:00
HAL_timers.cpp Apply spacing, const to some HAL code 2017-08-31 18:33:07 -05:00
HAL_timers.h fix 3S hang & enable SPLIT 2017-09-30 10:27:41 -05:00
HardwareSerial.cpp Cleanup warnings 2017-09-30 16:47:17 -05:00
HardwareSerial.h HAL whitespace and style cleanup 2017-09-27 10:55:36 -05:00
lpc1768_flag_script.py Move LPC1768 framework out of Marlin source folder 2017-09-23 16:59:31 -05:00
LPC1768_PWM.h Misc general spacing cleanup 2017-10-06 15:14:01 -05:00
LPC1768_Servo.cpp Cleanup warnings 2017-09-30 16:47:17 -05:00
LPC1768_Servo.h Fix Servo class compile errors 2017-09-29 08:17:30 -05:00
main.cpp Servo & PWM support for LPC1768 (#7500) 2017-08-31 18:31:43 -05:00
persistent_store_impl.cpp Update LPC persistent store to initialize eeprom.dat with FF 2017-10-07 02:18:42 -05:00
pinmap_re_arm.h add HardwareSerial and SoftwareSerial for Re-ARM. 2017-08-31 18:33:07 -05:00
pinmapping.h HAL updates 2017-09-21 15:52:17 -05:00
pinsDebug_Re_ARM.h HAL updates 2017-09-21 15:52:17 -05:00
SanityCheck_Re_ARM.h HAL compatible pinsDebug & misc 2017-08-31 18:23:44 -05:00
serial.h LPC1768: fix serial buffer underrun (#7854) 2017-10-05 17:19:43 -05:00
servo_private.h HAL updates 2017-09-21 15:52:17 -05:00
SoftwareSerial.cpp Cleanup warnings 2017-09-30 16:47:17 -05:00
SoftwareSerial.h Cleanup warnings 2017-09-30 16:47:17 -05:00
spi_pins.h M355 S0, S1 fixes & faster LCD, SD card 2017-09-27 19:26:00 -05:00
watchdog.cpp HAL updates 2017-09-21 15:52:17 -05:00
watchdog.h HAL for Re:ARM (LPC1768) architecture 2017-08-31 18:21:38 -05:00
WInterrupts.cpp HAL updates 2017-09-21 15:52:17 -05:00