From 67516b9dca5a32a8b73cd6539e21533d7838a549 Mon Sep 17 00:00:00 2001 From: guozhanxin Date: Sat, 5 May 2018 19:59:59 +0800 Subject: [PATCH] =?UTF-8?q?add=20Seeed=20Studio=20RT-M7=20board=20support.?= =?UTF-8?q?|=E6=B7=BB=E5=8A=A0Seeed=20Studio=20RT-M7=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E6=9D=BF=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/imxrt1052-evk/Kconfig | 24 +++++++++++++++++------- bsp/imxrt1052-evk/drivers/SConscript | 2 +- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/bsp/imxrt1052-evk/Kconfig b/bsp/imxrt1052-evk/Kconfig index ee00d1591f..ad79f2480d 100644 --- a/bsp/imxrt1052-evk/Kconfig +++ b/bsp/imxrt1052-evk/Kconfig @@ -34,7 +34,9 @@ choice config BOARD_RT1050_ShareBoard bool "RT1050_ShareBoard" config BOARD_RT1050_ATK - bool "RT1050_ATK" + bool "RT1050_ATK" + config BOARD_RT1050_SeeedStudio + bool "RT1050_SeeedStudio" endchoice menu "RT1050 Bsp Config" @@ -52,6 +54,7 @@ menu "Select uart drivers" bool "Using uart3" select RT_USING_SERIAL default n +if !BOARD_RT1050_SeeedStudio config RT_USING_UART4 bool "Using uart4" select RT_USING_SERIAL @@ -64,7 +67,8 @@ menu "Select uart drivers" bool "Using uart6" select RT_USING_SERIAL default n -if ! BOARD_RT1050_ATK +endif +if !BOARD_RT1050_ATK && !BOARD_RT1050_SeeedStudio config RT_USING_UART7 bool "Using uart7" select RT_USING_SERIAL @@ -101,7 +105,7 @@ menu "Select spi bus and dev drivers" int "SPI bus clock source divider" range 1 8 default 8 - +if !BOARD_RT1050_SeeedStudio config RT_USING_SPIBUS1 bool "Using spi1 bus" select RT_USING_SPI @@ -165,7 +169,7 @@ menu "Select spi bus and dev drivers" config LPSPI2_SDI_GPIO_2 bool "GPIO_EMC_03" endchoice - +endif config RT_USING_SPIBUS3 bool "Using spi3 bus" select RT_USING_SPI @@ -178,6 +182,7 @@ menu "Select spi bus and dev drivers" bool "GPIO_AD_B1_15" config LPSPI3_SCK_GPIO_2 bool "GPIO_AD_B0_00" + depends on !BOARD_RT1050_SeeedStudio endchoice choice prompt "spi3 bus sdo io choice" @@ -187,6 +192,7 @@ menu "Select spi bus and dev drivers" bool "GPIO_AD_B1_14" config LPSPI3_SDO_GPIO_2 bool "GPIO_AD_B0_01" + depends on !BOARD_RT1050_SeeedStudio endchoice choice prompt "spi3 bus sdi io choice" @@ -196,6 +202,7 @@ menu "Select spi bus and dev drivers" bool "GPIO_AD_B1_13" config LPSPI3_SDI_GPIO_2 bool "GPIO_AD_B0_02" + depends on !BOARD_RT1050_SeeedStudio endchoice config RT_USING_SPIBUS4 @@ -208,6 +215,7 @@ menu "Select spi bus and dev drivers" depends on RT_USING_SPIBUS4 config LPSPI4_SCK_GPIO_1 bool "GPIO_B0_03" + depends on !BOARD_RT1050_SeeedStudio config LPSPI4_SCK_GPIO_2 bool "GPIO_B1_07" endchoice @@ -217,6 +225,7 @@ menu "Select spi bus and dev drivers" depends on RT_USING_SPIBUS4 config LPSPI4_SDO_GPIO_1 bool "GPIO_B0_02" + depends on !BOARD_RT1050_SeeedStudio config LPSPI4_SDO_GPIO_2 bool "GPIO_B1_06" endchoice @@ -226,6 +235,7 @@ menu "Select spi bus and dev drivers" depends on RT_USING_SPIBUS4 config LPSPI4_SDI_GPIO_1 bool "GPIO_B0_01" + depends on !BOARD_RT1050_SeeedStudio config LPSPI4_SDI_GPIO_2 bool "GPIO_B1_05" endchoice @@ -288,7 +298,7 @@ menu "Select iic bus drivers" config HW_I2C1_BADURATE_400kHZ bool "400kHZ" endchoice - +if !BOARD_RT1050_SeeedStudio config RT_USING_HW_I2C2 bool "using hardware i2c2" select RT_USING_I2C @@ -302,7 +312,7 @@ menu "Select iic bus drivers" config HW_I2C2_BADURATE_400kHZ bool "400kHZ" endchoice - +endif config RT_USING_HW_I2C3 bool "using hardware i2c3" select RT_USING_I2C @@ -332,7 +342,7 @@ menu "Select iic bus drivers" endchoice endmenu -if ! BOARD_RT1050_ATK +if !BOARD_RT1050_ATK && !BOARD_RT1050_SeeedStudio menu "Select lcd driver" if RT_USING_LCD && BOARD_RT1050_EVK comment "Notice: Evk Board para: 480*272 4 4 8 2 40 10 106 45" diff --git a/bsp/imxrt1052-evk/drivers/SConscript b/bsp/imxrt1052-evk/drivers/SConscript index 6a41ef3b6d..98f34a1e17 100644 --- a/bsp/imxrt1052-evk/drivers/SConscript +++ b/bsp/imxrt1052-evk/drivers/SConscript @@ -55,7 +55,7 @@ if GetDepend('RT_USING_USB_DEVICE'): src += Glob('usb/phy/*.c') CPPDEFINES += ['ENDIANNESS'] -if GetDepend('BOARD_RT1050_EVK'): +if GetDepend('BOARD_RT1050_EVK') or GetDepend('BOARD_RT1050_SeeedStudio'): src += ['hyper_flash_boot.c'] if GetDepend('RT_USING_LWIP'):