From 6899ed20263722541b9f49e080afa1314faaea25 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 20 Jul 2019 22:19:48 -0500 Subject: [PATCH] Update some platform includes --- .../BIGTREE_GENERIC_STM32F407_5X/PeripheralPins.c | 4 ++-- .../variants/BIGTREE_GENERIC_STM32F407_5X/variant.h | 8 ++------ .../PlatformIO/variants/MARLIN_F407VE/PeripheralPins.c | 4 ++-- .../share/PlatformIO/variants/MARLIN_F407VE/variant.h | 8 ++------ 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/buildroot/share/PlatformIO/variants/BIGTREE_GENERIC_STM32F407_5X/PeripheralPins.c b/buildroot/share/PlatformIO/variants/BIGTREE_GENERIC_STM32F407_5X/PeripheralPins.c index 63763e9db..28504fc10 100644 --- a/buildroot/share/PlatformIO/variants/BIGTREE_GENERIC_STM32F407_5X/PeripheralPins.c +++ b/buildroot/share/PlatformIO/variants/BIGTREE_GENERIC_STM32F407_5X/PeripheralPins.c @@ -28,8 +28,8 @@ ******************************************************************************* * Automatically generated from STM32F407Z(E-G)Tx.xml */ -#include "Arduino.h" -#include "PeripheralPins.h" +#include +#include /* ===== * Note: Commented lines are alternative possibilities which are not used by default. diff --git a/buildroot/share/PlatformIO/variants/BIGTREE_GENERIC_STM32F407_5X/variant.h b/buildroot/share/PlatformIO/variants/BIGTREE_GENERIC_STM32F407_5X/variant.h index 542f6c377..ae95d7d1a 100644 --- a/buildroot/share/PlatformIO/variants/BIGTREE_GENERIC_STM32F407_5X/variant.h +++ b/buildroot/share/PlatformIO/variants/BIGTREE_GENERIC_STM32F407_5X/variant.h @@ -27,14 +27,12 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ******************************************************************************* */ - -#ifndef _VARIANT_ARDUINO_STM32_ -#define _VARIANT_ARDUINO_STM32_ +#pragma once /*---------------------------------------------------------------------------- * Headers *----------------------------------------------------------------------------*/ -#include "PeripheralPins.h" +#include #ifdef __cplusplus extern "C" { @@ -292,5 +290,3 @@ extern const PinName digitalPin[]; #define SERIAL_PORT_MONITOR Serial #define SERIAL_PORT_HARDWARE Serial1 #endif - -#endif /* _VARIANT_ARDUINO_STM32_ */ diff --git a/buildroot/share/PlatformIO/variants/MARLIN_F407VE/PeripheralPins.c b/buildroot/share/PlatformIO/variants/MARLIN_F407VE/PeripheralPins.c index 4e6a71d80..f76cc14bf 100644 --- a/buildroot/share/PlatformIO/variants/MARLIN_F407VE/PeripheralPins.c +++ b/buildroot/share/PlatformIO/variants/MARLIN_F407VE/PeripheralPins.c @@ -28,8 +28,8 @@ ******************************************************************************* * Automatically generated from STM32F407Z(E-G)Tx.xml */ -#include "Arduino.h" -#include "PeripheralPins.h" +#include +#include /* ===== * Note: Commented lines are alternative possibilities which are not used per default. diff --git a/buildroot/share/PlatformIO/variants/MARLIN_F407VE/variant.h b/buildroot/share/PlatformIO/variants/MARLIN_F407VE/variant.h index 9e383114e..c0a29322f 100644 --- a/buildroot/share/PlatformIO/variants/MARLIN_F407VE/variant.h +++ b/buildroot/share/PlatformIO/variants/MARLIN_F407VE/variant.h @@ -27,14 +27,12 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ******************************************************************************* */ - -#ifndef _VARIANT_ARDUINO_STM32_ -#define _VARIANT_ARDUINO_STM32_ +#pragma once /*---------------------------------------------------------------------------- * Headers *----------------------------------------------------------------------------*/ -#include "PeripheralPins.h" +#include #ifdef __cplusplus extern "C" { @@ -215,5 +213,3 @@ extern const PinName digitalPin[]; #define SERIAL_PORT_MONITOR Serial #define SERIAL_PORT_HARDWARE Serial1 #endif - -#endif /* _VARIANT_ARDUINO_STM32_ */