From 6662c75679a7e5b03b9076c24cdfe5c8267f8e70 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 31 Oct 2016 19:29:30 -0600 Subject: [PATCH] LM32: Add arch/misoc/Kconfig file --- arch/misoc/Kconfig | 64 +++++++++++++++++++++++++++++++++++ arch/misoc/include/lm32/irq.h | 2 +- 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 arch/misoc/Kconfig diff --git a/arch/misoc/Kconfig b/arch/misoc/Kconfig new file mode 100644 index 0000000000..7f3ae0dab4 --- /dev/null +++ b/arch/misoc/Kconfig @@ -0,0 +1,64 @@ +# +# For a description of the syntax of this configuration file, +# see the file kconfig-language.txt in the NuttX tools repository. +# + +if ARCH_MISOC + +choice + prompt "Misoc Chip Selection" + default ARCH_CHIP_LM32 + +config ARCH_CHIP_LM32 + bool "LM32" + select MISOC_HAVE_UART0 + ---help--- + LM32 Chip Selected + +config ARCH_CHIP_MOR1K + bool "MOR1K" + ---help--- + MOR1K Chip Selected + +endchoice # Misoc Chip Selection + +config ARCH_CHIP + string + default "lm32" if ARCH_CHIP_LM32 + +menu "MISOC Peripheral Support" + +# These "hidden" settings determine is a peripheral option is available for the +# selection MCU + +config MISOC_HAVE_UART0 + bool + default n + select UART0_SERIALDRIVER + +config MISOC_UART0 + bool "UART0" + default n + select ARCH_HAVE_UART0 + select MISOC_UART + +endmenu # MISOC Peripheral Support + +config MISOC_UART + bool + +config MISOC_UART_RX_BUF_SIZE + int "UART RX Bufer size" + default 64 + depends on MISOC_UART + ---help--- + Size of RX buffers for MISOC UARTs + +config MISOC_UART_TX_BUF_SIZE + int "UART TX Bufer size" + default 64 + depends on MISOC_UART + ---help--- + Size of TX buffers for MISOC UARTs + +endif # ARCH_MISOC diff --git a/arch/misoc/include/lm32/irq.h b/arch/misoc/include/lm32/irq.h index a98bcab8e3..f12fcb7db6 100644 --- a/arch/misoc/include/lm32/irq.h +++ b/arch/misoc/include/lm32/irq.h @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/misoc/include/lm32/syscall.h + * arch/misoc/include/lm32/irq.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt