From 17b48102f41a3b46e22696ce2e17d7f3e944543a Mon Sep 17 00:00:00 2001 From: Ryan Johnston <31726584+ryanjAA@users.noreply.github.com> Date: Fri, 26 Feb 2021 21:53:48 -0600 Subject: [PATCH] Update i2c mapping and i2c clock source i2c4 was mapped incorrectly and i2c4 clock source wasn't present. --- boards/mro/ctrl-zero-h7-oem/nuttx-config/include/board.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/mro/ctrl-zero-h7-oem/nuttx-config/include/board.h b/boards/mro/ctrl-zero-h7-oem/nuttx-config/include/board.h index 3d4a5c880f..371db6d163 100644 --- a/boards/mro/ctrl-zero-h7-oem/nuttx-config/include/board.h +++ b/boards/mro/ctrl-zero-h7-oem/nuttx-config/include/board.h @@ -186,7 +186,7 @@ /* Kernel Clock Configuration * Note: look at Table 54 in ST Manual */ -#define STM32_RCC_D2CCIP2R_I2C123SRC RCC_D2CCIP2R_I2C123SEL_HSI /* I2C123 clock source */ +#define STM32_RCC_D2CCIP2R_I2C123SRC RCC_D2CCIP2R_I2C1234SEL_HSI /* I2C1234 clock source */ #define STM32_RCC_D2CCIP1R_SPI123SRC RCC_D2CCIP1R_SPI123SEL_PLL2 /* SPI123 clock source */ #define STM32_RCC_D2CCIP1R_SPI45SRC RCC_D2CCIP1R_SPI45SEL_PLL2 /* SPI45 clock source */ #define STM32_RCC_D3CCIPR_SPI6SRC RCC_D3CCIPR_SPI6SEL_PLL2 /* SPI6 clock source */ @@ -274,5 +274,5 @@ #define GPIO_I2C3_SCL GPIO_I2C3_SCL_2 /* PH7 */ #define GPIO_I2C3_SDA GPIO_I2C3_SDA_2 /* PH8 */ -#define GPIO_I2C4_SCL GPIO_I2C4_SCL_2 /* PF14 */ -#define GPIO_I2C4_SDA GPIO_I2C4_SDA_2 /* PF15 */ +#define GPIO_I2C4_SCL GPIO_I2C4_SCL_4 /* PB6 */ +#define GPIO_I2C4_SDA GPIO_I2C4_SDA_4 /* PB7 */