/* * $Revision: 1.2 $ * $Date: 2007/12/24 07:48:18 $ * $Author: higgins $ * $State: Exp $ */ #ifndef __UTIL_H #define __UTIL_H #include const static int true = 1; const static int false = 0; // essentially copied from static inline void _delay_s(double __s) __attribute__((always_inline)); void _delay_s(double __s) { // see double ticks = ((F_CPU)/4.0)*__s; int div = ticks/65536; int rem = ticks-div*65536; // 0 means 65536 to _delay_loop_2... for (int i=0; i 0) { // see previous comment... _delay_loop_2(rem); } } #endif /* __UTIL_H */