1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 17:46:14 +01:00

Compare commits

...

4 Commits

Author SHA1 Message Date
George
7b83883e49
Merge 62a204b65c into 4e491a1e56 2024-09-16 22:57:48 +00:00
Harald Barth
4e491a1e56 Typo 2024-06-02 21:17:30 +02:00
Harald Barth
430161ef60 ESP32: Refuse IDF5 2024-06-02 21:14:46 +02:00
George
62a204b65c
setting of eth cs
Does my "[Feature Request]: setting of eth cs #308".
Tested on Arduino mega2560 with W5500 connected by wires - CS to 53.
2023-03-10 11:53:40 +01:00
2 changed files with 9 additions and 1 deletions

View File

@ -104,6 +104,9 @@ void setup()
#endif // ARDUINO_ARCH_ESP32 #endif // ARDUINO_ARCH_ESP32
#if ETHERNET_ON #if ETHERNET_ON
#ifdef ETHERNET_CS
Ethernet.init (ETHERNET_CS);
#endif // ETHERNET_CS
EthernetInterface::setup(); EthernetInterface::setup();
#endif // ETHERNET_ON #endif // ETHERNET_ON

View File

@ -76,8 +76,13 @@ int DCCTimer::freeMemory() {
#endif #endif
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
#ifdef ARDUINO_ARCH_ESP32 #ifdef ARDUINO_ARCH_ESP32
#include "esp_idf_version.h"
#if ESP_IDF_VERSION_MAJOR > 4
#error "DCC-EX does not support compiling with IDF version 5.0 or later. Downgrade your ESP32 library to a version that contains IDF version 4. Arduino ESP32 library 3.0.0 is too new. Use 2.0.9 to 2.0.17"
#endif
#include <driver/adc.h> #include <driver/adc.h>
#include <soc/sens_reg.h> #include <soc/sens_reg.h>
#include <soc/sens_struct.h> #include <soc/sens_struct.h>