Sistema l'errore da me commesso in fase di conversione...
[bertos.git] / drv / adc.h
1 /**
2  * \file
3  * <!--
4  * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
5  * This file is part of DevLib - See README.devlib for information.
6  * -->
7  *
8  * \version $Id$
9  *
10  * \brief ADC driver (interface)
11  *
12  * \version $Id$
13  * \author Francesco Sacchi <batt@develer.com>
14  */
15
16 /*#*
17  *#* $Log$
18  *#* Revision 1.3  2006/09/20 17:32:46  marco
19  *#* Use MOD_* macros instead of DB.
20  *#*
21  *#* Revision 1.2  2006/07/19 12:56:25  bernie
22  *#* Convert to new Doxygen style.
23  *#*
24  *#* Revision 1.1  2005/06/27 21:28:31  bernie
25  *#* Import ADC driver.
26  *#*
27  *#*/
28
29 #ifndef DRV_ADC_H
30 #define DRV_ADC_H
31
32 #include <hw_adc.h>
33 #include <cfg/compiler.h>
34 #include <cfg/debug.h>
35
36 /** Type for ADC return value. */
37 typedef uint16_t adcread_t;
38
39 #define adc_bits() ADC_BITS
40
41 adcread_t adc_read(uint16_t ch);
42 void adc_init(void);
43
44 #endif /* DRV_ADC_H */