3ad336a1eb
* Fix 2063 - Do not free pins unless allocated * Fix 2064: Allocate pins used for Ethernet * Fix obvious compilation errors. * Fix multiple bugs... * pinsAllocated[2] set twice due to copy/paste bug. * wrong pin allocated for ETH_CLOCK_GPIO17_OUT due to copy/paste bug * Stylistic change per PR review * Stylistic change per PR review * attempt to allocate pin for "default" button * remove extra local variable * check return value from ETH.begin() Co-authored-by: Christian Schwinne <dev.aircoookie@gmail.com>
18 lines
398 B
C
18 lines
398 B
C
#ifndef WLED_ETHERNET_H
|
|
#define WLED_ETHERNET_H
|
|
|
|
#ifdef WLED_USE_ETHERNET
|
|
// settings for various ethernet boards
|
|
typedef struct EthernetSettings {
|
|
uint8_t eth_address;
|
|
int eth_power;
|
|
int eth_mdc;
|
|
int eth_mdio;
|
|
eth_phy_type_t eth_type;
|
|
eth_clock_mode_t eth_clk_mode;
|
|
} ethernet_settings;
|
|
|
|
extern ethernet_settings ethernetBoards[];
|
|
#endif
|
|
|
|
#endif |