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: BREAK handling in serial driver (SA1110)


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


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