mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +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 */
|
||||
setregbank(EPKTCNT_BANK);
|
||||
/* writereg(ERXFCON, ERXFCON_UCEN | ERXFCON_CRCEN |
|
||||
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);
|
||||
writereg(ERXFCON, ERXFCON_UCEN | ERXFCON_CRCEN | ERXFCON_BCEN);
|
||||
|
||||
/*
|
||||
6.5 MAC Initialization Settings
|
||||
@ -420,10 +416,6 @@ reset(void)
|
||||
writereg(MAADR2, enc_mac_addr[1]);
|
||||
writereg(MAADR1, enc_mac_addr[0]);
|
||||
|
||||
/* Receive filters */
|
||||
setregbank(EPKTCNT_BANK);
|
||||
writereg(ERXFCON, ERXFCON_UCEN | ERXFCON_CRCEN | ERXFCON_BCEN);
|
||||
|
||||
/*
|
||||
6.6 PHY Initialization Settings
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user