SAMPLING_TIME
*th = clk_get_rate(sensor->clk) * SAMPLING_TIME / freqM;
freqM = (clk_get_rate(sensor->clk) * SAMPLING_TIME) / periods;