On 12 June 2013 03:40, Jon Elson <[email protected]> wrote: > There is a method already in the driver to enable a feature on a > particular board by giving a feature name and a board address. > So, you add something like "timestamp=0x12" which means > enable the encoder timestamp feature on parallel port > 1 and board address 2. Now, I need to add an additional > parameter to this, not just turning the feature on on a specific > board.
I assume that you are already using one of these http://www.linuxcnc.org/docs/html/man/man3/RTAPI_MP_ARRAY_STRING.3rtapi.html To set the existing option. You probably need to either parse that string for an additional code, or add another parameter set. If it is optional and there is a reasonable default for existing installations then RTAPI_MP_ARRAY_INT might work. This bit of code here is how Seb did it in the Hostmot2 driver (which takes several different command line switches) http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/drivers/mesa-hostmot2/hostmot2.c;h=ee9ca27f0d50791cbae83e4291b7f2ce3a66df10;hb=HEAD#l313 -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
