Commit Graph

9 Commits

Author SHA1 Message Date
sp-cai 0ebec472e1
[components][i2c] 优化 controt 接口格式,增加可用命令 (#7806)
原来 rt_i2c_control 只能执行 RT_I2C_DEV_CTRL_CLK 单一命令,通过此修改可以支持更多可用命令
2023-07-13 21:57:40 -04:00
Man, Jianting (Meco) 0275b23638
[i2c] fix the i2c device return error code (#7035)
* [i2c] fix the i2c device return error code
2023-03-10 23:44:03 -05:00
Zxy c8b30bf31a
[device]修改i2c读写函数返回类型为rt_ssize_t (#7029) 2023-03-09 23:42:58 -05:00
Meco Man f58d3c5200 rt_device_write/read return data type as rt_ssize_t
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-07 21:43:57 -05:00
Meco Man 958d940575 [lpcxxx] auto formatted 2021-03-17 02:26:35 +08:00
liweihao a24b896443 修改读写逻辑,解决i2c驱动无法读取的问题 2019-11-11 22:46:28 +08:00
liweihao 3138f2d8d7 The subaddresssize should be 0 2019-10-19 14:45:55 +08:00
流光 0ac963ac3a [bsp][lpc54114-lite] 移除c99语法特性, 并移除错误Kconfig脚本. 2018-12-06 10:01:45 +08:00
流光 c6bfe11afa [更新] 添加i2c spi romfs spiflash sdcard pct2075驱动. 2018-12-05 19:04:47 +08:00