2017-10-26 15:39:32 +08:00
|
|
|
mainmenu "RT-Thread Configuration"
|
|
|
|
|
|
|
|
config $BSP_DIR
|
|
|
|
string
|
|
|
|
option env="BSP_ROOT"
|
|
|
|
default "."
|
|
|
|
|
|
|
|
config $RTT_DIR
|
|
|
|
string
|
|
|
|
option env="RTT_ROOT"
|
|
|
|
default "../.."
|
|
|
|
|
|
|
|
config $PKGS_DIR
|
|
|
|
string
|
|
|
|
option env="PKGS_ROOT"
|
|
|
|
default "packages"
|
|
|
|
|
2017-11-30 20:12:53 +08:00
|
|
|
source "$RTT_DIR/Kconfig"
|
|
|
|
source "$PKGS_DIR/Kconfig"
|
2017-10-26 15:39:32 +08:00
|
|
|
|
2017-12-15 17:31:07 +08:00
|
|
|
config SOC_IMXRT1052
|
|
|
|
bool
|
2017-12-15 14:41:03 +08:00
|
|
|
select ARCH_ARM_CORTEX_M7
|
|
|
|
default y
|
|
|
|
|
2018-03-26 11:38:20 +08:00
|
|
|
# RT1050 board select!
|
|
|
|
choice
|
|
|
|
prompt "RT1050 Board select"
|
|
|
|
default BOARD_RT1050_EVK
|
|
|
|
config BOARD_RT1050_EVK
|
|
|
|
bool "RT1050_EVK"
|
|
|
|
config BOARD_RT1050_FIRE
|
|
|
|
bool "RT1050_FIRE"
|
|
|
|
endchoice
|
2018-03-16 17:03:20 +08:00
|
|
|
|
2018-03-26 11:38:20 +08:00
|
|
|
if BOARD_RT1050_EVK
|
|
|
|
menu "RT1050_EVK Bsp Config"
|
|
|
|
|
2018-03-30 12:20:42 +08:00
|
|
|
menu "Select uart drivers"
|
2018-03-26 11:38:20 +08:00
|
|
|
config RT_USING_UART1
|
|
|
|
bool "Using uart1"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default y
|
|
|
|
config RT_USING_UART2
|
|
|
|
bool "Using uart2"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART3
|
|
|
|
bool "Using uart3"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART4
|
|
|
|
bool "Using uart4"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART5
|
|
|
|
bool "Using uart5"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART6
|
|
|
|
bool "Using uart6"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART7
|
|
|
|
bool "Using uart7"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART8
|
|
|
|
bool "Using uart8"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
endmenu
|
|
|
|
|
2018-03-30 12:20:42 +08:00
|
|
|
menu "Select spibus drivers"
|
|
|
|
config RT_USING_SPIBUS1
|
|
|
|
bool "Using spi1 bus"
|
|
|
|
select RT_USING_SPI
|
|
|
|
default n
|
|
|
|
config RT_USING_SPIBUS2
|
|
|
|
bool "Using spi2 bus"
|
|
|
|
select RT_USING_SPI
|
|
|
|
default n
|
|
|
|
config RT_USING_SPIBUS3
|
|
|
|
bool "Using spi3 bus"
|
|
|
|
select RT_USING_SPI
|
|
|
|
default n
|
|
|
|
config RT_USING_SPIBUS4
|
|
|
|
bool "Using spi4 bus"
|
|
|
|
select RT_USING_SPI
|
|
|
|
default y
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
#menu "SDRAM driver support"
|
2018-03-26 11:38:20 +08:00
|
|
|
config RT_USING_SDRAM
|
|
|
|
bool "Using sdram"
|
|
|
|
default y
|
|
|
|
#endmenu
|
|
|
|
|
2018-03-30 12:20:42 +08:00
|
|
|
#menu "RTC driver support"
|
2018-03-26 11:38:20 +08:00
|
|
|
config RT_USING_RTC_HP
|
|
|
|
bool "Using hp rtc"
|
|
|
|
select RT_USING_RTC
|
|
|
|
default n
|
|
|
|
#endmenu
|
2018-03-16 17:03:20 +08:00
|
|
|
|
2018-03-23 09:36:54 +08:00
|
|
|
if RT_USING_USB_DEVICE
|
|
|
|
choice
|
|
|
|
prompt "select usb device controller"
|
|
|
|
default RT_USING_EHCI0_AS_DEVICE
|
|
|
|
|
|
|
|
config RT_USING_EHCI0_AS_DEVICE
|
|
|
|
bool "set EHCI0 as device"
|
|
|
|
config RT_USING_EHCI1_AS_DEVICE
|
|
|
|
bool "set EHCI1 as device"
|
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
|
2018-03-26 11:38:20 +08:00
|
|
|
endmenu
|
|
|
|
endif
|
2018-03-23 09:36:54 +08:00
|
|
|
|
2018-03-26 11:38:20 +08:00
|
|
|
if BOARD_RT1050_FIRE
|
|
|
|
menu "RT1050_FIRE Bsp Config"
|
|
|
|
|
2018-03-30 12:20:42 +08:00
|
|
|
menu "Select uart drivers"
|
2018-03-26 11:38:20 +08:00
|
|
|
config RT_USING_UART1
|
|
|
|
bool "Using uart1"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default y
|
|
|
|
config RT_USING_UART2
|
|
|
|
bool "Using uart2"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART3
|
|
|
|
bool "Using uart3"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART4
|
|
|
|
bool "Using uart4"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART5
|
|
|
|
bool "Using uart5"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART6
|
|
|
|
bool "Using uart6"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART7
|
|
|
|
bool "Using uart7"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
config RT_USING_UART8
|
|
|
|
bool "Using uart8"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default n
|
|
|
|
endmenu
|
|
|
|
|
2018-03-30 12:20:42 +08:00
|
|
|
menu "Select spibus drivers"
|
|
|
|
config RT_USING_SPIBUS1
|
|
|
|
bool "Using spi1 bus"
|
|
|
|
select RT_USING_SPI
|
|
|
|
default n
|
|
|
|
config RT_USING_SPIBUS2
|
|
|
|
bool "Using spi2 bus"
|
|
|
|
select RT_USING_SPI
|
|
|
|
default n
|
|
|
|
config RT_USING_SPIBUS3
|
|
|
|
bool "Using spi3 bus"
|
|
|
|
select RT_USING_SPI
|
|
|
|
default n
|
|
|
|
config RT_USING_SPIBUS4
|
|
|
|
bool "Using spi4 bus"
|
|
|
|
select RT_USING_SPI
|
|
|
|
default y
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
#menu "SDRAM driver support"
|
2018-03-26 11:38:20 +08:00
|
|
|
config RT_USING_SDRAM
|
|
|
|
bool "Using sdram"
|
|
|
|
default y
|
|
|
|
#endmenu
|
|
|
|
|
2018-03-30 12:20:42 +08:00
|
|
|
#menu "RTC driver support"
|
2018-03-26 11:38:20 +08:00
|
|
|
config RT_USING_RTC_HP
|
|
|
|
bool "Using hp rtc"
|
|
|
|
select RT_USING_RTC
|
|
|
|
default n
|
|
|
|
#endmenu
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
endif
|