Page 1 of 1

disable watchdog clearing in the ossched

PostPosted: Tue Mar 27, 2007 6:09 am
by weeb0
I'm using the lib version of salvo.

I want to use the watchdog differently than salvo do. how can I disable salvo from doing an OS_CLEAR_WATCHDOG_TIMER() in the ossched function ?

In the file portmcc.h, I replace the
#define OS_CLEAR_WATCHDOG_TIMER() ClrWdt()
by
#define OS_CLEAR_WATCHDOG_TIMER()

But seems not to work.

Any idea ?

Thank you.


Re: disable watchdog clearing in the ossched

PostPosted: Tue Mar 27, 2007 6:59 am
by weeb0
I think we must use the source version of salvo to do what I want.

Re: disable watchdog clearing in the ossched

PostPosted: Thu Mar 29, 2007 4:30 am
by aek
quote:
I think we must use the source version of salvo to do what I want.
Correct. Since the call to clear the WDT is compiled into OSSched() in the library, you must have Salvo Pro (i.e. you must have Salvo source code) to change this.

There are two ways to proceed with Salvo Pro:

1. Create and use a custom library built with

code:
#define OS_CLEAR_WATCHDOG_TIMER()

as the only entry in your salvoclcN.h file, or

2. Do a source-code build instead of a library build.

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