[bsp][HMIBoard] config rtduino peripheral with HMI (#8610)
This commit is contained in:
parent
6aa1442f64
commit
62b0d4fd2e
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue