summaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-03-11 18:50:59 +0000
committerGitHub <noreply@github.com>2022-03-11 18:50:59 +0000
commitdd32cdf527d4647a9488b1b4c142fff1d663bc56 (patch)
tree17a5a3acc20b7389a1cf5f8d2167b6f6710b7a35 /platforms
parent0eb42e042cb161d961d4d0fd6351eeed122f1e0c (diff)
Redo workaround for pin_def errors on KINETIS (#16620)
* Redo workaround for pin_def errors on KINETIS * Redo workaround for pin_def errors on KINETIS
Diffstat (limited to 'platforms')
-rw-r--r--platforms/chibios/_pin_defs.h6
-rw-r--r--platforms/pin_defs.h4
2 files changed, 6 insertions, 4 deletions
diff --git a/platforms/chibios/_pin_defs.h b/platforms/chibios/_pin_defs.h
index c03f8de0c2..a84d931cc2 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 <hal.h>
+#endif
+
// Defines mapping for Proton C replacement
#ifdef CONVERT_TO_PROTON_C
// Left side (front)
diff --git a/platforms/pin_defs.h b/platforms/pin_defs.h
index af2c415f40..341fe89b6e 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)