Ethernet W5100/ENC gateway compile (not verified).
Remove SPI/ENC/W5100 from embedded libraies.
This commit is contained in:
@@ -27,11 +27,18 @@
|
||||
|
||||
#include "mempool.h"
|
||||
|
||||
#define ENC28J60_CONTROL_CS SS
|
||||
#define ENC28J60_CONTROL_CS SS // this is pin 10 on Uno and pin 53 on Mega256
|
||||
|
||||
#if defined(ARDUINO_ARCH_AVR)
|
||||
// AVR-specific code
|
||||
#define SPI_MOSI MOSI
|
||||
#define SPI_MISO MISO
|
||||
#define SPI_SCK SCK
|
||||
#define SPI_SS SS
|
||||
#define ENC28J60_USE_SPILIB 0
|
||||
#elif defined(ARDUINO_ARCH_SAM)
|
||||
#define ENC28J60_USE_SPILIB 1
|
||||
#endif
|
||||
|
||||
#define UIP_RECEIVEBUFFERHANDLE 0xff
|
||||
|
||||
|
||||
Reference in New Issue
Block a user