A device driver is used as a translation between hardware and the application that uses hardware (user code) or the kernel, which hides the details of the hardware's work behind the scenes, thereby simplifying programming. Programmers can use a set of standardized invocation methods (system calls) to write advanced application code without having to care about the specific hardware it will control or the processor on which it is running. With a well-defined internal application programming inter
1. What needs to be done to make G-sensor work normally:
The G-sensor driver file includes:
Driver/i2c/chips/lis331dl. cDriver/i2c/chips/sensorioctl. hInclude/linux/lis331dl. h
And in the/kernel/arch/arm/mach-s3c6410/mach-ur6410.c file i2c chanel1 Structure Variable i2c_devs1 [] _ initdata need to add G-sensor device information,To make the driver loaded successf
navigation device through the I2C bus connection, this article describes the implementation of the two based on the I2C bus connectionOSDDisplay Driver method.
1. Basic Principles
1.1OSDDisplay principle
OSD(On Screen Display) is a kind of Screen Display Technology, used to display characters, graphics and images on the display terminal. The implementation process is as follows: the content of the memory
c3d7d4bc: 9Scanning Device for Bad blocksBad eraseblock 357 at 0x00594000Bad eraseblock 3335 at 0x0341c000Bad eraseblock 3995 at 0x03e6c000Creating 4 MTD partitions on "NAND 64mib, 3 V 8-bit ":0x00000000-0x00030000: "Boot"0x00030000-0x00200000: "kernel"0x00200000-0x02000000: "rootfs"0x02000000-0x04000000: "ext-fs1"Usbmon: debugfs is not availableS3c2410-ohci s3c2410-ohci: s3c24xx OHCIS3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1S3c2410-ohci s3c2410-ohci: IRQ 42, Io me
How to enable 1.3 mpu6050 (Large End) and M4 FPU
Original article. You are welcome to repost it. For reposted content, please indicate the source.
The most recent time is the I2C of stm32. I know that the I2C of stm32 is not easy to use, because I have used analog I2C, and I have also written the AVR I2C, that is, the
audio codec, with the CPU through the I2S carries on the data transmission, the CPU through I2C to the WM8960 carries on the control.kernel:linux-2.6.28.10 +tcc8900 PlatformSecond, realize the I2C control interface, add a I2C driver under the drivers/i2c/chips. Tcc_wm8960.c#include#include#include#include 2c.h>#define
compared the linux directory before and after the power plugging, but there was no clue when I looked for it for a long time. Why did I check CPU and memory for commands, check the power supply and there will be no command? Later, I found that this may not exist!
I don't know the driver, I don't know the hardware, and I can't use the scripts written by others. I try to understand it. The following is your understanding. Please refer to Hai Han for errors.
The first thing we can understand is th
Reprinted, please indicate the source and author of the article!
Source: http://blog.csdn.net/xl19862005
By xandy)
Hardware Platform: Ti dm37xxSENSOR: lsm330dlc (ACC + gyr)1. Place the lsm330dlc driver code in the drivers/input/MISC directory, and add the following fields to the kconfig and makefile files in the directory:
KconfigConfig sensors_lsm330dlcTristate "ST's family of MEMS sensor modules of lsm330dlc"Depends on I2C input mach_zt6810Select
". generally, you can ENTER "Yes"/"ENTER" all the way down. When I check the configuration, the "Yes" and "ENTER" are all the way down.
Enter at the terminal:
Sudo sensors-detect
Process:
Louis @ Ubuntu-desktop :~ $ Sudo sensors-detect# Sensors-detect revision 4171 (03:37:01-0700)This program will help you determine which kernel modules you needTo load to use lm_sensors most into tively. It is generally safeAnd recommended to accept the default answers to all question
for ' National Semiconductor LM79 ' at 0x290 ... NoProbing for ' Winbond w83781d ' at 0x290 ... NoProbing for ' Winbond w83782d ' at 0x290 ... NoLastly, we can probe the I2c/smbus adapters for connected hardwareMonitoring devices. The most risky part, and while it worksReasonably well in most systems, it had been reported to cause troubleOn some systems.Does want to probe the I2c/smbus adapters now? (yes/n
Recent Debugging I2C Drive (Pca9544,pcf8574,pi3. Encountered a lot of problems, not timely record, also did not tidy up, the first to solve the problem recorded.
1, the I2C adapter driver and the device-driven resource information in the Board file registration;
2, and then add the drivers to the kernel to compile;
3, compiled kernel image on the board run, the drive are normal.
However, after loading the
},{0x7e,0x10},{0x7f,0x28},{0x80,0x36},{0x81,0x44},{0x82,0x52},{0x83,0x60},{0x84,0x6c},{0x85,0x78},{0x86,0x8c},{0x87,0x9e},{0x88,0xbb},{0x89,0xd2},{0x8a,0xe6},};
The above is the address of the register that needs to write ov9650 sequentially and the written value (transmitted using I2C subsystem)
The I2C subsystem transmission has been analyzed. The platform device resources can be initialized in the Bo
an operating system contiki--for resource-constrained environments. Contiki provides the ability to dynamically load and unload personal programs and services, its kernel-based time-driven (Event-driven), and support for preemptive multithreaded mechanisms. Programs that explicitly require multi-threading will be linked to a library, which enables preemptive multithreading.Contiki is implemented by the C language and has been ported to many microprocessor architectures, including Ti
Sensor: lsm330dlc (acc + gyr)1. Place the lsm330dlc driver code in the drivers/input/misc directory and add the following fields to the kconfig and Makefile files:
KconfigConfig SENSORS_LSM330DLCTristate "ST's family of MEMS sensor modules of LSM330DLC"Depends on I2C INPUT MACH_ZT6810Select INPUT_POLLDEVDefault yHelpThis driver provides support for the LSM330DLC gyroscope and accelerator connected via I2C
equipment. The basic idea is to implement a parent device for the public part of these functions, in order to share certain system resources and functions, then each child function is implemented as its sub device, so that both resources and code are shared, and a reasonable device hierarchy can be achieved, the main use of the API is: Mfd_add_devices (), Mfd_remove_devices (), mfd_cell_enable (), mfd_cell_disable (), Mfd_clone_cell ().
Back in wm8994-core.c, because WM8994 uses
1 Overview
This task is to debug the touch screen driver on the flykar I. mx 6 quqd sabrelite Development Board. The touch screen chip is goodix's gt828 chip and the touch screen interface is I2C.
Operating System: Android 4.0.4
Kernel version: 3.0.15
2 debugging steps 2.1 hardware connection 2.1.1 development board hardware interface
The Development Board has provided independent interfaces for touch screen, which are as follows:
It provides a set
i2c_board_info-created from the device i2c_board_info-creating a template I 2 c device macro, containing the name and address of the struct i2c_algorithm-represents the I²c transmission method struct I2C_BUS_RECOVERY_INFO-I2C bus recovery information? The newly added structure of the kernel is not very clear. External function Operation module_i2c_driver-Register I²C device driven macro definition i2c_register_board_info-static declaration (registrat
device-driven struct i2c_client-represents an i²c from the device struct i2c_board_info-created from the device i2c_board_info-creating a template I 2 c device macro, containing the name and address of the struct i2c_algorithm-represents the I²c transmission method struct I2C_BUS_RECOVERY_INFO-I2C bus recovery information? The newly added structure of the kernel is not very clear. External function Operation module_i2c_driver-Register I²C device driv
Use MRTG to monitor CPU temperature-Linux Enterprise Application-Linux server application information. The following is a detailed description. It's time to roll again in summer ~ I believe many people are concerned about whether their CPU will go on strike due to overheating? Is there any software under Linux that can monitor the temperature?
That is lm-sensor. How can I install it?
If your core version is 2.2.X
Download the i2c and lm-sensor kits.
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.