avr-libc
avr-libc copied to clipboard
[bug #51022] avr/wdt.h should support all of the modes of operation of the WDT
Sun 14 May 2017 03:10:05 AM CEST
This issue was migrated from https://savannah.nongnu.org/bugs/?51022
Joerg Wunsch <joerg_wunsch> Sun 14 May 2017 08:20:04 AM CEST
Please submit more details.
Eric Tang <e_l_tang> Sun 14 May 2017 04:09:59 PM CEST
According to the data sheet, the WDT can operate in Interrupt mode, System Reset Mode, and Interrupt and System Reset mode. Currently the library is hardcoded to use System Reset mode, and it is not possible to use either of the other two modes without resorting to modifying registers directly.
Joerg Wunsch <joerg_wunsch> Sun 14 May 2017 05:44:09 PM CEST
OK, now it makes sense.