se quito el led de debug de la bibilioteca
Fork of eeprom_1 by
Diff: eeprom.h
- Revision:
- 4:e323cdfbc089
- Parent:
- 3:925096a4c7f0
--- a/eeprom.h Mon Dec 21 23:26:42 2015 +0000 +++ b/eeprom.h Tue Jul 03 18:37:43 2018 +0000 @@ -1,29 +1,17 @@ #ifndef __EEPROM__H_ #define __EEPROM__H_ -/*********************************************************** -Author: Bernard Borredon -Date : 21 decembre 2015 -Version: 1.3 - - Correct write(uint32_t address, int8_t data[], uint32_t length) for eeprom >= T24C32. - Tested with 24C02, 24C08, 24C16, 24C64, 24C256, 24C512, 24C1025 on LPC1768 (mbed online and µVision V5.16a). - - Correct main test. - -Date : 12 decembre 2013 -Version: 1.2 - - Update api documentation - -Date: 11 december 2013 -Version: 1.1 - - Change address parameter size form uint16_t to uint32_t (error for eeprom > 24C256). - - Change size parameter size from uint16_t to uint32_t (error for eeprom > 24C256). - - Add EEPROM name as a private static const char array. - - Add function getName. - - Add a test program. -Date: 27 december 2011 -Version: 1.0 -************************************************************/ +//EEPROM Structure: +#define EEPROM_ADRESS_EEPROM_INIT 1 +#define EEPROM_ADRESS_PROD_MODE 4 +#define EEPROM_ADRESS_CONTROL_MODE 5 +#define EEPROM_ADRESS_LEGACY_MODE 6 +#define EEPROM_ADRESS_FEED_SCREW 7 +#define EEPROM_ADRESS_INPUT_FILTER 8 +#define EEPROM_ADRESS_MODBUS_ID 9 +#define EEPROM_ADRESS_LENGUAGE 10 +#define EEPROM_ADRESS_LAST_TIME 25 // Includes #include <string>