cancel
Showing results for 
Search instead for 
Did you mean: 

In some cases HAL_UART_DeInit is used before using HAL_UART_Init, why is that?

LTech
Associate III

In some cases HAL_UART_DeInit is used before using HAL_UART_Init, why is that?

3 REPLIES 3
Pavel A.
Evangelist III

This probably depends on the case. Could you give examples?

-- pa

LTech
Associate III

Not really :grinning_face: since I don't know when it is used and when it isn't used. Perhaps you can give some cases where HAL_UART_DeInit should be used and explain why?

S.Ma
Principal

Deinit is to me to restore the peripheral to is after reset state.