adc_lm3s.h
Go to the documentation of this file.00001
00038 #ifndef DRV_ADC_LM3S_H
00039 #define DRV_ADC_LM3S_H
00040
00041 #include "cfg/cfg_adc.h"
00042
00043 #include <cfg/compiler.h>
00044
00048 #if CPU_CM3_LM3S1968
00049 #define ADC_MUX_MAXCH 8 //Max number of channel for ADC.
00050 #define ADC_BITS 10 //Bit resolution for ADC converter.
00051 #elif CPU_CM3_LM3S8962
00052 #define ADC_MUX_MAXCH 4 //Max number of channel for ADC.
00053 #define ADC_BITS 10 //Bit resolution for ADC convert
00054 #endif
00055
00060 #define ADC_INIT_PINS() \
00061 do { \
00062 } while (0)
00063
00064 void adc_hw_select_ch(uint8_t ch);
00065 uint16_t adc_hw_read(void);
00066 void adc_hw_init(void);
00067
00068 #endif