From 5de396bb68c446a5241fd036bdf69387d083b2d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Tue, 3 Oct 2017 21:37:35 +0200 Subject: [PATCH] Don't mess around with SDA and SCL before cycling through the clock because it seems redundant. --- right/src/init_peripherals.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/right/src/init_peripherals.c b/right/src/init_peripherals.c index d0088d9..500910c 100644 --- a/right/src/init_peripherals.c +++ b/right/src/init_peripherals.c @@ -36,12 +36,6 @@ void InitI2cMainBus(void) PORT_SetPinMux(I2C_MAIN_BUS_SCL_PORT, I2C_MAIN_BUS_SDA_PIN, kPORT_MuxAsGpio); GPIO_PinInit(I2C_MAIN_BUS_SCL_GPIO, I2C_MAIN_BUS_SDA_PIN, &(gpio_pin_config_t){kGPIO_DigitalOutput, 1}); - GPIO_WritePinOutput(I2C_MAIN_BUS_SCL_GPIO, I2C_MAIN_BUS_SCL_PIN, 0); - delay(); - - GPIO_WritePinOutput(I2C_MAIN_BUS_SDA_GPIO, I2C_MAIN_BUS_SDA_PIN, 0); - delay(); - bool isOn = true; for (int i=0; i<16; i++) { GPIO_WritePinOutput(I2C_MAIN_BUS_SCL_GPIO, I2C_MAIN_BUS_SCL_PIN, isOn);