/* Set the filter type for the specified ETHERNET MAC address.  */
void ETH_ConfigMacAddrFilter(uint32_t MacAddr, uint32_t Filter)
/* Set the filter type for the specified ETHERNET MAC address.  */
void ETH_ConfigMacAddrFilter(uint32_t MacAddr, uint32_t Filter)
{
    assert_param(IS_ETH_MAC_ADDR123(MacAddr));
    assert_param(IS_ETH_MAC_ADDR_FILTER(Filter));
    if (Filter != ETH_MAC_ADDR_FILTER_DA)
    {
        (*(__IO uint32_t*)(ETH_MAC_ADDR_HBASE + MacAddr)) |= ETH_MACADDR1HI_SA;
    }
    else
    {
        (*(__IO uint32_t*)(ETH_MAC_ADDR_HBASE + MacAddr)) &= (~(uint32_t)ETH_MACADDR1HI_SA);
    }
}