From 66624c311cb27e4ddba76711e1a1753320bf609e Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Fri, 19 Sep 2014 20:48:31 -0700 Subject: [PATCH] Putting prescalar settings back in for AVR. - Needs to be at 16 MHz for proper function --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) 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();