If the feature periph_timer_query_freqs is provided, use the corresponding function to iterate over all supported frequencies to increase test coverage.