Skip to content
Snippets Groups Projects
Commit ab47fc1f authored by Alexandre Abadie's avatar Alexandre Abadie Committed by GitHub
Browse files

Merge pull request #7204 from PeterKietzmann/pr_nucleo-l411_adc_config

boards/nucleo-f411: add ADC pin config
parents b70a4885 ea904a16
No related branches found
No related tags found
No related merge requests found
# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_cpuid
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_gpio
......
......@@ -226,10 +226,24 @@ static const spi_conf_t spi_config[] = {
/** @} */
/**
* @name ADC configuration
* @name ADC configuration
*
* Note that we do not configure all ADC channels,
* and not in the STM32F411 order. Instead, we
* just define 6 ADC channels, for the Nucleo
* Arduino header pins A0-A5
*
* @{
*/
#define ADC_NUMOF (0)
#define ADC_NUMOF (6U)
#define ADC_CONFIG { \
{GPIO_PIN(PORT_A, 0), 0, 0}, \
{GPIO_PIN(PORT_A, 1), 0, 1}, \
{GPIO_PIN(PORT_A, 4), 0, 4}, \
{GPIO_PIN(PORT_B, 0), 0, 8}, \
{GPIO_PIN(PORT_C, 1), 0, 11}, \
{GPIO_PIN(PORT_C, 0), 0, 10}, \
}
/** @} */
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment