@@ -405,7 +405,7 @@ public:
405405 static void
406406 configureInputChannel(uint8_t filter)
407407 {
408- constexpr auto channel = signalToChannel<Peripheral::Tim{{ id }}, Signal>();
408+ constexpr auto channel = signalToChannel<Signal>();
409409 configureInputChannel(channel, filter);
410410 }
411411
@@ -422,7 +422,7 @@ public:
422422 InputCapturePolarity polarity, uint8_t filter,
423423 bool xor_ch1_3=false)
424424 {
425- constexpr auto channel = signalToChannel<Peripheral::Tim{{ id }}, Signal>();
425+ constexpr auto channel = signalToChannel<Signal>();
426426 configureInputChannel(channel, input, prescaler, polarity, filter, xor_ch1_3);
427427 }
428428
@@ -437,7 +437,7 @@ public:
437437 Value compareValue, PinState out = PinState::Enable,
438438 bool enableComparePreload = true)
439439 {
440- constexpr auto channel = signalToChannel<Peripheral::Tim{{ id }}, Signal>();
440+ constexpr auto channel = signalToChannel<Signal>();
441441 configureOutputChannel(channel, mode, compareValue, out, enableComparePreload);
442442 }
443443
@@ -454,7 +454,7 @@ public:
454454 OutputComparePolarity polarity,
455455 OutputComparePreload preload = OutputComparePreload::Disable)
456456 {
457- constexpr auto channel = signalToChannel<Peripheral::Tim{{ id }}, Signal>();
457+ constexpr auto channel = signalToChannel<Signal>();
458458 configureOutputChannel(channel, mode, compareValue, out, polarity, PinState::Disable, OutputComparePolarity::ActiveHigh, preload);
459459 }
460460
@@ -485,7 +485,7 @@ public:
485485 OutputComparePolarity polarity_n = OutputComparePolarity::ActiveHigh,
486486 OutputComparePreload preload = OutputComparePreload::Disable)
487487 {
488- constexpr auto channel = signalToChannel<Peripheral::Tim{{ id }}, Signal>();
488+ constexpr auto channel = signalToChannel<Signal>();
489489%% if id in [15, 16, 17]
490490 static_assert(channel == 1, "Timer{{ id }} has complementary output only on channel 1");
491491%% endif
@@ -528,7 +528,7 @@ public:
528528 static void
529529 setInvertedPwm()
530530 {
531- constexpr auto channel = signalToChannel<Peripheral::Tim{{ id }}, Signal>();
531+ constexpr auto channel = signalToChannel<Signal>();
532532 setInvertedPwm(channel);
533533 }
534534
@@ -568,7 +568,7 @@ public:
568568 static void
569569 setNormalPwm()
570570 {
571- constexpr auto channel = signalToChannel<Peripheral::Tim{{ id }}, Signal>();
571+ constexpr auto channel = signalToChannel<Signal>();
572572 setNormalPwm(channel);
573573 }
574574
@@ -607,7 +607,7 @@ public:
607607 static void
608608 forceInactive()
609609 {
610- constexpr auto channel = signalToChannel<Peripheral::Tim{{ id }}, Signal>();
610+ constexpr auto channel = signalToChannel<Signal>();
611611 forceInactive(channel);
612612 }
613613
@@ -646,7 +646,7 @@ public:
646646 static void
647647 forceActive()
648648 {
649- constexpr auto channel = signalToChannel<Peripheral::Tim{{ id }}, Signal>();
649+ constexpr auto channel = signalToChannel<Signal>();
650650 forceActive(channel);
651651 }
652652
@@ -687,7 +687,7 @@ public:
687687 static void
688688 setCompareValue(Value value)
689689 {
690- constexpr auto channel = signalToChannel<Peripheral::Tim{{id}}, Signal>();
690+ constexpr auto channel = signalToChannel<Signal>();
691691 setCompareValue(channel, value);
692692 }
693693
@@ -701,7 +701,7 @@ public:
701701 static inline Value
702702 getCompareValue()
703703 {
704- constexpr auto channel = signalToChannel<Peripheral::Tim{{ id }}, Signal>();
704+ constexpr auto channel = signalToChannel<Signal>();
705705 return getCompareValue(channel);
706706 }
707707public:
0 commit comments