eeprom stuff

This commit is contained in:
2020-11-05 13:25:18 +01:00
parent 076eca0a49
commit 78ff38043e
2 changed files with 1 additions and 9 deletions

View File

@ -1,16 +1,8 @@
/*
* eeprom.h
*
* Created on: Jun 7, 2017
* Author: wn
*/
#ifndef EEPROM_H_
#define EEPROM_H_
#include <stdint.h>
#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);

View File

@ -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;