store_eeprom.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. EEPROM routines to save Sprinter Settings
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #ifndef __EEPROMH
  15. #define __EEPROMH
  16. #define EEPROM_OFFSET 100
  17. // IMPORTANT: Whenever there are changes made to the variables stored in EEPROM
  18. // in the functions below, also increment the version number. This makes sure that
  19. // the default values are used whenever there is a change to the data, to prevent
  20. // wrong data being written to the variables.
  21. // ALSO: always make sure the variables in the Store and retrieve sections are in the same order.
  22. #define EEPROM_VERSION "S01"
  23. extern float axis_steps_per_unit[4];
  24. extern float max_feedrate[4];
  25. extern long max_acceleration_units_per_sq_second[4];
  26. extern float move_acceleration;
  27. extern float retract_acceleration;
  28. extern float mintravelfeedrate;
  29. extern float minimumfeedrate;
  30. extern float max_xy_jerk;
  31. extern float max_z_jerk;
  32. extern void EEPROM_RetrieveSettings(bool def, bool printout );
  33. extern void EEPROM_printSettings();
  34. extern void EEPROM_StoreSettings();
  35. #endif