improved timing a bit

This commit is contained in:
Markus Fröschle
2013-10-13 19:58:12 +00:00
parent 39c2006586
commit 77807d038a
5 changed files with 151 additions and 49 deletions

View File

@@ -29,5 +29,5 @@ extern void xsnprintf(char *str, size_t size, const char *fmt, ...);
extern void xputchar(int c);
extern void display_progress(void);
extern void hexdump(uint8_t buffer[], int size);
#endif /* _BAS_PRINTF_H_ */

View File

@@ -57,7 +57,7 @@ extern __inline__ bool waitfor(uint32_t us, checker_func condition)
{
if ((res = (*condition)()))
return res;
} while (MCF_SLT_SCNT(0) > target);
} while (MCF_SLT_SCNT(0) - target > 0);
return false;
}
#endif /* _WAIT_H_ */