IIC适配器级别分析-基于s3c2410
来源:互联网 发布:金融数据来源有哪些 编辑:程序博客网 时间:2024/04/29 15:29
也就是说函数s3c_i2c0_set_platdata 的功能就是对s3c2410_platform_i2c结构体 进行初始化
初始化的结果是:struct s3c2410_platform_i2c default_i2c_data __initdata = {
.bus_num = 0;
.flags = 0;
.slave_addr = 0x10;
.frequency = 100*1000;
.sda_delay = 100;
.cfg_gpio =s3c_i2c0_cfg_gpio,
};
结构体原型如下:
/**
* struct s3c2410_platform_i2c - Platform data for s3c I2C.
* @bus_num: The bus number to use (if possible).
* @flags: Any flags for the I2C bus (E.g. S3C_IICFLK_FILTER).
* @slave_addr: The I2C address for the slave device (if enabled).
* @frequency: The desired frequency in Hz of the bus. This is
* guaranteed to not be exceeded. If the caller does
* not care, use zero and the driver will select a
* useful default.
* @sda_delay: The delay (in ns) applied to SDA edges.
* @cfg_gpio: A callback to configure the pins for I2C operation.
*/
struct s3c2410_platform_i2c {
int bus_num;
unsigned int flags;
unsigned int slave_addr;
unsigned long frequency;
unsigned int sda_delay;
void (*cfg_gpio)(struct platform_device *dev);
};
- IIC适配器级别分析-基于s3c2410
- s3c2410 iic总线接口编程
- S3C2410 IIC EEPROM 总结
- 基于S3C2410-ARM-Linux静态映射分析
- 基于S3C2410-ARM Linux启动过程分析
- Nandflash 驱动深度分析(基于S3C2410)
- Nandflash 驱动深度分析(基于S3C2410)
- WinCE-IIC调试助手(S3C2410)
- 基于s3c2410的YL-LCD35液晶驱动的分析
- 基于S3C2410的SD卡linux驱动分析一
- 基于S3C2410的SD卡linux驱动分析二
- u-boot 结构分析 —— 基于S3C2410
- Linux下IIS音频驱动程序分析(基于S3C2410+ UDA1341)
- 基于s3c2410的uboot1.2.0的分析以及移植
- 基于s3c2410的uboot1.2.0的分析以及移植
- 基于s3c2410的uboot1.2.0的分析以及移植
- IIC驱动分析
- linux IIC驱动分析
- HDU_3065 病毒侵袭持续中
- android4.4短信新特性
- 微信开发之提交信息后没有得到回复
- Loadrunner Controller cannot create Vusers
- Prim算法——poj1258
- IIC适配器级别分析-基于s3c2410
- c#一些特殊语法
- linux nohup命令详解
- poj3211Washing Clothes(字符串处理+01背包) hdu1171Big Event in HDU(01背包)
- Http协议原理解析第一篇
- hdu 1875 畅通工程再续
- 基于Spring的MVC框架设计与实现
- queue容器适配器
- 【优先队列】HDU Rescue