libsys: fix micro_delay()
This commit is contained in:
parent
2cde22ee10
commit
c4928b2df9
@ -62,7 +62,7 @@ micro_delay(u32_t micros)
|
|||||||
CALIBRATE;
|
CALIBRATE;
|
||||||
|
|
||||||
/* We have to know when to end the delay. */
|
/* We have to know when to end the delay. */
|
||||||
end = add64(now, mul64u(micros, calib_mhz * 1000));
|
end = add64(now, mul64u(micros, calib_mhz));
|
||||||
|
|
||||||
/* If we have to wait for at least one HZ tick, use the regular
|
/* If we have to wait for at least one HZ tick, use the regular
|
||||||
* tickdelay first. Round downwards on purpose, so the average
|
* tickdelay first. Round downwards on purpose, so the average
|
||||||
|
Loading…
x
Reference in New Issue
Block a user