Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
5f983707
Unverified
Commit
5f983707
authored
Jan 11, 2021
by
Keegan Morrow
Committed by
GitHub
Jan 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add IP101 support (#4620)
parent
81b9130d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
libraries/WiFi/src/ETH.cpp
libraries/WiFi/src/ETH.cpp
+4
-0
libraries/WiFi/src/ETH.h
libraries/WiFi/src/ETH.h
+1
-1
No files found.
libraries/WiFi/src/ETH.cpp
View file @
5f983707
...
...
@@ -22,6 +22,7 @@
#include "eth_phy/phy.h"
#include "eth_phy/phy_tlk110.h"
#include "eth_phy/phy_lan8720.h"
#include "eth_phy/phy_ip101.h"
#include "lwip/err.h"
#include "lwip/dns.h"
...
...
@@ -78,6 +79,9 @@ bool ETHClass::begin(uint8_t phy_addr, int power, int mdc, int mdio, eth_phy_typ
}
else
if
(
type
==
ETH_PHY_TLK110
){
eth_config_t
config
=
phy_tlk110_default_ethernet_config
;
memcpy
(
&
eth_config
,
&
config
,
sizeof
(
eth_config_t
));
}
else
if
(
type
==
ETH_PHY_IP101
)
{
eth_config_t
config
=
phy_ip101_default_ethernet_config
;
memcpy
(
&
eth_config
,
&
config
,
sizeof
(
eth_config_t
));
}
else
{
log_e
(
"Bad ETH_PHY type: %u"
,
(
uint8_t
)
type
);
return
false
;
...
...
libraries/WiFi/src/ETH.h
View file @
5f983707
...
...
@@ -48,7 +48,7 @@
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
#endif
typedef
enum
{
ETH_PHY_LAN8720
,
ETH_PHY_TLK110
,
ETH_PHY_MAX
}
eth_phy_type_t
;
typedef
enum
{
ETH_PHY_LAN8720
,
ETH_PHY_TLK110
,
ETH_PHY_
IP101
,
ETH_PHY_
MAX
}
eth_phy_type_t
;
class
ETHClass
{
private:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment