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

This commit is contained in:
Yuqiang Wang 2024-03-15 06:20:33 +08:00 committed by GitHub
parent 6aa1442f64
commit 62b0d4fd2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 10 deletions

View File

@ -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

View File

@ -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 */