diff options
author | Joakim Tufvegren <jocke@barbanet.com> | 2021-06-20 04:18:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-19 19:18:00 -0700 |
commit | 8d9f527081d3a5fc8a0286e47022a70df8eb9111 (patch) | |
tree | cfca09f547a510363a1d70e13c57df30a1344770 /tmk_core/common | |
parent | fc749b40e65b07c05df03d4401c5d74fe86109a1 (diff) | |
download | qmk_firmware-8d9f527081d3a5fc8a0286e47022a70df8eb9111.tar.gz qmk_firmware-8d9f527081d3a5fc8a0286e47022a70df8eb9111.zip |
Add sync_timer support over serial_link (i.e. Ergodox Infinity) (#12845)
Diffstat (limited to 'tmk_core/common')
-rw-r--r-- | tmk_core/common/sync_timer.c | 2 | ||||
-rw-r--r-- | tmk_core/common/sync_timer.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/sync_timer.c b/tmk_core/common/sync_timer.c index de24b463b..68b92d8b4 100644 --- a/tmk_core/common/sync_timer.c +++ b/tmk_core/common/sync_timer.c | |||
@@ -26,7 +26,7 @@ SOFTWARE. | |||
26 | #include "sync_timer.h" | 26 | #include "sync_timer.h" |
27 | #include "keyboard.h" | 27 | #include "keyboard.h" |
28 | 28 | ||
29 | #if defined(SPLIT_KEYBOARD) && !defined(DISABLE_SYNC_TIMER) | 29 | #if (defined(SPLIT_KEYBOARD) || defined(SERIAL_LINK_ENABLE)) && !defined(DISABLE_SYNC_TIMER) |
30 | volatile int32_t sync_timer_ms; | 30 | volatile int32_t sync_timer_ms; |
31 | 31 | ||
32 | void sync_timer_init(void) { sync_timer_ms = 0; } | 32 | void sync_timer_init(void) { sync_timer_ms = 0; } |
diff --git a/tmk_core/common/sync_timer.h b/tmk_core/common/sync_timer.h index 9ddef45bb..744e2b50d 100644 --- a/tmk_core/common/sync_timer.h +++ b/tmk_core/common/sync_timer.h | |||
@@ -32,7 +32,7 @@ SOFTWARE. | |||
32 | extern "C" { | 32 | extern "C" { |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #if defined(SPLIT_KEYBOARD) && !defined(DISABLE_SYNC_TIMER) | 35 | #if (defined(SPLIT_KEYBOARD) || defined(SERIAL_LINK_ENABLE)) && !defined(DISABLE_SYNC_TIMER) |
36 | void sync_timer_init(void); | 36 | void sync_timer_init(void); |
37 | void sync_timer_update(uint32_t time); | 37 | void sync_timer_update(uint32_t time); |
38 | uint16_t sync_timer_read(void); | 38 | uint16_t sync_timer_read(void); |