aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/timer.h
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2011-01-31 13:28:54 -0800
committerPiotr Esden-Tempski2011-01-31 13:28:54 -0800
commitdd0018ffdf89210f04d5fb3ca153c9cbab7c3144 (patch)
treeef704d9ac28a46da88af8e3df867debb9c3f726d /include/libopencm3/stm32/timer.h
parenta0091f18c71a19d68cf1c0de4ceb3d9e90c23c39 (diff)
Added interrupt and event generation handling functions to timer. Updated pwm 6step example to use those and commutate on button press using PWM ON scheme.
Diffstat (limited to 'include/libopencm3/stm32/timer.h')
-rw-r--r--include/libopencm3/stm32/timer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/timer.h b/include/libopencm3/stm32/timer.h
index befe156..5d1c235 100644
--- a/include/libopencm3/stm32/timer.h
+++ b/include/libopencm3/stm32/timer.h
@@ -852,6 +852,8 @@ enum tim_oc_mode {
};
/* --- TIM functions ------------------------------------------------------- */
+void timer_enable_irq(u32 timer_peripheral, u32 irq);
+void timer_disable_irq(u32 timer_peripheral, u32 irq);
void timer_set_mode(u32 timer_peripheral, u8 clock_div,
u8 alignment, u8 direction);
void timer_set_clock_division(u32 timer_peripheral, u32 clock_div);
@@ -908,5 +910,6 @@ void timer_set_enabled_off_state_in_idle_mode(u32 timer_peripheral);
void timer_set_disabled_off_state_in_idle_mode(u32 timer_peripheral);
void timer_set_break_lock(u32 timer_peripheral, u32 lock);
void timer_set_deadtime(u32 timer_peripheral, u32 deadtime);
+void timer_generate_event(u32 timer_peripheral, u32 event);
#endif