cancel
Showing results for 
Search instead for 
Did you mean: 

question for STM3210C STM32F107_ETH_LwIP_V1.0.0 stm32_eth.c

yslee
Associate
Posted on December 01, 2010 at 11:47

question for STM3210C STM32F107_ETH_LwIP_V1.0.0 stm32_eth.c

1 REPLY 1
amin23
Associate II
Posted on May 17, 2011 at 14:16

Hi,

Try to use one of these methods:

1- use the interrupt :

void ETH_IRQHandler(void)

{

  /* Handles all the received frames */

  while(ETH_GetRxPktSize() != 0)

  {

           

    ETH_HandleRxPkt();

  }

  /* Clear the Eth DMA Rx IT pending bits */

ETH_DMAClearITPendingBit(ETH_DMA_IT_R);

ETH_DMAClearITPendingBit(ETH_DMA_IT_NIS);

}

2- Infinite loop (main.c)

while (1)

{

   

  while(ETH_GetRxPktSize() != 0)

{

         

  ETH_HandleRxPkt();

  }

}