|
|
| version 1.10, 2003/12/08 00:55:32 | version 1.12, 2003/12/13 19:59:41 |
|---|---|
| Line 256 REG8 pit_getcount(int ch) { | Line 256 REG8 pit_getcount(int ch) { |
| // system timer | // system timer |
| static void IOOUTCALL pit_o71(UINT port, REG8 dat) { | static void IOOUTCALL pit_o71(UINT port, REG8 dat) { |
| // TRACEOUT(("pic o71: %x", dat)); | |
| if (pit_setcount(0, dat)) { | if (pit_setcount(0, dat)) { |
| return; | return; |
| } | } |
| Line 338 void itimer_reset(void) { | Line 339 void itimer_reset(void) { |
| else { | else { |
| pit.value[1] = 1229; // 5MHz | pit.value[1] = 1229; // 5MHz |
| } | } |
| pit.intr[0] = 1; | |
| pit.mode[0] = 0x30; | pit.mode[0] = 0x30; |
| pit.mode[1] = 0x56; | pit.mode[1] = 0x56; |
| pit.mode[2] = 0xb6; | pit.mode[2] = 0xb6; |