Fixed hal_timer Ticks-Per-Second calculation