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
This commit is contained in:
blmorris 2015-07-08 14:46:35 -04:00 committed by Damien George
parent 4915c2b871
commit 2af846e711

View File

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