mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-18 03:30:31 +00:00
enc28j60: ERXFCON needs to be set only once
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
This commit is contained in:
parent
8a20e7c05c
commit
356d17737c
@ -335,11 +335,7 @@ reset(void)
|
|||||||
|
|
||||||
/* Receive filters */
|
/* Receive filters */
|
||||||
setregbank(EPKTCNT_BANK);
|
setregbank(EPKTCNT_BANK);
|
||||||
/* writereg(ERXFCON, ERXFCON_UCEN | ERXFCON_CRCEN |
|
writereg(ERXFCON, ERXFCON_UCEN | ERXFCON_CRCEN | ERXFCON_BCEN);
|
||||||
ERXFCON_MCEN | ERXFCON_BCEN);*/
|
|
||||||
/* XXX: can't seem to get the unicast filter to work right now,
|
|
||||||
using promiscous mode for now. */
|
|
||||||
writereg(ERXFCON, 0);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
6.5 MAC Initialization Settings
|
6.5 MAC Initialization Settings
|
||||||
@ -420,10 +416,6 @@ reset(void)
|
|||||||
writereg(MAADR2, enc_mac_addr[1]);
|
writereg(MAADR2, enc_mac_addr[1]);
|
||||||
writereg(MAADR1, enc_mac_addr[0]);
|
writereg(MAADR1, enc_mac_addr[0]);
|
||||||
|
|
||||||
/* Receive filters */
|
|
||||||
setregbank(EPKTCNT_BANK);
|
|
||||||
writereg(ERXFCON, ERXFCON_UCEN | ERXFCON_CRCEN | ERXFCON_BCEN);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
6.6 PHY Initialization Settings
|
6.6 PHY Initialization Settings
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user