The relevant include file is already included via <chip.h>, but of course the Due WDT is much different than the AVR version.
You probably want something like:
With periodic calls to
The actual source files are … numerous:
Here are compiler error messages when I added this WDT_Enable to Setup
When I added #include <chip.h> just for good measure the compiler could not find it.
But that may preprocessor messing with any includes.
So basically the compiler has an issue with WDT_Enable, which I have been getting from get go.
I’ll tale a look at source code after I figure out which chip.h is actually used.
I understand that I need to comment out some initial code so I can set / initialize WDT in my code.
I also found some “advanced library for Due” coding WDT , so I’ll take a look at that.
sketch_nov05a.ino: In function 'void setup()':
sketch_nov05a.ino:13:12: error: 'WDT' was not declared in this scope
sketch_nov05a.ino:13:32: error: 'WDT_MR_WDV' was not declared in this scope
sketch_nov05a.ino:13:34: error: 'WDT_MR_WDRSTEN' was not declared in this scope
sketch_nov05a.ino:13:49: error: 'WDT_MR_WDRPROC' was not declared in this scope
sketch_nov05a.ino:13:63: error: 'WDT_Enable' was not declared in this scope
'WDT' was not declared in this scope