grbl/eeprom.h@0:8f0d870509fe, 2017-09-04 (annotated)
- Committer:
- Sergunb
- Date:
- Mon Sep 04 12:04:13 2017 +0000
- Revision:
- 0:8f0d870509fe
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Sergunb | 0:8f0d870509fe | 1 | /* |
Sergunb | 0:8f0d870509fe | 2 | eeprom.h - EEPROM methods |
Sergunb | 0:8f0d870509fe | 3 | Part of Grbl |
Sergunb | 0:8f0d870509fe | 4 | |
Sergunb | 0:8f0d870509fe | 5 | Copyright (c) 2009-2011 Simen Svale Skogsrud |
Sergunb | 0:8f0d870509fe | 6 | |
Sergunb | 0:8f0d870509fe | 7 | Grbl is free software: you can redistribute it and/or modify |
Sergunb | 0:8f0d870509fe | 8 | it under the terms of the GNU General Public License as published by |
Sergunb | 0:8f0d870509fe | 9 | the Free Software Foundation, either version 3 of the License, or |
Sergunb | 0:8f0d870509fe | 10 | (at your option) any later version. |
Sergunb | 0:8f0d870509fe | 11 | |
Sergunb | 0:8f0d870509fe | 12 | Grbl is distributed in the hope that it will be useful, |
Sergunb | 0:8f0d870509fe | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
Sergunb | 0:8f0d870509fe | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
Sergunb | 0:8f0d870509fe | 15 | GNU General Public License for more details. |
Sergunb | 0:8f0d870509fe | 16 | |
Sergunb | 0:8f0d870509fe | 17 | You should have received a copy of the GNU General Public License |
Sergunb | 0:8f0d870509fe | 18 | along with Grbl. If not, see <http://www.gnu.org/licenses/>. |
Sergunb | 0:8f0d870509fe | 19 | */ |
Sergunb | 0:8f0d870509fe | 20 | |
Sergunb | 0:8f0d870509fe | 21 | #ifndef eeprom_h |
Sergunb | 0:8f0d870509fe | 22 | #define eeprom_h |
Sergunb | 0:8f0d870509fe | 23 | #if defined(WIN32) || defined (STM32F103C8) |
Sergunb | 0:8f0d870509fe | 24 | void eeprom_init(); |
Sergunb | 0:8f0d870509fe | 25 | #endif |
Sergunb | 0:8f0d870509fe | 26 | unsigned char eeprom_get_char(unsigned int addr); |
Sergunb | 0:8f0d870509fe | 27 | void eeprom_put_char(unsigned int addr, unsigned char new_value); |
Sergunb | 0:8f0d870509fe | 28 | void memcpy_to_eeprom_with_checksum(unsigned int destination, char *source, unsigned int size); |
Sergunb | 0:8f0d870509fe | 29 | int memcpy_from_eeprom_with_checksum(char *destination, unsigned int source, unsigned int size); |
Sergunb | 0:8f0d870509fe | 30 | |
Sergunb | 0:8f0d870509fe | 31 | #endif |