aboutsummaryrefslogtreecommitdiff
path: root/common.h
blob: 26b371d310b61064453d42565e06a95d6b8a7644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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))
/* print assert messages */
#define __ASSERT_USE_STDERR

#endif /* COMMON_H */