diff --git a/cube/User/Inc/eeprom.h b/cube/User/Inc/eeprom.h index 4cb6fc0..5da968c 100644 --- a/cube/User/Inc/eeprom.h +++ b/cube/User/Inc/eeprom.h @@ -1,16 +1,8 @@ -/* - * eeprom.h - * - * Created on: Jun 7, 2017 - * Author: wn - */ - #ifndef EEPROM_H_ #define EEPROM_H_ #include -#define STORAGE_ADDRESS 0x20 void eepromWrite(uint16_t addr, uint8_t *buf, uint8_t len); void eepromRead(uint16_t addr, uint8_t *buf, uint8_t len); diff --git a/cube/User/Src/eeprom.c b/cube/User/Src/eeprom.c index ff49600..404a26d 100644 --- a/cube/User/Src/eeprom.c +++ b/cube/User/Src/eeprom.c @@ -17,7 +17,7 @@ const uint8_t EEPROM_RDSR = 0x05; const uint8_t EEPROM_WRSR = 0x01; -const uint32_t STORAGE_MAGIC = 0xaffe000b; +const uint32_t STORAGE_MAGIC = 0xaffe0000;