This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Extension to Cyg_Watchdog?
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] Extension to Cyg_Watchdog?
- From: Martin Buck <martin dot buck at ascom dot ch>
- Date: Fri, 26 Oct 2001 17:41:23 +0200
- Newsgroups: local.ecos.discuss
- Organization: Ascom Systec AG
Hi folks,
I'm thinking about extending the Cyg_Watchdog class a bit to allow
configuration of the watchdog timeout. I'd add a hardware-dependent
method "set_resolution(cyg_uint64 resolution)" that allows you to change
the current resolution/timeout (if the hardware supports that, that is).
I'd also add "get_min_resolution()" and "get_max_resolution()" that
would allow you to query the range of resolutions supported by the
current hardware (they'd return 0 if the resolution can't be changed).
Any comments/suggestions?
Martin