This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I forgot to copy the code, sorry. "Ali Rodgo" <alirodgo@web.de> schrieb am 12.02.04 11:28:32: > > Thank you very much, > i have made the following configuration: > > CYGPKG_IO_SERIAL_TERMIOS=enable > CYGPKG_IO_SERIAL_TERMIOS_TERMIOS0=enable > CYGPKG_IO_SERIAL_TERMIOS_TERMIOS1=enable > GYGDAT_IO_SERIAL_TERMIOS_TERMIOS1_DEV="/dev/ser1" > GYGDAT_IO_SERIAL_TERMIOS_TERMIOS0_DEV="/dev/ser0" > > > CYGPKG_IO_SERIAL_DEVICE=enable > CYGPKG_IO_SERIAL_ARM_AT91_SERIAL1_NAME="/dev/ser1" > CYGPKG_IO_SERIAL_ARM_AT91_SERIAL0_NAME="/dev/ser0" > > and the code you can see in the file serial.c. When compiling i receive two errors in the open function:undefined reference to "open". > > I f i want to make a printf should now open the device(SERIAL A) "/dev/termios0" and call the write function or call easy the printf function as before(/dev/ttydiag) > > Thank in advance > > > Jonathan Larmour <jifl@eCosCentric.com> schrieb am 12.02.04 04:43:59: > > > > Ricardo Andrino wrote: > > > Hello, I am working with the AT91EB40A board and i want to read a byte > > > from a host PC connected to the serial B port from the board and then > > > send it to a Linux Host connected to the Serial A and display it in the > > > screen with a simply printf and vice versa. > > > > > > I am using POSIX functions ( termios structure, read, write,fcntl, > > > threads etc). What i don't know is how i have to configure the serial > > > driver in the configuration tool to say my program to read from the > > > serial B and send it to the serial A: > > > > > > should i configure this? CYGPKG_IO_SERIAL_TERMIOS; > > > CYGPKG_IO_SERIAL_TERMIOS_TERMIOS0 CYGPKG_IO_SERIAL_TERMIOS_TERMIOS0_DEV > > > ... > > > > > > and this? CYGPKG_IO_SERIAL_DEVICES CYGPKG_IO_SERIAL_ARM_AT91_SERIAL0 > > > ...... > > > > Yes :-). You want to enable all these, and also the same for the SERIAL1 > > stuff. CYGPKG_IO_SERIAL_TERMIOS_TERMIOS0_DEV can stay at its current setting. > > > > Then when opening the termios devices, use /dev/termios0 and /dev/termios1. > > > > Jifl > > -- > > eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts > > Visit us at Embedded World 2004, Nürnberg, Germany, 17-19 Feb, Stand 12-449 > > --["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine > > > > > > -- > > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > > > > > ______________________________________________________________________________ > Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den > Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php > > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > ______________________________________________________________________________ Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php
Attachment:
serial.c
Description: Binary data
-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |