This commit is contained in:
rusefillc 2022-11-20 16:20:01 -05:00
parent 98ad8a1f16
commit 87c3e957de
1 changed files with 2 additions and 2 deletions

View File

@ -233,8 +233,8 @@ private:
static expected<stm32_pwm_config> getConfigForPin(brain_pin_e pin) { static expected<stm32_pwm_config> getConfigForPin(brain_pin_e pin) {
switch (pin) { switch (pin) {
#if STM32_PWM_USE_TIM1 #if STM32_PWM_USE_TIM1
case Gpio::A8: return stm32_pwm_config{&PWMD1, 0, 1}; case Gpio::A8: return stm32_pwm_config{&PWMD1, /*channel*/0, /*AF*/1};
case Gpio::A9: return stm32_pwm_config{&PWMD1, 1, 1}; case Gpio::A9: return stm32_pwm_config{&PWMD1, /*channel*/1, /*AF*/1};
case Gpio::A10: return stm32_pwm_config{&PWMD1, 2, 1}; case Gpio::A10: return stm32_pwm_config{&PWMD1, 2, 1};
case Gpio::A11: return stm32_pwm_config{&PWMD1, 3, 1}; case Gpio::A11: return stm32_pwm_config{&PWMD1, 3, 1};