cancel
Showing results for 
Search instead for 
Did you mean: 

MX_***_Deinit ?

turboscrew
Senior III

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?

3 REPLIES 3
Khouloud ZEMMELI
ST Employee

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
Principal II

Best Deinit() is Reset 😉

turboscrew
Senior III

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