summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRbb666 <[email protected]>2023-12-05 15:04:46 +0800
committerRbb666 <[email protected]>2023-12-05 15:04:50 +0800
commit21ba08fab2df5084dbf76ec5cd625f061e03c44f (patch)
treeb81ba42839746f97ed4b90b1fce0dfaf11fc63fb
parentbb66d1ea50f51e28c930abe1159b593ed8fabbdc (diff)
[bsp][renesas]添加软件i2c配置
-rw-r--r--bsp/renesas/ra8m1-ek/.config18
-rw-r--r--bsp/renesas/ra8m1-ek/board/Kconfig17
-rw-r--r--bsp/renesas/ra8m1-ek/rtconfig.h7
3 files changed, 25 insertions, 17 deletions
diff --git a/bsp/renesas/ra8m1-ek/.config b/bsp/renesas/ra8m1-ek/.config
index 26e4067eaf..379d6d2fc7 100644
--- a/bsp/renesas/ra8m1-ek/.config
+++ b/bsp/renesas/ra8m1-ek/.config
@@ -9,6 +9,7 @@
CONFIG_RT_NAME_MAX=8
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
# CONFIG_RT_USING_SMART is not set
+# CONFIG_RT_USING_NANO is not set
# CONFIG_RT_USING_AMP is not set
# CONFIG_RT_USING_SMP is not set
CONFIG_RT_CPUS_NR=1
@@ -212,6 +213,12 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_AT is not set
#
+# Memory protection
+#
+# CONFIG_RT_USING_MEM_PROTECTION is not set
+# CONFIG_RT_USING_HW_STACK_GUARD is not set
+
+#
# Utilities
#
# CONFIG_RT_USING_RYM is not set
@@ -224,17 +231,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_VBUS is not set
#
-# Memory management
-#
-# CONFIG_RT_USING_MEMBLOCK is not set
-
-#
-# Memory protection
-#
-# CONFIG_RT_USING_MEM_PROTECTION is not set
-# CONFIG_RT_USING_HW_STACK_GUARD is not set
-
-#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
diff --git a/bsp/renesas/ra8m1-ek/board/Kconfig b/bsp/renesas/ra8m1-ek/board/Kconfig
index 2a7b636187..af5784d1f5 100644
--- a/bsp/renesas/ra8m1-ek/board/Kconfig
+++ b/bsp/renesas/ra8m1-ek/board/Kconfig
@@ -445,7 +445,7 @@ menu "Hardware Drivers Config"
default n
endif
- menuconfig BSP_USING_I2C
+ menuconfig BSP_USING_I2C
bool "Enable I2C BUS"
default n
select RT_USING_I2C
@@ -460,6 +460,21 @@ menu "Hardware Drivers Config"
bool "Enable Hardware I2C1 BUS"
default n
endif
+ if !BSP_USING_HW_I2C
+ menuconfig BSP_USING_I2C1
+ bool "Enable I2C1 BUS (software simulation)"
+ default y
+ if BSP_USING_I2C1
+ config BSP_I2C1_SCL_PIN
+ hex "i2c1 scl pin number"
+ range 0x0000 0x0B0F
+ default 0x050C
+ config BSP_I2C1_SDA_PIN
+ hex "I2C1 sda pin number"
+ range 0x0000 0x0B0F
+ default 0x050B
+ endif
+ endif
endif
menuconfig BSP_USING_ADC
diff --git a/bsp/renesas/ra8m1-ek/rtconfig.h b/bsp/renesas/ra8m1-ek/rtconfig.h
index 7d04619e10..b231ec96d6 100644
--- a/bsp/renesas/ra8m1-ek/rtconfig.h
+++ b/bsp/renesas/ra8m1-ek/rtconfig.h
@@ -112,13 +112,10 @@
/* Network */
-/* Utilities */
-
-
-/* Memory management */
+/* Memory protection */
-/* Memory protection */
+/* Utilities */
/* RT-Thread Utestcases */