diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2011-10-27 11:41:02 -0400 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2011-10-27 11:41:02 -0400 |
commit | ec93cd74a187a58f0e2bbe496c38edd7d9f33f30 (patch) | |
tree | 3e519cf239c57e915520e60563714dfd6f7948e0 /cores/arduino/wiring.c | |
parent | 415a5e119d11394fc7e7365ff5b7c64a50ef7f64 (diff) | |
parent | 5c9d10ad9484c26eb94d2030628b676f8d0d5fc7 (diff) |
Merge branch 'new-extension' of github.com:arduino/Arduino into diskloader_reboot
Conflicts:
hardware/arduino/variants/mega/pins_arduino.h
libraries/Ethernet/examples/PachubeClient/PachubeClient.ino
libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino
Diffstat (limited to 'cores/arduino/wiring.c')
-rwxr-xr-x | cores/arduino/wiring.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cores/arduino/wiring.c b/cores/arduino/wiring.c index 1b3fd44..bc01949 100755 --- a/cores/arduino/wiring.c +++ b/cores/arduino/wiring.c @@ -221,11 +221,15 @@ void init() // set timer 1 prescale factor to 64 sbi(TCCR1B, CS11); +#if F_CPU >= 8000000L sbi(TCCR1B, CS10); +#endif #elif defined(TCCR1) && defined(CS11) && defined(CS10) sbi(TCCR1, CS11); +#if F_CPU >= 8000000L sbi(TCCR1, CS10); #endif +#endif // put timer 1 in 8-bit phase correct pwm mode #if defined(TCCR1A) && defined(WGM10) sbi(TCCR1A, WGM10); |