Solved
GPIO INPUT/OUTPUT
does any body know how to define a pin in CubeMX, so it would be GPIO_INPUT and GPIO_OUT at the same time?
I want to write to a pin and read it's state too
does any body know how to define a pin in CubeMX, so it would be GPIO_INPUT and GPIO_OUT at the same time?
I want to write to a pin and read it's state too
Yes, exactly. Take a note that you can read both - ODR and IDR registers. Normally they will show the same values, but theoretically in case of some short circuit, IDR will show the actual physical level of the pin. If it will still function... :)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.