stm32f4: Update GPIODirection usage
stm32f4: Fix uint casts
stm32f4: Fix abort usages
Merge pull request #88 from bgamari/stm32-fixes

STM32F4 fixes

Reviewed-by: farcaller