cpu/stm32f1: fixed gpio driver

- changed #ifdef to #if for device filter
- guarded file in case no GPIO device is defined
- added guards around interrupts