eeprom stuff
This commit is contained in:
@ -1,16 +1,8 @@
|
|||||||
/*
|
|
||||||
* eeprom.h
|
|
||||||
*
|
|
||||||
* Created on: Jun 7, 2017
|
|
||||||
* Author: wn
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef EEPROM_H_
|
#ifndef EEPROM_H_
|
||||||
#define EEPROM_H_
|
#define EEPROM_H_
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define STORAGE_ADDRESS 0x20
|
|
||||||
|
|
||||||
void eepromWrite(uint16_t addr, uint8_t *buf, uint8_t len);
|
void eepromWrite(uint16_t addr, uint8_t *buf, uint8_t len);
|
||||||
void eepromRead(uint16_t addr, uint8_t *buf, uint8_t len);
|
void eepromRead(uint16_t addr, uint8_t *buf, uint8_t len);
|
||||||
|
@ -17,7 +17,7 @@ const uint8_t EEPROM_RDSR = 0x05;
|
|||||||
const uint8_t EEPROM_WRSR = 0x01;
|
const uint8_t EEPROM_WRSR = 0x01;
|
||||||
|
|
||||||
|
|
||||||
const uint32_t STORAGE_MAGIC = 0xaffe000b;
|
const uint32_t STORAGE_MAGIC = 0xaffe0000;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user