This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: BREAK handling in serial driver (SA1110)
- To: ecos-discuss at sources dot redhat dot com
- Subject: Re: [ECOS] BREAK handling in serial driver (SA1110)
- From: Andreas Bürgel <ab at genologic dot de>
- Date: Tue, 16 Oct 2001 16:07:34 +0200
- Organization: GenoLogic GmbH, Dortmund
- References: <3BCC2DB7.7B9A58CF@genologic.de> <3BCC3C8F.EDD69BD7@redhat.com>
Jonathan Larmour wrote:
>
> Andreas Bürgel wrote:
> >
> > Hi folks,
> >
> > I'm wondering how to get the line status information of the serial
> > driver to application level. Our application needs to know when a BREAK
> > signal arrived, so where is the magic function that delivers a
> > cyg_serial_line_status_t struct?
>
> The sa11x0 driver doesn't support any of that stuff. It would need to be
> added. Use the driver in devs/serial/generic/16x5x as a guide. It includes:
I know. We're going to add this currently.
> and indicate_status calls into serial_indicate_status in
> io/serial/current/src/common/serial.c
What is not clear to us is the interface between the application and the
driver stuff to read the line status. In other words the app needs a
function "serial_get_line_status()", or something similar, to get an
cyg_serial_line_status_t variable.
-----------------------------------------------------
i.A. Andreas Bürgel GenoLogic GmbH
Software Engineer Joseph-von-Fraunhofer-Str. 13
D-44227 DORTMUND
Germany
ab@genologic.de phone +49 (0) 231/477349-0
fax +49 (0) 231/4761234