summaryrefslogtreecommitdiffstats
path: root/drivers/arm
diff options
context:
space:
mode:
authoryiancar <yiangosyiangou@cytanet.com.cy>2018-12-19 14:59:58 +0100
committerDrashna Jaelre <drashna@live.com>2018-12-19 20:52:05 +0100
commitb13162f7fd5a4c09dff15ff6f9713526622925a7 (patch)
treeec99da727009f0b1b1fee6e10b5c622b50255ea2 /drivers/arm
parentdf33618b26bb7ff0c0eff619b2d638490c514ce4 (diff)
downloadqmk_firmware-b13162f7fd5a4c09dff15ff6f9713526622925a7.tar.gz
qmk_firmware-b13162f7fd5a4c09dff15ff6f9713526622925a7.tar.xz
Also fix use of weak stm32 internal pullup
Diffstat (limited to 'drivers/arm')
-rw-r--r--drivers/arm/i2c_master.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/arm/i2c_master.c b/drivers/arm/i2c_master.c
index 4417dc985..385bd97cb 100644
--- a/drivers/arm/i2c_master.c
+++ b/drivers/arm/i2c_master.c
@@ -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.
}