Skip to main content
LTech
Associate III
March 1, 2019
Question

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

  • March 1, 2019
  • 3 replies
  • 1004 views

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

This topic has been closed for replies.

3 replies

Pavel A.
March 2, 2019

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

-- pa

LTech
LTechAuthor
Associate III
March 8, 2019

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
March 8, 2019

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