This is the mail archive of the ecos-discuss@sourceware.org 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: how to set overtime to serial port block read/write?


wb ning wrote:
I use cyg_io_get_config(io_handle, CYG_IO_GET_CONFIG_SERIAL_ABORT, 0,
&len) as you said. The return code of this function is 0, but seems my
cyg_io_read() seems still block there. I cannot find where the mistake
is, i used the test file at $ECOS_REPOSITORY/io/serial/v3_0/tests/.
And my code is like this:

Your code looks ok to me. Have you been able to debug with GDB and find out where the thread doing the read has stopped? A backtrace would be very useful.


Jifl
--
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine

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