Skip to content
Permalink
Browse files

olimexino_stm32: Enable I2C1

Enable I2C1 on olimexino_stm32

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
  • Loading branch information...
ydamigos authored and galak committed Jul 20, 2019
1 parent 55684e0 commit a4d9c3b4ffa1c60dc5c3a9a08e07734f850076d4
@@ -19,6 +19,9 @@ endif # UART_CONSOLE

if I2C

config I2C_1
default y

config I2C_2
default y

@@ -317,8 +317,11 @@ OLIMEXINO-STM32 board has up to 2 SPIs. The default SPI mapping for Zephyr is:
I2C
===

OLIMEXINO-STM32 board has up to 1 I2C. The default I2C mapping for Zephyr is:
The OLIMEXINO-STM32 board supports two I2C devices. The default I2C mapping for
Zephyr is:

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

@@ -68,6 +68,11 @@ uext_serial: &usart1 {};
pinctrl-names = "default";
};

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

&i2c2 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
@@ -26,6 +26,10 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_USART3_TX},
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_USART3_RX},
#endif /* CONFIG_UART_3 */
#ifdef CONFIG_I2C_1
{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},

0 comments on commit a4d9c3b

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