generation issue STM32CubeMX 5.6.1 - Timer init
When I generate for TIM9 input capture to measure a pulse width, CubeMX inserts correctly these two lines into the function MX_TIM9_Init:
if (HAL_TIM_IC_Init(&htim9) != HAL_OK)
{
Error_Handler();
}Then in the stm32fxx_hal_msp.c file it inserts a HAL_TIM_IC_MspInit with the TIM9 stuff in it.
But for TIM10:
If I also generate for TIM10 also for input capture to measure pulse width it now inserts these lines in the MX_TIM10_Init function:
if (HAL_TIM_Base_Init(&htim10) != HAL_OK)
{
Error_Handler();
}
if (HAL_TIM_IC_Init(&htim10) != HAL_OK)
{
Error_Handler();
}and in the stm32fxx_hal_msp.c file it inserts a HAL_TIM_Base_MspInit function instead of a HAL_TIM_IC_MspInit.
Why the 2 different behaviors for TIM9 and TIM10? I did manual code (without using CubeMX) could I get away using TIM9 annd TIM10 the same way (without the TIM_Base stuff) just sticking with HAL_TIM_IC_Mspinit for both timers?
Thanks
