| 78 | } |
| 79 | |
| 80 | inline void Wait(uint8_t type) |
| 81 | { |
| 82 | int timeout = 100000; |
| 83 | if (type == 0) { |
| 84 | while (timeout--) //Data |
| 85 | if ((inportb(0x64) & 1) == 1) |
| 86 | return; |
| 87 | } else |
| 88 | while (timeout--) //Signal |
| 89 | if ((inportb(0x64) & 2) == 0) |
| 90 | return; |
| 91 | } |
| 92 | |
| 93 | inline void Write(uint8_t data) |
| 94 | { |
no test coverage detected