Page 1 of 1

watchdog

PostPosted: Wed Dec 15, 2004 1:37 am
by MiM
The OSCLEAR_WATCHDOG_TIMER() macro to clear the watchdog timer is by default defined in "portxyz.h" and used in "sched.c".

It is not possible to redefine this macro in "salvocfg.h" as described in the User Manual, page 125. The reason is that in "salvo.h" (which is included into "sched.c") first "salvocfg.h" and only then "portxyz.h" with the default definition is included.

Moreover before a macro is newly #define-d it must be first #undef-ined !


Re: watchdog

PostPosted: Wed Dec 15, 2004 2:15 am
by aek
For certain Salvo distributions this is in fact true. For others, the override does work properly.

For the upcoming Salvo 4 OSCLEAR_WATCHDOG_TIMER() is now a call to a user hook function. But we'll fix the #if defined() to allow an override via salvocfg.h.

Regards,

------------------

[This message has been edited by aek (edited December 15, 2004).]