Fix build errors on ESP32 ethernet

This commit is contained in:
fvanroie 2021-02-24 03:09:05 +01:00
parent 38f80b0b91
commit 45a364c076
5 changed files with 7 additions and 2 deletions

View File

@ -160,7 +160,7 @@ static WiFiSpiClass WiFi;
#define ETH_TYPE ETH_PHY_LAN8720 #define ETH_TYPE ETH_PHY_LAN8720
#define ETH_CLKMODE ETH_CLOCK_GPIO17_OUT #define ETH_CLKMODE ETH_CLOCK_GPIO17_OUT
#include "net/hasp_ethernet_esp32.h" #include "sys/net/hasp_ethernet_esp32.h"
#warning Using ESP32 Ethernet LAN8720 #warning Using ESP32 Ethernet LAN8720
#else #else

View File

@ -5,6 +5,7 @@
#define HASP_MQTT_H #define HASP_MQTT_H
#include <stdint.h> #include <stdint.h>
#include "ArduinoJson.h"
#include "hasp_conf.h" #include "hasp_conf.h"

View File

@ -2,10 +2,12 @@
For full license information read the LICENSE file in the project folder */ For full license information read the LICENSE file in the project folder */
#include "hasp_conf.h" #include "hasp_conf.h"
#include "hal/hasp_hal.h"
#include "hasp_debug.h" #include "hasp_debug.h"
#include "hasp_network.h" #include "hasp_network.h"
#include "hal/hasp_hal.h"
#include "dev/device.h"
#if HASP_USE_ETHERNET > 0 && defined(ARDUINO_ARCH_ESP32) #if HASP_USE_ETHERNET > 0 && defined(ARDUINO_ARCH_ESP32)
IPAddress ip; IPAddress ip;

View File

@ -9,6 +9,7 @@ static bool eth_connected = false;
void ethernetSetup(); void ethernetSetup();
void ethernetLoop(void); void ethernetLoop(void);
bool ethernetEverySecond();
bool ethernetEvery5Seconds(); bool ethernetEvery5Seconds();
void ethernet_get_statusupdate(char* buffer, size_t len); void ethernet_get_statusupdate(char* buffer, size_t len);

View File

@ -9,6 +9,7 @@ static bool eth_connected = false;
void ethernetSetup(); void ethernetSetup();
void ethernetLoop(void); void ethernetLoop(void);
bool ethernetEverySecond();
bool ethernetEvery5Seconds(); bool ethernetEvery5Seconds();
void ethernet_get_statusupdate(char* buffer, size_t len); void ethernet_get_statusupdate(char* buffer, size_t len);