Cainiao for help !!! -- Linux general technology-Linux technology and application information. For details, refer to the following section. First of all, this is the first time I have developed linux. Please do not spray it. Recently, I used the friendly arm mini2440 to change the device driver in the original Board (in fact, it is a simple two-bit operation, I just follow the original imitation) and call always goes wrong (call turn_dir in ioct to report bad address). I wrote the red letter font. Ask strong people, thank you first,
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
/*************************************** **************************
Fixed the pwm frequency to 1000Hz.
**************************************** *************************/
Tcnt = (pclk/50/16)/1000;
_ Raw_writel (tcnt, S3C2410_TCNTB (0 ));
/*************************************** **************************
The significance of freq is to change the duty cycle of the pwm wave. This function parameter is used to change the duty cycle.
**************************************** *************************/
_ Raw_writel (tcnt * 10/freq, S3C2410_TCMPB (0 ));
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service