/* Clean up process after a packet is received.  */
void EMAC_RecvPktDone(void)
/* Clean up process after a packet is received.  */
void EMAC_RecvPktDone(void)
{
    EMAC_DESCRIPTOR_T *desc;
    desc = (EMAC_DESCRIPTOR_T *)u32CurrentRxDesc;
    desc->u32Data = desc->u32Backup1;
    desc->u32Next = desc->u32Backup2;
    desc->u32Status1 |= EMAC_DESC_OWN_EMAC;
    desc = (EMAC_DESCRIPTOR_T *)desc->u32Next;
    u32CurrentRxDesc = (uint32_t)desc;
    EMAC_TRIGGER_RX();
}