Author Topic: Better WDT solution than two different board designs  (Read 16971 times)

gogol

  • Sr. Member
  • ****
  • Posts: 398
Better WDT solution than two different board designs
« on: April 14, 2014, 05:38:31 am »
Playing around with some Watchdog functions, I came to a solution, which would make two different board definitions obsolete:
As that should go to the Arduino-lib, I opened a thread in the Arduino forum:

The basic idea is just define a weak function WDT_Init();, which can be overloaded in the main program.  Please review my idea, if I miss something.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Better WDT solution than two different board designs
« Reply #1 on: April 14, 2014, 11:52:15 pm »
That's a great idea!

Does anyone else have any opinions on it?

The next release for DigiX I'll add this in - unless Arduino does first.

gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: Better WDT solution than two different board designs
« Reply #2 on: April 15, 2014, 01:11:11 am »
I just updated my thoughts in the Arduino forum. I hope, to get it in there, because that would be the right place and would make code much more compliant.