摘要
分析了ARM-Linux下ⅡC总线及其设备驱动的层次结构,指出了ⅡC设备添加与驱动实现的途径,详细阐述了如何采用通用i2c-dev.c驱动常规ⅡC设备、如何编写特定ⅡC设备的probe方式驱动、怎样设计动态加载的简易ⅡC"客服-驱动"、怎样使用GPIO模拟ⅡC总线快速驱动设备等常用具体实现过程和关键环节,并说明了这些方法的优势和不足。
The hierarchy structure about ARM-Linux-ⅡC bus and its device driver are analyzed.It pointed out the valid ways of ⅡC device increment and its driver design.It expounded how to drive IIC device with ordinary 'i2c-dev.c',how to program the special ⅡC device driver in 'probe' mode,how to design simple ⅡC device driver in 'dynamic-mount' mode,how to use GPIO simulate ⅡC bus for ⅡC device.It illustrates the advantage and shortage about these methods,too.
出处
《电子设计工程》
2012年第10期110-115,共6页
Electronic Design Engineering