aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/pin.h
diff options
context:
space:
mode:
authorDamien George2018-03-27 20:25:24 +1100
committerDamien George2018-03-27 20:25:24 +1100
commit6b51eb22c8200124bd1639f542f7757edb82e736 (patch)
treebb5f3e830aa8b17918100533ab1de69036d9178b /ports/stm32/pin.h
parentb63cc1e9efb3618141b8f2cdd19ffd6823b73bb7 (diff)
stm32: Consolidate include of genhdr/pins.h to single location in pin.h.
genhdr/pins.h is an internal header file that defines all of the pin objects and it's cleaner to have pin.h include it (where the struct's for these objects are defined) rather than an explicit include by every user.
Diffstat (limited to 'ports/stm32/pin.h')
-rw-r--r--ports/stm32/pin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/stm32/pin.h b/ports/stm32/pin.h
index 2439ebbbe..b0e05256f 100644
--- a/ports/stm32/pin.h
+++ b/ports/stm32/pin.h
@@ -63,6 +63,9 @@ typedef struct {
extern const mp_obj_type_t pin_type;
extern const mp_obj_type_t pin_af_type;
+// Include all of the individual pin objects
+#include "genhdr/pins.h"
+
typedef struct {
const char *name;
const pin_obj_t *pin;