From 689f4782914f6eaa5595ab2f97e291882110937c Mon Sep 17 00:00:00 2001 From: stevstrong <9655070+stevstrong@users.noreply.github.com> Date: Mon, 6 Nov 2023 18:42:06 +0100 Subject: [PATCH] fix boardPWMpins for generic F103c variant --- STM32F1/variants/generic_stm32f103c/board.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/STM32F1/variants/generic_stm32f103c/board.cpp b/STM32F1/variants/generic_stm32f103c/board.cpp index 900e11816..d1cf3dab9 100644 --- a/STM32F1/variants/generic_stm32f103c/board.cpp +++ b/STM32F1/variants/generic_stm32f103c/board.cpp @@ -52,9 +52,8 @@ void boardInit(void) { // Note. See the enum of pin names in board.h -extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = { - - +extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = +{ {&gpioa, &timer2, &adc1, 0, 1, 0}, /* PA0 */ {&gpioa, &timer2, &adc1, 1, 2, 1}, /* PA1 */ {&gpioa, &timer2, &adc1, 2, 3, 2}, /* PA2 */ @@ -93,12 +92,10 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = { {&gpioc, NULL, NULL, 14, 0, ADCx}, /* PC14 */ {&gpioc, NULL, NULL, 15, 0, ADCx}, /* PC15 */ - - }; extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = { - PB0, PA7, PA6, PA3, PA2, PA1, PA0, PB7, PB6, PA10, PA9, PA8 + PA0, PA1, PA2, PA3, PA6, PA7, PA8, PA9, PA10, PA11, PB0, PB1, PB6, PB7, PB8, PB9 }; extern const uint8 boardADCPins[BOARD_NR_ADC_PINS] __FLASH__ = {