Fixes for STM32F4

This commit is contained in:
fvanroie 2021-02-24 23:06:51 +01:00
parent 6c6f645692
commit 87557f8b05

View File

@ -176,7 +176,7 @@ static WiFiSpiClass WiFi;
#include "Ethernet.h" #include "Ethernet.h"
#warning Use W5x00 Ethernet shield #warning Use W5x00 Ethernet shield
#endif #endif
#include "net/hasp_ethernet_stm32.h" #include "sys/net/hasp_ethernet_stm32.h"
#endif #endif
#endif #endif
@ -222,15 +222,6 @@ static WiFiSpiClass WiFi;
#include "sys/svc/hasp_slave.h" #include "sys/svc/hasp_slave.h"
#endif #endif
#ifdef WINDOWS
#ifndef FPSTR
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper*>(pstr_pointer))
#endif
#ifndef __FlashStringHelper
#define __FlashStringHelper char
#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
@ -239,6 +230,11 @@ static WiFiSpiClass WiFi;
#define PGM_P const char* #define PGM_P const char*
#endif #endif
#if defined(WINDOWS)
#ifndef __FlashStringHelper
#define __FlashStringHelper char
#endif
#ifndef F #ifndef F
#define F(x) (x) #define F(x) (x)
#endif #endif