Skip to content

Commit

Permalink
enc28j60: Fix workaround for erratum #14
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bthebaudeau committed Jul 16, 2015
1 parent 8615b77 commit b4c3295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/enc28j60/enc28j60.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b4c3295

Please sign in to comment.