Key-driven hardware operation implementation

Source: Internet
Author: User

First go to open the bare metal driver key code BUTTON.C:1) key initialization---the choice of gpio function is external interrupt, the initialization of this hardware should be placed under the development of Linux where? A, in the Open function, B, in the initialization of the module. Choose one.

The corresponding interrupt mode:

Processing of interrupt numbers

In the Sourceinsight project, enter irqs.h-> to find the s3c64xx-> open and find similar to # define IRQ_EINT0 s3c6410....-> open Entry-macro-s (6410)- > Have a get_irqnr_and_base,irqnr,irqstat,basetmp-> find Irqnr source->intoffset The actual physical interrupt with the corresponding serial number will produce an ordinal In Linux, the interrupt number is ordinal (the value in register Intoffset) + a cardinality

There is a problem!!

Key-driven hardware operation implementation

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.