altos: Split out SPI driver. Add Numonyx M25P driver for TT.
[fw/altos] / src / ao.h
index a3519150823a87763b441e25bd0ed57854397584..7750504f74be51ad182c628832e64755f826eb5d 100644 (file)
--- a/src/ao.h
+++ b/src/ao.h
@@ -478,6 +478,24 @@ ao_ee_read_config(uint8_t *buf, uint16_t len) __reentrant;
 void
 ao_ee_init(void);
 
+/*
+ * ao_m25.c
+ *
+ * Numonyx M25P family flash driver
+ */
+
+void
+ao_flash_erase_sector(uint8_t sector) __reentrant;
+
+void
+ao_flash_write_page(uint16_t page, __xdata uint8_t d[256]) __reentrant;
+
+void
+ao_flash_read_page(uint16_t page, __xdata uint8_t d[256]) __reentrant;
+
+void
+ao_flash_init(void);
+
 /*
  * ao_log.c
  */
@@ -747,6 +765,19 @@ void
 ao_serial_init(void);
 #endif
 
+/*
+ * ao_spi.c
+ */
+
+void
+ao_spi_send(void __xdata *block, uint16_t len) __reentrant;
+
+void
+ao_spi_recv(void __xdata *block, uint16_t len) __reentrant;
+
+void
+ao_spi_init(void);
+
 /*
  * ao_gps.c
  */