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: blocking read of serial device driver


Roland Caßebohm wrote:
> 
> Hi,
> 
> I like to have a blocking read with termios for th serial device driver. I
> think when I set c_cc[ VMIN ]=1 it should block, but it doesn't. I have
> looked at the code of termios_read(). The function can only block in
> canonical mode. But when I set c_cc[ VMIN ]=1 the function have to block
> since at least 1 character is received.

As per
http://sources.redhat.com/ecos/docs-latest/ecos-elix/ecos-elix.2.html#pgfId=2626807
we only support MIN=0,TIME=0 at present.

Look at http://people.freebsd.org/~luoqi/ecos/vtime.diff for some
improvements, but we never got a copyright assignment :-|.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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