summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/vusb/main.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-01-22 18:58:46 -0500
committerGitHub <noreply@github.com>2017-01-22 18:58:46 -0500
commita54944ac335aab86e16ee2acb528c041da1e4c6c (patch)
tree19e71aa784e94b1a2cb591a78c758b23ced200f5 /tmk_core/protocol/vusb/main.c
parent405b2ae267be8f010517b6ed4d6da92b7de41ef9 (diff)
parent84661ac44b15bd5e60cc223779fea05784672011 (diff)
Merge pull request #1021 from luizribeiro/ps2avrGB
Support for ps2avrGB / winkeyless.kr boards
Diffstat (limited to 'tmk_core/protocol/vusb/main.c')
-rw-r--r--tmk_core/protocol/vusb/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tmk_core/protocol/vusb/main.c b/tmk_core/protocol/vusb/main.c
index 8e4a266e9b..f6a0c7e9a4 100644
--- a/tmk_core/protocol/vusb/main.c
+++ b/tmk_core/protocol/vusb/main.c
@@ -48,8 +48,12 @@ int main(void)
uint16_t last_timer = timer_read();
#endif
+#ifdef CLKPR
+ // avoid unintentional changes of clock frequency in devices that have a
+ // clock prescaler
CLKPR = 0x80, CLKPR = 0;
-#ifndef PS2_USE_USART
+#endif
+#ifndef NO_UART
uart_init(UART_BAUD_RATE);
#endif