question for STM3210C STM32F107_ETH_LwIP_V1.0.0 stm32_eth.c
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2010-12-01 2:47 AM
Posted on December 01, 2010 at 11:47
question for STM3210C STM32F107_ETH_LwIP_V1.0.0 stm32_eth.c
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-05-17 5:16 AM
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(); }}
