From 7e6f1c9e08874933618bf97c0e338fce44aa2713 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Thu, 10 Mar 2022 23:53:16 +0000 Subject: [PATCH] Force platform pin defs to be included (#16611) * Force platform pin defs to be included * Always grab first header --- platforms/arm_atsam/{pin_defs.h => _pin_defs.h} | 0 platforms/avr/{pin_defs.h => _pin_defs.h} | 0 platforms/chibios/{pin_defs.h => _pin_defs.h} | 0 platforms/pin_defs.h | 4 ++-- 4 files changed, 2 insertions(+), 2 deletions(-) rename platforms/arm_atsam/{pin_defs.h => _pin_defs.h} (100%) rename platforms/avr/{pin_defs.h => _pin_defs.h} (100%) rename platforms/chibios/{pin_defs.h => _pin_defs.h} (100%) diff --git a/platforms/arm_atsam/pin_defs.h b/platforms/arm_atsam/_pin_defs.h similarity index 100% rename from platforms/arm_atsam/pin_defs.h rename to platforms/arm_atsam/_pin_defs.h diff --git a/platforms/avr/pin_defs.h b/platforms/avr/_pin_defs.h similarity index 100% rename from platforms/avr/pin_defs.h rename to platforms/avr/_pin_defs.h diff --git a/platforms/chibios/pin_defs.h b/platforms/chibios/_pin_defs.h similarity index 100% rename from platforms/chibios/pin_defs.h rename to platforms/chibios/_pin_defs.h diff --git a/platforms/pin_defs.h b/platforms/pin_defs.h index ea730138f2f..341fe89b6e9 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