Browse Source

Force platform pin defs to be included (#16611)

* Force platform pin defs to be included

* Always grab first header
pull/16614/head
Joel Challis 2 years ago
committed by GitHub
parent
commit
7e6f1c9e08
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 2 deletions
  1. +0
    -0
      platforms/arm_atsam/_pin_defs.h
  2. +0
    -0
      platforms/avr/_pin_defs.h
  3. +0
    -0
      platforms/chibios/_pin_defs.h
  4. +2
    -2
      platforms/pin_defs.h

platforms/arm_atsam/pin_defs.h → platforms/arm_atsam/_pin_defs.h View File


platforms/avr/pin_defs.h → platforms/avr/_pin_defs.h View File


platforms/chibios/pin_defs.h → platforms/chibios/_pin_defs.h View File


+ 2
- 2
platforms/pin_defs.h 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

Loading…
Cancel
Save