Project

General

Profile

Download (467 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#ifndef _PIT_H
2
#define _PIT_H
3

    
4
#include <sys/types.h>
5

    
6
#define HZ	100
7

    
8
/* 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
extern volatile unsigned long jiffies;
18

    
19
extern void timer_add(struct timer_list *timer);
20
extern int timer_del(struct timer_list *timer);
21

    
22
extern void pit_init(void);
23
extern void pit_mdelay(uint32_t ms);
24

    
25
#endif
(18-18/40)
Add picture from clipboard (Maximum size: 48.8 MB)