summaryrefslogtreecommitdiff
path: root/nuttx/configs/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-24 09:57:32 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-24 09:57:32 -0600
commita0837e77559131e098d19074643a6c8e1986774e (patch)
tree7bdbcc78d2fd5c68154e239326624b55d10c90d6 /nuttx/configs/Kconfig
parentb3ab4a0ddf89649245b593f9334b33943fceff69 (diff)
downloadnuttx-a0837e77559131e098d19074643a6c8e1986774e.tar.gz
nuttx-a0837e77559131e098d19074643a6c8e1986774e.tar.bz2
nuttx-a0837e77559131e098d19074643a6c8e1986774e.zip
Kconfig: Allow select of standard board properties for custom board
Diffstat (limited to 'nuttx/configs/Kconfig')
-rwxr-xr-xnuttx/configs/Kconfig31
1 files changed, 31 insertions, 0 deletions
diff --git a/nuttx/configs/Kconfig b/nuttx/configs/Kconfig
index 81901a232..dad113ed3 100755
--- a/nuttx/configs/Kconfig
+++ b/nuttx/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