Refactor to not automatically include adc cpu modules; supply a backward compatible...
[bertos.git] / bertos / cpu / avr / drv / adc_avr.h
1 /*!
2  * \file
3  * <!--
4  * Copyright 2007 Develer S.r.l. (http://www.develer.com/)
5  * -->
6  *
7  * \version $Id$
8  *
9  * \brief ADC hardware-specific definition
10  *
11  * \version $Id$
12  * \author Francesco Sacchi <batt@develer.com>
13  */
14
15 #ifndef DRV_ADC_AVR_H
16 #define DRV_ADC_AVR_H
17
18 #include <cfg/compiler.h>
19
20 #define ADC_MUX_MAXCH 7
21 #define ADC_BITS      10
22
23 void adc_hw_select_ch(uint8_t ch);
24 uint16_t adc_hw_read(void);
25 void adc_hw_init(void);
26
27 #endif /* DRV_ADC_AVR_H */