Set PC7 as debug port
Fix TIM1 period calculation