diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2011-10-11 21:56:36 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2011-10-11 21:56:36 +0200 |
commit | cbc941282074856fc6179761b70a0c9879b0b64d (patch) | |
tree | ed15c6d9e20ceaf1ff01a05aa63054410bb8ed54 /firmware/eeprom.h | |
parent | 324c5ba9098c1010d0aa8c1e26b95509878ce9f2 (diff) | |
download | mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.tar.gz mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.zip |
update firmware to @319
Diffstat (limited to 'firmware/eeprom.h')
-rw-r--r-- | firmware/eeprom.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/eeprom.h b/firmware/eeprom.h new file mode 100644 index 0000000..2ac7d4a --- /dev/null +++ b/firmware/eeprom.h @@ -0,0 +1,11 @@ +#include <inttypes.h> +#include <stdbool.h> + +#define MAX_ADDR 4095 + +void eeprom_parser(char *buf); + +void eeprom_read_bytes_usb(uint16_t addr, uint16_t length); +uint8_t eeprom_read_bytes(uint16_t addr, char * buf, uint16_t length); +void eeprom_write_bytes_usb(uint16_t addr, char * buf, uint16_t length); +uint8_t eeprom_write_bytes(uint16_t addr, char * buf, uint16_t length); |