Fix naming error.

This commit is contained in:
Thomas Klaehn 2019-07-23 15:26:50 +02:00
parent 335d2cb69f
commit 52ebe7e0c4
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;