Allright, I have been digging for a few weeks so I will not post a stupid question in this topic.
I'm trying to modify a library written by some incompetents for a wireless networking shield - the FT1076M from futura electronics (open-electronics.org store). Those dudes just pretend the Sam3X controllers do not exist and in conclusion the library (MWifi) is written for the older avr architecture. The watchdog handling functions are included in avr/wdt.h. People pay money and are deceived because they lack the proper documentation so I wish to fix this problem.
As I wish to solve this for arduino due, first I would like to compile a sketch with some basic WDT functions.
Bur surprise - I cannot include the sam3x wdt.h because it is nowhere to be found in the include search path. And I am stuck in windows - in BSD it is easy to modify the include path.
Now, I respectfully ask you for help. A sketch has a setup() and a loop() but I see nothing on this post. What are you compiling and what are you including? There is nothing clear. Before the setup, the sketch can include stuff. #include <wdt.h> does not work (unable to locate wdt.h) and the avr/wdt.h is not acceptable because the controller is sam3x.
How can I include the wdt.h for sam3x? I'm using the arduino 1.5.8a framework.
The sketch should look like this:
#include <wdt.h> //unable to locate it unless I include the full path, but the dependencies in this case are not included
void setup() {
....
}
void loop() {
...
}