79573714

Date: 2025-04-14 17:32:03
Score: 2
Natty:
Report link

PR has to be set to 1 in order to work correctly
I used: EXTI->PR &= ~(1); this sets the bit to 0
Whats would be right?
EXTI->PR |= 1;

This only works for EXTI0 because it sets the LSB to 1 not individually. One would have to move the bit to the corresponding EXTI.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Trebor