aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/f2/timer.h
diff options
context:
space:
mode:
authorStephen Caudle2011-11-01 16:46:26 -0400
committerStephen Caudle2011-11-02 14:26:36 -0400
commitd9a76c75c218b5acd1173a4751699439593d3258 (patch)
tree018016b5c15983503bb6ecc1f312335008cde96c /include/libopencm3/stm32/f2/timer.h
parent505a05ccf48be13a79dac93c4a67f091fad833de (diff)
Add timer support for STM32F2 & STM32F4
Diffstat (limited to 'include/libopencm3/stm32/f2/timer.h')
-rw-r--r--include/libopencm3/stm32/f2/timer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libopencm3/stm32/f2/timer.h b/include/libopencm3/stm32/f2/timer.h
index b69db2e..8c9cf80 100644
--- a/include/libopencm3/stm32/f2/timer.h
+++ b/include/libopencm3/stm32/f2/timer.h
@@ -35,7 +35,7 @@
/* --- TIM2_OR values ---------------------------------------------------- */
/* MOE: Main output enable */
-#define TIM2_OR_ITR1_RMP_TIM8_TRGOUT (0x0 << 10)
+#define TIM2_OR_ITR1_RMP_TIM8_TRGOU (0x0 << 10)
#define TIM2_OR_ITR1_RMP_PTP (0x1 << 10)
#define TIM2_OR_ITR1_RMP_OTG_FS_SOF (0x2 << 10)
#define TIM2_OR_ITR1_RMP_OTG_HS_SOF (0x3 << 10)
@@ -50,4 +50,8 @@
#define TIM5_OR_TI4_RMP_RTC (0x3 << 6)
#define TIM5_OR_TI4_RMP_MASK (0x3 << 6)
+/* --- Function prototypes ------------------------------------------------- */
+
+void timer_set_option(u32 timer_peripheral, u32 option);
+
#endif