[ECOS] Trying to figure out redboot TCP/IP stack

Bob Koninckx bob.koninckx@o-3s.com
Sun Sep 19 09:43:00 GMT 2004


Hi folks,

Just trying to understand, what's the reason for the call to
MS_TICKS_DELAY in function __tcp_poll, since function __timer_poll
already calls MS_TICKS_DELAY in a loop ?

void
__tcp_poll(void) {
  __enet_poll();
  MS_TICKS_DELAY();
  __timer_poll();
}

Rewriting it as

void
__tcp_poll(void) {
  __enet_poll();
  __timer_poll();
}

apparently doesn't break anything and removes an unnecessary delay (and
hence the risk for hardware overrun) from the code.

Bob



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



More information about the Ecos-discuss mailing list