summaryrefslogtreecommitdiff
path: root/ucoo/hal/timer/timer.stm32.tcc
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/hal/timer/timer.stm32.tcc')
-rw-r--r--ucoo/hal/timer/timer.stm32.tcc7
1 files changed, 7 insertions, 0 deletions
diff --git a/ucoo/hal/timer/timer.stm32.tcc b/ucoo/hal/timer/timer.stm32.tcc
index 4083f26..e95deff 100644
--- a/ucoo/hal/timer/timer.stm32.tcc
+++ b/ucoo/hal/timer/timer.stm32.tcc
@@ -243,6 +243,13 @@ TimerHard<Base>::disable_interrupt ()
template<uint32_t Base>
void
+TimerHard<Base>::clear_interrupt ()
+{
+ TIM_SR (Base) = ~TIM_SR_UIF;
+}
+
+template<uint32_t Base>
+void
TimerHard<Base>::enable_updates ()
{
TIM_CR1 (Base) &= ~TIM_CR1_UDIS;