Eighth Reading notes

Source: Internet
Author: User

This chapter describes the principle of buzzer driver implementation.

The buzzer is a hardware device on the s3c6410 Development Board. You can control the buzzer by writing a specific value to the register.

The buzzer is realized by the principle that the PWM driver differs from the LED driver, and the PMW drive will consist of multiple files.

Simulation Environment:/ROOT/DRIVERS/CH08/PWM

The PWM driver consists of 3 files:

PWM.C Driver Main Program

Pwm_fun.h refers to the corresponding header file and defines some macros.

The Pwm_fun.c file contains two functions for opening and stopping the PWM (Pwm_start and Pwm_stop)

This chapter also describes a method of forcibly uninstalling Linux drivers. For: Initialization function crashes, unload function is blocked.

http://www.cnblogs.com/xi940626/

Eighth Reading notes

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.