LRF020 DRIVER FOR LINUX
=======================
using includes/linux/spi/spidev.h,driver/spi/spidev.c
2012-3-23 xiaoyang@HIT
Kernel Version: linux2.6.30
Board Info: tq2440 arm9(S3C2440) http://www.armbbs.net/forum.php
LRF020: 2.4GHZ RF module:http://www.lustech.com.cn/index .php?case=archive&act=show&aid=24
Source@Git: https://github.com/yixiaoyang/leon-wsn/tree/master/driver/spidev-lrf020
log:
2012-4-3 passed test,set and read MAC successfully!
Note:
(1) This project is based on the Linux 2.6.30.4 ported source code provided by Tianqian, driving the lrf020 wireless module, using the spi0 interface.
(2) This project uses the spidev source code and modifies it. Spidev provides a stable spi driver demo framework, you can copy includes/linux/spi/spidev.h, driver/spi/spidev.c, and modify and compile them by yourself.
(3) For other platforms, if you want to write a kernel driver based on the Linux spi subsystem model (not GPIO simulation or Here is a better method. Use the spidev source code, add your own protocol without touching the low-level hardware registers, and then rewrite the read/write method for the user layer to call.
(4) Based on The Linux SPI subsystem model kernel driver requires a deeper understanding of the kernel. Reading the Linux SPI documentation and source code is a shortcut to writing SPI drivers.
Previous article:IMX257 implements Ramblock driver writing
Next article:Linux driver learning (4)--blocking and non-blocking
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- Discuss the voltage problem at a certain point in an op amp circuit
- MSP430F5438A clock settings
- Ideal Auto says it will open source its self-developed AEB system code
- Three-phase PFC, current loop does not converge using VIENNA topology
- 【GD32450I-EVAL】USB touch screen driver
- CCS3.3
- Request the schematic diagram of this system board
- How many Gs is the AT in the PULLin VALUE of the reed switch?
- July 9 live broadcast review: Enjoy the purity - AMS active noise reduction and proximity sensing bring a new level of headphone design (including video, ppt)
- ADI chips have increased by NNN times?