2017-06-07 20:09:53 +02:00
|
|
|
/*
|
|
|
|
* eeprom.h
|
|
|
|
*
|
|
|
|
* Created on: Jun 7, 2017
|
|
|
|
* Author: wn
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EEPROM_H_
|
|
|
|
#define EEPROM_H_
|
|
|
|
|
|
|
|
#include "stm32f1xx_hal.h"
|
|
|
|
|
|
|
|
|
2017-06-12 17:50:08 +02:00
|
|
|
#define STORAGE_ADDRESS 0x20
|
2017-06-11 22:02:07 +02:00
|
|
|
|
2017-06-07 20:09:53 +02:00
|
|
|
void eepromWrite(uint16_t addr, uint8_t *buf, uint8_t len);
|
|
|
|
void eepromRead(uint16_t addr, uint8_t *buf, uint8_t len);
|
2017-06-12 11:52:46 +02:00
|
|
|
uint8_t eepromReadStatus();
|
|
|
|
void eepromWren();
|
|
|
|
void eepromWrdi();
|
2017-06-07 20:09:53 +02:00
|
|
|
|
|
|
|
#endif /* EEPROM_H_ */
|