--- In "robinsonsystems" <> wrote:
>
>
> Hey folks,
>
> I'm new to the embedded Linux world, but experienced with Linux,
> microcontrollers, and programming. Was wondering if anyone new of some
> example code (Python, PHP, Perl, or C) to display the changing values
> of the I/O pins on the TS-7300.
>
> Thanks for your time.
>
>
> Bill Robinson
>
It's even easier thn that! On Technologic's FTP server ,there is a shell
script called
ts7xxx.subr. Run this in your current process (using dot-space) and it will
define loads of
useful functions you can then type in or use from your own script.
Here's its help page:
$ . /root/ts7xxx.subr
$ tshelp
Technologic Systems TS-7xxx Linux miniroot commands:
====================================================
'save' - save current miniroot initrd configuration to flash
'exit' - start full Linux boot or exits telnet session
'dio_dir_get DIO_NUM' - Get Data Direction Register
'dio_dir_set DIO_NUM DIR' - Set Data Direction Register
'dio_data_get DIO_NUM' - Get Data Register
'dio_dat_set DIO_NUM DATA - Set Data Register
'usb_init' - Initialize USB
'usb_off' - Disable USB Clock
'usb_num_ports' - Get number of USB ports
'usb_port_devexists' - Check if a USB device is present
'eth_off' - Disable Ethernet(power down phy)
'eth_on' - Enable Ethernet
'led0 STATE' - Turn on/off green LED
'led1_STATE' - Turn on/off red LED
'temp_read' - Print temp (requires optional temp sensor)
$
So you can play with dir_dir_get functions.
I'm not sure of its exact location on the FTP site, I'm afraid.
Martin
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/
|