diff options
| author | kurisaw <[email protected]> | 2024-01-18 10:07:03 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-01-18 11:57:51 +0800 |
| commit | edd7a5d176e09cc6ed73120808ceca30094177ee (patch) | |
| tree | f6352468b6b2f3f83fb77effaf2710be816d9c98 /bsp | |
| parent | 345ce24e31c2827b225baca0f6d4927b7a6fe3c4 (diff) | |
update the soft i2c configuration
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.h | 6 | ||||
| -rw-r--r-- | bsp/renesas/ra6m3-hmi-board/board/Kconfig | 20 |
2 files changed, 13 insertions, 13 deletions
diff --git a/bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.h b/bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.h index 9873659492..ed56c5aa61 100644 --- a/bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.h +++ b/bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.h @@ -31,12 +31,6 @@ struct ra_i2c }; #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 #define I2C0_BUS_CONFIG \ { \ .scl = BSP_I2C0_SCL_PIN, \ diff --git a/bsp/renesas/ra6m3-hmi-board/board/Kconfig b/bsp/renesas/ra6m3-hmi-board/board/Kconfig index b9e8d8a5fa..7db806896e 100644 --- a/bsp/renesas/ra6m3-hmi-board/board/Kconfig +++ b/bsp/renesas/ra6m3-hmi-board/board/Kconfig @@ -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 |
