1.修复i2c应答错误。2.修复msh文档获取参数索引错误。

This commit is contained in:
MacRsh
2024-02-04 17:50:09 +08:00
parent 7ab4df6582
commit 85360e3470
5 changed files with 17 additions and 18 deletions

View File

@@ -121,8 +121,8 @@ struct mr_i2c_dev
struct mr_i2c_config config; /**< Configuration */
struct mr_ringbuf rd_fifo; /**< Read FIFO */
size_t rd_bufsz; /**< Read buffer size */
uint32_t addr: 16; /**< Address */
uint32_t addr_bits: 16; /**< Address bits */
int addr; /**< Address */
int addr_bits; /**< Address bits */
};
int mr_i2c_bus_register(struct mr_i2c_bus *i2c_bus, const char *path, struct mr_drv *drv);