boards/nucleo-f091: add ADC configuration

This commit is contained in:
Alexandre Abadie 2017-01-23 10:17:39 +01:00
parent 35d22e3230
commit d860393076
2 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,5 @@
# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_cpuid
FEATURES_PROVIDED += periph_gpio
FEATURES_PROVIDED += periph_pwm

View File

@ -139,9 +139,17 @@ static const pwm_conf_t pwm_config[] = {
* @brief ADC configuration
* @{
*/
#define ADC_NUMOF (0)
/** @} */
#define ADC_CONFIG { \
{ GPIO_PIN(PORT_A, 0), 0 },\
{ GPIO_PIN(PORT_A, 1), 1 },\
{ GPIO_PIN(PORT_A, 4), 4 },\
{ GPIO_PIN(PORT_B, 0), 8 },\
{ GPIO_PIN(PORT_C, 1), 11 },\
{ GPIO_PIN(PORT_C, 0), 10 } \
}
#define ADC_NUMOF (6)
/** @} */
/**
* @brief DAC configuration
* @{