Hi Paul,
Am 16.11.2013 um 16:03 schrieb Паша Сечко <bronetemkinpono...@gmail.com>: > Hello, I've managed to run LinuxCNC on a Freescale i.MX6 board with a > custom Xenomai kernel and rootfs from Raspbian. Long story short, I want to > configure outputs to try to wiggle a GPIO pin on my board through a > LinuxCNC interface (mini-interface seems to be working), and stepconf seems > to be able to configure only the pins of an LTP. So, is there any way to > use GPIO as an output for a LinuxCNC machine? interesting - tell us more about the kernel and what was involved in getting it to run, versions etc - the full debrief, you know ;) --- stepconf mostly deals with PC type hardware, I'm not aware of any attempts to support other platforms like ARM boards with GPIO's; so it's back to INI + .hal file editing re wiggling GPIO pins - see the https://github.com/mhaberler/linuxcnc/tree/unified-build-candidate-3/src/hal/drivers directory for a start: hal_gpio.c is for a Raspberry hal_bb_gpio.c is for a Beaglebone I think all you have to do is figure the memory addresses for the pin registers, and maybe get the pin multiplexing properly set up note this conflicts with existing GPIO kernel drivers if you operate on pins already claimed by the driver; existing drivers which might be based on /sysfs/gpio something arent much help since doing I/O on them in a realtime thread is unlikely to work well (i.e. not at all with Xenomai and slow with RT-PREEMPT kernels) - Michael > > -- > sincerely, Paul > ------------------------------------------------------------------------------ > DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps > OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access > Free app hosting. Or install the open source package on any LAMP server. > Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! > http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users