Ver Fonte

[bsp][HMIBoard] config rtduino peripheral with HMI (#8610)

Yuqiang Wang há 1 ano atrás
pai
commit
62b0d4fd2e

+ 10 - 10
bsp/renesas/ra6m3-hmi-board/board/Kconfig

@@ -549,19 +549,19 @@ menu "Hardware Drivers Config"
                     bool "Enable soft SPI1 BUS (software simulation)"
                     default n
                     if BSP_USING_SOFT_SPI1
-                        comment "Please select your spi analog pin, e.g. 'P512': 0x512"
+                        comment "Please refer to the 'bsp_io.h' file to configure the pins"
                         config BSP_S_SPI1_SCK_PIN
                             hex "spi1 sck pin number (hex)"
-                            range 0x0000 0x0E0F
-                            default 0x204
+                            range 0x0000 0xFFFF
+                            default 0x0204
                         config BSP_S_SPI1_MOSI_PIN
                             hex "spi1 mosi pin number (hex)"
-                            range 0x0000 0x0E0F
-                            default 0x512
+                            range 0x0000 0xFFFF
+                            default 0x050C
                         config BSP_S_SPI1_MISO_PIN
                             hex "spi1 miso pin number (hex)"
-                            range 0x0000 0x0E0F
-                            default 0x511
+                            range 0x0000 0xFFFF
+                            default 0x050B
                     endif
             endif
 
@@ -577,14 +577,14 @@ menu "Hardware Drivers Config"
                     bool "Enable I2C0 Bus (software simulation)"
                     default n
                     if BSP_USING_I2C0
-                        comment "Please select your i2c analog pin, e.g. 'P512': 0x512"
+                        comment "Please refer to the 'bsp_io.h' file to configure the pins"
                         config BSP_I2C0_SCL_PIN
                             hex "i2c0 scl pin number (hex)"
-                            range 0x0000 0x0E0F
+                            range 0x0000 0xFFFF
                             default 0x202
                         config BSP_I2C0_SDA_PIN
                             hex "i2c0 sda pin number (hex)"
-                            range 0x0000 0x0E0F
+                            range 0x0000 0xFFFF
                             default 0x203
                     endif
             endif

+ 4 - 0
bsp/renesas/ra6m3-hmi-board/board/rtduino/arduino_pinout/pins_arduino.h

@@ -45,4 +45,8 @@
 /* Serial4(uart4) : P205-TX  P206-RX */
 #define RTDUINO_SERIAL2_DEVICE_NAME "uart4"
 
+/* soft spi1: P204-SS   P511-MISO   P512-MOSI */
+#define SS          D13
+#define RTDUINO_DEFAULT_SPI_BUS_NAME     "sspi1"
+
 #endif /* Pins_Arduino_h */