From 9163d449628dbcd96f6f335952a0802489949247 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 17 Mar 2021 22:53:24 -0700 Subject: [PATCH] pwm doesn't work without this --- firmware/boards/f0_module/mcuconf.h | 2 +- firmware/pwm.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/boards/f0_module/mcuconf.h b/firmware/boards/f0_module/mcuconf.h index 8b88af8..14d0fc2 100644 --- a/firmware/boards/f0_module/mcuconf.h +++ b/firmware/boards/f0_module/mcuconf.h @@ -112,7 +112,7 @@ /* * 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_TIM2 FALSE #define STM32_PWM_USE_TIM3 TRUE diff --git a/firmware/pwm.cpp b/firmware/pwm.cpp index 97fef61..e61300b 100644 --- a/firmware/pwm.cpp +++ b/firmware/pwm.cpp @@ -23,6 +23,7 @@ void Pwm::Start() {PWM_OUTPUT_ACTIVE_HIGH | PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW, nullptr} }, 0, + 0, 0 };