Skip to content

Commit

Permalink
Putting prescalar settings back in for AVR.
Browse files Browse the repository at this point in the history
- Needs to be at 16 MHz for proper function
  • Loading branch information
haata committed Sep 20, 2014
1 parent ba984ff commit 66624c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 66624c3

Please sign in to comment.