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]

Simple serial interrupt question (Atmel AT91)



I have my interrupt-driven serial I/O almost working. It uses a DSR routine
and is modified from PID serial implementation. I try to send a short
string to this port (AT91X40 port 1, secondary) with cyg_io_write(). The
problem is:

Running without breaks results to the first two characters to appear at the
port. Setting a breakpoint to my xxx_serial_putc() gives the whole string,
char by char of course.

So, what does the breakpoint execution do (with interrupt acknowledge or
something else) that I should add to my implementation?

BTW, trying to send the string in a loop, xxx_serial_start_xmit() seems to
be called once for each cyg_io_write() call but xxx_serial_stop_xmit() is
called once before the first cyg_io_write() call. What's the role of these
functions?

Thanks,
	Harri


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