summaryrefslogtreecommitdiff
path: root/blink/util.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2012-05-20 15:57:23 +0000
committerChristian Pointner <equinox@spreadspace.org>2012-05-20 15:57:23 +0000
commitdc2c93c43950586099a30ea46cf33efd5cfe147c (patch)
treee19f95790af1c95826a84eb4e7efc2e8a8c11b8a /blink/util.c
parentadded support for arduinoNG (diff)
added support for arduino2009v2, arduino10000, arduinoUno
git-svn-id: https://svn.spreadspace.org/avr/trunk@20 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'blink/util.c')
-rw-r--r--blink/util.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/blink/util.c b/blink/util.c
index 43e78ba..3b88dfc 100644
--- a/blink/util.c
+++ b/blink/util.c
@@ -23,12 +23,10 @@
#include "avr/io.h"
#include "util.h"
-#if defined(__BOARD_teensy2__) || defined(__BOARD_teensy2pp__) || defined(__BOARD_teensy2__) || defined(__BOARD_teensy2pp__) || defined(__BOARD_hhd70dongle__) || defined(__BOARD_arduino2009__)
-#define CPU_PRESCALE(n) (CLKPR = 0x80, CLKPR = (n))
-#endif
-
-#if defined(__BOARD_arduinoNG__)
+#if defined(__AVR_ATmega8__)
#define CPU_PRESCALE(n)
+#else
+#define CPU_PRESCALE(n) (CLKPR = 0x80, CLKPR = (n))
#endif
void cpu_init(void)