Original URL: http://www.xuebuyuan.com/632893.htmlHost: Vm-redhat 9.0Development Board: fl2440,linux-2.6.12arm-linux-gcc:3.4.1(1) The key module on the schematic diagram, you can see the corresponding Gpio port, as well as the interrupt number.The figure can be learned that the GPF0 high level, when the key is pressed, then the low level, so the interrupt response is set to the falling edge trigger.(2)
VM-RedHat 9.0
Board: fl2440, linux-2.6.12
Arm-Linux-GCC: 3.4.1
(1) The key module on the schematic diagram shows the corresponding gpio port and interrupt number.
The figure shows that gpf0 is connected to a high level. when the key is pressed, The gpf0 is connected to a low level. Therefore, the interrupt response is set to a falling edge.
(2) The driver gzliu
To test the performance of the OpenCL program under the Nvdia graphics card, the driver needs to be mounted, but the rear
Problems:
Nvidia driver loaded to the end, the Nvidia.ko file has been compiled successfully, but the prompt failed to load, query specific information found loading Nvidia module times wrong, Required key not available
Analysis:
The answer
For the development environment of this driver, see: http://blog.csdn.net/gzliu_hit/article/details/6694199
(1) When the key device is implemented as a hybrid device driver, the device number is dynamically generated and the device node/dev/MISC/gzliu_2440_key is automatically created. The complete driver gzliu_2440_ke
C # Driver-level analog key operation2013-09-26 03:17 AB tert -447 3 Yesterday encountered a program that automatically entered the Tenpay password task.Because the Tenpay password control is secure, it cannot be manipulated by traditional keybd_event.Find a lot of information on the Internet, finally found Winio.dll this port operation driver components to so
# Include 1. First, check the schematic and find the key and CPU link location and interrupt number. As shown in, this program uses keyint1 as an example to describe how to write the key driver. You can see that keyint1 is connected to gpn0, And the interrupt number used is xeint0. 2. Check Datasheet and find gpn0. The gpncon address is 0x7f008830, which is us
. System.map is required when you want to query the location of a symbol name or a symbolic name at a specific location. Find the corresponding address of the function, it can be used;Two: Buzzer driver writing:With the development Board we can see that the buzzer is located on the backplane:View circuit diagram:By looking at the Backplane manual, the buzzer will ring when the XpwmTOUT0 is high, and by XpwmTOUT0 we find its pin on the core board.Then
Based on the Vedon driver modification, kernel API functions have changed due to different kernel versions, including header file changes.#include REQUEST_IRQ third parameter, interrupt trigger mode to change to Kernel/include/linux/interrupt.h/* * These correspond to the ioresource_irq_* defines on * linux/ioport.h to select the interrupt line behaviour. When * requesting an interrupt without specifying a irqf_trigger, the * setting should is assume
Idle bored, and then throw a former copy of the water template cheatButton driver:#include Button application:#include Misc Type Key driver and application-Linux
Key driver source code in the kernel/ARCH/ARM/mach-s5pv210/button-smdkv210.c, the source code is very simple,Set the registers of the related buttons in the initial_button_probe function, and then enable timed timer scanning. When the timer is interruptedThe s3cbutton_timer_handler function judges the corresponding IO port level to monitor the key.It is worth noting that when we need to modify the button fu
The switch for the ① button is a physical mechanical elastic switch, and when the mechanical contact is disconnected and closed, the switch will not be switched on or off immediately due to the mechanical elasticity effect. Thus there is always a series of jitter in the moment of closure and disconnection.There are two main ways to shake the ② button(1) hardware circuit to shake(2) software delay to shake* For loop wait* Timer delayThe ③linux kernel uses struct timer_list to describe a timerstru
Interrupt mode under Linux Read key driver//include external interrupt hibernate join poll mechanism//Use asynchronous notification method //driver---> App receive (via Kill_fasync ()// To enable the device to support the asynchronous notification mechanism, the following 3 tasks are involved in the driver://1. Support
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.