Question
The__HANDLE__ para in the functions, how to call
Posted on February 27, 2018 at 04:11
When I use this function __HAL_TIM_SET_COMPARE(__HANDLE__, __CHANNEL__, __COMPARE__) like this:
__HAL_TIM_SET_COMPARE(&htim3,TIM_CHANNEL_2,10);
//I should use the '&' with the handle para.
what will happen if I use it like
__HAL_TIM_SET_COMPARE(htim3,TIM_CHANNEL_2,10) without '&'?
But when I use IWDG funtion __HAL_IWDG_RELOAD_COUNTER(__HANDLE__):
__HAL_IWDG_RELOAD_COUNTER(hiwdg);
//why no '&' here?
#stm32f0-hal #__handle__ #stm32