|
@@ -469,15 +469,21 @@ menu "Hardware Drivers Config"
|
|
|
select RT_USING_PIN
|
|
|
default n
|
|
|
if BSP_USING_SOFT_I2C
|
|
|
- config BSP_USING_I2C0
|
|
|
+ config BSP_USING_SOFT_I2C
|
|
|
+ menuconfig BSP_USING_I2C0
|
|
|
bool "Enable I2C0 Bus (software simulation)"
|
|
|
default n
|
|
|
- config BSP_USING_I2C1
|
|
|
- bool "Enable I2C1 Bus (software simulation)"
|
|
|
- default n
|
|
|
- config BSP_USING_I2C2
|
|
|
- bool "Enable I2C2 Bus (software simulation)"
|
|
|
- default n
|
|
|
+ if BSP_USING_I2C0
|
|
|
+ comment "Please select your i2c analog pin, e.g. 'P512': 0x512"
|
|
|
+ config BSP_I2C0_SCL_PIN
|
|
|
+ hex "i2c0 scl pin number (hex)"
|
|
|
+ range 0x0000 0x0E0F
|
|
|
+ default 0x202
|
|
|
+ config BSP_I2C0_SDA_PIN
|
|
|
+ hex "i2c0 sda pin number (hex)"
|
|
|
+ range 0x0000 0x0E0F
|
|
|
+ default 0x203
|
|
|
+ endif
|
|
|
endif
|
|
|
|
|
|
menuconfig BSP_USING_ADC
|