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]

Trying to figure out redboot TCP/IP stack


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


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