Skip to content
Snippets Groups Projects
Commit 2af846e7 authored by blmorris's avatar blmorris Committed by Damien George
Browse files

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
parent 4915c2b8
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
.name = MP_QSTR_ ## p_port ## p_pin, \ .name = MP_QSTR_ ## p_port ## p_pin, \
.port = PORT_ ## p_port, \ .port = PORT_ ## p_port, \
.pin = (p_pin), \ .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)), \ .pin_mask = (1 << ((p_pin) & 0x0f)), \
.gpio = GPIO ## p_port, \ .gpio = GPIO ## p_port, \
.af = p_af, \ .af = p_af, \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment