blob: c9718a2b68a6dd6eefca98cff2f0f1300446c4f8 [file] [log] [blame]
Luigi Santivetti69972f92019-11-12 22:55:40 +00001/*
2 eeprom.h - EEPROM methods
3 Part of Grbl
4
5 Copyright (c) 2009-2011 Simen Svale Skogsrud
6
7 Grbl is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 Grbl is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Grbl. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef eeprom_h
22#define eeprom_h
23
24unsigned char eeprom_get_char(unsigned int addr);
25void eeprom_put_char(unsigned int addr, unsigned char new_value);
26void memcpy_to_eeprom_with_checksum(unsigned int destination, char *source, unsigned int size);
27int memcpy_from_eeprom_with_checksum(char *destination, unsigned int source, unsigned int size);
28
29#endif