ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: [ts 7200] DIO Code

To:
Subject: Re: [ts-7000] Re: [ts 7200] DIO Code
From: Jim Jackson <>
Date: Wed, 23 Feb 2011 14:34:41 +0000 (GMT)


On Wed, 23 Feb 2011, erik_dykema wrote:

> Hi Jim-
>     Thanks for your response.  I think that something is happening that I 
> don't understand, like maybe some other piece of software has taken over 
> those pins according to the kernel/driver.  I don't believe that I've blown 
> them because the kernel doesn't even setup the sysfs/socket interface like it 
> does for the working pins; so I think it's not allowing me to try; rather 
> than the hardware being broken.
>      I don't need them working so I probably won't dig much deeper into 
> this.  Perhaps some future archaeologist will stumble across this post 
> and explain how to use those pins on 2.6.

Have you tried just using programmatic access from user space?


> --- In  Jim Jackson <> wrote:
> >
> > 
> > 
> > 
> > On Mon, 21 Feb 2011, erik_dykema wrote:
> > 
> > > Hi Joel-
> > >     Thanks for your response!  I think you're answering a slightly 
> > > different question than I'm asking, probably because my question was 
> > > screwy.
> > >     To restate my question, whichever numbers we use to refer to the 
> > > pins, how do I address those pins via sysfs?  These are the pin numbers 
> > > (using Joel's numbering scheme) that I've been able to successfully 
> > > address, and use to light LEDs:
> > > 
> > > Top down view of the header showing pin numbers (Joel's numbers):
> > > ----------------------------------
> > > 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16
> > > ----------------------------------
> > > 1 | 3 | 5 | 7 |  9 | 11 | 13 | 15
> > > ----------------------------------
> > > 
> > > Format: /sys/class/gpio/gpio# -> Pin #
> > > 8:1
> > > 9:3
> > > 10:5
> > > 11: ??
> > > 12: ??
> > > 13:11
> > > 14:13
> > > 15:15
> > > 
> > >      So, I know that I can address the bottom row of pins using 
> > > /sys/class/gpio/gpio8-15 , except for pins 7 and 9.  So how do I address 
> > > pins 7 and 9?  One would think, based on the /sys/class/gpio/gpio# 
> > > pattern, that it would be gpio11 and gpio12 ; but those don't work.  Any 
> > > suggestions appreciated.
> > 
> > No idea - never used a 2.6 kernel and this particular gpio module.
> > 
> > But I can confirm that those pins are accessable as the correct bits
> > via the DIO1 address bits, as detailed in the manual. That is, as long as 
> > you haven't hooked up 5 volts logic and blown them!
> > 
> > Jim
> > 
> > ----------------------------------------------------------------------------
> > HomePage:    http://www.comp.leeds.ac.uk/jj
> > TS7200 Page: http://www.comp.leeds.ac.uk/jj/linux/arm-sbc.html
> >
> 
> 
> 


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU