blob: ecf2c27abe521a1f187840d0399aee6ff30fa0ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef COMMON_H
#define COMMON_H
/* cpu runs at 1mhz */
#define F_CPU 1000000
#define sleepwhile(cond) \
sleep_enable (); \
while (cond) { sleep_cpu (); } \
sleep_disable ();
#endif /* COMMON_H */
|