diff options
author | Keith Packard <keithp@keithp.com> | 2015-01-26 22:14:57 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-01-26 22:14:57 -0800 |
commit | 729bb7a405460db8d44c9ff6ee903b28c7499a02 (patch) | |
tree | f2184151a3f2dd2f7fef76f016a340c7a79f37d1 /src/stmf0/ao_adc_fast.h | |
parent | a01effc2f64c757c907e0f4937b4d3710b97bde0 (diff) |
altos/stmf0: Add ADC and DMA APIs
The ADC api is what USBtrng wants; a way to repeatedly read a single
ADC input as fast as possible.
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.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/stmf0/ao_adc_fast.h b/src/stmf0/ao_adc_fast.h new file mode 100644 index 00000000..a2408d14 --- /dev/null +++ b/src/stmf0/ao_adc_fast.h @@ -0,0 +1,27 @@ +/* + * Copyright © 2015 Keith Packard <keithp@keithp.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ + +#ifndef _AO_ADC_FAST_H_ +#define _AO_ADC_FAST_H_ + +void +ao_adc_read(uint16_t *dest, int len); + +void +ao_adc_init(void); + +#endif /* _AO_ADC_FAST_H_ */ |