8 years, 7 months ago.

same Pin number with different port

Have you tested the same PIN number but with different port number? For example, set interrupt in both PB_6 and PA_6, does them work fine? I met a problem.

1 Answer

8 years, 7 months ago.

Correct, this is not supported by STM32 hardware. You can only do interrupts on differently numbered pins (regardless of the port they are connected to).

Accepted Answer

It's better to return an error code.

posted by Ma Yunfei 13 Sep 2015

True, but in this case thats either said than done. It is easier on a target which for example cant have interrupts on Port A.

posted by Erik - 13 Sep 2015