Pumpkin, Inc.

Pumpkin User Forums

disable watchdog clearing in the ossched

If you can't make Salvo do what you want it to do, post it here.

disable watchdog clearing in the ossched

Postby weeb0 » Tue Mar 27, 2007 6:09 am

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.

weeb0
 
Posts: 6
Joined: Mon Mar 19, 2007 11:00 pm

Re: disable watchdog clearing in the ossched

Postby weeb0 » Tue Mar 27, 2007 6:59 am

I think we must use the source version of salvo to do what I want.
weeb0
 
Posts: 6
Joined: Mon Mar 19, 2007 11:00 pm

Re: disable watchdog clearing in the ossched

Postby aek » Thu Mar 29, 2007 4:30 am

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.

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

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


Return to Coding

Who is online

Users browsing this forum: No registered users and 3 guests

cron