timer: stm32f2xx_timer: add check for prescaler value