summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_arch_funcs.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-08-28 18:13:02 -0700
committerKeith Packard <keithp@keithp.com>2012-08-28 23:00:23 -0700
commitfc9841ee5e92318471b6bec09b7075a788ab8872 (patch)
tree021ff2c2e1f5844c11692878184a9746e3faec97 /src/cc1111/ao_arch_funcs.h
parent27a879b4069ccedf8bbe39d7dbecf45000f29d8c (diff)
altos: Mostly working SPI radio link
This includes long delays to avoid overrunning the cc1111 input, otherwise it works pretty well. The delays mean that we can't capture the reply to a cmac command though, so more work is needed. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_arch_funcs.h')
-rw-r--r--src/cc1111/ao_arch_funcs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cc1111/ao_arch_funcs.h b/src/cc1111/ao_arch_funcs.h
index 5e2fc13d..8f1cc094 100644
--- a/src/cc1111/ao_arch_funcs.h
+++ b/src/cc1111/ao_arch_funcs.h
@@ -77,6 +77,14 @@ ao_spi_recv_bus(void __xdata *block, uint16_t len) __reentrant;
#define ao_spi_send(block, len, bus) ao_spi_send_bus(block, len)
#define ao_spi_recv(block, len, bus) ao_spi_recv_bus(block, len)
+#if AO_SPI_SLAVE
+void
+ao_spi_send_wait(void);
+
+void
+ao_spi_recv_wait(void);
+#endif
+
void
ao_spi_init(void);