summaryrefslogtreecommitdiff
path: root/ucoo/hal/timer/timer.stm32.hh
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/hal/timer/timer.stm32.hh')
-rw-r--r--ucoo/hal/timer/timer.stm32.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ucoo/hal/timer/timer.stm32.hh b/ucoo/hal/timer/timer.stm32.hh
index 6b2f2dd..70f048a 100644
--- a/ucoo/hal/timer/timer.stm32.hh
+++ b/ucoo/hal/timer/timer.stm32.hh
@@ -105,6 +105,11 @@ class TimerHard
FALLING = INVERTED,
BOTH = 11,
};
+ /// Use complementary output.
+ enum class Complementary {
+ DO_NOT_USE = 1,
+ USE = 4,
+ };
/// Temporarily disable updates.
class UpdateDisabled
{
@@ -133,7 +138,8 @@ class TimerHard
Polarity polarity = Polarity::NON_INVERTED>
struct OptionInputCapture;
/// Set output compare options. Setup PWM mode 1.
- template<int channel, Polarity polarity = Polarity::NON_INVERTED>
+ template<int channel, Polarity polarity = Polarity::NON_INVERTED,
+ Complementary complementary = Complementary::DO_NOT_USE>
struct OptionOutputCompare;
/// Set output compare value.
template<int channel, unsigned int value>