spidmadriver

所属分类:处理器开发
开发工具:Unix_Linux
文件大小:17KB
下载次数:688
上传日期:2006-12-12 17:03:23
上 传 者杨星
说明:  本驱动程序在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)

文件列表:
spidma driver\circular_buf.c (2847, 2006-12-12)
spidma driver\circular_buf.h (1016, 2006-12-08)
spidma driver\dma.c (27965, 2006-07-25)
spidma driver\dma.h (10010, 2006-07-25)
spidma driver\spi_dma_slave.c (14421, 2006-12-12)
spidma driver\spi_dma_slave.h (306, 2006-12-12)
spidma driver (0, 2006-12-12)

本驱动程序在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

近期下载者

相关文件


收藏者