Browse Source

Merge pull request #8340 from Rbb666/ek-ra8

[bsp][renesas]添加软件i2c配置
Rbb666 1 year ago
parent
commit
4bad6ba060
3 changed files with 25 additions and 17 deletions
  1. 7 11
      bsp/renesas/ra8m1-ek/.config
  2. 16 1
      bsp/renesas/ra8m1-ek/board/Kconfig
  3. 2 5
      bsp/renesas/ra8m1-ek/rtconfig.h

+ 7 - 11
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
@@ -211,6 +212,12 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
 # CONFIG_RT_USING_LWIP is not set
 # 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
 #
@@ -223,17 +230,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
 # CONFIG_RT_USING_RT_LINK is not set
 # 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
 #

+ 16 - 1
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

+ 2 - 5
bsp/renesas/ra8m1-ek/rtconfig.h

@@ -112,13 +112,10 @@
 /* Network */
 
 
-/* Utilities */
-
-
-/* Memory management */
+/* Memory protection */
 
 
-/* Memory protection */
+/* Utilities */
 
 
 /* RT-Thread Utestcases */