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

@@ -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_ */