Diff: globaldefs.h
- Revision:
- 5:1c78c0b4f513
- Parent:
- 4:545e25d4c3d8
--- a/globaldefs.h Sat Jan 08 16:27:12 2011 +0000 +++ b/globaldefs.h Sun Feb 06 13:30:28 2011 +0000 @@ -6,12 +6,15 @@ // Wait time after changing state of A0 in uS #define DOGMLCD_TIME 8 +#ifndef BOUND + #define BOUND(a,b,c) if( a < b ) a = b; else if( a > c ) a = c; +#endif +#ifndef SWAP + #define SWAP(a,b) { int c = a; a = b; b = c; } +#endif #ifndef ORDER #define ORDER(a,b) if( a > b ) { int c = a; a = b; b = c; } #endif -#ifndef BOUND - #define BOUND(a,b,c) if( a < b ) a = b; else if( a > c ) a = c; -#endif const unsigned char DOGMLCD_on[] = { 1, 2, 4, 8, 16, 32, 64, 128 }; const unsigned char DOGMLCD_off[]= { 254, 253, 251, 247, 239, 223, 191, 127 };