/* This function stop all receive and transmit activity and disable MAC interface.  */
void EMAC_Close(EMAC_T *EMAC)
/* This function stop all receive and transmit activity and disable MAC interface.  */
void EMAC_Close(EMAC_T *EMAC)
{
    EMAC->CTL |= EMAC_CTL_RST_Msk;
    while (EMAC->CTL & EMAC_CTL_RST_Msk) {}
}