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]

Re: Interrupt driven serial device drivers in EB40A


On Thu, Apr 01, 2004 at 02:37:19PM -0800, Giri Raja wrote:
> Hi,
>    I'm trying to write a small application, which
> would accept data from /dev/ttyS0 and convey it via a
> GDB session from /dev/ttyS1. 
> I want the reception of data from /dev/ttyS0 to be
> interrupt driven. Should I then create a interrupt
> using cyg_drv_interrupt_create with the USART0
> interrupt vector? And should I also create my own ISR
> and DSR, then use the device handle to read and wirte?

> I'm confused because I saw an implementation of the
> serial drivers' ISR and DSR implementation in
> at91_serial.c located under 
> ecos/packages/devs/serial/arm/at91/current/src
> 
> Shall I just ignore it and just include
> <cyg/hal/drv_api.h> .

Why do you think you should ignore it? It does seem to do what you
want. Why not just find out how to use it! 

      Andrew

-- 
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]