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

It should not be too hard to adapt for whatever you have, mostly memory 
addresses of registers, and setting up any pinmuxing if that is in place.

depending on the kernel you might see disappointing results with soft stepping. 

This is the reason why for instance the BeagleBone stepper uses the onboard 
realtime CPU's coprocessor (PRU) of the AM335x series 
(http://bb-lcnc.blogspot.co.at/), 
and Gemi Orcullo has crafted the picnc outboard stepgen for the Raspberry 
(http://goo.gl/cCC02h).

- Michael

Am 20.11.2013 um 19:13 schrieb Paul S. <[email protected]>:

> 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 the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing 
> conversations that shape the rapidly evolving mobile landscape. Sign up now. 
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to