From d9a76c75c218b5acd1173a4751699439593d3258 Mon Sep 17 00:00:00 2001 From: Stephen Caudle Date: Tue, 1 Nov 2011 16:46:26 -0400 Subject: Add timer support for STM32F2 & STM32F4 --- include/libopencm3/stm32/f2/timer.h | 6 +++++- include/libopencm3/stm32/f4/timer.h | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'include/libopencm3/stm32') 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 diff --git a/include/libopencm3/stm32/f4/timer.h b/include/libopencm3/stm32/f4/timer.h index 6fe9e6a..cb063d2 100644 --- a/include/libopencm3/stm32/f4/timer.h +++ b/include/libopencm3/stm32/f4/timer.h @@ -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 -- cgit v1.2.3