diff options
author | Karel Kočí <cynerd@email.cz> | 2016-03-08 16:10:33 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-03-08 16:10:33 +0100 |
commit | 5d29fe79d30f430ae326d9dc57ccfaed6fe61328 (patch) | |
tree | 8341804d561c0060176cbebc3f9a57c7c07f7816 /include/adc.h | |
parent | 4e773191d447ac434536262a6f204dd991d4ad77 (diff) | |
download | avr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.tar.gz avr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.tar.bz2 avr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.zip |
Another full update of current work
Diffstat (limited to 'include/adc.h')
-rw-r--r-- | include/adc.h | 15 |
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_ */ |