Skip to content

Commit

Permalink
fix boardPWMpins for generic F103c variant
Browse files Browse the repository at this point in the history
  • Loading branch information
stevstrong committed Nov 6, 2023
1 parent c5a8e9d commit 689f478
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions STM32F1/variants/generic_stm32f103c/board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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__ = {
Expand Down

0 comments on commit 689f478

Please sign in to comment.