This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Interrupt driven serial device drivers in EB40A
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Giri Raja <giri_amf at yahoo dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 2 Apr 2004 22:18:10 +0200
- Subject: Re: [ECOS] Interrupt driven serial device drivers in EB40A
- References: <20040401223719.53624.qmail@web41703.mail.yahoo.com>
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