rp2040: Enabled hw pullups for the I2C pins (#5710)

Signed-off-by: Adrian Joachim <adi.joachim12@gmail.com>
This commit is contained in:
chestwood96 2022-08-19 20:39:30 +02:00 committed by GitHub
parent ce27d35924
commit 724b007c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ i2c_setup(uint32_t bus, uint32_t rate, uint8_t addr)
const struct i2c_info *info = &i2c_bus[bus]; const struct i2c_info *info = &i2c_bus[bus];
gpio_peripheral(info->sda_pin, 3, 0); gpio_peripheral(info->sda_pin, 3, 1);
gpio_peripheral(info->scl_pin, 3, 0); gpio_peripheral(info->scl_pin, 3, 1);
if (!is_enabled_pclock(info->pclk)) { if (!is_enabled_pclock(info->pclk)) {
enable_pclock(info->pclk); enable_pclock(info->pclk);