From 24d11d4976062e965fb64861808548c39f53714b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 10 Mar 2014 17:30:31 +0100 Subject: Add common.h --- accel.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'accel.c') diff --git a/accel.c b/accel.c index dc408a3..a178fa3 100644 --- a/accel.c +++ b/accel.c @@ -1,3 +1,5 @@ +#include "common.h" + #include #include #include @@ -14,11 +16,6 @@ #define LIS302DL_CTRLREG1 0x20 #define LIS302DL_UNUSED1 0x28 -#define sleepwhile(cond) \ - sleep_enable (); \ - while (cond) { sleep_cpu (); } \ - sleep_disable (); - /* the first interrupt is lost */ static volatile bool drdy = true; /* 0, 2 and 4 are zero, as they contain the dummy register’s content */ -- cgit v1.2.3