[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Context of poll and recv?
From: |
Sergio R. Caprile |
Subject: |
Re: [lwip-users] Context of poll and recv? |
Date: |
Wed, 17 Sep 2014 10:03:55 -0300 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
Hi Karl,
I'm not trying to teach you how to do things, but I need to ask you if
there is any reason why you can't rise a flag in your eth rx interrupt
and run all lwIP code from the main loop ? (zero latency ?)
Mine (sort of):
void eth_input(ifc)
{
do {
if(!flag)
break;
p = pbuf_alloc();
get frame;
netif->input(p, ifc);
} while(more frames);
}
main()
{
while(1){
eth_input(&myeth);
}
}
void rxint()
{
ack;
set flag;
}