projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/arm: Align data so that gcc 5.4 doesn't do byte-accesses. Add -Wcast-align
[fw/altos]
/
src
/
stmf0
/
ao_adc_fast.h
diff --git
a/src/stmf0/ao_adc_fast.h
b/src/stmf0/ao_adc_fast.h
index b8b5e003bd775b7ee50e77dc29fa70bd0b216386..3f0b0547dec790c244a20b6006ca3c2e18e0d32a 100644
(file)
--- a/
src/stmf0/ao_adc_fast.h
+++ b/
src/stmf0/ao_adc_fast.h
@@
-28,7
+28,7
@@
ao_adc_init(void);
/* Total ring size in samples */
#define AO_ADC_RING_SIZE 256
/* Total ring size in samples */
#define AO_ADC_RING_SIZE 256
-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))
#define ao_adc_ring_step(pos,inc) (((pos) + (inc)) & (AO_ADC_RING_SIZE - 1))