diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-06-23 21:48:38 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-06-23 21:48:38 -0700 |
commit | ed13c1993c34a296dcf9cc312e64875e5ef8c889 (patch) | |
tree | 78d4f261b5e128fa1838e7f63153290bd498e5fc /nor.h | |
parent | e7e41dd4b314ce34c2c4f1152d243b606ded8565 (diff) |
Move I2C EEPROM and NOR Flash functions out of romdb.c into new files
Diffstat (limited to 'nor.h')
-rw-r--r-- | nor.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -0,0 +1,10 @@ +#ifndef NOR_H_ +#define NOR_H_ + +void nor_flash_init(nor_state *state, uint8_t *buffer, uint32_t size, uint32_t page_size, uint16_t product_id, uint8_t bus_flags); +uint8_t nor_flash_read_b(uint32_t address, void *vcontext); +uint16_t nor_flash_read_w(uint32_t address, void *context); +void *nor_flash_write_b(uint32_t address, void *vcontext, uint8_t value); +void *nor_flash_write_w(uint32_t address, void *vcontext, uint16_t value); + +#endif //NOR_H_ |