Fixing ethernet library on Mega.

Because the Mega uses a different pin for SS of the W5100, the SPI library wasn't setting it as an output.  It was only setting the hardware SS pin of the ATmega1280, which is elsewhere on the board.  Adding initSS() to W5100.init() fixed it.
This commit is contained in:
David A. Mellis 2010-08-03 13:02:02 +00:00
parent f5bb3ab541
commit eb47701c9f
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ W5100Class W5100;
void W5100Class::init(void)
{
initSS();
writeMR(1<<RST);
writeTMSR(0x55);
writeRMSR(0x55);