update the soft i2c configuration
This commit is contained in:
parent
345ce24e31
commit
edd7a5d176
|
@ -30,12 +30,6 @@ struct ra_i2c
|
||||||
struct rt_i2c_bus_device i2c_bus;
|
struct rt_i2c_bus_device i2c_bus;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef BSP_USING_I2C0
|
|
||||||
#define BSP_I2C0_SCL_PIN BSP_IO_PORT_02_PIN_02
|
|
||||||
#define BSP_I2C0_SDA_PIN BSP_IO_PORT_02_PIN_03
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef BSP_USING_I2C0
|
#ifdef BSP_USING_I2C0
|
||||||
#define I2C0_BUS_CONFIG \
|
#define I2C0_BUS_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
|
|
|
@ -469,15 +469,21 @@ menu "Hardware Drivers Config"
|
||||||
select RT_USING_PIN
|
select RT_USING_PIN
|
||||||
default n
|
default n
|
||||||
if BSP_USING_SOFT_I2C
|
if BSP_USING_SOFT_I2C
|
||||||
config BSP_USING_I2C0
|
config BSP_USING_SOFT_I2C
|
||||||
|
menuconfig BSP_USING_I2C0
|
||||||
bool "Enable I2C0 Bus (software simulation)"
|
bool "Enable I2C0 Bus (software simulation)"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_I2C1
|
if BSP_USING_I2C0
|
||||||
bool "Enable I2C1 Bus (software simulation)"
|
comment "Please select your i2c analog pin, e.g. 'P512': 0x512"
|
||||||
default n
|
config BSP_I2C0_SCL_PIN
|
||||||
config BSP_USING_I2C2
|
hex "i2c0 scl pin number (hex)"
|
||||||
bool "Enable I2C2 Bus (software simulation)"
|
range 0x0000 0x0E0F
|
||||||
default n
|
default 0x202
|
||||||
|
config BSP_I2C0_SDA_PIN
|
||||||
|
hex "i2c0 sda pin number (hex)"
|
||||||
|
range 0x0000 0x0E0F
|
||||||
|
default 0x203
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_ADC
|
menuconfig BSP_USING_ADC
|
||||||
|
|
Loading…
Reference in New Issue