Skip to main content
turboscrew
Senior III
Jan 16, 2019 12:19 PM UTC
Question

MX_***_Deinit ?

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
Nov 26, 2020 4:21 PM UTC

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
Nov 26, 2020 4:52 PM UTC

Best Deinit() is Reset ;)

turboscrew
Senior III
Nov 28, 2020 12:42 PM UTC

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