Added possibility to enable internal pull-up resistors with i2c_pullups(boolean)

This commit is contained in:
Karl Kangur 2016-02-20 16:40:25 +01:00
parent e12077513f
commit 0ee04e985a
2 changed files with 13 additions and 2 deletions

View file

@ -49,3 +49,7 @@ bool i2c_slave_read(uint8_t slave_addr, uint8_t data, uint8_t *buf, uint32_t len
// devices where the i2c_slave_[read|write] functions above are of no use.
void i2c_start(void);
void i2c_stop(void);
// Use internal pull-up resistors instead of external ones,
// by default they are disabled.
void i2c_pullups(bool enable);