File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
bsp/stm32/stm32l496-st-nucleo/board Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,44 @@ menu "On-chip Peripheral Drivers"
5656 depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA
5757 default n
5858 endif
59+
60+ menuconfig BSP_USING_I2C
61+ bool "Enable I2C BUS"
62+ default n
63+ select RT_USING_I2C
64+ select RT_USING_I2C_BITOPS
65+ select RT_USING_PIN
66+ if BSP_USING_I2C
67+ menuconfig BSP_USING_I2C3
68+ bool "Enable I2C3 BUS"
69+ default y
70+ if BSP_USING_I2C3
71+ comment "Notice: PC0 --> 32; PC1 --> 33"
72+ config BSP_I2C3_SCL_PIN
73+ int "i2c3 scl pin number"
74+ range 1 176
75+ default 32
76+ config BSP_I2C3_SDA_PIN
77+ int "I2C3 sda pin number"
78+ range 1 176
79+ default 33
80+ endif
81+
82+ menuconfig BSP_USING_I2C4
83+ bool "Enable I2C4 BUS"
84+ default n
85+ if BSP_USING_I2C4
86+ comment "Notice: PC1 --> 33; PD6 --> 54"
87+ config BSP_I2C4_SCL_PIN
88+ int "i2c4 scl pin number"
89+ range 1 176
90+ default 54
91+ config BSP_I2C4_SDA_PIN
92+ int "I2C4 sda pin number"
93+ range 1 176
94+ default 33
95+ endif
96+ endif
5997
6098 config BSP_USING_ON_CHIP_FLASH
6199 bool "Enable on-chip FLASH"
You can’t perform that action at this time.
0 commit comments