主题 : linux spi 从模式 驱动 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 10377
精华: 0
发帖: 23
金钱: 175 两
威望: 65 点
综合积分: 46 分
注册时间: 2009-11-02
最后登录: 2010-12-20
楼主  发表于: 2010-03-16 14:49

 linux spi 从模式 驱动

核2.6.26里有atmel_spi,spi等文件,但都是主模式的。请教各位老大,从模式的驱动如何写,谢谢!
(比如我两块AT91SAM9263板子的SPI接口对连实现高速数据通讯,主模式的板子,驱动是现成的,没有问题,从模式的那块板子的驱动我该如何写呢?)
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-03-16 16:33
关于SPI Slave模式,你可以看看spi-dev-general邮件列表上的这个thread:
http://www.mail-archive.com/spi-devel-general@lists.sourceforge.net/msg00306.html
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 10377
精华: 0
发帖: 23
金钱: 175 两
威望: 65 点
综合积分: 46 分
注册时间: 2009-11-02
最后登录: 2010-12-20
2楼  发表于: 2010-03-16 17:01
BOSS,这咋打开呀,我满怀希望,可不知道咋看呢!!!!!!!!!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-03-16 17:19
用浏览器直接打开.
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 10377
精华: 0
发帖: 23
金钱: 175 两
威望: 65 点
综合积分: 46 分
注册时间: 2009-11-02
最后登录: 2010-12-20
4楼  发表于: 2010-03-17 10:01
BOSS,打不开,还能从其他地方看这个资料不?谢谢!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2010-03-17 10:44
google "linux SPI slave status"
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."