littlekernel / lk

LK embedded kernel
MIT License
3.12k stars 613 forks source link

[stm32f0xx] Correct register access for EXTI controller #221

Closed teisenbe closed 6 years ago

teisenbe commented 6 years ago

A bunch of the register access here didn't match STM's docs. The old code had a few bugs:

1) The EXTI4-15 handler would clear pending bits for interrupts 16-31. 2) GPIO interrupt configuration was very misindexed.