File tree Expand file tree Collapse file tree
STM32F1/system/libmaple/include/libmaple Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ extern timer_dev *TIMER14;
255255#define TIMER_SMCR_ETPS_DIV8 (0x3 << 12)
256256#define TIMER_SMCR_ETF (0xF << 12)
257257#define TIMER_SMCR_MSM (1U << TIMER_SMCR_MSM_BIT)
258- #define TIMER_SMCR_TS (0x3 << 4)
258+ #define TIMER_SMCR_TS (0x7 << 4)
259259#define TIMER_SMCR_TS_ITR0 (0x0 << 4)
260260#define TIMER_SMCR_TS_ITR1 (0x1 << 4)
261261#define TIMER_SMCR_TS_ITR2 (0x2 << 4)
@@ -264,7 +264,7 @@ extern timer_dev *TIMER14;
264264#define TIMER_SMCR_TS_TI1FP1 (0x5 << 4)
265265#define TIMER_SMCR_TS_TI2FP2 (0x6 << 4)
266266#define TIMER_SMCR_TS_ETRF (0x7 << 4)
267- #define TIMER_SMCR_SMS 0x3
267+ #define TIMER_SMCR_SMS 0x7
268268#define TIMER_SMCR_SMS_DISABLED 0x0
269269#define TIMER_SMCR_SMS_ENCODER1 0x1
270270#define TIMER_SMCR_SMS_ENCODER2 0x2
You can’t perform that action at this time.
0 commit comments