|
|
@ -100,13 +100,16 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) |
|
|
|
|
|
|
|
void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) |
|
|
|
{ |
|
|
|
if (htim == &htim4) |
|
|
|
{ |
|
|
|
if (htim->Channel == HAL_TIM_ACTIVE_CHANNEL_1) |
|
|
|
{ |
|
|
|
printf("channel 1\r\n"); |
|
|
|
printf("tim4 channel 1\r\n"); |
|
|
|
} |
|
|
|
else if (htim->Channel == HAL_TIM_ACTIVE_CHANNEL_2) |
|
|
|
{ |
|
|
|
printf("channel 2\r\n"); |
|
|
|
printf("tim4 channel 2\r\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|