We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm using ethernet function of MCB2300.I find all the
MCB2300's example program using interrupt mode,and the
function: static void interrupt_ethernet (void) __irq;
but i want using poll mode,how should i change the
file?
Now, why would you want to change to polled mode?
I want more simplicity and less performance,my system reaction time is speedy,and i have an integrated large memory buffer, polling mode is a good choice for me.
but if you start missing frames you can expect your system not to be that speed anymore as TCP's sliding window kicks in...I don't see the advantage or doing this by polling.
I want try the polling mode.Maybe it's not better than interrupt mode.But i just want to try.
I don't have the code of that particular example, but it sounds as if you need to repeatedly call 'interrupt_ethernet' from your main loop, adding a test to see whether there is a TCP frame available for processing.
what do you want to do?
post your code here with the meaning and we will check it for you.