Make code -Wall -Wextra -pedantic -Wmissing-prototypes -Wold-style-definition
This commit is contained in:
@ -75,6 +75,7 @@ bool mgos_i2c_read(struct mgos_i2c *i2c, uint16_t addr, void *data, size_t len,
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
(void)stop;
|
||||
}
|
||||
|
||||
|
||||
@ -96,22 +97,26 @@ bool mgos_i2c_write(struct mgos_i2c *i2c, uint16_t addr, const void *data, size_
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
(void)stop;
|
||||
}
|
||||
|
||||
|
||||
void mgos_i2c_stop(struct mgos_i2c *i2c) {
|
||||
return;
|
||||
(void)i2c;
|
||||
}
|
||||
|
||||
|
||||
int mgos_i2c_get_freq(struct mgos_i2c *i2c) {
|
||||
return MGOS_I2C_FREQ_100KHZ;
|
||||
(void)i2c;
|
||||
}
|
||||
|
||||
|
||||
bool mgos_i2c_set_freq(struct mgos_i2c *i2c, int freq) {
|
||||
if (freq==MGOS_I2C_FREQ_100KHZ) return true;
|
||||
return false;
|
||||
(void)i2c;
|
||||
}
|
||||
|
||||
|
||||
@ -224,6 +229,7 @@ bool mgos_i2c_write_reg_n(struct mgos_i2c *i2c, uint16_t addr, uint8_t reg, size
|
||||
|
||||
void mgos_i2c_close(struct mgos_i2c *i2c) {
|
||||
return;
|
||||
(void)i2c;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user