Fix my (incorrect) fix (with a good one I hope). Also reimplemented delayMult in the driver.

This commit is contained in:
gfk
2001-12-25 18:01:45 +00:00
parent b9f0e14e8f
commit ff368e7089
2 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -98,9 +98,9 @@ static inline void timing_uPause (int usecs) {
delay_time.tv_nsec = remaining.tv_nsec;
}
#else // using I/O timing
// Assuming every port I/O takes 1ms, we'll do at least one.
int i=0;
do { port_in (port); } while (i++ < usecs/1000);
// Assuming every port I/O takes 1us
for (int i=0; i < usecs; ++i)
port_in(port);
#endif
}