cancel
Showing results for 
Search instead for 
Did you mean: 

usart RX pin configure

David.Cheng
Associate II

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

1 REPLY 1

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​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..