Shenzhou board is first to use ONLY Kconfig for configuration

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5114 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-09-08 13:56:21 +00:00
parent 06edc9b16b
commit 767934d4f5
6 changed files with 69 additions and 40 deletions
+6 -6
View File
@@ -96,7 +96,7 @@ config LPC17_PLL1
config LPC17_ETHERNET config LPC17_ETHERNET
bool "Ethernet" bool "Ethernet"
select NET select NET
select ARCH_HAS_PHY select ARCH_HAVE_PHY
default n default n
config LPC17_USBHOST config LPC17_USBHOST
@@ -116,27 +116,27 @@ config LPC17_USBOTG
config LPC17_UART0 config LPC17_UART0
bool "UART0" bool "UART0"
select ARCH_HAS_UART0 select ARCH_HAVE_UART0
default n default n
config LPC17_UART1 config LPC17_UART1
bool "UART1" bool "UART1"
select ARCH_HAS_UART1 select ARCH_HAVE_UART1
default n default n
config LPC17_UART2 config LPC17_UART2
bool "UART2" bool "UART2"
select ARCH_HAS_UART2 select ARCH_HAVE_UART2
default n default n
config LPC17_UART3 config LPC17_UART3
bool "UART3" bool "UART3"
select ARCH_HAS_UART3 select ARCH_HAVE_UART3
default n default n
config LPC17_CAN1 config LPC17_CAN1
bool "CAN1" bool "CAN1"
select ARCH_HAS_UART4 select ARCH_HAVE_UART4
default n default n
config LPC17_CAN2 config LPC17_CAN2
+1 -1
View File
@@ -119,7 +119,7 @@ menu "LPC31xx Peripheral Support"
config LPC31_UART config LPC31_UART
bool "UART" bool "UART"
default n default n
select ARCH_HAS_UART select ARCH_HAVE_UART
config LPC31_SPI config LPC31_SPI
bool "SPI" bool "SPI"
+4 -4
View File
@@ -269,22 +269,22 @@ config LPC43_TMR3
config LPC43_USART0 config LPC43_USART0
bool "USART0" bool "USART0"
select ARCH_HAS_USART0 select ARCH_HAVE_USART0
default n default n
config LPC43_UART1 config LPC43_UART1
bool "UART1" bool "UART1"
select ARCH_HAS_UART1 select ARCH_HAVE_UART1
default n default n
config LPC43_USART2 config LPC43_USART2
bool "USART2" bool "USART2"
select ARCH_HAS_USART2 select ARCH_HAVE_USART2
default n default n
config LPC43_USART3 config LPC43_USART3
bool "USART3" bool "USART3"
select ARCH_HAS_USART3 select ARCH_HAVE_USART3
default n default n
config LPC43_USB0 config LPC43_USB0
+49 -20
View File
@@ -11,80 +11,93 @@ choice
config ARCH_CHIP_STM32F103ZET6 config ARCH_CHIP_STM32F103ZET6
bool "STM32F103ZET6" bool "STM32F103ZET6"
select ARCH_CORTEXM3 select ARCH_CORTEXM3
select STM32_STM32F10XX
config ARCH_CHIP_STM32F103RET6 config ARCH_CHIP_STM32F103RET6
bool "STM32F103RET6" bool "STM32F103RET6"
select ARCH_CORTEXM3 select ARCH_CORTEXM3
select STM32_STM32F10XX
config ARCH_CHIP_STM32F103VCT6 config ARCH_CHIP_STM32F103VCT6
bool "STM32F103VCT6" bool "STM32F103VCT6"
select ARCH_CORTEXM3 select ARCH_CORTEXM3
select STM32_STM32F10XX
config ARCH_CHIP_STM32F105VBT7 config ARCH_CHIP_STM32F105VBT7
bool "STM32F105VBT7" bool "STM32F105VBT7"
select ARCH_CORTEXM3 select ARCH_CORTEXM3
select STM32_STM32F10XX
select STM32_CONNECTIVITYLINE
config ARCH_CHIP_STM32F107VC config ARCH_CHIP_STM32F107VC
bool "STM32F107VC" bool "STM32F107VC"
select ARCH_CORTEXM3 select ARCH_CORTEXM3
select STM32_STM32F10XX
select STM32_CONNECTIVITYLINE
config ARCH_CHIP_STM32F207IG config ARCH_CHIP_STM32F207IG
bool "STM32F207IG" bool "STM32F207IG"
select ARCH_CORTEXM3 select ARCH_CORTEXM3
select STM32_STM32F20XX
config ARCH_CHIP_STM32F405RG config ARCH_CHIP_STM32F405RG
bool "STM32F405RG" bool "STM32F405RG"
select ARCH_CORTEXM3 select ARCH_CORTEXM4
select STM32_STM32F40XX
config ARCH_CHIP_STM32F405VG config ARCH_CHIP_STM32F405VG
bool "STM32F405VG" bool "STM32F405VG"
select ARCH_CORTEXM3 select ARCH_CORTEXM4
select STM32_STM32F40XX
config ARCH_CHIP_STM32F405ZG config ARCH_CHIP_STM32F405ZG
bool "STM32F405ZG" bool "STM32F405ZG"
select ARCH_CORTEXM3 select ARCH_CORTEXM4
select STM32_STM32F40XX
config ARCH_CHIP_STM32F407VE config ARCH_CHIP_STM32F407VE
bool "STM32F407VE" bool "STM32F407VE"
select ARCH_CORTEXM3 select ARCH_CORTEXM4
select STM32_STM32F40XX
config ARCH_CHIP_STM32F407VG config ARCH_CHIP_STM32F407VG
bool "STM32F407VG" bool "STM32F407VG"
select ARCH_CORTEXM3 select ARCH_CORTEXM3
select STM32_STM32F40XX
config ARCH_CHIP_STM32F407ZE config ARCH_CHIP_STM32F407ZE
bool "STM32F407ZE" bool "STM32F407ZE"
select ARCH_CORTEXM4 select ARCH_CORTEXM4
select STM32_STM32F40XX
config ARCH_CHIP_STM32F407ZG config ARCH_CHIP_STM32F407ZG
bool "STM32F407ZG" bool "STM32F407ZG"
select ARCH_CORTEXM4 select ARCH_CORTEXM4
select STM32_STM32F40XX
config ARCH_CHIP_STM32F407IE config ARCH_CHIP_STM32F407IE
bool "STM32F407IE" bool "STM32F407IE"
select ARCH_CORTEXM4 select ARCH_CORTEXM4
select STM32_STM32F40XX
config ARCH_CHIP_STM32F407IG config ARCH_CHIP_STM32F407IG
bool "STM32F407IG" bool "STM32F407IG"
select ARCH_CORTEXM4 select ARCH_CORTEXM4
select STM32_STM32F40XX
endchoice endchoice
config STM32_STM32F10XX config STM32_STM32F10XX
bool bool
default y if ARCH_CHIP_STM32F103ZET6 || ARCH_CHIP_STM32F103RET6 || ARCH_CHIP_STM32F103VCT6 || ARCH_CHIP_STM32F105VBT7 || ARCH_CHIP_STM32F107VC
config STM32_CONNECTIVITYLINE config STM32_CONNECTIVITYLINE
bool bool
default y if ARCH_CHIP_STM32F105VBT7 || ARCH_CHIP_STM32F107VC
config STM32_STM32F20XX config STM32_STM32F20XX
bool bool
default y if ARCH_CHIP_STM32F207IG
config STM32_STM32F40XX config STM32_STM32F40XX
bool bool
default y if ARCH_CHIP_STM32F405RG || ARCH_CHIP_STM32F405VG || ARCH_CHIP_STM32F405ZG || ARCH_CHIP_STM32F407VE || ARCH_CHIP_STM32F407VG || ARCH_CHIP_STM32F407ZE || ARCH_CHIP_STM32F407ZG || ARCH_CHIP_STM32F407IE || ARCH_CHIP_STM32F407IG
choice choice
prompt "Toolchain Selection" prompt "Toolchain Selection"
@@ -160,11 +173,13 @@ config STM32_BKPSRAM
config STM32_CAN1 config STM32_CAN1
bool "CAN1" bool "CAN1"
default n default n
select CAN
config STM32_CAN2 config STM32_CAN2
bool "CAN2" bool "CAN2"
default n default n
depends on STM32_STM32F20XX || STM32_STM32F40XX depends on STM32_STM32F20XX || STM32_STM32F40XX
select CAN
config STM32_CCMDATARAM config STM32_CCMDATARAM
bool "CMD/DATA RAM" bool "CMD/DATA RAM"
@@ -192,11 +207,12 @@ config STM32_DCMI
config STM32_ETHMAC config STM32_ETHMAC
bool "Ethernet MAC" bool "Ethernet MAC"
default n default n
depends on STM32_STM32F20XX || STM32_STM32F40XX depends on STM32_CONNECTIVITYLINE || STM32_STM32F20XX || STM32_STM32F40XX
config STM32_FSMC config STM32_FSMC
bool "FSMC" bool "FSMC"
default n default n
depends on !STM32_CONNECTIVITYLINE
config STM32_HASH config STM32_HASH
bool "HASH" bool "HASH"
@@ -219,6 +235,7 @@ config STM32_I2C3
config STM32_IWDG config STM32_IWDG
bool "IWDG" bool "IWDG"
default n default n
select WATCHDOG
config STM32_OTGFS config STM32_OTGFS
bool "OTG FS" bool "OTG FS"
@@ -242,24 +259,29 @@ config STM32_RNG
config STM32_SDIO config STM32_SDIO
bool "SDIO" bool "SDIO"
default n default n
depends on !STM32_CONNECTIVITYLINE
config STM32_SPI1 config STM32_SPI1
bool "SPI1" bool "SPI1"
default n default n
select SPI
config STM32_SPI2 config STM32_SPI2
bool "SPI2" bool "SPI2"
default n default n
select SPI
config STM32_SPI3 config STM32_SPI3
bool "SPI3" bool "SPI3"
default n default n
depends on STM32_STM32F20XX || STM32_STM32F40XX depends on STM32_STM32F20XX || STM32_STM32F40XX
select SPI
config STM32_SPI4 config STM32_SPI4
bool "SPI4" bool "SPI4"
default n default n
depends on STM32_STM32F10XX depends on STM32_STM32F10XX
select SPI
config STM32_SYSCFG config STM32_SYSCFG
bool "SYSCFG" bool "SYSCFG"
@@ -330,43 +352,45 @@ config STM32_TIM14
config STM32_USART1 config STM32_USART1
bool "USART1" bool "USART1"
select ARCH_HAS_USART1
default n default n
select ARCH_HAVE_USART1
config STM32_USART2 config STM32_USART2
bool "USART2" bool "USART2"
select ARCH_HAS_USART2
default n default n
select ARCH_HAVE_USART2
config STM32_USART3 config STM32_USART3
bool "USART3" bool "USART3"
select ARCH_HAS_USART3
default n default n
select ARCH_HAVE_USART3
config STM32_UART4 config STM32_UART4
bool "UART4" bool "UART4"
select ARCH_HAS_UART4
default n default n
select ARCH_HAVE_UART4
config STM32_UART5 config STM32_UART5
bool "UART5" bool "UART5"
select ARCH_HAS_UART5
default n default n
select ARCH_HAVE_UART5
config STM32_USART6 config STM32_USART6
bool "USART6" bool "USART6"
default n default n
select ARCH_HAS_USART6
depends on STM32_STM32F20XX || STM32_STM32F40XX depends on STM32_STM32F20XX || STM32_STM32F40XX
select ARCH_HAVE_USART6
config STM32_USB config STM32_USB
bool "USB Device" bool "USB Device"
default n default n
depends on STM32_STM32F10XX depends on STM32_STM32F10XX
select USBDEV
config STM32_WWDG config STM32_WWDG
bool "WWDG" bool "WWDG"
default n default n
select WATCHDOG
endmenu endmenu
@@ -495,18 +519,23 @@ choice
config STM32_CAN1_NO_REMAP config STM32_CAN1_NO_REMAP
bool "No pin remapping" bool "No pin remapping"
config STM32_CAN1_FULL_REMAP config CONFIG_STM32_CAN1_REMAP1
bool "Full pin remapping" bool "CAN1 alternate pin remapping #1"
config STM32_CAN1_PARTIAL_REMAP config CONFIG_STM32_CAN1_REMAP2
bool "Partial pin remapping" bool "CAN1 alternate pin remapping #2"
endchoice endchoice
config STM32_CAN2_REMAP config STM32_CAN2_REMAP
bool "CAN2 Alternate Pin Mapping" bool "CAN2 Alternate Pin Mapping"
default n default n
depends on STM32_STM32F10XX && STM32_CAN2 depends on STM32_CONNECTIVITYLINE && STM32_CAN2
config STM32_ETH_REMAP
bool "Ethernet Alternate Pin Mapping"
default n
depends on STM32_CONNECTIVITYLINE && STM32_ETHMAC
choice choice
prompt "JTAG Configuration" prompt "JTAG Configuration"
+2 -2
View File
@@ -118,10 +118,10 @@ source arch/avr/src/at32uc3/Kconfig
config AVR_USART0 config AVR_USART0
bool "USART0 specific serial device driver settings" bool "USART0 specific serial device driver settings"
select ARCH_HAS_USART0 select ARCH_HAVE_USART0
config AVR_USART1 config AVR_USART1
bool "USART1 specific serial device driver settings" bool "USART1 specific serial device driver settings"
select ARCH_HAS_USART1 select ARCH_HAVE_USART1
endif endif
+7 -7
View File
@@ -493,32 +493,32 @@ config PIC32MX_SPI4
config PIC32MX_UART1 config PIC32MX_UART1
bool "UART1" bool "UART1"
default n default n
select ARCH_HAS_UART1 select ARCH_HAVE_UART1
config PIC32MX_UART2 config PIC32MX_UART2
bool "UART2" bool "UART2"
default n default n
select ARCH_HAS_UART1 select ARCH_HAVE_UART1
config PIC32MX_UART3 config PIC32MX_UART3
bool "UART3" bool "UART3"
default n default n
select ARCH_HAS_UART3 select ARCH_HAVE_UART3
config PIC32MX_UART4 config PIC32MX_UART4
bool "UART4" bool "UART4"
default n default n
select ARCH_HAS_UART4 select ARCH_HAVE_UART4
config PIC32MX_UART5 config PIC32MX_UART5
bool "UART5" bool "UART5"
default n default n
select ARCH_HAS_UART5 select ARCH_HAVE_UART5
config PIC32MX_UART6 config PIC32MX_UART6
bool "UART6" bool "UART6"
default n default n
select ARCH_HAS_UART6 select ARCH_HAVE_UART6
config PIC32MX_ADC config PIC32MX_ADC
bool "ADC1" bool "ADC1"
@@ -568,7 +568,7 @@ config PIC32MX_ETHERNET
bool "Ethernet" bool "Ethernet"
default n default n
select NET select NET
select ARCH_HAS_PHY select ARCH_HAVE_PHY
config PIC32MX_CTMU config PIC32MX_CTMU
bool "Charge Time Measurement Unit (CMTU)" bool "Charge Time Measurement Unit (CMTU)"