Sergio, reception is not the problem but transmission. Here I learned I can't enqueue data fgrom main loop directly. Meanwhile I'm setting a similar flag and collect all my data from within transmission IRQ context - which works fine.
Karl 2014-09-17 15:03 GMT+02:00 Sergio R. Caprile <[email protected]>: > 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 > [email protected] > https://lists.nongnu.org/mailman/listinfo/lwip-users >
_______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
