Pumpkin, Inc.

Pumpkin User Forums

watchdog

If you're having difficulty with Salvo's configuration options, post it here.

watchdog

Postby MiM » Wed Dec 15, 2004 1:37 am

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 !

MiM
 
Posts: 4
Joined: Tue Oct 19, 2004 11:00 pm
Location: Bratislava, SK, EU

Re: watchdog

Postby aek » Wed Dec 15, 2004 2:15 am

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).]

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to Configuration

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron