Add GPIO function to configure a pin for external interrupt.
Add external interrupt support for STM32.
Add an exemple when using an external interrupt.
Tested only on a STM32F103 board.