2011年12月3日
摘要: spi驱动模型和i2c的类似,都按照主机外设分离来设计的。但我觉得比i2c的要简明好多。上文配置的spi驱动最外层是platform总线然后是spi总线然后是字符设备。spi驱动模型分为spi主控制器驱动,对应结构体spi_master-spi_s3c24xx.c。控制怎么发。spi外设驱动,对应结构体spi_driver-----spidev.c。实现与用户的接口。***************************************************************************************对于te6410,linux2.6.36.2 2012- 阅读全文
posted @ 2011-12-03 15:58 _song 阅读(1128) 评论(0) 推荐(0) 编辑
摘要: spi_master/* linux/drivers/spi/spi_s3c24xx.c * * Copyright (c) 2006 Ben Dooks * Copyright (c) 2006 Simtec Electronics * Ben Dooks * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the F... 阅读全文
posted @ 2011-12-03 08:37 _song 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 硬件协议http://www.mct.net/faq/spi.htmlhttp://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bushttp://baike.baidu.com/view/245026.htm软件①.添加spi平台设备在arch/arm/plat-s3c24xx/devs.c已经定义了spi平台设备3c_device_spi0和3c_device_spi1,如下/* SPI (0) */ static struct resource s3c_spi0_resource[] = { [0] = { .start =... 阅读全文
posted @ 2011-12-03 05:59 _song 阅读(591) 评论(0) 推荐(0) 编辑
摘要: ti系列Precision ADC (10MSPS)http://focus.ti.com/paramsearch/docs/parametricsearch.tsp?family=analog&familyId=2020&uiTemplateId=NODE_STRY_PGE_T1.adc0808 8通道并口http://baike.baidu.com/view/3791579.htmhttp://www.ti.com/product/adc08082.adc0809 8通道并口 IN0~IN7:8路模拟量输入端。 2-1~2-8:8位数字量输出端。http://baike.b 阅读全文
posted @ 2011-12-03 03:38 _song 阅读(215) 评论(0) 推荐(0) 编辑