LRF020 DRIVER FOR LINUX(BASED ON TQ2440/ARM9)

Publisher:Blissful444Latest update time:2024-08-14 Source: cnblogsKeywords:DRIVER  FOR  LINUX  BASED  TQ2440  ARM9 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.

Keywords:DRIVER  FOR  LINUX  BASED  TQ2440  ARM9 Reference address:LRF020 DRIVER FOR LINUX(BASED ON TQ2440/ARM9)

Previous article:IMX257 implements Ramblock driver writing
Next article:Linux driver learning (4)--blocking and non-blocking

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号