* using `stm32-hal`: ```rust let _pwm_pin = gpioa.new_pin(PinNum::P0, PinMode::Alt(AltFn::Af1)); let mut ec_timer = Timer::new_tim2(dp.TIM2, 2_400., &clock_cfg, &mut dp.RCC); ec_timer.enable_pwm_output(Channel::One, OutputCompare::Pwm1, CountDir::Up, 0.5); ec_timer.enable(); ```