John Kasunich wrote:
> Peter C. Wallace wrote:
> 
>> I think with the current driver, the watchdog cannot be disabled, probably a 
>> good thing...
> 
> Seb and I were discussing that on IRC one evening.  I think I convinced 
> him that it would be nice if the watchdog slept quietly without being 
> petted, until you "arm" it by setting timeout-ns to some non-zero value.

I'm convinced, but i havent done the work yet.

The current status is that the watchdog works on all boards, with the 
behavior documented in the manpage:  the watchdog is always enabled, and 
if you dont pet it within watchdog.timeout_ns it will bite.  To pet it, 
run the pet_watchdog function.  The default timeout is documented in the 
manpage (both Trunk and 2.2): it's 1 second.


> I don't know if that the driver has been changed to let the dog sleep, 
> and if so, whether that change is in the released 2.2.8, or only on CVS 
> trunk.

In the awesome future, the watchdog will work like this:

Default timeout will be a few milliseconds, this is "a few times a 
reasonable servo period".

The watchdog will not be "primed" until the first call to 
pet_watchdog(), meaning it wont bite you.

The first call to pet_watchdog start the timeout.  After the first call 
to pet_watchdog it will behave like now: keep petting it before the 
timeout expires or get bit.


-- 
Sebastian Kuzminsky
the garage is my happy place

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to