This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Watchdog
- From: "Gary Thomas" <gary at mlbassoc dot com>
- To: waynetg at telkomsa dot net
- Cc: "Ecos Discuss" <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 17 Dec 2004 06:05:03 -0700 (MST)
- Subject: Re: [ECOS] Watchdog
- References: <200412171456.37372.waynetg@telkomsa.net>
Wayne Gemmell said:
> Hi all
>
> The way I understand it the watchdog needs to be reset every >2.5 seconds or
> the hardware gets reset.
This is hardware/platform dependent, but in general, this is how watchdogs work.
>
> Would the best way to implement this be to spread resets all over the program
> or to run a high priority thread that runs reset at the designated interval?
A high priority thread would do, or possibly a separate high priority timer
and service the watchdog in the ISR.
It's probably better to isolate the watchdog service to one location rather
than messing about all over the place.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss