stm32f0/include/periph_cpu.h¶
CPU specific definitions for internal peripheral handling.
-
CPUID_ADDR¶ Starting address of the CPU ID.
1
(0x1ffff7ac)
-
enum
@82¶ - PORT_A
= 0 - port A
- PORT_B
= 1 - port B
- PORT_C
= 2 - port C
- PORT_D
= 3 - port D
- PORT_E
= 4 - port E
- PORT_F
= 5 - port F
- PORT_A
-
struct
adc_conf_t¶ ADC device configuration.
Available number of ADC devices.
ADC channel configuration data.
ADC line configuration values.
CPU specific ADC configuration.
ADC channel configuration data
-
CMU_Clock_TypeDef
cmu¶ the device CMU channel
-
ADC_Type *
dev¶ ADC module.
-
gpio.h::gpio_tpin¶ pin to use
pin connected to the channel
Use GPIO_UNDEF non-muxed ADC pins, e.g. ADC0_DP, or for internal channels, e.g. Bandgap
-
uint8_t
chan¶ ADC channel.
CPU ADC channel connected to the pin.
internal channel the pin is connected to
Written as-is to ADCx_SC1x before conversion. This also decides single-ended or differential sampling, see CPU reference manual for ADCx_SC1x
-
uint8_t
avg¶ Hardware averaging configuration.
Written as-is to ADCx_SC3 before conversion, use
kinetis/include/periph_cpu.h::ADC_AVG_NONEandkinetis/include/periph_cpu.h::ADC_AVG_MAXas a shorthand notation in the board configuration
-
ADC_TypeDef *
dev¶ ADC device used.
ADCx - 1 device used for the channel.
-
CMU_Clock_TypeDef