Преглед на файлове

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
Joel Challis преди 3 години
родител
ревизия
dd32cdf527
променени са 2 файла, в които са добавени 6 реда и са изтрити 4 реда
  1. 6 0
      platforms/chibios/_pin_defs.h
  2. 0 4
      platforms/pin_defs.h

+ 6 - 0
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)

+ 0 - 4
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)