/** * \file * * * \brief ADC hardware-specific definition * * \author Francesco Sacchi */ #ifndef DRV_ADC_AVR_H #define DRV_ADC_AVR_H #include #if CPU_AVR_ATMEGA1280 || CPU_AVR_ATMEGA2560 /* 16 channels aivailable */ #define ADC_MUX_MAXCH 15 #else /* only 8 channels aivailable */ #define ADC_MUX_MAXCH 7 #endif #define ADC_BITS 10 void adc_hw_select_ch(uint8_t ch); uint16_t adc_hw_read(void); void adc_hw_init(void); #endif /* DRV_ADC_AVR_H */