mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Rename hasp_ethernet driver for stm32
This commit is contained in:
parent
24c89ef5b6
commit
5cdf3ca380
@ -122,7 +122,12 @@
|
||||
|
||||
#if HASP_USE_WIFI > 0
|
||||
#include "hasp_wifi.h"
|
||||
|
||||
#if defined(STM32F4xx)
|
||||
#include "WiFiSpi.h"
|
||||
static WiFiSpiClass WiFi;
|
||||
#endif
|
||||
#endif // HASP_USE_WIFI
|
||||
|
||||
#if HASP_USE_ETHERNET > 0
|
||||
#if defined(ARDUINO_ARCH_ESP32)
|
||||
@ -152,7 +157,7 @@
|
||||
#include "Ethernet.h"
|
||||
#warning Use W5x00 Ethernet shield
|
||||
#endif
|
||||
#include "hasp_ethernet.h"
|
||||
#include "hasp_ethernet_stm32.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -195,15 +200,6 @@
|
||||
#include "hasp_slave.h"
|
||||
#endif
|
||||
|
||||
#if HASP_USE_ETHERNET > 0
|
||||
#include "hasp_ethernet.h"
|
||||
#endif
|
||||
|
||||
#if HASP_USE_WIFI > 0 && defined(STM32F4xx)
|
||||
#include "WiFiSpi.h"
|
||||
static WiFiSpiClass WiFi;
|
||||
#endif
|
||||
|
||||
#ifndef FPSTR
|
||||
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
|
||||
#endif
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* MIT License - Copyright (c) 2020 Francis Van Roie
|
||||
For full license information read the LICENSE file in the project folder */
|
||||
|
||||
#ifndef HASP_ETHERNET_H
|
||||
#define HASP_ETHERNET_H
|
||||
#ifndef HASP_ETHERNET_STM32_H
|
||||
#define HASP_ETHERNET_STM32_H
|
||||
|
||||
void ethernetSetup();
|
||||
void ethernetLoop(void);
|
Loading…
x
Reference in New Issue
Block a user