diff options
author | Keith Packard <keithp@keithp.com> | 2010-12-22 21:06:22 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-12-22 21:17:36 -0800 |
commit | 9f7296b3feab872bf51fc369ade69cc1e7cf7a3f (patch) | |
tree | 3ec494cea281d5df871ffecc94f61cfff88d0226 /src/ao.h | |
parent | 51c410c1c952e0e9bcf1b2c438813de63753be5f (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.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 */ |