From 628ad4c97552115f3855179128c1874ee4a93012 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 24 Oct 2014 09:57:32 -0600 Subject: [PATCH] Kconfig: Allow select of standard board properties for custom board --- configs/Kconfig | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/configs/Kconfig b/configs/Kconfig index 81901a23255..dad113ed322 100755 --- a/configs/Kconfig +++ b/configs/Kconfig @@ -961,6 +961,9 @@ config ARCH_BOARD_CUSTOM endchoice +if ARCH_BOARD_CUSTOM +menu "Custom Board Configuration" + config ARCH_BOARD_CUSTOM_DIR string "Custom board directory" depends on ARCH_BOARD_CUSTOM @@ -972,6 +975,34 @@ config ARCH_BOARD_CUSTOM_DIR to some location outside of the NuttX source tree (like "~/projects/myboard"). +config BOARD_CUSTOM_LEDS + bool "Custom board LEDs" + default n + select ARCH_HAVE_LEDS + select ARCH_LEDS + +config BOARD_CUSTOM_BUTTONS + bool "Custom board buttons" + default n + select ARCH_HAVE_BUTTONS + select ARCH__BUTTONS + +config BOARD_CUSTOM_IRQBUTTONS + bool "Custom Board IRQ buttons" + default n + depends on BOARD_CUSTOM_BUTTONS + select ARCH_HAVE_IRQBUTTONS + select ARCH_IRQBUTTONS + +config BOARD_CUSTOM_INTERRUPT + bool "Custom board PHY interrupts" + default n + depends on NETDEVICES + select ARCH_PHY_INTERRUPT if NETDEVICES + +endmenu # Custom Board Configuration +endif #ARCH_BOARD_CUSTOM + config ARCH_BOARD string default "amber" if ARCH_BOARD_AMBER