Hello,
I expect that when I enable the klick functions(one/double/short/long), define the threshold time in fsl_component_button.h and call
BUTTON_Init((button_handle_t)s_buttonHandle, &buttonConfig);
BUTTON_InstallCallback(&s_buttonHandle, button_callback, NULL);.
That then I get result in button_callback.
But the only event that I get is double klick. The timer to measure the threshold time is not initialized.
There must be an initialization call TM_Init(…) in BUTTON_OpenTimer but its not.
My fix is in fsl_component_button.h is in the zip Line 309 – 314.