<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[thang1990的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/thang1990</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; thang1990]]></copyright><item><title><![CDATA[linux I2C驱动分析（二）]]></title><link>https://blog.youkuaiyun.com/thang1990/article/details/48876709</link><guid>https://blog.youkuaiyun.com/thang1990/article/details/48876709</guid><author>thang1990</author><pubDate>Sat, 03 Oct 2015 09:39:45 +0800</pubDate><description><![CDATA[我们之前说过I2C设备驱动有两种一种是用户模式的驱动，另一种是我们自己编写的i2c设备驱动，我们先分析用户模式的驱动，它已经由内核编写好代码在I2C-dev.c当中。




一. 用户模式I2C设备驱动分析


I2C设备驱动属于总线，设备，驱动模型当中的驱动。代码如下：



static struct i2c_driver i2cdev_driver = {
.dr]]></description><category></category></item><item><title><![CDATA[Linux I2C  驱动分析（一）]]></title><link>https://blog.youkuaiyun.com/thang1990/article/details/48829799</link><guid>https://blog.youkuaiyun.com/thang1990/article/details/48829799</guid><author>thang1990</author><pubDate>Wed, 30 Sep 2015 16:18:50 +0800</pubDate><description><![CDATA[每学习一种驱动类型我都希望把我的学习经历记录下来。今天我就想利用am9开发板上的I2C设备AT24C02把I2C的驱动做一个深入的学习。


一. I2c体系总述
 Linux I2C驱动体系结构主要由3部分组成，即I2C核心、I2C总线驱动和I2C设备驱动。I2C核心是I2C总线驱动和I2C设备驱动的中间枢纽，它以通用的、与平台无关的接口实现了I2C中设备与适配器的沟通。而I2C总线驱动]]></description><category></category></item><item><title><![CDATA[ARM9 ADS8344 SPI驱动移植 （四）]]></title><link>https://blog.youkuaiyun.com/thang1990/article/details/48489967</link><guid>https://blog.youkuaiyun.com/thang1990/article/details/48489967</guid><author>thang1990</author><pubDate>Wed, 16 Sep 2015 10:07:50 +0800</pubDate><description><![CDATA[注：本节大量引用和参考了博客http://blog.youkuaiyun.com/yj4231/article/details/7755709的内容



step1:
我们现在就通过ADS8344的ioctl函数可分析一下整个数据是如何传递和接受的
static int ads8344_ioctl(struct inode *inode, struct file *file,    unsign]]></description><category></category></item><item><title><![CDATA[ARM9 ADS8344 SPI驱动移植 （三）]]></title><link>https://blog.youkuaiyun.com/thang1990/article/details/48462911</link><guid>https://blog.youkuaiyun.com/thang1990/article/details/48462911</guid><author>thang1990</author><pubDate>Tue, 15 Sep 2015 09:07:16 +0800</pubDate><description><![CDATA[step1:
     SPI主控制器驱动属于总线驱动模型当中的平台总线，SPI主控制器驱动在spi_s3c24xx.c当中完成了驱动的注册。代码如下：
 
static struct platform_driver s3c24xx_spi_driver = {
.remove 
= __exit_p(s3c24xx_spi_remove),
.suspend 
= s3c24xx_]]></description><category></category></item><item><title><![CDATA[ARM9 ADS8344 SPI驱动移植 （二）]]></title><link>https://blog.youkuaiyun.com/thang1990/article/details/48449235</link><guid>https://blog.youkuaiyun.com/thang1990/article/details/48449235</guid><author>thang1990</author><pubDate>Mon, 14 Sep 2015 23:07:18 +0800</pubDate><description><![CDATA[step1: 接着上一篇讲的，我的ADS8344驱动属于总线驱动设备模型当中的驱动，第一个问题就是spi总线在何处进行注册。在spi核心完成了对spi总线的注册。代码在spi.c中


struct bus_type spi_bus_type = {
.name = "spi",
.dev_attrs 
= spi_dev_attrs,
.match 
= spi_match_de]]></description><category></category></item><item><title><![CDATA[ARM9 ADS8344 SPI驱动移植 （一）]]></title><link>https://blog.youkuaiyun.com/thang1990/article/details/48435929</link><guid>https://blog.youkuaiyun.com/thang1990/article/details/48435929</guid><author>thang1990</author><pubDate>Mon, 14 Sep 2015 10:25:31 +0800</pubDate><description><![CDATA[关于如何移植关于ARM，SP驱动]]></description><category></category></item><item><title><![CDATA[我的第一篇学习笔记]]></title><link>https://blog.youkuaiyun.com/thang1990/article/details/48346933</link><guid>https://blog.youkuaiyun.com/thang1990/article/details/48346933</guid><author>thang1990</author><pubDate>Thu, 10 Sep 2015 17:55:39 +0800</pubDate><description><![CDATA[以后我要将一些的学习笔记记录在这里，这就是我的第一篇驱动笔记了吧~]]></description><category></category></item></channel></rss>