efm8 usb bridge working
This commit is contained in:
19
efm8/inc/eeprom.h
Normal file
19
efm8/inc/eeprom.h
Normal 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_ */
|
Reference in New Issue
Block a user