diff options
author | fauxpark <fauxpark@gmail.com> | 2019-12-11 12:26:40 +1100 |
---|---|---|
committer | Joel Challis <git@zvecr.com> | 2019-12-11 01:26:40 +0000 |
commit | 698d0dbda8a4b081103b4a382baa1f99e3f77ceb (patch) | |
tree | 575ab8a6765222f07dce44255dd02c6d5e759e82 /tmk_core/protocol/lufa | |
parent | 1af31a0523b3fd4c82f27bd07b130a8f4669049a (diff) |
Use `clock_prescale_set()` from avr-libc (#7540)
* Use `clock_prescale_set()` from avr-libc
* Remove outdated FAQ info
Diffstat (limited to 'tmk_core/protocol/lufa')
-rw-r--r-- | tmk_core/protocol/lufa/lufa.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index eb166c828e..8319b34e94 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -914,14 +914,11 @@ void virtser_send(const uint8_t byte) { */ static void setup_mcu(void) { /* Disable watchdog if enabled by bootloader/fuses */ - MCUSR &= ~(1 << WDRF); + MCUSR &= ~_BV(WDRF); wdt_disable(); /* Disable clock division */ - // clock_prescale_set(clock_div_1); - - CLKPR = (1 << CLKPCE); - CLKPR = (0 << CLKPS3) | (0 << CLKPS2) | (0 << CLKPS1) | (0 << CLKPS0); + clock_prescale_set(clock_div_1); } /** \brief Setup USB |