Hi folks, i'm trying to wash the taste of lawyer out of my mouth by 
fixing old hostmot2 FIXMEs.

I've pushed a new branch called hm2-watchdog: 
<http://git.linuxcnc.org/gitweb?p=emc2.git;a=shortlog;h=refs/heads/hm2-watchdog>

This branch changes the behavior of the hm2 watchdog in the following ways:

1.  When you first load the hm2_pci/hm2_7i43 driver, the watchdog starts 
out asleep and won't do anything.

2.  The first time you call pet_watchdog() in HAL, the watchdog wakes up 
and becomes active.  After that you need to pet it every 
watchdog.timeout_ns nanoseconds or it will bite.

3.  This means we can now have a much shorter default watchdog timeout.  
Before the hm2-watchdog branch, the watchdog became active as soon as 
the driver was loaded, so the timeout had to be long enough to last 
until HAL was all initialized and the realtime threads started running, 
this was set to 1 second by default.  The new default watchdog timeout 
is 5 milliseconds (I picked this to be a "few times the default servo 
period").  Just like before, you can change this by changing the 
watchdog.timeout.ns parameter.

4.  The hm2_read() function now checks for watchdog bite, so you can 
tell if you got bit even if you're not petting the watchdog.  This 
should have no practical effect on anyone.


Any feedback is welcome, and please consider this for inclusion in 2.5.

Oh yeah, this was Jeff Epler's idea on IRC this afternoon, so thanks for 
the suggestion.


-- 
Sebastian Kuzminsky


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to