From: Jacob Alexander Date: Sat, 20 Sep 2014 03:48:31 +0000 (-0700) Subject: Putting prescalar settings back in for AVR. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=66624c311cb27e4ddba76711e1a1753320bf609e;p=kiibohd-controller.git Putting prescalar settings back in for AVR. - Needs to be at 16 MHz for proper function --- diff --git a/main.c b/main.c index d174c47..3b48941 100644 --- a/main.c +++ b/main.c @@ -39,6 +39,12 @@ 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();