摘要
VxWorks操作系统提供的看门狗机制可以实现定时功能,但是由于用户函数运行于中断状态下,因而受到许多限制。本文在分析VxWorks下看门狗的基础上,设计了运行于任务中、类似于Windows下的异步通用定时器;给出了接口设计、具体实现,以及定时器应用实例。
VxWorks watchdog can realize timing function.Because user callback runs under ISR,there are many limitations.Based on the analysis of VxWorks watchdog,an asynchronous universal timer is designed which runs in tasks,similar to asynchronous universal timers in Windows.Interface design,implementrations and timer application example are given.
出处
《单片机与嵌入式系统应用》
2009年第11期29-31,共3页
Microcontrollers & Embedded Systems