From 99299986e194337b05ee81cfb7c4aa1cb9e9a74e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 19 Dec 2017 16:56:33 -0800 Subject: altos/attiny: Add ADC implementation It's primitive, but might serve to read ADC values. Untested. Signed-off-by: Keith Packard --- src/attiny/ao_arch.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/attiny/ao_arch.h') diff --git a/src/attiny/ao_arch.h b/src/attiny/ao_arch.h index 3a34f417..68f5702d 100644 --- a/src/attiny/ao_arch.h +++ b/src/attiny/ao_arch.h @@ -85,4 +85,7 @@ ao_eeprom_read(uint16_t addr, void *buf, uint16_t len); void ao_eeprom_write(uint16_t addr, void *buf, uint16_t len); +uint16_t +ao_adc_read(uint8_t mux); + #endif /* _AO_ARCH_H_ */ -- cgit v1.2.3