cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F439 GPIO Initialization state

PV C
Associate II

If we initialize the GPIO pin as Mode output pp, pull up and speed_fast using HAL_GPIO_Init()​ API then what will be the state of the GPIO pin when pin status is not set using HAL_GPIO_WritePin()

1 REPLY 1
Peter BENSCH
ST Employee

The state is defined by the reset value of register GPIOx_ODR, which is by default 0x00000000, i.e. low (see RM0090, sections 8.3.4 and 8.4.6).

If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.