mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
Add HASP_USE_ETHSPI
This commit is contained in:
parent
ac2aa275c5
commit
14ba13eb02
@ -1,19 +1,20 @@
|
||||
/* MIT License - Copyright (c) 2022 Ben Suffolk, ben@vanilla.net
|
||||
For full license information read the LICENSE file in the project folder */
|
||||
|
||||
#if defined(HASP_USE_ETHSPI)
|
||||
|
||||
#include "ETHSPI.h"
|
||||
#include "esp_netif.h"
|
||||
#include "esp_eth.h"
|
||||
#include "esp_eth_mac.h"
|
||||
#include "esp_event.h"
|
||||
#include "esp_log.h"
|
||||
#include "driver/gpio.h"
|
||||
#include "sdkconfig.h"
|
||||
#include "lwip/err.h"
|
||||
#include "lwip/dns.h"
|
||||
|
||||
extern void tcpipInit();
|
||||
|
||||
|
||||
ETHSPIClass::ETHSPIClass()
|
||||
:initialized(false)
|
||||
,staticIP(false)
|
||||
@ -339,3 +340,5 @@ String ETHSPIClass::macAddress(void)
|
||||
}
|
||||
|
||||
ETHSPIClass ETHSPI;
|
||||
|
||||
#endif
|
@ -10,7 +10,7 @@
|
||||
#include "driver/spi_master.h"
|
||||
|
||||
#ifndef ETHSPI_HOST
|
||||
#define ETHSPI_HOST HSPI_HOST
|
||||
#define ETHSPI_HOST SPI2_HOST
|
||||
#endif
|
||||
|
||||
#ifndef ETHSPI_CLOCK_MHZ
|
||||
|
Loading…
x
Reference in New Issue
Block a user