diff options
Diffstat (limited to 'drivers/arm/i2c_master.c')
| -rw-r--r-- | drivers/arm/i2c_master.c | 4 |
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) | |||
| 51 | 51 | ||
| 52 | chThdSleepMilliseconds(10); | 52 | chThdSleepMilliseconds(10); |
| 53 | 53 | ||
| 54 | palSetPadMode(GPIOB, 6, PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_PUPDR_PULLUP); | 54 | palSetPadMode(GPIOB, 6, PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN); |
| 55 | palSetPadMode(GPIOB, 7, PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_PUPDR_PULLUP); | 55 | palSetPadMode(GPIOB, 7, PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN); |
| 56 | 56 | ||
| 57 | //i2cInit(); //This is invoked by halInit() so no need to redo it. | 57 | //i2cInit(); //This is invoked by halInit() so no need to redo it. |
| 58 | } | 58 | } |
