summaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-03-10 23:53:16 +0000
committerGitHub <noreply@github.com>2022-03-10 23:53:16 +0000
commit7e6f1c9e08874933618bf97c0e338fce44aa2713 (patch)
tree9cb385071a1c034f8dad11709ab947c8f888f68f /platforms
parente9458fd694362ec77a2dee25b4a95765ade25632 (diff)
Force platform pin defs to be included (#16611)
* Force platform pin defs to be included * Always grab first header
Diffstat (limited to 'platforms')
-rw-r--r--platforms/arm_atsam/_pin_defs.h (renamed from platforms/arm_atsam/pin_defs.h)0
-rw-r--r--platforms/avr/_pin_defs.h (renamed from platforms/avr/pin_defs.h)0
-rw-r--r--platforms/chibios/_pin_defs.h (renamed from platforms/chibios/pin_defs.h)0
-rw-r--r--platforms/pin_defs.h4
4 files changed, 2 insertions, 2 deletions
diff --git a/platforms/arm_atsam/pin_defs.h b/platforms/arm_atsam/_pin_defs.h
index 5b50b23910..5b50b23910 100644
--- a/platforms/arm_atsam/pin_defs.h
+++ b/platforms/arm_atsam/_pin_defs.h
diff --git a/platforms/avr/pin_defs.h b/platforms/avr/_pin_defs.h
index 3889704a87..3889704a87 100644
--- a/platforms/avr/pin_defs.h
+++ b/platforms/avr/_pin_defs.h
diff --git a/platforms/chibios/pin_defs.h b/platforms/chibios/_pin_defs.h
index c03f8de0c2..c03f8de0c2 100644
--- a/platforms/chibios/pin_defs.h
+++ b/platforms/chibios/_pin_defs.h
diff --git a/platforms/pin_defs.h b/platforms/pin_defs.h
index ea730138f2..341fe89b6e 100644
--- a/platforms/pin_defs.h
+++ b/platforms/pin_defs.h
@@ -18,6 +18,6 @@
// useful for direct pin mapping
#define NO_PIN (pin_t)(~0)
-#if __has_include_next("pin_defs.h")
-# include_next "pin_defs.h" /* Include the platforms pin_defs.h */
+#if __has_include("_pin_defs.h")
+# include "_pin_defs.h" /* Include the platforms pin defs */
#endif