2008-04-29 08:46 PM
2011-05-17 12:52 AM
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!2011-05-17 12:52 AM
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.