Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1413:3d7f668dce3d | 1414:d94855080529 |
---|---|
1 #ifndef NOR_H_ | |
2 #define NOR_H_ | |
3 | |
4 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); | |
5 uint8_t nor_flash_read_b(uint32_t address, void *vcontext); | |
6 uint16_t nor_flash_read_w(uint32_t address, void *context); | |
7 void *nor_flash_write_b(uint32_t address, void *vcontext, uint8_t value); | |
8 void *nor_flash_write_w(uint32_t address, void *vcontext, uint16_t value); | |
9 | |
10 #endif //NOR_H_ |