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]

Help with Interrupt driven Serial ports in EB40A


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

Your response would be very helpful.

Thank you in advance.

Giri.

p.s: This is a repost, I'm desperately seeking for
help. Thank you for your patience.

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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