projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: SPI slave code is now per-product
[fw/altos]
/
src
/
core
/
ao.h
diff --git
a/src/core/ao.h
b/src/core/ao.h
index a541d8acad0f73b822034db9c179063d9f68d05f..1d5769cb0f6b5c62f77588e9341aec59c6ea4e76 100644
(file)
--- a/
src/core/ao.h
+++ b/
src/core/ao.h
@@
-974,12
+974,23
@@
ao_spi_init(void);
* ao_spi_slave.c
*/
* ao_spi_slave.c
*/
+uint8_t
+ao_spi_read(uint8_t *buf, uint8_t len);
+
void
void
-ao_spi_
slave_debug(void
);
+ao_spi_
write(uint8_t *buf, uint8_t len
);
void
ao_spi_slave_init(void);
void
ao_spi_slave_init(void);
+/* This must be defined by the product; it will get called when chip
+ * select goes low, at which point it should use ao_spi_read and
+ * ao_spi_write to deal with the request
+ */
+
+void
+ao_spi_slave(void);
+
/*
* ao_telemetry.c
*/
/*
* ao_telemetry.c
*/