89eb868d83036d00f736ddbe3a10cc6a31ceac2b
2 clock.h - part of USBasp
4 Autor..........: Thomas Fischl <tfischl@gmx.de>
5 Description....: Provides functions for timing/waiting
6 Licence........: Free under certain conditions. See Documentation.
7 Creation Date..: 2005-02-23
8 Last change....: 2005-04-20
11 #ifndef __clock_h_included__
12 #define __clock_h_included__
14 #define F_CPU 12000000L /* 12MHz */
15 #define TIMERVALUE TCNT0
16 #define CLOCK_T_320us 60
18 /* set prescaler to 64 */
19 #define clockInit() TCCR0 = (1 << CS01) | (1 << CS00);
21 /* wait time * 320 us */
22 void clockWait(uint8_t time
);
24 #endif /* __clock_h_included__ */