From 5460974d2e84773c6bc67149fab49c5b6653c65f Mon Sep 17 00:00:00 2001 From: zvecr Date: Fri, 11 Mar 2022 15:52:32 +0000 Subject: [PATCH 1/2] Redo workaround for pin_def errors on KINETIS --- platforms/chibios/_pin_defs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platforms/chibios/_pin_defs.h b/platforms/chibios/_pin_defs.h index c03f8de0c253..a84d931cc20c 100644 --- a/platforms/chibios/_pin_defs.h +++ b/platforms/chibios/_pin_defs.h @@ -15,6 +15,12 @@ */ #pragma once +#if defined(MCU_KINETIS) +// TODO: including this avoids "error: expected identifier before '(' token" errors +// here just to please KINETIS builds... +# include +#endif + // Defines mapping for Proton C replacement #ifdef CONVERT_TO_PROTON_C // Left side (front) From ff07cde1f982dabe28b924deedbc69b179ce4f23 Mon Sep 17 00:00:00 2001 From: zvecr Date: Fri, 11 Mar 2022 16:15:01 +0000 Subject: [PATCH 2/2] Redo workaround for pin_def errors on KINETIS --- platforms/pin_defs.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/platforms/pin_defs.h b/platforms/pin_defs.h index af2c415f400f..341fe89b6e9f 100644 --- a/platforms/pin_defs.h +++ b/platforms/pin_defs.h @@ -15,10 +15,6 @@ */ #pragma once -// TODO: including this avoids "error: expected identifier before '(' token" errors -// here just to please KINETIS builds... -#include "platform_deps.h" - // useful for direct pin mapping #define NO_PIN (pin_t)(~0)