enc28j60: Fix workaround for erratum #14
Only odd addresses may be programmed to the ERXRDPT registers, so initialize them to RX_BUF_END instead of RX_BUF_START. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
This commit is contained in:
parent
8615b77da0
commit
b4c32954a6
1 changed files with 2 additions and 2 deletions
|
@ -356,8 +356,8 @@ reset(void)
|
|||
writereg(ERXNDH, RX_BUF_END >> 8);
|
||||
writereg(ERDPTL, RX_BUF_START & 0xff);
|
||||
writereg(ERDPTH, RX_BUF_START >> 8);
|
||||
writereg(ERXRDPTL, RX_BUF_START & 0xff);
|
||||
writereg(ERXRDPTH, RX_BUF_START >> 8);
|
||||
writereg(ERXRDPTL, RX_BUF_END & 0xff);
|
||||
writereg(ERXRDPTH, RX_BUF_END >> 8);
|
||||
|
||||
/* Receive filters */
|
||||
setregbank(EPKTCNT_BANK);
|
||||
|
|
Loading…
Reference in a new issue