docs
This commit is contained in:
parent
98ad8a1f16
commit
87c3e957de
|
@ -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};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue