On Sat, 9 Aug 2008, Sebastian Kuzminsky wrote:

> Date: Sat, 09 Aug 2008 15:13:34 -0600
> From: Sebastian Kuzminsky <[EMAIL PROTECTED]>
> Reply-To: "Enhanced Machine Controller (EMC)"
>     <emc-users@lists.sourceforge.net>
> To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
> Subject: Re: [Emc-users] Stepper configuration
> I could add a "threadsafe" flag to the board driver struct, which gets
> set by the board driver if the board I/O hardware is thread safe (PCI),
> and cleared if it's not (EPP).  The high-level hostmot2 driver would
> examine this and only export the "full" read()/write() functions if the
> board driver is not thread safe.  If the board driver *is* thread safe,
> the hostmot2 driver would in addition export gpio_read()/gpio_write().
>
> The PCI drivers would work just as well as they would if hostmot2 didnt
> have to care about thread safety in the low-level drivers.

That sounds like a good solution. Never know what people may want to do with 
the GPIO pins, so if fast thread access is possible in the hardware, the 
driver should allow access.



>
> The EPP drivers would work just as poorly as they would in any case (ie,
> no quick access to gpios).  But at least they wouldnt be broken like the
> m7i43_hm2 driver is, due to my earlier misunderstanding of RTAI
> multitasking model!
>
>
> -- 
> Sebastian Kuzminsky
> You think you can defeat me with your rebellious beard?
> <http://www.youtube.com/watch?v=k_QAPjtO2cA>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to