From c7bd876cbdfdecc757d1dc939371e473ec813723 Mon Sep 17 00:00:00 2001 From: Vivien Henry Date: Mon, 22 Feb 2021 11:51:07 +0100 Subject: [PATCH] [timer] Add Internal0 trigger to Timer2 on STM32F4 --- src/modm/platform/timer/stm32/general_purpose.hpp.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modm/platform/timer/stm32/general_purpose.hpp.in b/src/modm/platform/timer/stm32/general_purpose.hpp.in index 45209e8e50..20fb015152 100644 --- a/src/modm/platform/timer/stm32/general_purpose.hpp.in +++ b/src/modm/platform/timer/stm32/general_purpose.hpp.in @@ -65,12 +65,12 @@ public: enum class SlaveModeTrigger : uint32_t { - %% if (id < 2 or id > 5) or target["family"] == "f3" + %% if (id < 2 or id > 5) or target["family"] in ["f3", "f4"] Internal0 = 0, %% endif Internal1 = TIM_SMCR_TS_0, Internal2 = TIM_SMCR_TS_1, - %% if ((id < 2 or id > 5) and id != 9 and id != 12) or target["family"] == "f3" + %% if ((id < 2 or id > 5) and id != 9 and id != 12) or target["family"] in ["f3", "f4"] Internal3 = TIM_SMCR_TS_1 | TIM_SMCR_TS_0, %% endif TimerInput1EdgeDetector = TIM_SMCR_TS_2,