Problem with ENET interrupt
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2008-04-29 8:46 PM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 12:52 AM
Posted on May 17, 2011 at 09:52
I can not generate ENET interrupt,
The init code segment is: SCU_AHBPeriphClockConfig(__VIC,ENABLE); VIC_DeInit(); VIC_Config(ENET_ITLine, VIC_IRQ, 11); VIC_ITCmd(ENET_ITLine, ENABLE); ENET_InitClocksGPIO(); ENET_Init(PHY_HALFDUPLEX_10M); ENET_Start(); but I can't get in ENET_IRQHandler() after init code,why? Thank you very much!Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 12:52 AM
Posted on May 17, 2011 at 09:52
Hello ,
After enabling the VIC clock and the ENET_IT line, the user must enable the ENET interrupt by calling the function: ENET_ITConfig(ENET_IT, ENABLE); ENET_IT: specifies the ENET DMA interrupts sources to be enabled or disabled. This parameter can be any combination of the following values: + ENET_IT_TX_CURR_DONE + ENET_IT_MAC_INT + ENET_IT_TX_MERR_INT + ENET_IT_TX_DONE + ENET_IT_TX_NEXT + ENET_IT_TX_TO + ENET_IT_TX_ENTRY + ENET_IT_TX_FULL + ENET_IT_TX_EMPTY + ENET_IT_RX_CURR_DONE + ENET_IT_RX_MERR_INT + ENET_IT_RX_DONE + ENET_IT_RX_NEXT + ENET_IT_PACKET_LOST + ENET_IT_RX_TO + ENET_IT_RX_ENTRY + ENET_IT_RX_FULL + ENET_IT_RX_EMPTY For more information the user can refer to the ENET user manual and the example 3 of the ENET Library. Best regards.