[lwip-users] help: how to use interrupt in RAW_API mode under Xilinx-V2
From:
ye wu
Subject:
[lwip-users] help: how to use interrupt in RAW_API mode under Xilinx-V2
Date:
Thu, 19 Oct 2006 21:37:43 +0800
Hi, all
I\'m using a Xilinx-Viterx2 with PowerPC 405 address@hidden
I\'v just start the develop under Xilinx-Viterx2 within a month and now got big problems with the use of lwip in that platform.
At first, i set up a Echo server just follow the example of xilinx\'s
echo server under SOCKET_API. As it was discussed a lot in the forum,
the trans speed is unbearable, i can get only 10-20kB/s at most, even
set the systmr_interval to 1. I\'m not sure about the
systmr_interval\'s function for the lwip under SOCKET_API mode, could
any one tell me why the speed increased as the value of systmr_interval
decrease? And is there any tricks to improve the speen under SOCKET_API
mode?
And then i wrote a udp program use RAW_API mode, it works well in the
polling mode. As we see, RAW_API are used mainly under standlone
kernel, but i think we can use it under xilkernel too. i can get about
300kB/s with that mode. i see in the forum that if we use interrupt
instead of polling, we can get much fast, so i write a program (as
bellow) but it not work at all, i can not even ping the target from my
PC. I don\'t know what wrong, could anyone help me?
1. There were mail messages that use the Standalone Board Support
Package for set the interrupt, Can we use the RAW_API in interrupt mode
under xilkernel, and registe the irq in xilkernel as we do in
SOCKTE_API mode?
2. I\'ve read from the forum that the interupt was used to replase the
\'xemacif_input\' in the while loop, so i just set the interupt and
cancel the \'xemacif_input\', leave while a null loop to wait for
interrupt after setup udp, is that right?
Could anybody help me why it not work? Really appreciate for your help.