Hi guys
i need to use "Capture timer" in rt-thread.
i'm use in bare metal (without RTOS) of below code for two channel in one timer:
my configure in CubeMX:
void HAL_TIM_IC_CaptureCallback (TIM_HandleTypeDef *htim)
{
if(htim->Channel==HAL_TIM_ACTIVE_CHANNEL_1)
{
// code for channel 1
}
else if(htim->Channel==HAL_TIM_ACTIVE_CHANNEL_2)
{
//code for cahnnel 2
}
and i have enable "RT- Input capture " in component but i don't know what to do next?:
thanks for responsived
This components TAB only adds our driver framework to it.the actual underlying driver implementation is in the Hardware TAB.
If not, then you need to implement the underlying driver yourself.
Please pay attention to the red box.
i don't have the "hardware" tab.
@mrabedini
Well, then you need to implement the underlying input capture driver yourself.