Rename hasp_ethernet driver for stm32

This commit is contained in:
fvanroie 2020-11-22 17:20:37 +01:00
parent 24c89ef5b6
commit 5cdf3ca380
3 changed files with 8 additions and 12 deletions

View File

@ -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

View File

@ -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);