Skip to content

Commit

Permalink
Also fix use of weak stm32 internal pullup
Browse files Browse the repository at this point in the history
  • Loading branch information
yiancar authored and drashna committed Dec 19, 2018
1 parent df33618 commit b13162f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/arm/i2c_master.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ void i2c_init(void)

chThdSleepMilliseconds(10);

palSetPadMode(GPIOB, 6, PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_PUPDR_PULLUP);
palSetPadMode(GPIOB, 7, PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_PUPDR_PULLUP);
palSetPadMode(GPIOB, 6, PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN);
palSetPadMode(GPIOB, 7, PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN);

//i2cInit(); //This is invoked by halInit() so no need to redo it.
}
Expand Down

0 comments on commit b13162f

Please sign in to comment.