Stm32u083x lpuart3 half-duplex only open-drain on CubeMX
Hi
i working on stm32u083rctx with U0 fw package v1.3.0 and CubeMX 6.15. On CubeMX i initialized lpuart3 in half-duplex mode on PC4 pin. I notice that PC4 is only possible to set as open-drain. I want to select PC4 as push-pull. In function:
void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
if i change PC4 init line form:
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
to:
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
my code is working. I don't known if it is correct configure push-pull when lpuart3 is in half-duplex mode. So i ask if it's safe to do that. Thank you.
Best regards.
Enrico
