摘要: 1. module_init() / module_exit()include/linux/init.hmodule_init()函数修饰模块的入口函数。根据是否定义MODULE,module_init()这个宏有不同的展开。没有定义MODULE时,模块与内核链接成一个文件,module_init()修饰的函数被内核177 #define __define_initcall(level,fn,id) \ 178 static initcall_t __initcall_##fn##id __used \ 179 __attribute__((__section_... 阅读全文
posted @ 2013-03-04 11:15 sammei 阅读(849) 评论(0) 推荐(0) 编辑
摘要: SPI传输协议笔记SPI: Serial Peripheral Interface由Motorola发起的一个同步串行数据传输标准,全双工,以主从(Master/Slave)模式通信。多片从设备使用片选信号(chip select)。SPI又称为4线串行总线(four-wire serial bus)。MISO: Master input Slave output, output from slave.MOSI: Master output Slave Input, output from master.SS : Slave select, active low, output from ma 阅读全文
posted @ 2013-03-04 11:09 sammei 阅读(1289) 评论(0) 推荐(0) 编辑