You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
775 B

4 years ago
  1. # README
  2. ## TODO
  3. 支持windows图形界面
  4. ## 编译
  5. ```bash
  6. ./build.sh
  7. ```
  8. ## 使用
  9. ```bash
  10. # Usage: ././stm32_timer_pwm_computer.out system_clk(mhz) expect_freq(khz)
  11. ➜ stm32_timer_pwm_computer ./stm32_timer_pwm_computer.out 168 38
  12. systemclk : 168.000000 mhz
  13. expect freq: 38.000000 khz
  14. ******************************************************
  15. * APB1: TIM2 TIM3 TIM4 TIM5 TIM6 TIM7 TIM12 TIM13 TIM14
  16. *
  17. * timer_module_clk: 84.000000 mhz
  18. * freq : 38.009051 khz
  19. * period : 0.026310 ms
  20. * prescaler : 0
  21. * autoreload : 2209
  22. *
  23. **
  24. * APB2: TIM1 TIM8 TIM9 TIM10 TIM11
  25. *
  26. * timer_module_clk: 168.000000 mhz
  27. * freq : 38.000453 khz
  28. * period : 0.026315 ms
  29. * prescaler : 0
  30. * autoreload : 4420
  31. ***
  32. ```