From 10e6ef9b1bad66b1f594b3805cbdf603f4d3ba36 Mon Sep 17 00:00:00 2001 From: "Frederic.Pillon" Date: Wed, 23 Aug 2017 17:09:11 +0200 Subject: [PATCH] Add support for STM32 MCU based boards Signed-off-by: Frederic.Pillon --- src/utility/Adafruit_ST7735.h | 3 ++- src/utility/glcdfont.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utility/Adafruit_ST7735.h b/src/utility/Adafruit_ST7735.h index 077045d..fbbd6ab 100644 --- a/src/utility/Adafruit_ST7735.h +++ b/src/utility/Adafruit_ST7735.h @@ -139,7 +139,8 @@ class Adafruit_ST7735 : public Adafruit_GFX { #ifdef SPI_HAS_TRANSACTION SPISettings spisettings; #endif -#if defined(ARDUINO_ARCH_SAM) || defined(__ARDUINO_ARC__) +#if defined(ARDUINO_ARCH_SAM) || defined(__ARDUINO_ARC__) || \ + defined(ARDUINO_ARCH_STM32) volatile uint32_t *dataport, *clkport, *csport, *rsport; uint32_t _cs, _rs, _rst, _sid, _sclk, datapinmask, clkpinmask, cspinmask, rspinmask, diff --git a/src/utility/glcdfont.c b/src/utility/glcdfont.c index 2f857b0..0bf812e 100644 --- a/src/utility/glcdfont.c +++ b/src/utility/glcdfont.c @@ -1,4 +1,5 @@ -#if !defined(ARDUINO_ARCH_SAM) && !defined(__ARDUINO_ARC__) +#if !defined(ARDUINO_ARCH_SAM) && !defined(__ARDUINO_ARC__) && \ + !defined(ARDUINO_ARCH_STM32) #include #endif #include