Hi,
Since 2.6.27 you can use sysfs entries for GPIOs:
# echo 8 >/sys/class/gpio/export // DIO_0 = Port B, bit 0
# echo 9 >/sys/class/gpio/export // DIO_1 = Port B, bit 1
# echo 10 >/sys/class/gpio/export // DIO_2 = Port B, bit 2
# echo 11 >/sys/class/gpio/export // DIO_3 = Port B, bit 3
# echo 12 >/sys/class/gpio/export // DIO_4 = Port B, bit 4
# echo 13 >/sys/class/gpio/export // DIO_5 = Port B, bit 5
# echo 14 >/sys/class/gpio/export // DIO_6 = Port B, bit 6 (could have been
reserved for I2C)
# echo 15 >/sys/class/gpio/export // DIO_7 = Port B, bit 7 (could have been
reserved for I2C)
# echo 17 >/sys/class/gpio/export // DIO_8 = Port F, bit 1
For example:
# echo "out" >/sys/class/gpio/gpio8/direction
# echo "1" >/sys/class/gpio/gpio8/value
Matthieu
bonjelo2000 wrote:
>
> Hi,
>
> Is anyone aware of a C language subroutine for the DIO ports on the TS-
> 7200. I would like to set direction and receive/set HI/LOW status on
> each of the 9 DIO1 header pins with a simple call in C"
>
> Thanks
>
>
------------------------------------
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/
|