|
From: | Karl Karpfen |
Subject: | Re: [lwip-users] Context of poll and recv? |
Date: | Mon, 22 Sep 2014 11:27:30 +0200 |
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;
}
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
[Prev in Thread] | Current Thread | [Next in Thread] |