altos/telelco-v2.0: A bit fancier with the drag-mode LED show
[fw/altos] / src / stmf0 / ao_adc_fast.h
index b8b5e003bd775b7ee50e77dc29fa70bd0b216386..504651e5856c7b43c0fb1a120bffb93a001eaec3 100644 (file)
@@ -26,9 +26,9 @@ 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];
+extern uint16_t        ao_adc_ring[AO_ADC_RING_SIZE] __attribute__((aligned(4)));
 
 #define ao_adc_ring_step(pos,inc)      (((pos) + (inc)) & (AO_ADC_RING_SIZE - 1))