summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblmorris <bryan.morrissey@gmail.com>2015-07-08 14:46:35 -0400
committerDamien George <damien.p.george@gmail.com>2015-07-20 16:19:12 +0100
commit2af846e7114e98c2883061ffbd0e43adc24033d3 (patch)
tree5b523e416b3d3f550710c1c5e477f684be591729
parent4915c2b8718b3e4efaa0992b35c37049ccbb078c (diff)
stmhal/boards/stm32fxx_prefix.c: Fix alt function number calculation
This prevented pin_find_af* functions from being able to find some of the alternate functions in the pin struct
-rw-r--r--stmhal/boards/stm32f4xx_prefix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/boards/stm32f4xx_prefix.c b/stmhal/boards/stm32f4xx_prefix.c
index f47394277..529e0f0c3 100644
--- a/stmhal/boards/stm32f4xx_prefix.c
+++ b/stmhal/boards/stm32f4xx_prefix.c
@@ -23,7 +23,7 @@
.name = MP_QSTR_ ## p_port ## p_pin, \
.port = PORT_ ## p_port, \
.pin = (p_pin), \
- .num_af = (sizeof(p_af) / sizeof(pin_obj_t)), \
+ .num_af = (sizeof(p_af) / sizeof(pin_af_obj_t)), \
.pin_mask = (1 << ((p_pin) & 0x0f)), \
.gpio = GPIO ## p_port, \
.af = p_af, \