mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Cast return type of sizeof on the ESP8266 and ESP32
This commit is contained in:
parent
dc1cdada87
commit
a017f0f311
1 changed files with 4 additions and 0 deletions
|
@ -156,6 +156,10 @@ e-mail : support@circuitsathome.com
|
||||||
#include <../../../../hardware/pic32/libraries/SPI/SPI.h> // Hack to use the SPI library
|
#include <../../../../hardware/pic32/libraries/SPI/SPI.h> // Hack to use the SPI library
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(ESP8266) || defined(ESP32)
|
||||||
|
#define MFK_CASTUINT8T (uint8_t) // ESP return type for sizeof needs casting to uint8_t
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef STM32F4
|
#ifdef STM32F4
|
||||||
#include "stm32f4xx_hal.h"
|
#include "stm32f4xx_hal.h"
|
||||||
extern SPI_HandleTypeDef SPI_Handle; // Needed to be declared in your main.cpp
|
extern SPI_HandleTypeDef SPI_Handle; // Needed to be declared in your main.cpp
|
||||||
|
|
Loading…
Reference in a new issue