[rt_drv_pwm]完善PWM框架互补输出部分代码 (#6338)

* [pwm]Improve the code

* 将与bsp无关的代码移植到框架部分

* 添加注释
This commit is contained in:
liYangYang
2022-09-01 00:59:44 -04:00
committed by GitHub
parent 6ac09a6db0
commit d25bf469fa
3 changed files with 43 additions and 12 deletions
@@ -24,7 +24,7 @@
struct rt_pwm_configuration
{
rt_uint32_t channel; /* 1-n or 0-n, which depends on specific MCU requirements */
rt_uint32_t channel; /* 0 ~ n or 0 ~ -n, which depends on specific MCU requirements */
rt_uint32_t period; /* unit:ns 1ns~4.29s:1Ghz~0.23hz */
rt_uint32_t pulse; /* unit:ns (pulse<=period) */