aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/pin.h
diff options
context:
space:
mode:
authorDamien George2018-04-11 16:14:58 +1000
committerDamien George2018-04-11 16:14:58 +1000
commit0041396f05bc1f43657c343df6b291fc4bbdc901 (patch)
tree9b94c469899ca9737de050a4ed395bcf981b6617 /ports/stm32/pin.h
parentf1073e747d0489154942a0d0e0585bc6943df448 (diff)
stm32/pin: In pin AF object, remove union of periph ptr types.
The individual union members (like SPI, I2C) are never used, only the generic "reg" entry is. And the union names can clash with macro definitions in the HAL so better to remove them.
Diffstat (limited to 'ports/stm32/pin.h')
-rw-r--r--ports/stm32/pin.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/ports/stm32/pin.h b/ports/stm32/pin.h
index b0e05256f..ea57b0a27 100644
--- a/ports/stm32/pin.h
+++ b/ports/stm32/pin.h
@@ -39,12 +39,7 @@ typedef struct {
uint8_t fn;
uint8_t unit;
uint8_t type;
-
- union {
- void *reg;
-
- PIN_DEFS_PORT_AF_UNION
- };
+ void *reg; // The peripheral associated with this AF
} pin_af_obj_t;
typedef struct {