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.

38 lines
737 B

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