Buzzer Drive Reading notes

Source: Internet
Author: User

This chapter describes the buzzer driver, which is a hardware device on the Development Board that can control the buzzer by writing a specific value to the register. The principle of the buzzer is realized and a complete buzzer driver is realized. PWM the drive is implemented in a different way than LED Drive, consisting of multiple files.

There are many ways to reuse Linux-driven code. For complex Linux drivers, it is necessary to use multiple source code files to store different function codes, facilitate code categorization and management, and compile multiple source code files.

Code reuse can be divided into two types: static and dynamic. This section describes the way a code is shared, which is dependent on the module.

For some Linux drivers that are not properly unloaded , such as initialization function crashes, the Unload function is blocked. This is required to obtain a module struct pointer that represents the Linux driver module to unload .

Next describes how to control the buzzer by the corresponding register to open and close, and in the implementation of the buzzer driver, the call and close the buzzer function is placed in another C source code file.

http://www.cnblogs.com/SJ-0325/

Buzzer Drive Reading notes

Related Article

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.