You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated pins_arduino.h for ESP32 POE, POE-ISO and Gateway
Due to the latest changes in the ethernet library/examples (#9242) full package of definitions of the ethernet macros is for each board that has non-default values.
For POE and POE-ISO is added a preprocessor condition #if defined BOARD_HAS_PSRAM due to our specific hardware because GPIO 16 and 17 are in use when PSRAM is enabled.
Copy file name to clipboardExpand all lines: variants/esp32-poe-iso/pins_arduino.h
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,17 @@
3
3
4
4
#include<stdint.h>
5
5
6
-
#defineETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
7
-
#defineETH_PHY_POWER 12
6
+
#defineETH_PHY_TYPE ETH_PHY_LAN8720
7
+
#defineETH_PHY_ADDR 0
8
+
#defineETH_PHY_MDC 23
9
+
#defineETH_PHY_MDIO 18
10
+
#defineETH_PHY_POWER 12
11
+
#if defined BOARD_HAS_PSRAM// when PSRAM is enabled pins 16 and 17 are used for the PSRAM and alternative pins are used for respectively I2C SCL and Ethernet Clock GPIO
12
+
#defineETH_CLK_MODE ETH_CLOCK_GPIO0_OUT
13
+
#else
14
+
#defineETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
15
+
#endif
16
+
8
17
9
18
staticconstuint8_tKEY_BUILTIN=34;
10
19
@@ -18,7 +27,11 @@ static const uint8_t RX = 3;
18
27
#defineRX2 35 // ext2 pin 3
19
28
20
29
staticconstuint8_tSDA=13;
30
+
#if defined BOARD_HAS_PSRAM// when PSRAM is enabled pins 16 and 17 are used for the PSRAM and alternative pins are used for respectively I2C SCL and Ethernet Clock GPIO
Copy file name to clipboardExpand all lines: variants/esp32-poe/pins_arduino.h
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,17 @@
3
3
4
4
#include<stdint.h>
5
5
6
-
#defineETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
7
-
#defineETH_PHY_POWER 12
6
+
#defineETH_PHY_TYPE ETH_PHY_LAN8720
7
+
#defineETH_PHY_ADDR 0
8
+
#defineETH_PHY_MDC 23
9
+
#defineETH_PHY_MDIO 18
10
+
#defineETH_PHY_POWER 12
11
+
#if defined BOARD_HAS_PSRAM// when PSRAM is enabled pins 16 and 17 are used for the PSRAM and alternative pins are used for respectively I2C SCL and Ethernet Clock GPIO
12
+
#defineETH_CLK_MODE ETH_CLOCK_GPIO0_OUT
13
+
#else
14
+
#defineETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
15
+
#endif
16
+
8
17
9
18
staticconstuint8_tKEY_BUILTIN=34;
10
19
@@ -18,7 +27,11 @@ static const uint8_t RX = 3;
18
27
#defineRX2 35 // ext2 pin 3
19
28
20
29
staticconstuint8_tSDA=13;
30
+
#if defined BOARD_HAS_PSRAM// when PSRAM is enabled pins 16 and 17 are used for the PSRAM and alternative pins are used for respectively I2C SCL and Ethernet Clock GPIO
0 commit comments