Hello again. I've looked through all the examples you've given me, and it
seems that "comp" usage is the easiest and most well-written one. So I
guess all I have to do is to fix it a little and to pass the "base
addresses" for each GPIO I need to it and to fix the array sizes according
to the number of GPIOs I intend to use, and it would be done. And then
again, how do I use this driver according to any GUI functionality of
LinuxCNC? Right now it is the only thing I don't get after looking briefly
through all the documentation. How to make any button, for example, in
mini-GUI, to fix a value in a GPIO?

On 20 November 2013 23:22, Juergen Gnoss <[email protected]> wrote:
>

>
> Machine Kit and C. Steinkuehlers blog may be a good place to look for.
> > I have LCNC on panda, beagle, and beaglebone running.
> > So I think you don't need to start from scratch.
>
> With "comp" starting from scratch isn't very hard.
>
> I present as an example:
>
> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/drivers/pcl720.comp;h=4e6da8bed01274d8cbdc0cc2c137f91d011eb2db;hb=HEAD
>
> This is a driver I wrote for an ISA card (yes, really) that I have
> still never actually seen given only the memory map.
>
> The driver basically consists of a section describing the HAL pins
> required (and their documentation) followed by some C-code that maps
> those pins to bit values in the memory map. And that is all there is
> to it.
>
> For your application you probably don't even need the EXTRA_SETUP code
> if the memory map is fixed, and the reset function may not be
> necessary either. (though if you are software-stepping it will double
> your step rate)
>
> --
> atp
> If you can't fix it, you don't own it.
> http://www.ifixit.com/Manifesto


-- 
sincerely, Paul
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to