AnsweredAssumed Answered

The__HANDLE__ para in the functions, how to call

Question asked by AMP HF on Feb 27, 2018
Latest reply on Feb 27, 2018 by Clive One

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?

Outcomes