From 55391bc8eba9b98e20b3c2ca79b6c42e11c493f8 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Fri, 13 Jan 2017 09:49:59 +0100 Subject: [PATCH] boards/nucleo-f207: fixed pin mapping for SPI/ADC --- boards/nucleo-f207/include/periph_conf.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/boards/nucleo-f207/include/periph_conf.h b/boards/nucleo-f207/include/periph_conf.h index 9c0432165e..59554be7eb 100644 --- a/boards/nucleo-f207/include/periph_conf.h +++ b/boards/nucleo-f207/include/periph_conf.h @@ -203,10 +203,10 @@ static const spi_conf_t spi_config[] = { }, { .dev = SPI2, - .mosi_pin = GPIO_PIN(PORT_B, 5), - .miso_pin = GPIO_PIN(PORT_B, 4), - .sclk_pin = GPIO_PIN(PORT_B, 3), - .cs_pin = GPIO_PIN(PORT_B, 2), + .mosi_pin = GPIO_PIN(PORT_B, 15), + .miso_pin = GPIO_PIN(PORT_C, 2), + .sclk_pin = GPIO_PIN(PORT_B, 13), + .cs_pin = GPIO_PIN(PORT_B, 12), .af = GPIO_AF5, .rccmask = RCC_APB1ENR_SPI2EN, .apbbus = APB1 @@ -255,7 +255,7 @@ static const spi_conf_t spi_config[] = { */ #define ADC_CONFIG { \ {GPIO_PIN(PORT_A, 4), 0, 0}, \ - {GPIO_PIN(PORT_A, 5), 1, 0} \ + {GPIO_PIN(PORT_C, 0), 1, 0} \ } #define ADC_NUMOF (2)