[stm32] stm32f1xx: support legacy GPIO API