fusee: remove unnecessary delay.

This commit is contained in:
Michael Scire
2019-01-26 00:59:27 -08:00
parent 901723621c
commit dc2b8ebab9
4 changed files with 21 additions and 3 deletions

View File

@@ -81,6 +81,13 @@ static inline void udelay(uint32_t usecs) {
while (get_time_us() - start < usecs);
}
/**
* Delays until a number of usecs have passed since an absolute start time.
*/
static inline void udelay_absolute(uint32_t start, uint32_t usecs) {
while (get_time_us() - start < usecs);
}
/**
* Delays for a given number of milliseconds.
*/