aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-03-10 17:30:31 +0100
committerLars-Dominik Braun <lars@6xq.net>2014-04-22 16:51:13 +0200
commit24d11d4976062e965fb64861808548c39f53714b (patch)
tree5fbfcc1722d163647c0ce0c395c6e5a1794fc7d4 /main.c
parente69b2bc45ff0940b475a1832d25e051240fbda32 (diff)
downloadhourglass-24d11d4976062e965fb64861808548c39f53714b.tar.gz
hourglass-24d11d4976062e965fb64861808548c39f53714b.tar.bz2
hourglass-24d11d4976062e965fb64861808548c39f53714b.zip
Add common.h
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/main.c b/main.c
index 2e894d3..aadd91e 100644
--- a/main.c
+++ b/main.c
@@ -1,5 +1,4 @@
-/* cpu runs at 1mhz */
-#define F_CPU 1000000
+#include "common.h"
#include <avr/io.h>
#include <avr/interrupt.h>
@@ -33,11 +32,6 @@ static void cpuInit () {
CLKPR = 0b00000011;
}
-#define sleepwhile(cond) \
- sleep_enable (); \
- while (cond) { sleep_cpu (); } \
- sleep_disable ();
-
int main () {
cpuInit ();
ledInit ();