Force platform pin defs to be included (#16611)

* Force platform pin defs to be included

* Always grab first header
This commit is contained in:
Joel Challis 2022-03-10 23:53:16 +00:00 committed by GitHub
parent e9458fd694
commit 7e6f1c9e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 2 deletions

View File

@ -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