]> git.donarmstrong.com Git - kiibohd-controller.git/commitdiff
Putting prescalar settings back in for AVR.
authorJacob Alexander <haata@kiibohd.com>
Sat, 20 Sep 2014 03:48:31 +0000 (20:48 -0700)
committerJacob Alexander <haata@kiibohd.com>
Sat, 20 Sep 2014 03:48:31 +0000 (20:48 -0700)
- Needs to be at 16 MHz for proper function

main.c

diff --git a/main.c b/main.c
index d174c471c7438461114317b20c703fa5274b8f98..3b48941dfca0ed1e647378b51b8998fa1138362c 100644 (file)
--- a/main.c
+++ b/main.c
 
 int main()
 {
+       // AVR - Teensy Set Clock speed to 16 MHz
+#if defined(_at90usb162_) || defined(_atmega32u4_) || defined(_at90usb646_) || defined(_at90usb1286_)
+       CLKPR = 0x80;
+       CLKPR = 0x00;
+#endif
+
        // Enable CLI
        CLI_init();