Re: [Emc-developers] GPIO usage

2013-12-04 Thread andy pugh
On 4 December 2013 16:12, Paul S. wrote: > Well, to start with, I'd like to test this driver's work from any GUI Are you trying to operate a CNC machine, or something less conventional? There is generally no direct connection between the GUI and the HAL layer where the drivers run. The simplest

[Emc-developers] GPIO usage

2013-12-04 Thread Paul S.
> > 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. > > That is pretty much it, yes. > > > And then > > again, how do I use

Re: [Emc-developers] GPIO usage

2013-12-04 Thread andy pugh
On 4 December 2013 11:13, Paul S. wrote: > 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. That is pretty much it, yes. > And t

[Emc-developers] GPIO usage

2013-12-04 Thread Paul S.
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 numbe

Re: [Emc-developers] GPIO usage

2013-11-20 Thread Michael Haberler
Paul, you might want to take inspiration from existing HAL GPIO drivers: BeagleBone: https://github.com/mhaberler/linuxcnc/blob/unified-build-candidate-3/src/hal/drivers/hal_bb_gpio.c Raspberry Pi: https://github.com/mhaberler/linuxcnc/blob/unified-build-candidate-3/src/hal/drivers/hal_gpio.c

Re: [Emc-developers] GPIO usage

2013-11-20 Thread Sebastian Kuzminsky
On 11/20/13 11:13 , Paul S. wrote: > Hello, I am running LinuxCNC on an ARM9 board which was no LTP but has GPIO > pins, so I've been wondering is there any way to create a mill > configuration to use them to control stepper motors. You'll need a HAL driver for your GPIO pins. Once you have that

[Emc-developers] GPIO usage

2013-11-20 Thread Paul S.
Hello, I am running LinuxCNC on an ARM9 board which was no LTP but has GPIO pins, so I've been wondering is there any way to create a mill configuration to use them to control stepper motors. -- sincerely, Paul -- Shape t