NetcanOS
Netcan OS is an operation system for x86 PCs, for learning how os works.
timer.h
浏览该文件的文档.
1 /*************************************************************************
2  > File Name: cpu/timer.h
3  > Author: Netcan
4  > Blog: http://www.netcan666.com
5  > Mail: 1469709759@qq.com
6  > Created Time: 2018-07-11 Wed 22:04:30 CST
7  ************************************************************************/
8 
12 #include <io.h>
13 #ifndef TIMER_H
14 #define TIMER_H
15 #define TIMER_CHANNEL_DATA_0 0x40
16 #define TIMER_CHANNEL_DATA_1 0x41
17 #define TIMER_CHANNEL_DATA_2 0x42
18 #define TIMER_CONTROL 0x43
19 #define MAX_FREQ 1193180
20 
21 extern u32 tick;
22 void init_timer(u32 freq);
23 
24 #endif
void init_timer(u32 freq)
Definition: timer.c:23
u32 tick
定时器中断次数
Definition: timer.c:13
unsigned int u32
Definition: io.h:14