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: RE: Trouble using lwIP (driver crash...)


> I don't see the point of calling PacketRxReady() from i82559_can_send().
> The point of "can_send()" is to determine of the device can accept any
> more packets *to transmit* - received packets should not be part of that
> calculation.

There is a comment in the code from Hugo. Sending a packet can
potentially loose a receive interrupt. So it tries a receiver after
doing the send just to recover from the lost interrupt.

        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


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