summaryrefslogtreecommitdiff
path: root/nor.h
diff options
context:
space:
mode:
Diffstat (limited to 'nor.h')
-rw-r--r--nor.h10
1 files changed, 10 insertions, 0 deletions
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_