Skip to content
Permalink
Browse files

boards: stm32_min_dev enable I2C_2

Add support of i2c peripheral for mini_dev boards

Signed-off-by: Pavlo Hamov <pavlo_hamov@jabil.com>
  • Loading branch information...
pavlohamov authored and galak committed Jul 25, 2019
1 parent b44f0ea commit c78acb75e491008bbddfe1c3418cd6e925a62bd5
@@ -23,6 +23,9 @@ if I2C
config I2C_1
default y

config I2C_2
default y

endif # I2C

if PWM
@@ -108,6 +108,16 @@ The stm32_min_dev board configuration supports the following hardware features:

Other hardware features are not supported by the Zephyr kernel.

I2C
===

The STM32 Minimum Development Board board supports two I2C devices. The default
I2C mapping for Zephyr is:

- I2C1_SCL : PB6
- I2C1_SDA : PB7
- I2C2_SCL : PB10
- I2C2_SDA : PB11

Programming and Debugging
*************************
@@ -30,6 +30,10 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PB6, STM32F1_PINMUX_FUNC_PB6_I2C1_SCL},
{STM32_PIN_PB7, STM32F1_PINMUX_FUNC_PB7_I2C1_SDA},
#endif /* CONFIG_I2C_1 */
#ifdef CONFIG_I2C_2
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_I2C2_SCL},
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_I2C2_SDA},
#endif /* CONFIG_I2C_2 */
#ifdef CONFIG_PWM_STM32_1
{STM32_PIN_PA8, STM32F1_PINMUX_FUNC_PA8_PWM1_CH1},
#endif /* CONFIG_PWM_STM32_1 */
@@ -55,6 +55,11 @@
clock-frequency = <I2C_BITRATE_FAST>;
};

&i2c2 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};

&spi1 {
status = "okay";
};

0 comments on commit c78acb7

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