On 02/25/2017 01:29 PM, Jon Elson wrote:
> Over the years, it has been seen that certain parallel port
> chips did not work properly with my hal_ppmc driver.
>
Hmmm, I was hoping to get more discussion of this.  It 
concerns a MAJOR overhaul of my hal_ppmc driver.

I can see 3 ways to deal with the problem:

1.  Make it automatic, it tries with the "manual" port 
direction change off, if no boards can be sensed, turn the 
direction change on, and try again.

2.  Make it a command line option.

3.  Make two versions, hal_ppmc and hal_ppmc_old.  Chack 
after a year and see if anyone is actually using 
hal_ppmc_old, and if not, remove it from LinuxCNC.

I kind of like option 3, as it will have a lot cleaner code, 
and also, if it turns out to be a big mistake, we just 
remove the new version instead.

One additional concern would be the multi-port option of 
hal_ppmc. As far as I know, NO ONE has EVER used this 
feature, but it does allow you to have up to 3 parallel 
ports in use on the same system. How do you handle it if one 
requires the manual direction change, and one doesn't?  Ugh, 
I really don't want to spend days hacking on code that will 
never be used.

Sorry my original message was so long, I wanted to set the 
stage for the question.

Any comments?

Thanks,

Jon

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to