Mercurial > repos > blastem
diff nor.h @ 1414:d94855080529
Move I2C EEPROM and NOR Flash functions out of romdb.c into new files
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 23 Jun 2017 21:48:38 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nor.h Fri Jun 23 21:48:38 2017 -0700 @@ -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_