Skip to main content
turboscrew
Senior III
January 16, 2019
Question

MX_***_Deinit ?

  • January 16, 2019
  • 3 replies
  • 900 views

Am I suffering from acute dementia, or what...

I recall CubeMX used to generate Deinit counterpart for each generated MX_***_Init.

Like MX_GPIO_Init() and MX_GPIO_Deinit().

Is my memory playing games with me, or is that deinitialization disappeared?

This topic has been closed for replies.

3 replies

Khouloud ZEMMELI
ST Employee
November 26, 2020

Hello @turboscrew​ 

Normally CubeMX generates only MX_.._Init functions , maybe you are talking about HAL_.._MspDeInit and HAL_.._MspInit functions which are generated under hal_msp.c file.

Best Regards,

Khouloud

Uwe Bonnes
Chief
November 26, 2020

Best Deinit() is Reset ;)

turboscrew
Senior III
November 28, 2020

It could well be that my memory is playing games with me. But I'm referring to times before CubeIDE.