summaryrefslogtreecommitdiff
path: root/src/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-12-22 21:06:22 -0800
committerKeith Packard <keithp@keithp.com>2010-12-22 21:17:36 -0800
commit9f7296b3feab872bf51fc369ade69cc1e7cf7a3f (patch)
tree3ec494cea281d5df871ffecc94f61cfff88d0226 /src/ao.h
parent51c410c1c952e0e9bcf1b2c438813de63753be5f (diff)
altos: Split out SPI driver.
For TM with the companion connector, the SPI bus will be shared among multiple devices. Split out the existing SPI code into a common driver, with the SPI bus protected by a mutex. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r--src/ao.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ao.h b/src/ao.h
index 9682e42f..69f4665b 100644
--- a/src/ao.h
+++ b/src/ao.h
@@ -737,6 +737,19 @@ 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
*/