Merge pull request #1409 from Guozhanxin/new
add Seeed Studio RT-M7 board support.|添加Seeed Studio RT-M7开发板支持
This commit is contained in:
commit
0f92097754
|
@ -35,6 +35,8 @@ choice
|
||||||
bool "RT1050_ShareBoard"
|
bool "RT1050_ShareBoard"
|
||||||
config BOARD_RT1050_ATK
|
config BOARD_RT1050_ATK
|
||||||
bool "RT1050_ATK"
|
bool "RT1050_ATK"
|
||||||
|
config BOARD_RT1050_SeeedStudio
|
||||||
|
bool "RT1050_SeeedStudio"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
menu "RT1050 Bsp Config"
|
menu "RT1050 Bsp Config"
|
||||||
|
@ -52,6 +54,7 @@ menu "Select uart drivers"
|
||||||
bool "Using uart3"
|
bool "Using uart3"
|
||||||
select RT_USING_SERIAL
|
select RT_USING_SERIAL
|
||||||
default n
|
default n
|
||||||
|
if !BOARD_RT1050_SeeedStudio
|
||||||
config RT_USING_UART4
|
config RT_USING_UART4
|
||||||
bool "Using uart4"
|
bool "Using uart4"
|
||||||
select RT_USING_SERIAL
|
select RT_USING_SERIAL
|
||||||
|
@ -64,7 +67,8 @@ menu "Select uart drivers"
|
||||||
bool "Using uart6"
|
bool "Using uart6"
|
||||||
select RT_USING_SERIAL
|
select RT_USING_SERIAL
|
||||||
default n
|
default n
|
||||||
if ! BOARD_RT1050_ATK
|
endif
|
||||||
|
if !BOARD_RT1050_ATK && !BOARD_RT1050_SeeedStudio
|
||||||
config RT_USING_UART7
|
config RT_USING_UART7
|
||||||
bool "Using uart7"
|
bool "Using uart7"
|
||||||
select RT_USING_SERIAL
|
select RT_USING_SERIAL
|
||||||
|
@ -101,7 +105,7 @@ menu "Select spi bus and dev drivers"
|
||||||
int "SPI bus clock source divider"
|
int "SPI bus clock source divider"
|
||||||
range 1 8
|
range 1 8
|
||||||
default 8
|
default 8
|
||||||
|
if !BOARD_RT1050_SeeedStudio
|
||||||
config RT_USING_SPIBUS1
|
config RT_USING_SPIBUS1
|
||||||
bool "Using spi1 bus"
|
bool "Using spi1 bus"
|
||||||
select RT_USING_SPI
|
select RT_USING_SPI
|
||||||
|
@ -165,7 +169,7 @@ menu "Select spi bus and dev drivers"
|
||||||
config LPSPI2_SDI_GPIO_2
|
config LPSPI2_SDI_GPIO_2
|
||||||
bool "GPIO_EMC_03"
|
bool "GPIO_EMC_03"
|
||||||
endchoice
|
endchoice
|
||||||
|
endif
|
||||||
config RT_USING_SPIBUS3
|
config RT_USING_SPIBUS3
|
||||||
bool "Using spi3 bus"
|
bool "Using spi3 bus"
|
||||||
select RT_USING_SPI
|
select RT_USING_SPI
|
||||||
|
@ -178,6 +182,7 @@ menu "Select spi bus and dev drivers"
|
||||||
bool "GPIO_AD_B1_15"
|
bool "GPIO_AD_B1_15"
|
||||||
config LPSPI3_SCK_GPIO_2
|
config LPSPI3_SCK_GPIO_2
|
||||||
bool "GPIO_AD_B0_00"
|
bool "GPIO_AD_B0_00"
|
||||||
|
depends on !BOARD_RT1050_SeeedStudio
|
||||||
endchoice
|
endchoice
|
||||||
choice
|
choice
|
||||||
prompt "spi3 bus sdo io choice"
|
prompt "spi3 bus sdo io choice"
|
||||||
|
@ -187,6 +192,7 @@ menu "Select spi bus and dev drivers"
|
||||||
bool "GPIO_AD_B1_14"
|
bool "GPIO_AD_B1_14"
|
||||||
config LPSPI3_SDO_GPIO_2
|
config LPSPI3_SDO_GPIO_2
|
||||||
bool "GPIO_AD_B0_01"
|
bool "GPIO_AD_B0_01"
|
||||||
|
depends on !BOARD_RT1050_SeeedStudio
|
||||||
endchoice
|
endchoice
|
||||||
choice
|
choice
|
||||||
prompt "spi3 bus sdi io choice"
|
prompt "spi3 bus sdi io choice"
|
||||||
|
@ -196,6 +202,7 @@ menu "Select spi bus and dev drivers"
|
||||||
bool "GPIO_AD_B1_13"
|
bool "GPIO_AD_B1_13"
|
||||||
config LPSPI3_SDI_GPIO_2
|
config LPSPI3_SDI_GPIO_2
|
||||||
bool "GPIO_AD_B0_02"
|
bool "GPIO_AD_B0_02"
|
||||||
|
depends on !BOARD_RT1050_SeeedStudio
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config RT_USING_SPIBUS4
|
config RT_USING_SPIBUS4
|
||||||
|
@ -208,6 +215,7 @@ menu "Select spi bus and dev drivers"
|
||||||
depends on RT_USING_SPIBUS4
|
depends on RT_USING_SPIBUS4
|
||||||
config LPSPI4_SCK_GPIO_1
|
config LPSPI4_SCK_GPIO_1
|
||||||
bool "GPIO_B0_03"
|
bool "GPIO_B0_03"
|
||||||
|
depends on !BOARD_RT1050_SeeedStudio
|
||||||
config LPSPI4_SCK_GPIO_2
|
config LPSPI4_SCK_GPIO_2
|
||||||
bool "GPIO_B1_07"
|
bool "GPIO_B1_07"
|
||||||
endchoice
|
endchoice
|
||||||
|
@ -217,6 +225,7 @@ menu "Select spi bus and dev drivers"
|
||||||
depends on RT_USING_SPIBUS4
|
depends on RT_USING_SPIBUS4
|
||||||
config LPSPI4_SDO_GPIO_1
|
config LPSPI4_SDO_GPIO_1
|
||||||
bool "GPIO_B0_02"
|
bool "GPIO_B0_02"
|
||||||
|
depends on !BOARD_RT1050_SeeedStudio
|
||||||
config LPSPI4_SDO_GPIO_2
|
config LPSPI4_SDO_GPIO_2
|
||||||
bool "GPIO_B1_06"
|
bool "GPIO_B1_06"
|
||||||
endchoice
|
endchoice
|
||||||
|
@ -226,6 +235,7 @@ menu "Select spi bus and dev drivers"
|
||||||
depends on RT_USING_SPIBUS4
|
depends on RT_USING_SPIBUS4
|
||||||
config LPSPI4_SDI_GPIO_1
|
config LPSPI4_SDI_GPIO_1
|
||||||
bool "GPIO_B0_01"
|
bool "GPIO_B0_01"
|
||||||
|
depends on !BOARD_RT1050_SeeedStudio
|
||||||
config LPSPI4_SDI_GPIO_2
|
config LPSPI4_SDI_GPIO_2
|
||||||
bool "GPIO_B1_05"
|
bool "GPIO_B1_05"
|
||||||
endchoice
|
endchoice
|
||||||
|
@ -288,7 +298,7 @@ menu "Select iic bus drivers"
|
||||||
config HW_I2C1_BADURATE_400kHZ
|
config HW_I2C1_BADURATE_400kHZ
|
||||||
bool "400kHZ"
|
bool "400kHZ"
|
||||||
endchoice
|
endchoice
|
||||||
|
if !BOARD_RT1050_SeeedStudio
|
||||||
config RT_USING_HW_I2C2
|
config RT_USING_HW_I2C2
|
||||||
bool "using hardware i2c2"
|
bool "using hardware i2c2"
|
||||||
select RT_USING_I2C
|
select RT_USING_I2C
|
||||||
|
@ -302,7 +312,7 @@ menu "Select iic bus drivers"
|
||||||
config HW_I2C2_BADURATE_400kHZ
|
config HW_I2C2_BADURATE_400kHZ
|
||||||
bool "400kHZ"
|
bool "400kHZ"
|
||||||
endchoice
|
endchoice
|
||||||
|
endif
|
||||||
config RT_USING_HW_I2C3
|
config RT_USING_HW_I2C3
|
||||||
bool "using hardware i2c3"
|
bool "using hardware i2c3"
|
||||||
select RT_USING_I2C
|
select RT_USING_I2C
|
||||||
|
@ -332,7 +342,7 @@ menu "Select iic bus drivers"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
if ! BOARD_RT1050_ATK
|
if !BOARD_RT1050_ATK && !BOARD_RT1050_SeeedStudio
|
||||||
menu "Select lcd driver"
|
menu "Select lcd driver"
|
||||||
if RT_USING_LCD && BOARD_RT1050_EVK
|
if RT_USING_LCD && BOARD_RT1050_EVK
|
||||||
comment "Notice: Evk Board para: 480*272 4 4 8 2 40 10 106 45"
|
comment "Notice: Evk Board para: 480*272 4 4 8 2 40 10 106 45"
|
||||||
|
|
|
@ -55,7 +55,7 @@ if GetDepend('RT_USING_USB_DEVICE'):
|
||||||
src += Glob('usb/phy/*.c')
|
src += Glob('usb/phy/*.c')
|
||||||
CPPDEFINES += ['ENDIANNESS']
|
CPPDEFINES += ['ENDIANNESS']
|
||||||
|
|
||||||
if GetDepend('BOARD_RT1050_EVK'):
|
if GetDepend('BOARD_RT1050_EVK') or GetDepend('BOARD_RT1050_SeeedStudio'):
|
||||||
src += ['hyper_flash_boot.c']
|
src += ['hyper_flash_boot.c']
|
||||||
|
|
||||||
if GetDepend('RT_USING_LWIP'):
|
if GetDepend('RT_USING_LWIP'):
|
||||||
|
|
Loading…
Reference in New Issue