diff options
| author | Rbb666 <[email protected]> | 2021-09-10 14:04:31 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2021-09-10 14:04:36 +0800 |
| commit | 334e3e238c5779cc03650d4b4226f051cb056918 (patch) | |
| tree | 56b83a52dd5984463531837a87731f3e2c5e922d /bsp/stm32 | |
| parent | 1be660cfc35f035af537fb2596db62fd0c41f8c6 (diff) | |
已验证ART-PI在rtthread主分支的I2C驱动,增加kconfig中I2C的配置。
Diffstat (limited to 'bsp/stm32')
| -rw-r--r-- | bsp/stm32/stm32h750-artpi-h750/board/Kconfig | 55 |
1 files changed, 54 insertions, 1 deletions
diff --git a/bsp/stm32/stm32h750-artpi-h750/board/Kconfig b/bsp/stm32/stm32h750-artpi-h750/board/Kconfig index 34ce12d8bf..23d2d1f518 100644 --- a/bsp/stm32/stm32h750-artpi-h750/board/Kconfig +++ b/bsp/stm32/stm32h750-artpi-h750/board/Kconfig @@ -57,12 +57,65 @@ menu "On-chip Peripheral Drivers" default n endif - config BSP_USING_ONCHIP_RTC bool "Enable Onchip RTC" select RT_USING_RTC default n + menuconfig BSP_USING_I2C + bool "Enable I2C BUS (software simulation)" + select RT_USING_I2C + select RT_USING_I2C_BITOPS + select RT_USING_PIN + default n + if BSP_USING_I2C + menuconfig BSP_USING_I2C1 + bool "Enable I2C1 BUS (software simulation)" + default n + select RT_USING_I2C + select RT_USING_I2C_BITOPS + select RT_USING_PIN + if BSP_USING_I2C1 + comment "Notice: PB6 --> 22; PB7 --> 23" + config BSP_I2C1_SCL_PIN + int "I2C1 scl pin number" + range 0 175 + default 22 + config BSP_I2C1_SDA_PIN + int "I2C1 sda pin number" + range 0 175 + default 23 + endif + menuconfig BSP_USING_I2C2 + bool "Enable I2C2 BUS (software simulation)" + default n + if BSP_USING_I2C2 + comment "Notice: PH13 --> 125; PH15 --> 127" + config BSP_I2C2_SCL_PIN + int "i2c2 scl pin number" + range 1 176 + default 127 + config BSP_I2C2_SDA_PIN + int "I2C2 sda pin number" + range 0 175 + default 125 + endif + menuconfig BSP_USING_I2C3 + bool "Enable I2C3 BUS (software simulation)" + default n + if BSP_USING_I2C3 + comment "Notice: PH12 --> 124; PH11 --> 123" + config BSP_I2C3_SCL_PIN + int "i2c3 scl pin number" + range 0 175 + default 123 + config BSP_I2C3_SDA_PIN + int "I2C3 sda pin number" + range 0 175 + default 124 + endif + endif + source "../libraries/HAL_Drivers/Kconfig" endmenu |
