From ed13c1993c34a296dcf9cc312e64875e5ef8c889 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 23 Jun 2017 21:48:38 -0700 Subject: Move I2C EEPROM and NOR Flash functions out of romdb.c into new files --- nor.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 nor.h (limited to 'nor.h') diff --git a/nor.h b/nor.h new file mode 100644 index 0000000..974363c --- /dev/null +++ b/nor.h @@ -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_ -- cgit v1.2.3