summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2022-02-22 21:20:36 -0500
committerGitHub <[email protected]>2022-02-23 10:20:36 +0800
commit2e98bc4e199f38784aef5e9ad9bfa65a06d97194 (patch)
tree76ab4a411532e6753b6846d20998640d162d6047
parent9b6e75f90b1e56c075eb2bb2566dfd6843a2b5e2 (diff)
[arduino][stm32l475] enable i2c4 bus (#5608)
* [Arduino][stm32l475] enable i2c bus device * 增加默认i2c总线设备名称
-rw-r--r--bsp/stm32/stm32l475-atk-pandora/applications/arduino/pins_arduino.h2
-rw-r--r--bsp/stm32/stm32l475-atk-pandora/board/Kconfig2
2 files changed, 4 insertions, 0 deletions
diff --git a/bsp/stm32/stm32l475-atk-pandora/applications/arduino/pins_arduino.h b/bsp/stm32/stm32l475-atk-pandora/applications/arduino/pins_arduino.h
index 1b0d5170ca..c0e7fffed1 100644
--- a/bsp/stm32/stm32l475-atk-pandora/applications/arduino/pins_arduino.h
+++ b/bsp/stm32/stm32l475-atk-pandora/applications/arduino/pins_arduino.h
@@ -18,6 +18,8 @@
#define ARDUINO_PINOUT_ADC_MAX 6 /* Arduino UNO has 6 ADC pins */
#define ARDUINO_PINOUT_PWM_MAX 5 /* Arduino UNO has 5 PWM pins */
+#define ARDUINO_DEFAULT_IIC_BUS_NAME "i2c4"
+
#define A0 (14)
#define A1 (15)
#define A2 (16)
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/Kconfig b/bsp/stm32/stm32l475-atk-pandora/board/Kconfig
index d17a1f542b..ff8b827009 100644
--- a/bsp/stm32/stm32l475-atk-pandora/board/Kconfig
+++ b/bsp/stm32/stm32l475-atk-pandora/board/Kconfig
@@ -25,6 +25,8 @@ menu "Onboard Peripheral Drivers"
select BSP_USING_PWM4_CH3
select BSP_USING_ADC
select BSP_USING_ADC1
+ select BSP_USING_I2C
+ select BSP_USING_I2C4
default n
config BSP_USING_KEY