Skip to main content
Visitor II
April 30, 2008
Question

Problem with ENET interrupt

  • April 30, 2008
  • 2 replies
  • 750 views
Posted on April 30, 2008 at 05:46

Problem with ENET interrupt

    This topic has been closed for replies.

    2 replies

    Visitor II
    May 17, 2011
    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!

    Visitor II
    May 17, 2011
    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.