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