/* Parameters: ch FEC channel pa Physical (Hardware) Address for the selected FEC  */
void enet_set_address(int ch, const uint8_t *pa)
/* Parameters: ch FEC channel pa Physical (Hardware) Address for the selected FEC  */
void enet_set_address(int ch, const uint8_t *pa)
{
    uint8_t crc;
    ENET_PALR = (uint32_t)((pa[0]<<24) | (pa[1]<<16) | (pa[2]<<8) | pa[3]);
    ENET_PAUR = (uint32_t)((pa[4]<<24) | (pa[5]<<16));
    crc = enet_hash_address(pa);
    if(crc >= 32)
        ENET_IAUR |= (uint32_t)(1 << (crc - 32));
    else
        ENET_IALR |= (uint32_t)(1 << crc);
}