Stm32 Gpio Example. This article explains how to configure GPIO input and output pins