libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/stm32/common/adc_common_v2.h>
#include <libopencm3/stm32/common/adc_common_v2_multi.h>
Go to the source code of this file.
Macros | |
#define | ADC1 ADC1_BASE |
#define | ADC2 ADC2_BASE |
#define | ADC3 ADC3_BASE |
#define | ADC_CHANNEL_VREF 0 |
#define | ADC_CHANNEL_TEMP 17 |
#define | ADC_CHANNEL_VBAT 18 |
#define | ADC_CR_DEEPPWD (1 << 29) |
#define | ADC_CR_ADVREGEN (1 << 28) |
#define | ADC_CFGR1_ALIGN (1 << 5) |
ALIGN: Data alignment. More... | |
#define | ADC_CFGR1_EXTSEL_SHIFT 6 |
#define | ADC_CFGR1_EXTSEL_MASK (0xf << ADC_CFGR1_EXTSEL_SHIFT) |
#define | ADC_CFGR1_EXTSEL_VAL(x) ((x) << ADC_CFGR1_EXTSEL_SHIFT) |
#define | ADC_SMPR_SMP_2DOT5CYC 0x0 |
#define | ADC_SMPR_SMP_6DOT5CYC 0x1 |
#define | ADC_SMPR_SMP_12DOT5CYC 0x2 |
#define | ADC_SMPR_SMP_24DOT5CYC 0x3 |
#define | ADC_SMPR_SMP_47DOT5CYC 0x4 |
#define | ADC_SMPR_SMP_92DOT5CYC 0x5 |
#define | ADC_SMPR_SMP_247DOT5CYC 0x6 |
#define | ADC_SMPR_SMP_640DOT5CYC 0x7 |
#define ADC_CFGR1_EXTSEL_MASK (0xf << ADC_CFGR1_EXTSEL_SHIFT) |
#define ADC_CFGR1_EXTSEL_VAL | ( | x | ) | ((x) << ADC_CFGR1_EXTSEL_SHIFT) |