summaryrefslogtreecommitdiffstats
path: root/tmk_core/protocol/vusb/main.c
diff options
context:
space:
mode:
authorLuiz Ribeiro <luizribeiro@gmail.com>2017-01-21 18:30:06 +0100
committerLuiz Ribeiro <luizribeiro@gmail.com>2017-01-21 18:55:19 +0100
commitf7462aaa613a08ba4b86dbb912ce26722cfccaff (patch)
treecd7bd4b109fdb9d6f5253885138e1b34ee277e12 /tmk_core/protocol/vusb/main.c
parent10ff9623214ee62935a17b3f68d5180756b7a27b (diff)
downloadqmk_firmware-f7462aaa613a08ba4b86dbb912ce26722cfccaff.tar.gz
qmk_firmware-f7462aaa613a08ba4b86dbb912ce26722cfccaff.tar.xz
Got ps2avrGB to work with the V-USB protocol
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 8e4a266e9..f6a0c7e9a 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