diff options
author | chestwood96 <adi.joachim12@gmail.com> | 2022-08-19 21:39:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 21:39:30 +0300 |
commit | 724b007c507832e7fbaf6b73b9ee2bb4f97af2c1 (patch) | |
tree | a7700e9177647a033f3e94b54466e48379abb11f | |
parent | ce27d359249e75fd546eaad2a393f55486a2fb59 (diff) |
rp2040: Enabled hw pullups for the I2C pins (#5710)
Signed-off-by: Adrian Joachim <adi.joachim12@gmail.com>
-rw-r--r-- | src/rp2040/i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rp2040/i2c.c b/src/rp2040/i2c.c index 954de0e57..8a32417ba 100644 --- a/src/rp2040/i2c.c +++ b/src/rp2040/i2c.c @@ -75,8 +75,8 @@ i2c_setup(uint32_t bus, uint32_t rate, uint8_t addr) const struct i2c_info *info = &i2c_bus[bus]; - gpio_peripheral(info->sda_pin, 3, 0); - gpio_peripheral(info->scl_pin, 3, 0); + gpio_peripheral(info->sda_pin, 3, 1); + gpio_peripheral(info->scl_pin, 3, 1); if (!is_enabled_pclock(info->pclk)) { enable_pclock(info->pclk); |