Fix naming error.
This commit is contained in:
parent
335d2cb69f
commit
52ebe7e0c4
@ -11,7 +11,7 @@ struct i2c_bb {
|
|||||||
int i2c_open(const struct i2c_bb *i2c);
|
int i2c_open(const struct i2c_bb *i2c);
|
||||||
int i2c_close(const struct i2c_bb *i2c);
|
int i2c_close(const struct i2c_bb *i2c);
|
||||||
|
|
||||||
int i2_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len);
|
int i2c_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len);
|
||||||
int i2_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len);
|
int i2c_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -40,7 +40,7 @@ int i2c_close(const struct i2c_bb *i2c)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int i2_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len)
|
int i2c_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
assert(NULL != i2c);
|
assert(NULL != i2c);
|
||||||
@ -59,7 +59,7 @@ int i2_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned
|
|||||||
return (int)i;
|
return (int)i;
|
||||||
}
|
}
|
||||||
|
|
||||||
int i2_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len)
|
int i2c_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user