summaryrefslogtreecommitdiffstats
path: root/sw-old/z80/arch/include/sleep.h
blob: bd4214ba13a50654f1a5b4b740dc465f9fa05142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __SLEEP_H__
#define __SLEEP_H__

#ifndef F_CPU
#error undefined CPU clock speed
#endif

#define SLEEP_UNIT ((F_CPU/4)/2)

#include <stdint.h>

void usleep(uint16_t microseconds);

#endif // __SLEEP_H__