Skip to content

Commit d899697

Browse files
Update timer.h
Changed TIMER_SMCR_TS and TIMER_SMCR_SMS as recommended by @Victor_PV
1 parent 3f49281 commit d899697

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • STM32F1/system/libmaple/include/libmaple

STM32F1/system/libmaple/include/libmaple/timer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)