TimerWDT 函式库

86Duino IDE 从 Coding 211 开始加入此函式库,用于操作 86Duino 提供的看门狗计时器(watchdog timer)功能。

需要特别说明的是, Arduino 传统的看门狗 API(如 wdt_enable())亦可在 86Duino 上使用,此 TimerWDT 函式库不同的地方在于除了提供传统看门狗功能外,亦可允许使用者设定看门狗中断的回调函式(callback function),或关闭看门狗重置功能,将其当成普通计时器使用。

Functions

initialize()
attachInterrupt()
detachInterrupt()
setPeriod()
reset()
isResetByWDT()
stop()


函式库参考主页面

The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.