File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 33
33
// up to 4 sockets. W5200 & W5500 can have up to 8 sockets. Several bytes
34
34
// of RAM are used for each socket. Reducing the maximum can save RAM, but
35
35
// you are limited to fewer simultaneous connections.
36
- #if defined(RAMEND) && defined(RAMSTART) && ((RAMEND - RAMSTART) <= 2048)
37
- #define MAX_SOCK_NUM 4
38
- #else
39
- #define MAX_SOCK_NUM 8
36
+ #if !defined(MAX_SOCK_NUM)
37
+ # if defined(RAMEND) && defined(RAMSTART) && ((RAMEND - RAMSTART) <= 2048)
38
+ # define MAX_SOCK_NUM 4
39
+ # else
40
+ # define MAX_SOCK_NUM 8
41
+ # endif
40
42
#endif
41
43
42
44
// By default, each socket uses 2K buffers inside the WIZnet chip. If
Original file line number Diff line number Diff line change 18
18
#include < SPI.h>
19
19
20
20
// Safe for all chips
21
- #define SPI_ETHERNET_SETTINGS SPISettings (14000000 , MSBFIRST, SPI_MODE0)
21
+ #if !defined(SPI_ETHERNET_SETTINGS)
22
+ # define SPI_ETHERNET_SETTINGS SPISettings (14000000 , MSBFIRST, SPI_MODE0)
23
+ #endif
22
24
23
25
// Safe for W5200 and W5500, but too fast for W5100
24
26
// Uncomment this if you know you'll never need W5100 support.
You can’t perform that action at this time.
0 commit comments