stm32f2/include/periph_cpu.h¶
CPU specific definitions for internal peripheral handling.
-
CPUID_ADDR¶ Starting address of the CPU ID.
1
(0x1fff7a10)
-
ADC_DEVS¶ Available number of ADC devices.
1
(2U)
-
HAVE_ADC_RES_T¶ Override the ADC resolution configuration.
-
enum
@84¶ - 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_G
= 6 - port G
- PORT_H
= 7 - port H
- PORT_I
= 8 - port I
- PORT_A
-
enum
adc_res_t¶ - ADC_RES_7BIT
= (0 << 4) - ADC resolution: 7 bit.
- ADC_RES_9BIT
= (1 << 4) - ADC resolution: 9 bit.
- ADC_RES_11BIT
- ADC resolution: 11 bit.
- ADC_RES_6BIT
= (0xa00) - not supported by hardware
- ADC_RES_8BIT
= (0xb00) - not supported by hardware
- ADC_RES_10BIT
= (2 << 4) - ADC resolution: 10 bit.
- ADC_RES_12BIT
= (3 << 4) - ADC resolution: 12 bit.
- ADC_RES_14BIT
= (0xc00) - not supported by hardware
- ADC_RES_16BIT
= (0xd00) - not supported by hardware
- ADC_RES_7BIT
-
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