Add timer support for STM32F2 & STM32F4

This commit is contained in:
Stephen Caudle
2011-11-01 16:46:26 -04:00
parent 505a05ccf4
commit d9a76c75c2
6 changed files with 1869 additions and 3 deletions

View File

@@ -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

View File

@@ -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