summaryrefslogtreecommitdiff
path: root/src-avr/ao.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-avr/ao.h')
-rw-r--r--src-avr/ao.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src-avr/ao.h b/src-avr/ao.h
index c548c618..fb3612d4 100644
--- a/src-avr/ao.h
+++ b/src-avr/ao.h
@@ -201,7 +201,7 @@ struct ao_adc {
* ao_adc.c
*/
-#define AO_ADC_RING 16
+#define AO_ADC_RING 8
#define ao_adc_ring_next(n) (((n) + 1) & (AO_ADC_RING - 1))
#define ao_adc_ring_prev(n) (((n) - 1) & (AO_ADC_RING - 1))
@@ -1343,6 +1343,7 @@ struct ao_fifo {
(f).remove = ((f).remove + 1) & (AO_FIFO_SIZE-1); \
} while(0)
+#define ao_fifo_reset(f) ((f).insert = (f).remove = 0)
#define ao_fifo_full(f) ((((f).insert + 1) & (AO_FIFO_SIZE-1)) == (f).remove)
#define ao_fifo_empty(f) ((f).insert == (f).remove)
@@ -1423,13 +1424,16 @@ ao_debug_init(void);
/* ao_spi_slave.c */
-void
+int
ao_spi_slave_read(uint8_t *data, int len);
-void
+int
ao_spi_slave_write(uint8_t *data, int len);
void
+ao_spi_slave_debug(void);
+
+void
ao_spi_slave_init(void);
/* ao_companion.c */