Skip to content

Commit

Permalink
删除测试代码
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtion committed Apr 21, 2016
1 parent 494bcc1 commit 5ebfdaf
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions 13_day/bootpack.c
Expand Up @@ -30,8 +30,7 @@ void HariMain(void)
enable_mouse(&fifo, 512, &mdec);
io_out8(PIC0_IMR, 0xf8); /* 设定PIT和PIC1以及键盘为许可(11111000) */
io_out8(PIC1_IMR, 0xef); /* 开放鼠标中断(11101111) */

set490&fifo,1);

timer = timer_alloc();
timer_init(timer, &fifo, 10);
timer_settime(timer, 1000);
Expand Down Expand Up @@ -196,16 +195,3 @@ void putfonts8_asc_sht(struct SHEET *sht, int x, int y, int c, int b, char *s, i
sheet_refresh(sht, x, y, x + l * 8, y + 16);
return;
}

void set490(struct FIFO32 *fifo, int mode){
int i;
struct TIMER *timer;
if (mode != 0) {
for (i = 0; i < 490; i++) {
timer = timer_alloc();
timer_init(timer, fifo, 1024 + i);
timer_settime(timer, 100 * 60 * 60 * 24 * 50 + i * 100);
}
}
return;
}

0 comments on commit 5ebfdaf

Please sign in to comment.