[2.0.x] PersistentStore update followup#11549
[2.0.x] PersistentStore update followup#11549thinkyhead merged 2 commits intoMarlinFirmware:bugfix-2.0.xfrom
Conversation
|
@p2p: I can confirm that this patch allows me to compile, once I fix a likely unrelated error: In "HAL/HAL_DUE/Servo_Due.cpp", |
|
ah that's from the shared folder PR, I fixed a few others to do with that so may as well fix that one too. |
Remove duplication of renamed files and fix due builds with flash emulated, MarlinConfig.h is required for serial and other functions.
Although platforms.h is shared it makes sense to be in the HAL folder as it controls header redirects and needs updated when a new platform folder is added
|
Anything else to add before we merge this? |
|
I don't think so.., Not sure if you want to just use MarlinConfig.h or are OK with using MarlinConfigPre.h then only if the feature is enabled pulling in the rest of the headers, There are things that should probably be done, renaming E2END and changing the spi and i2c eeprom to use PersistantStore but that's for another PR. |
|
|
We use that name because it's what the Arduino platform headers define. We can't entirely eliminate its use for the platforms that use it to determine the EEPROM size. |
|
We can outside of the platforms though, the only usage in Marlin core is now in the pins files where it is defined to specify the size of i2c/spi attached EEPROMs. |
|
Sounds like we should roll the i2c-based methods into the |
|
Indeed that was the plan, was one of the reasons I wrote the PersistentStore api to begin with along with unified api for platforms. There will probably 3-4 shared implementations rather than platform specific ones |
It must have been 4 times I'd re-done this exact change in the Servo_Due.cpp so not sure where the reverts kept coming from in my chain. I've burned an old Fortran 77 reference book in effigy to the git gods and will monitor to ensure no similar shenanigans.. |
Remove duplication of renamed files caused by merge and fix LPC1768 and due builds with flash emulated EEPROM, also MarlinConfig.h is required for serial and the emulated EEPROM functions.
Added a EEPROM_SETTINGS test to LPC1768 and Due tests, the tests probably need expanded on now the platforms are ran in parallel and it doesn't take 30 mins.
#11543