2019-07-03 03:29 AM
WHICH ONE IS BEST?
i have seen three methods:
1, in_floating http://www.micromouseonline.com/2009/12/31/stm32-usart-basics/
2, GPIO_MODE_AF_OD https://visualgdb.com/tutorials/arm/stm32/uart/hal/
3, GPIO_MODE_AF_PP
2019-07-03 04:56 AM
Floating is a method used in the F1 series. For the F4 use AF_PP and let the peripheral control the pin driver internally.
For things like I2C pins use AF_OD