现在的位置: 首页 > 综合 > 正文

T-Kernel 里 sleep API

2017年03月13日 ⁄ 综合 ⁄ 共 603字 ⁄ 字号 评论关闭

T-Kernel 里有类似于 msleep() 的函数。 但是是忙等。

参考:

http://www.t-engine.org/wp-content/themes/wp.vicuna/pdf/specifications/en_US/TEF020-S001-01.00.01_en.pdf

5.5.2    Micro wait
 - void WaitUsec( UINT usec )
    - void WaitNsec( UINT nsec )
        - usec   Wait time (microseconds)
        - nsec   Wait time (nanoseconds)
      Performs a micro wait for the specified interval.
      These waits occur in an ordinary busy loop, and as such are easily influenced by the runtime
      environment, such as execution in RAM, execution in ROM, memory cache on or off, etc. These
      wait times are therefore not very accurate.
      These waits are not the same as an OS WAIT state. The system state remains as RUN state.

相关的头文件参考:

tk/syslib.h

抱歉!评论已关闭.