summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorliYangYang <[email protected]>2022-09-01 12:59:44 +0800
committerGitHub <[email protected]>2022-09-01 00:59:44 -0400
commitd25bf469fa0c38377cdd987679c9faf841dca3c8 (patch)
tree19ecc11487d7b3357301adbd2e7da1d23aa12a25 /components/drivers/include
parent6ac09a6db02e9772886d5f76163f534f959934cf (diff)
[rt_drv_pwm]完善PWM框架互补输出部分代码 (#6338)
* [pwm]Improve the code * 将与bsp无关的代码移植到框架部分 * 添加注释
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/rt_drv_pwm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/include/drivers/rt_drv_pwm.h b/components/drivers/include/drivers/rt_drv_pwm.h
index 597842be79..1338d43ee8 100644
--- a/components/drivers/include/drivers/rt_drv_pwm.h
+++ b/components/drivers/include/drivers/rt_drv_pwm.h
@@ -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) */