fix compilation with latest aversive
[protos/xbee-avr.git] / aversive / wait.h
diff --git a/aversive/wait.h b/aversive/wait.h
deleted file mode 100644 (file)
index a845721..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*  \r
- *  Copyright Droids Corporation, Microb Technology, Eirbot (2005)\r
- * \r
- *  This program is free software; you can redistribute it and/or modify\r
- *  it under the terms of the GNU General Public License as published by\r
- *  the Free Software Foundation; either version 2 of the License, or\r
- *  (at your option) any later version.\r
- *\r
- *  This program is distributed in the hope that it will be useful,\r
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- *  GNU General Public License for more details.\r
- *\r
- *  You should have received a copy of the GNU General Public License\r
- *  along with this program; if not, write to the Free Software\r
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
- *\r
- *  Revision : $Id: wait.h,v 1.1.2.1 2007-05-23 17:18:09 zer0 Exp $\r
- *\r
- */\r
-\r
-/** \r
- * This file is an interface for wait functions, in order to put the \r
- * microcontroller in a loop state.\r
- */\r
-\r
-/**********************************************************/\r
-\r
-#ifndef _AVERSIVE_WAIT_H_\r
-#define _AVERSIVE_WAIT_H_\r
-\r
-#include <aversive.h>\r
-\r
-#ifdef HOST_VERSION\r
-\r
-#include <unistd.h>\r
-\r
-#define wait_3cyc(n) do { volatile int a = 0; a++; } while (0)\r
-#define wait_4cyc(n) do { volatile int a = 0; a++; } while (0)\r
-#define wait_ms(n) host_wait_ms(n)\r
-\r
-#else /* HOST_VERSION */\r
-\r
-#if __AVR_LIBC_VERSION__ < 10403UL\r
-#include <avr/delay.h>\r
-#else\r
-#include <util/delay.h>\r
-#endif\r
-\r
-/** wait n "3 cycles time" \r
- * n is 8 bits */\r
-#define wait_3cyc(n) _delay_loop_1(n)\r
-\r
-/** wait n "4 cycles time" \r
- * n is 16 bits */\r
-#define wait_4cyc(n) _delay_loop_2(n)\r
-\r
-/** wait n milliseconds \r
- * n is 16 bits\r
- */\r
-static inline void wait_ms(uint16_t n) \r
-{\r
-  while ( n -- ) \r
-    wait_4cyc(F_CPU/4000);\r
-} \r
-\r
-#endif /* else HOST_VERSION */\r
-\r
-#endif /* _AVERSIVE_WAIT_ */\r