aboutsummaryrefslogtreecommitdiff
path: root/common.h
blob: fed4dbd2a2225c3dd459979a8abad971da4f376b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef COMMON_H
#define COMMON_H

/* cpu runs at n mhz */
#define F_CPU 8000000

#define sleepwhile(cond) \
	sleep_enable (); \
	while (cond) { sleep_cpu (); } \
	sleep_disable ();

#define __unused__ __attribute__ ((unused))

#endif /* COMMON_H */