From: Dave H. <dhy...@gm...> - 2006-02-09 08:32:59
|
Hi everyone, I put together a sample program called i2c-io which allows the gumstix to query the ADC and GPIO pins on the robostix, set the direction of the GPIO pins and set the value of the GPIO pins. Th ADC pins can also be used as GPIO pins (Port F). You can find more info here: http://gumstix.org/tikiwiki/tiki-index.php?page=3DRobostix-i2c-io -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Ed C. <eca...@gm...> - 2006-02-09 15:29:53
|
That's some great work you are doing on the robostix front, Dave. Is the robostix side of the code available in source anywhere? For my application, I need to do some edge detection on the INT pins and store the values in ram (quadrature encoder values). I'd like to add to your program so I can read/write these values as well as read/write the IO pins. Does this seem possible? Thanks, Ed On 2/9/06, Dave Hylands <dhy...@gm...> wrote: > Hi everyone, > > I put together a sample program called i2c-io which allows the gumstix > to query the ADC and GPIO pins on the robostix, set the direction of > the GPIO pins and set the value of the GPIO pins. > > Th ADC pins can also be used as GPIO pins (Port F). > > You can find more info here: > http://gumstix.org/tikiwiki/tiki-index.php?page=3DRobostix-i2c-io > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmdlnk&kid=103432&bid#0486&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |
From: Dave H. <dhy...@gm...> - 2006-02-09 16:20:44
|
Hi Ed, On 2/9/06, Ed Camacho <eca...@gm...> wrote: > That's some great work you are doing on the robostix front, Dave. Is > the robostix side of the code available in source anywhere? For my > application, I need to do some edge detection on the INT pins and > store the values in ram (quadrature encoder values). I'd like to add > to your program so I can read/write these values as well as read/write > the IO pins. Does this seem possible? Thanks. The source is in SVN. Start here: <http://websvn.gumstix.com/listing.php?repname=3DBuildroot&path=3D%2Fbranch= es%2Fprojects%2Frobostix%2F&rev=3D0&sc=3D0> The main source (for the robostix side of things) is in the i2c-io directory. It also uses source from the Common (common to all of the robostix subdirs) and Shared (shared with the gumstix side of the world). The gumstix side can be found in the gumstix/i2c-io directory. You'll also need the gumstix/Common directory (which contains code common to the various gumstix programs I've been working on). I'm also in the process of documenting how the i2c code is used so you can add your own commands. What you're suggesting (re quadrature) seems entirely possible :) -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Dave H. <dhy...@gm...> - 2006-02-10 11:12:36
|
Hi Ed, > I'm also in the process of documenting how the i2c code is used so you > can add your own commands. I've added this page: http://gumstix.org/tikiwiki/tiki-index.php?page=3DRobostix-i2c-slave which talks a bit about how to use the i2c-slave code on the robostix. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Craig H. <cr...@gu...> - 2006-02-09 17:03:19
|
On Feb 9, 2006, at 12:05 AM, Dave Hylands wrote: > I put together a sample program called i2c-io which allows the gumstix > to query the ADC and GPIO pins on the robostix, set the direction of > the GPIO pins and set the value of the GPIO pins. > > Th ADC pins can also be used as GPIO pins (Port F). > > You can find more info here: > http://gumstix.org/tikiwiki/tiki-index.php?page=Robostix-i2c-io Very cool Dave. I'm planning on adding access to the UCB1400 GPIO lines by extending the /proc/gpio driver at some point (probably having subdirs under /proc/gpio per "device" so there'd be /proc/gpio/ PXA255-0 and /proc/gpio/robostix-0 and /proc/gpio/UCB1400-0 and such, with GPIOs read/written/configured in as similar a way to each other as the hardware allows. I'll take a look at piggybacking on your code when doing that. C |
From: Peter D. <pda...@pc...> - 2006-02-09 18:23:37
|
Dave, I too would like to thank you for your work on the bootloader; you've advanced my project significantly. -Peter On 2/9/06, Craig Hughes <cr...@gu...> wrote: > On Feb 9, 2006, at 12:05 AM, Dave Hylands wrote: > > > I put together a sample program called i2c-io which allows the gumstix > > to query the ADC and GPIO pins on the robostix, set the direction of > > the GPIO pins and set the value of the GPIO pins. > > > > Th ADC pins can also be used as GPIO pins (Port F). > > > > You can find more info here: > > http://gumstix.org/tikiwiki/tiki-index.php?page=3DRobostix-i2c-io > > Very cool Dave. I'm planning on adding access to the UCB1400 GPIO > lines by extending the /proc/gpio driver at some point (probably > having subdirs under /proc/gpio per "device" so there'd be /proc/gpio/ > PXA255-0 and /proc/gpio/robostix-0 and /proc/gpio/UCB1400-0 and such, > with GPIOs read/written/configured in as similar a way to each other > as the hardware allows. I'll take a look at piggybacking on your > code when doing that. > > C > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > -- Peter Darling pda...@pc... |
From: Dave H. <dhy...@gm...> - 2006-02-09 18:32:26
|
HI Craig, > Very cool Dave. I'm planning on adding access to the UCB1400 GPIO > lines by extending the /proc/gpio driver at some point (probably > having subdirs under /proc/gpio per "device" so there'd be /proc/gpio/ > PXA255-0 and /proc/gpio/robostix-0 and /proc/gpio/UCB1400-0 and such, > with GPIOs read/written/configured in as similar a way to each other > as the hardware allows. I'll take a look at piggybacking on your > code when doing that. I'm not sure that there's much to piggyback on :) The gumstix side of the code is pretty much all about using the i2c-dev interface. I'd like to do the proc interface thing as well, probably making each robostix device show up with it's i2c address, or perhaps its node-name. But the kernel would just do i2c calls to do all of the manipulations. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Craig H. <cr...@gu...> - 2006-02-10 00:37:55
|
On Feb 9, 2006, at 9:36 AM, Dave Hylands wrote: > HI Craig, > >> Very cool Dave. I'm planning on adding access to the UCB1400 GPIO >> lines by extending the /proc/gpio driver at some point (probably >> having subdirs under /proc/gpio per "device" so there'd be /proc/ >> gpio/ >> PXA255-0 and /proc/gpio/robostix-0 and /proc/gpio/UCB1400-0 and such, >> with GPIOs read/written/configured in as similar a way to each other >> as the hardware allows. I'll take a look at piggybacking on your >> code when doing that. > > I'm not sure that there's much to piggyback on :) The gumstix side of > the code is pretty much all about using the i2c-dev interface. > > I'd like to do the proc interface thing as well, probably making each > robostix device show up with it's i2c address, or perhaps its > node-name. But the kernel would just do i2c calls to do all of the > manipulations. Right -- the kernel module would just share the "input" parsing code from the current proc_gpio, then make calls to i2c instead of poking the registers like the PXA backend does. the UCB1400 backend would send AC97 messages to control the UCB1400, which is more like how robostix would work, but using ac97 instead of i2c as the bus. C |