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.