| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- 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"
- source "$RTT_DIR/Kconfig"
- source "$PKGS_DIR/Kconfig"
- config SOC_IMXRT1021
- bool
- select ARCH_ARM_CORTEX_M7
- select ARCH_ARM_CORTEX_FPU
- default y
-
- config BOARD_USING_HYPERFLASH
- bool
- default n
- config BOARD_USING_QSPIFLASH
- bool
- default n
- # RT1021 board select!
- choice
- prompt "RT1021 Board select"
- default BOARD_RT1021_EVK
- config BOARD_RT1021_EVK
- bool "RT1021_EVK"
- select BOARD_USING_QSPIFLASH
- endchoice
- menu "RT1021 Bsp Config"
- menu "Select uart drivers"
- 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
- menu "Select spi bus and dev drivers"
- choice
- prompt "SPI bus clock source"
- default LPSPI_CLK_SOURCE_FROM_PLL3PFD1
- config LPSPI_CLK_SOURCE_FROM_PLL3PFD1
- bool "PLL3PFD1"
- config LPSPI_CLK_SOURCE_FROM_PLL3PFD0
- bool "PLL3PFD0"
- config LPSPI_CLK_SOURCE_FROM_PLL2
- bool "PLL2"
- config LPSPI_CLK_SOURCE_FROM_PLL2PFD2
- bool "PLL2PFD2"
- endchoice
- config LPSPI_CLK_SOURCE
- int
- default 0 if LPSPI_CLK_SOURCE_FROM_PLL3PFD1
- default 1 if LPSPI_CLK_SOURCE_FROM_PLL3PFD0
- default 2 if LPSPI_CLK_SOURCE_FROM_PLL2
- default 3 if LPSPI_CLK_SOURCE_FROM_PLL2PFD2
- config LPSPI_CLK_SOURCE_DIVIDER
- int "SPI bus clock source divider"
- range 1 8
- default 8
- config RT_USING_SPIBUS1
- bool "Using spi1 bus"
- select RT_USING_SPI
- default n
- choice
- prompt "spi1 bus sck io choice"
- default LPSPI1_SCK_GPIO_1
- depends on RT_USING_SPIBUS1
- config LPSPI1_SCK_GPIO_1
- bool "GPIO_AD_B0_10"
- config LPSPI1_SCK_GPIO_2
- bool "GPIO_SD_B0_02"
- endchoice
- choice
- prompt "spi1 bus sdo io choice"
- default LPSPI1_SDO_GPIO_1
- depends on RT_USING_SPIBUS1
- config LPSPI1_SDO_GPIO_1
- bool "GPIO_AD_B0_12"
- config LPSPI1_SDO_GPIO_2
- bool "GPIO_SD_B0_04"
- endchoice
- choice
- prompt "spi1 bus sdi io choice"
- default LPSPI1_SDI_GPIO_1
- depends on RT_USING_SPIBUS1
- config LPSPI1_SDI_GPIO_1
- bool "GPIO_AD_B0_13"
- config LPSPI1_SDI_GPIO_2
- bool "GPIO_SD_B0_05"
- endchoice
- config RT_USING_SPIBUS2
- bool "Using spi2 bus"
- select RT_USING_SPI
- default n
- choice
- prompt "spi2 bus sck io choice"
- default LPSPI2_SCK_GPIO_1
- depends on RT_USING_SPIBUS2
- config LPSPI2_SCK_GPIO_1
- bool "GPIO_SD_B1_07"
- config LPSPI2_SCK_GPIO_2
- bool "GPIO_EMC_00"
- endchoice
- choice
- prompt "spi2 bus sdo io choice"
- default LPSPI2_SDO_GPIO_1
- depends on RT_USING_SPIBUS2
- config LPSPI2_SDO_GPIO_1
- bool "GPIO_SD_B1_08"
- config LPSPI2_SDO_GPIO_2
- bool "GPIO_EMC_02"
- endchoice
- choice
- prompt "spi2 bus sdi io choice"
- default LPSPI2_SDI_GPIO_1
- depends on RT_USING_SPIBUS2
- config LPSPI2_SDI_GPIO_1
- bool "GPIO_SD_B1_09"
- config LPSPI2_SDI_GPIO_2
- bool "GPIO_EMC_03"
- endchoice
- config RT_USING_SPIBUS3
- bool "Using spi3 bus"
- select RT_USING_SPI
- default n
- choice
- prompt "spi3 bus sck io choice"
- default LPSPI3_SCK_GPIO_1
- depends on RT_USING_SPIBUS3
- config LPSPI3_SCK_GPIO_1
- bool "GPIO_AD_B1_12"
- endchoice
- choice
- prompt "spi3 bus sdo io choice"
- default LPSPI3_SDO_GPIO_1
- depends on RT_USING_SPIBUS3
- config LPSPI3_SDO_GPIO_1
- bool "GPIO_AD_B1_14"
- endchoice
- choice
- prompt "spi3 bus sdi io choice"
- default LPSPI3_SDI_GPIO_1
- depends on RT_USING_SPIBUS3
- config LPSPI3_SDI_GPIO_1
- bool "GPIO_AD_B1_15"
- endchoice
- config RT_USING_SPIBUS4
- bool "Using spi4 bus"
- select RT_USING_SPI
- default y
- choice
- prompt "spi4 bus sck io choice"
- default LPSPI4_SCK_GPIO_1
- depends on RT_USING_SPIBUS4
- config LPSPI4_SCK_GPIO_1
- bool "GPIO_AD_B1_02"
- config LPSPI4_SCK_GPIO_2
- bool "GPIO_EMC_32"
- endchoice
- choice
- prompt "spi4 bus sdo io choice"
- default LPSPI4_SDO_GPIO_1
- depends on RT_USING_SPIBUS4
- config LPSPI4_SDO_GPIO_1
- bool "GPIO_AD_B1_04"
- config LPSPI4_SDO_GPIO_2
- bool "GPIO_EMC_34"
- endchoice
- choice
- prompt "spi4 bus sdi io choice"
- default LPSPI4_SDI_GPIO_1
- depends on RT_USING_SPIBUS4
- config LPSPI4_SDI_GPIO_1
- bool "GPIO_AD_B1_B5"
- config LPSPI4_SDI_GPIO_2
- bool "GPIO_EMC_35"
- endchoice
- config RT_USING_SPI_FLASH
- bool "Using spi flash with sfud"
- default n
- select RT_USING_SPI
- select RT_USING_SFUD
- select RT_USING_PIN
- choice
- prompt "SPI flash using spibus"
- default SPI_FLASH_USING_SPIBUS4
- depends on RT_USING_SPI_FLASH
- config SPI_FLASH_USING_SPIBUS1
- bool "spi1"
- select RT_USING_SPIBUS1
- config SPI_FLASH_USING_SPIBUS2
- bool "spi2"
- select RT_USING_SPIBUS2
- config SPI_FLASH_USING_SPIBUS3
- bool "spi3"
- select RT_USING_SPIBUS3
- config SPI_FLASH_USING_SPIBUS4
- bool "spi4"
- select RT_USING_SPIBUS4
- endchoice
- config SPI_FLASH_USING_SPIBUS_NAME
- string
- default "spi1" if SPI_FLASH_USING_SPIBUS1
- default "spi2" if SPI_FLASH_USING_SPIBUS2
- default "spi3" if SPI_FLASH_USING_SPIBUS3
- default "spi4" if SPI_FLASH_USING_SPIBUS4
- config SPI_FLASH_NAME
- string "SPI flash device name"
- default "flash0"
- depends on RT_USING_SPI_FLASH
- config SPI_FLASH_USING_CS_PIN
- int "SPI flash cs pin index"
- default 79
- range 1 127
- depends on RT_USING_SPI_FLASH
- endmenu
- menu "Select iic bus drivers"
- config RT_USING_HW_I2C1
- bool "using hardware i2c1"
- select RT_USING_I2C
- default y
- choice
- prompt "i2c1 bus badurate choice"
- default HW_I2C1_BADURATE_100kHZ
- depends on RT_USING_HW_I2C1
- config HW_I2C1_BADURATE_100kHZ
- bool "100kHZ"
- 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
- default n
- choice
- prompt "i2c2 bus badurate choice"
- default HW_I2C2_BADURATE_100kHZ
- depends on RT_USING_HW_I2C2
- config HW_I2C2_BADURATE_100kHZ
- bool "100kHZ"
- config HW_I2C2_BADURATE_400kHZ
- bool "400kHZ"
- endchoice
- endif
- config RT_USING_HW_I2C3
- bool "using hardware i2c3"
- select RT_USING_I2C
- default n
- choice
- prompt "i2c3 bus badurate choice"
- default HW_I2C3_BADURATE_100kHZ
- depends on RT_USING_HW_I2C3
- config HW_I2C3_BADURATE_100kHZ
- bool "100kHZ"
- config HW_I2C3_BADURATE_400kHZ
- bool "400kHZ"
- endchoice
-
- config RT_USING_HW_I2C4
- bool "using hardware i2c4"
- select RT_USING_I2C
- default n
- choice
- prompt "i2c4 bus badurate choice"
- default HW_I2C4_BADURATE_100kHZ
- depends on RT_USING_HW_I2C4
- config HW_I2C4_BADURATE_100kHZ
- bool "100kHZ"
- config HW_I2C4_BADURATE_400kHZ
- bool "400kHZ"
- endchoice
- endmenu
- #menu "Select SDRAM driver"
- config RT_USING_SDRAM
- bool "Using sdram"
- default y
- #endmenu
- #menu "Select RTC driver"
- config RT_USING_RTC_HP
- bool "Using hp rtc"
- select RT_USING_RTC
- select RT_USING_LIBC
- default n
- #endmenu
- 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"
- endchoice
- endif
- endmenu
|