There is a script called ts7xxx.subr somewhere on the FTP server. Once you
source this
script, various function are available to you, including setting DIO pins.
Example
$ . /usr/local/bin/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)
$
--- In "j.chitte" <> wrote:
>
> --- In "Daniel Souza" <paraosouza@>
> wrote:
> >
> > Hi
> >
> > I need the board to send a signal after umount the file system.
> This
> > signal (or pulse) will be sent to one circuit that will cut the
> power
> > of the board. The idea is to make linux shutdown first and then cut
> > the power of the board.
> >
> > Thanks,
> >
> > Daniel
> >
>
>
>
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/
|