提交 294d955d 编写于 作者: P Pikachu 提交者: YiluMao

Update mux_i2c.c

[HUST CSE]除了开头的haas_mux_i2c_init函数返回了ret,其它的函数均没有返回值,修改增加了返回值
上级 e5e88fc9
......@@ -94,7 +94,7 @@ int32_t haas_mux_i2c_reg_write(i2c_dev_t *i2c, uint16_t dev_addr, uint16_t reg_a
return -1;
}
return ret;
}
/*********************************************************
......@@ -134,7 +134,7 @@ int32_t haas_mux_i2c_reg_read(i2c_dev_t *i2c, uint16_t dev_addr, uint16_t reg_ad
printf("mux_i2c reg write failed\r\n");
return -1;
}
return ret;
}
/********************************************************
......@@ -172,7 +172,7 @@ int32_t haas_mux_i2c_data_send(i2c_dev_t *i2c, uint16_t dev_addr, const uint8_t
printf("mux_i2c data send failed\r\n");
return -1;
}
return ret;
}
/********************************************************
......@@ -210,6 +210,7 @@ int32_t haas_mux_i2c_data_recv(i2c_dev_t *i2c, uint16_t dev_addr, uint8_t *data,
printf("mux_i2c data recv failed\r\n");
return -1;
}
return ret;
}
/********************************************************
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册