ntruchsess / arduino_uip

UIPEthernet: A plugin-replacement of the stock Arduino Ethernet library for ENC28J60 shields and breakout boards. Full support for persistent (streaming) TCP-connections and UDP (Client and Server each), ARP, ICMP, DHCP and DNS. Build around Adam Dunkels uIP Stack. Further developed version can be found on https://github.com/UIPEthernet/UIPEthernet
489 stars 212 forks source link

How to adapt for Arduino Mega #136

Open mrohner opened 8 years ago

mrohner commented 8 years ago

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;

Adesin-fr commented 8 years ago

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 ?