Project

General

Profile

Download (467 Bytes) Statistics
| Branch: | Tag: | Revision:
1 677e0b6e (no author)
#ifndef _PIT_H
2
#define _PIT_H
3
4 6c0b462a laforge
#include <sys/types.h>
5
6 f796b3e4 laforge
#define HZ	100
7
8 6c0b462a laforge
/* This API (but not the code) is modelled after the Linux API */
9
10
struct timer_list {
11
	struct timer_list *next;
12
	unsigned long expires;
13
	void (*function)(void *data);
14
	void *data;
15
};
16
17 f796b3e4 laforge
extern volatile unsigned long jiffies;
18 6c0b462a laforge
19
extern void timer_add(struct timer_list *timer);
20
extern int timer_del(struct timer_list *timer);
21
22 677e0b6e (no author)
extern void pit_init(void);
23 373c172a Harald Welte
extern void pit_mdelay(uint32_t ms);
24 677e0b6e (no author)
25
#endif
Add picture from clipboard (Maximum size: 48.8 MB)