|
发表于 2011-9-17 20:45:45
|
显示全部楼层
Any time delay (or timeout) on µC/OS-III is computed as a delta of the current time (OSTickCtr) and requested delay.
UCOS中,任何的时间延迟或者超时 都是基于请求的延迟与当前时间(OSTickCtr)的delta计算得来的。
Therefore, as long as the input delay does not overflow the delta, it should be no artifact on the system.
因此,只要输入的延迟没有令delta溢出,it should be no artifact on the system(系统中应该就没有与事实不符的错误)
In fact, the only potential function that could cause such overflow of the delta is OSTimeDlyHMSM().
事实上,唯一可能引起delta溢出的潜在的函数是 OSTimeDlyHMSM().
To prevent that, enable OS_CFG_ARG_CHK_EN which is going to check for the appropriate range of the parameters,
since OS_OPT_TIME_HMSM_STRICT is the default option.
为了阻止它发生,可以使能 OS_CFG_ARG_CHK_EN ,它会对参数的大小范围是否合适进行检查,因为OS_OPT_TIME_HMSM_STRICT 是默认的选项。 |
|