Skip to content

Commit

Permalink
Limit max of NUC472 EMAC recv frame len as 1518
Browse files Browse the repository at this point in the history
  • Loading branch information
cyliangtw committed Dec 9, 2019
1 parent 410e417 commit 54d8c40
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ void numaker_eth_init(uint8_t *mac_addr)
init_rx_desc();

numaker_set_mac_addr(mac_addr); // need to reconfigure hardware address 'cos we just RESET emc...

/* Limit the max receive frame length to 1514 + 4 */
EMAC->MRFL = 1518;
reset_phy();

EMAC->CTL |= EMAC_CTL_STRIPCRC_Msk | EMAC_CTL_RXON_Msk | EMAC_CTL_TXON_Msk | EMAC_CTL_RMIIEN_Msk | EMAC_CTL_RMIIRXCTL_Msk;
Expand Down

0 comments on commit 54d8c40

Please sign in to comment.