adc_stm32.h
Go to the documentation of this file.00001
00038 #ifndef DRV_ADC_STM32_H
00039 #define DRV_ADC_STM32_H
00040
00041 #include <hw/hw_cpufreq.h>
00042
00043 #include "cfg/cfg_adc.h"
00044
00045 #include <cfg/compiler.h>
00046
00050 #define ADC_MUX_MAXCH 17 //Max number of channel for ADC.
00051 #define ADC_BITS 12 //Bit resolution for ADC converter.
00052
00057 #define ADC_INIT_PINS() \
00058 do { \
00059 } while (0)
00060
00061 void adc_hw_select_ch(uint8_t ch);
00062 uint16_t adc_hw_read(void);
00063 void adc_hw_init(void);
00064
00065 #endif