Skip to content

Commit

Permalink
[timer] Add Internal0 trigger to Timer2 on STM32F4
Browse files Browse the repository at this point in the history
  • Loading branch information
lukh authored and salkinium committed May 6, 2022
1 parent dab6c79 commit c7bd876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modm/platform/timer/stm32/general_purpose.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c7bd876

Please sign in to comment.