i2c: optimize space allocated for read or write buffers

Only a single command will be allocated now when a read or write is
prepared in the command list. The size of a command's buffer is not
limited to 255 bytes anymore.
This commit is contained in:
Omar Chebib
2021-05-11 11:14:43 +08:00
parent e1f388f114
commit cfcbca1271
7 changed files with 68 additions and 71 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ typedef struct {
#define i2c_hal_write_cmd_reg(hal,cmd, cmd_idx) i2c_ll_write_cmd_reg((hal)->dev,cmd,cmd_idx)
/**
* @brief Configure the I2C to triger a trasaction
* @brief Configure the I2C to triger a transaction
*
* @param hal Context of the HAL layer
*