move to targets dir

This commit is contained in:
Conor Patrick
2018-09-12 20:00:13 -04:00
parent c4cb2deb5a
commit 364e552ae9
81 changed files with 0 additions and 0 deletions

19
targets/efm8/inc/eeprom.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef EEPROM_H_
#define EEPROM_H_
#include "app.h"
void eeprom_init();
void eeprom_read(uint16_t addr, uint8_t * buf, uint8_t len);
void _eeprom_write(uint16_t addr, uint8_t * buf, uint8_t len, uint8_t flags);
extern char __erase_mem[3];
#define eeprom_write(a,b,l) _eeprom_write(a,b,l,0x1)
#define eeprom_erase(a) _eeprom_write(a,__erase_mem,1,0x3)
#define EEPROM_DATA_START 0xF800
#endif /* EEPROM_H_ */