提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
脉宽调制(PWM,Pulse Width Modulation)
RockchipPWM 支持三种模式: Continuous mode、One-shot mode 和 Capture mode, 4通道 built-in
1.驱动文件
drivers/pwm/pwm-rockchip.c
原厂已经提供好了
DTS 配置参考文档
Documentation/devicetree/bindings/pwm/pwm.txt
/*
* PWM driver for Rockchip SoCs
*
* Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com>
* Copyright (C) 2014 ROCKCHIP, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*/
#include