aboutsummaryrefslogtreecommitdiff
path: root/include/adc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/adc.h')
-rw-r--r--include/adc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/adc.h b/include/adc.h
new file mode 100644
index 0000000..86429a1
--- /dev/null
+++ b/include/adc.h
@@ -0,0 +1,15 @@
+#include <avr/io.h>
+#include <avr/interrupt.h>
+#include <stdint.h>
+
+#ifndef _IOE_ADC_H_
+#define _IOE_ADC_H_
+#ifdef CONFIG_IOE_ADC
+#ifndef MCUSUPPORT_ADC
+#error "No ADC support for your mcu. Probably just not implemented yet."
+#endif
+
+int8_t ioe_adc(uint8_t input);
+
+#endif /* CONFIG_IOE_ADC */
+#endif /* _IOE_ADC_H_ */