Luigi Santivetti | 69972f9 | 2019-11-12 22:55:40 +0000 | [diff] [blame^] | 1 | /* |
| 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 | |
| 24 | unsigned char eeprom_get_char(unsigned int addr); |
| 25 | void eeprom_put_char(unsigned int addr, unsigned char new_value); |
| 26 | void memcpy_to_eeprom_with_checksum(unsigned int destination, char *source, unsigned int size); |
| 27 | int memcpy_from_eeprom_with_checksum(char *destination, unsigned int source, unsigned int size); |
| 28 | |
| 29 | #endif |