Example of EXTI on STM32F072RB (STM32F072B-DISCO board) in BareMetal.
Toolchain: gcc version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 224288] (GNU Tools for ARM Embedded Processors)
Enable DEBUG in file config.h by set DEBUG to 1.