[stm32] fix get_timer_frequency

forgot to remove #if ADVANCED_TIMERS which I added when using it in locm3 timer_common_all.c