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]

Re: problem with termios: tcgetattr


Franck MAMALET FT-R&D DIH/OCF wrote:
> 
> Jonathan Larmour wrote:
> 
> >
> >
> > It should have gone to termios_get_config in
> > io/serial/curent/src/common/termiostty.c
> >
> > Did you enable CYGPKG_IO_SERIAL_TERMIOS_TERMIOS2 in your configuration?
> 
> I did now, and it still doesn't work when I try to open /dev/ser2, but it
> does with /dev/termios2. What are the differences between them?

Doh, for some reason I didn't notice that. and that was the most obvious
problem. The /dev/termios devices are layered on top of the /dev/ser
devices which are effectively the "raw" devices. Therefore for termios
support, use the /dev/termios devices.
 
> Besides, I read your discussion with Trenton D. Adams about " Simple
> serial program" : Could you explain me why open(/dev/ser1,..) doesn't
> fail when   this UART is used for GDB connection?

There is no locking. We expect you to do the right thing :-).

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions    http://www.redhat-techworld.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]