altos/stm: Add polling ADC sampler API
authorKeith Packard <keithp@keithp.com>
Mon, 28 May 2018 23:09:19 +0000 (16:09 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 28 May 2018 23:09:19 +0000 (16:09 -0700)
commit3fb27f0ab7163c96945a60fd406e5423552206a2
treedbf42cd0363aa4457eb17e93a19a8cb927aa15c6
parentdbeb9b91a48418c5bc9f6edccaef20c3ef77d45d
altos/stm: Add polling ADC sampler API

This just fetches ADC values on demand instead of loading them
periodically into a ring buffer from the timer interrupt.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_adc_single.h [new file with mode: 0644]
src/stm/ao_adc_single_stm.c [new file with mode: 0644]