summaryrefslogtreecommitdiff
path: root/src/stmf0/ao_adc_fast.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-01-07 21:44:39 -0800
committerKeith Packard <keithp@keithp.com>2018-01-07 21:44:39 -0800
commit48d164e3d4b2ef27fae20fae63b8014803a7b178 (patch)
treec0dc65ded8300299b862870f5eabf83d9a36455f /src/stmf0/ao_adc_fast.h
parentdb7f7c6c7f956058250b8057c6c27284f6f22e53 (diff)
altos/stmf0: Use double buffering for ChaosKey
This improves the USB performance of ChaosKey so that it doesn't NAK during data transfers at all. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stmf0/ao_adc_fast.h')
-rw-r--r--src/stmf0/ao_adc_fast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stmf0/ao_adc_fast.h b/src/stmf0/ao_adc_fast.h
index 3f0b0547..504651e5 100644
--- a/src/stmf0/ao_adc_fast.h
+++ b/src/stmf0/ao_adc_fast.h
@@ -26,7 +26,7 @@ void
ao_adc_init(void);
/* Total ring size in samples */
-#define AO_ADC_RING_SIZE 256
+#define AO_ADC_RING_SIZE 1024
extern uint16_t ao_adc_ring[AO_ADC_RING_SIZE] __attribute__((aligned(4)));