arduino_uip icon indicating copy to clipboard operation
arduino_uip copied to clipboard

How to adapt for Arduino Mega

Open mrohner opened this issue 8 years ago • 1 comments

Where to add this code to adapt for Arduino mega? I'm not sure enc28j60.c is even used during compile.

enc28j60.c changes:

if defined(AVR_ATmega2560) || defined(AVR_ATmega1280)

define ENC28J60_CONTROL_CS 53

define SPI_MOSI 51

define SPI_MISO 50

define SPI_SCK 52

else;

define ENC28J60_CONTROL_CS 10

define SPI_MOSI 11

define SPI_MISO 12

define SPI_SCK 13

endif;

mrohner avatar Nov 30 '15 09:11 mrohner

Are you sure this code is still in use ? I've ran into issues with the CS pin yesterday, and searching in all file using "grep" did only returned one file. This "if defined" doesn't exist anymore. Perhaps it's related to an old verion of the library ?

Adesin-fr avatar Mar 29 '16 07:03 Adesin-fr