Description: Linux 2.4内核字符设备驱动开发实例。
是Linux下驱动开发人员再好不过的参考源码。编译之后加载驱动,附有测试程序进行驱动的测试!
Linux kernel 2.4 char device driver
example.-character device driver development example. Linux is driven development staff a better reference source. After loading compiler - driven, with the testing process-driven test! Linux kernel 2.4 char device driver example. Platform: |
Size: 4639 |
Author:邱天 |
Hits:
Description: 本驱动程序在linux2.6.17中测试通过。yangxing msn:lelma_yx@hotmail.com
希望对SPI操作的朋友有所帮助。
一、工作方式:
从设备:SPI为MASTER模式
S3C2410:SPI为SLAVE模式+DMA
二、工作流程
1.S3C2410从接收:当从设备发送数据时,S3C2410利用DMA方式收数,收到指定长度的数据,则进入DMA中断,将接收的数据拷出。
2.S3C2410从发送:当S3C2410需要发送,首先由RTS请求发送,然后等待从设备应答CTS,当从设备应答CTS时,进入外部中断,启动DMA发送,发送完成,再次进入从接收状态。
三、文件位置
spi_dma_slave.c
spi_dma_slave.h
circular_buf.c
circular_buf.h
等文件存放入driver/char/目录
dma.c存放于arch/arm/mach-s3c2410/目录
dma.h存放于include/arm-asm/mach-s3c2410/目录
四、使用环境
1.arm-linux-gcc-3.4.1-the driver linux2.6.17 in which the test. Yangxing msn : lelma_yx@hotmail.com hope to operate SPI friends help. 1, mode of work : from equipment : SPI for the S3C2410 MASTER mode : SPI for SLAVE+ DMA mode 2, workflow 1.S3C2410 from receiving : When sending data from the device, using DMA S3C2410 debt, the length of the designated data DMA will enter the interruption will receive unfettered access to the data. 2.S3C2410 from this : When S3C2410 need this, the first request sent by the RTS, Then wait for the response from CTS equipment, when the equipment response from CTS, access to external interrupt start DMA sent, Send completed, re-entered, from receiving state. 3. Position papers spi_dma_slave.c spi_dma_slave.h circul ar_buf.c circular_buf.h documents onto the driver/char/Contents Platform: |
Size: 17408 |
Author:y |
Hits:
Description: Linux 2.4内核字符设备驱动开发实例。
是Linux下驱动开发人员再好不过的参考源码。编译之后加载驱动,附有测试程序进行驱动的测试!
Linux kernel 2.4 char device driver
example.-character device driver development example. Linux is driven development staff a better reference source. After loading compiler- driven, with the testing process-driven test! Linux kernel 2.4 char device driver example. Platform: |
Size: 4096 |
Author: |
Hits:
Description: Linux 2.4.18 s3c2440 led driver
使用dev-C++撰寫,需要linux 2.4.18 kernel include,編譯完成後產生led module。
insmod main.o //安裝模組
mknod /dev/leds c 221 0
使用方法:
int main(int argc, char *argv[])
{
int testdev
//led test...
testdev = open("/dev/QuickMarkLed",O_RDWR)
ioctl(testdev, 2, 1) //ioctl(device, led number, open/close) open=1
ioctl(testdev, argv[1][0]- 0 , argv[2][0]- 0 ) //ioctl(device, led number, open/close) open=1
close(testdev)
return 0
}
-Linux 2.4.18 s3c2440 led driver to use dev-C++ Writing, the need for linux 2.4.18 kernel include, compiled after the completion of led module. insmod main.o// install the module mknod/dev/leds c 221 0 to use: int main (int argc, char* argv []) (int testdev// led test ... testdev = open (/ dev/QuickMarkLed , O_RDWR) ioctl (testdev, 2, 1)// ioctl (device, led number, open/close) open = 1 ioctl (testdev, argv [1] [0]- 0, argv [2] [0]- 0 )// ioctl (device, led number, open/close) open = 1 close (testdev) return 0) Platform: |
Size: 5120 |
Author:Jia-Yang Chen |
Hits:
Description: 最常用的嵌入式LINUX字符设备驱动:触摸屏和小键盘驱动。触摸屏使用SPI接口,小键盘使用GPIO口模拟。-The most commonly used characters embedded LINUX Device Driver: touch screen and keypad drivers. SPI interface using the touch screen, small keyboard simulation using GPIO port. Platform: |
Size: 14336 |
Author:吕剑国 |
Hits:
Description: Linux下对char device driver的实现以及用户层的测试程序。-A implementation of linux char device driver and its test program from application. Platform: |
Size: 2048 |
Author:HelloNet |
Hits:
Description: 在arm-linux中蜂鸣器作为一个简单的字符设备,其驱动程序可以作为一般字符设备驱动的框架。-For a simple arm-linux char device driver ,the beep driver can be de module of any char device drver. Platform: |
Size: 1024 |
Author:Thomas Obama |
Hits:
Description: linux 字符设备开发流程及内核函数工作原理,很精辟、透彻!-linux character device development process and the principle of kernel functions, it is insightful, thorough! Platform: |
Size: 151552 |
Author:王涛 |
Hits:
Description: 通俗易懂的讲述了Linux kernel里面字符设备的机制,不用看书,就能写好一个char字符设备驱动-Easy to understand about the mechanism of the Linux kernel inside the character device, can not read, you can write a char character device driver Platform: |
Size: 5120 |
Author:sunnorth |
Hits:
Description: 粤嵌教育的嵌入式培训课件,关于驱动的,网上暂时还没人上传过。这个是字符设备驱动的进阶课件,之前上传过基础版。-Guangdong embedded in the education of embedded training courseware, driven, on-line temporarily not uploaded people. This is a character device driver Advanced courseware, before uploading the basic version. Platform: |
Size: 328704 |
Author:李继滨 |
Hits:
Description: linux字符设备驱动的简单实现,并附带测试代码,通过此代码可以直观全面的了解一下linux 字符设备驱动的实现过程和实现内容,并通过测试代码可以实际操作该字符设备-linux character device driver is a simple implementation, and come with a test code, by this code can be intuitive and comprehensive look at linux character device driver implementation process and implement content, and can actually operate the character device via the test code Platform: |
Size: 3072 |
Author:雪无声 |
Hits: