Skip to content
Permalink
Browse files

boards: nucleo_wb55rg: Enable I2C

Enable I2C on nucleo_wb55rg

Signed-off-by: Roger N'Guessan <roger.nguessan@st.com>
  • Loading branch information...
rgf97 authored and nashif committed Jun 4, 2019
1 parent 53dbe88 commit 3df5ae68a776d3c39fe931bf6008dff44a272605
@@ -24,6 +24,19 @@ config LPUART_1

endif # SERIAL

if I2C

config I2C_1
default y

config I2C_3
default y

config I2C_STM32_INTERRUPT
default y

endif # I2C

if BT_DEBUG_MONITOR

config LPUART_1
@@ -63,6 +63,16 @@
status = "ok";
};

arduino_i2c: &i2c1 {
status = "ok";
clock-frequency = <I2C_BITRATE_FAST>;
};

&i2c3 {
status = "ok";
clock-frequency = <I2C_BITRATE_FAST>;
};

arduino_serial: &lpuart1 {
current-speed = <115200>;
status = "ok";
@@ -10,3 +10,5 @@ ram: 96
flash: 1024
supported:
- gpio
- arduino_i2c
- i2c
@@ -22,6 +22,14 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PA2, STM32WBX_PINMUX_FUNC_PA2_LPUART1_TX},
{STM32_PIN_PA3, STM32WBX_PINMUX_FUNC_PA3_LPUART1_RX},
#endif /* CONFIG_LPUART_1 */
#ifdef CONFIG_I2C_1
{STM32_PIN_PB8, STM32WBX_PINMUX_FUNC_PB8_I2C1_SCL},
{STM32_PIN_PB9, STM32WBX_PINMUX_FUNC_PB9_I2C1_SDA},
#endif /* CONFIG_I2C_1 */
#ifdef CONFIG_I2C_3
{STM32_PIN_PC0, STM32WBX_PINMUX_FUNC_PC0_I2C3_SCL},
{STM32_PIN_PC1, STM32WBX_PINMUX_FUNC_PC1_I2C3_SDA},
#endif /* CONFIG_I2C_3 */
};

static int pinmux_stm32_init(struct device *port)

0 comments on commit 3df5ae6

Please sign in to comment.
You can’t perform that action at this time.