Skip to content

Commit a39707f

Browse files
committed
fall back to periodic tic
timers aren't as good as we'd like. The VT in charge of them causes mayhem on double-buffered timers like CT16, resulting in random timekeeping
1 parent 2e95cef commit a39707f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

platforms/chibios/boards/SN_SN32F240B/configs/chconf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
#pragma once
2323

24-
#define CH_CFG_ST_RESOLUTION 16
24+
#define CH_CFG_ST_FREQUENCY 10000
2525

26-
#define CH_CFG_ST_FREQUENCY 187500
26+
#define CH_CFG_ST_TIMEDELTA 0
2727

2828
#define CH_CFG_USE_TIMESTAMP FALSE
2929

platforms/chibios/boards/SN_SN32F260/configs/chconf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
#pragma once
2323

24-
#define CH_CFG_ST_RESOLUTION 16
24+
#define CH_CFG_ST_FREQUENCY 10000
2525

26-
#define CH_CFG_ST_FREQUENCY 187500
26+
#define CH_CFG_ST_TIMEDELTA 0
2727

2828
#define CH_CFG_OPTIMIZE_SPEED FALSE
2929

0 commit comments

Comments
 (0)