Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 124457

Forum Post: RE: MDIO USERACCESS1 Interrupt on the C6670 seems to trigger twice per transaction.

$
0
0

Has anyone had a chance to look into this?

I have a workaround (use CSL_MDIO_isMaskedUserCmdCompleteIntSet() inside the ISR to see if interrupt is real) at the moment, but am hoping to get this software configured correctly:

void MdioTransferIsr(void)
{
    CSL_MDIO_USERACCESS oReg;

    CSL_MDIO_getUserAccessRegister(1, &oReg);

    // Only post to the mailbox if legitimate interrupt went off.
    // TODO: Fix this.
    if(CSL_MDIO_isMaskedUserCmdCompleteIntSet(1))
    {
        Mailbox_post(mbx_mdio_rcv, &oReg, 0);
    }

    // Clear the interrupts.
    CSL_MDIO_clearMaskedUserCmdCompleteInt(1);
    CSL_MDIO_clearUnmaskedUserCmdCompleteInt(1);
}


Viewing all articles
Browse latest Browse all 124457

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>