pwm doesn't work without this

This commit is contained in:
Matthew Kennedy 2021-03-17 22:53:24 -07:00
parent 374b9aaf11
commit 9163d44962
2 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,7 @@
/* /*
* PWM driver system settings. * PWM driver system settings.
*/ */
#define STM32_PWM_USE_ADVANCED FALSE #define STM32_PWM_USE_ADVANCED TRUE
#define STM32_PWM_USE_TIM1 TRUE #define STM32_PWM_USE_TIM1 TRUE
#define STM32_PWM_USE_TIM2 FALSE #define STM32_PWM_USE_TIM2 FALSE
#define STM32_PWM_USE_TIM3 TRUE #define STM32_PWM_USE_TIM3 TRUE

View File

@ -23,6 +23,7 @@ void Pwm::Start()
{PWM_OUTPUT_ACTIVE_HIGH | PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW, nullptr} {PWM_OUTPUT_ACTIVE_HIGH | PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW, nullptr}
}, },
0, 0,
0,
0 0
}; };