2018-11-18 01:24 AM
When enabling a peripheral in STM32CubeMx (switch from disable to enable) Does this mean that its clock wil be activated in the program after generating the initialization code for a given IDE
and we don't need to insert the __HAL_RCC_peripheral_CLK_ENABLE() function ?
thank you
Wissem
Solved! Go to Solution.
2018-11-19 03:33 AM
Yes, STM32CubeMX's code generator takes care of that.
<grumpy mode>
You could have easily checked it yourself in a minute by enabling a peripheral and observing the generated code, but I guess it's easier to ask :)
</grumpy mode>
2018-11-19 03:33 AM
Yes, STM32CubeMX's code generator takes care of that.
<grumpy mode>
You could have easily checked it yourself in a minute by enabling a peripheral and observing the generated code, but I guess it's easier to ask :)
</grumpy mode>