configs/us7032evb1/ostest: Configuration converted to use the kconfig-frontends tools

This commit is contained in:
Gregory Nutt
2014-03-06 09:17:11 -06:00
parent 86d7618733
commit 17a96f6e1e
9 changed files with 846 additions and 469 deletions
+3 -1
View File
@@ -6901,4 +6901,6 @@
* fs/nxffs/nxffs_stat.c: Looks like stat() has the same problem as
the one reported by Lzyy (2014-3-6).
* configs/skp16c26/ostest: Configuration converted to use the
kconfig-frontends tools (2014-3-5)
kconfig-frontends tools (2014-3-6)
* configs/us7032evb1/ostest: Configuration converted to use the
kconfig-frontends tools (2014-3-6)
+2 -106
View File
@@ -11,119 +11,15 @@ menu "M9S12 Peripheral Selection"
config HCS12_SCI0
bool "SCI0"
default n
select ARCH_HAVE_SCI0
config HCS12_SCI1
bool "SCI1"
default n
select ARCH_HAVE_SCI1
endmenu # M9S12 Peripheral Selection
menu "SCI Configuration"
depends on HCS12_SCI0 || HCS12_SCI1
if HCS12_SCI0
config SCI0_RXBUFSIZE
int "SCI0 receive buffer size"
default 256
---help---
Characters are buffered as they are received. This specifies
the size of the receive buffer.
config SCI0_TXBUFSIZE
int "SCI0 transmit buffer size"
default 256
---help---
Characters are buffered before being sent. This specifies
the size of the transmit buffer.
config SCI0_BAUD
int "SCI0 BAUD rate"
default 115200
---help---
The configured BAUD of the SCI.
config SCI0_BITS
int "SCI0 character size"
default 8
---help---
The number of bits. Must be either 7 or 8.
config SCI0_PARITY
int "Parity setting"
default 0
---help---
0=no parity, 1=odd parity, 2=even parity
config SCI0_2STOP
int "SCI0 use 2 stop bits"
default 0
---help---
1=Two stop bits
endif # HCS12_SCI0
if HCS12_SCI1
config SCI1_RXBUFSIZE
int "SCI1 receive buffer size"
default 256
---help---
Characters are buffered as they are received. This specifies
the size of the receive buffer.
config SCI1_TXBUFSIZE
int "SCI1 transmit buffer size"
default 256
---help---
Characters are buffered before being sent. This specifies
the size of the transmit buffer.
config SCI1_BAUD
int "SCI1 BAUD rate"
default 115200
---help---
The configured BAUD of the SCI.
config SCI1_BITS
int "SCI1 character size"
default 8
---help---
The number of bits. Must be either 7 or 8.
config SCI1_PARITY
int "Parity setting"
default 0
---help---
0=no parity, 1=odd parity, 2=even parity
config SCI1_2STOP
int "SCI1 use 2 stop bits"
default 0
---help---
1=Two stop bits
endif # HCS12_SCI1
choice
prompt "SCI Serial Console"
default SCI0_SERIAL_CONSOLE if HCS12_SCI0
default SCI1_SERIAL_CONSOLE if !HCS12_SCI0
config NOSCI_SERIAL_CONSOLE
bool "No SCI serial console"
config SCI0_SERIAL_CONSOLE
bool "SCI0 serial console"
depends on HCS12_SCI0
config SCI1_SERIAL_CONSOLE
bool "SCI1 serial console"
depends on HCS12_SCI1
endchoice
endmenu # SCI Configuration
menu "HSC12 Build Options"
config HCS12_SERIALMON
+6 -3
View File
@@ -4,17 +4,20 @@
#
if ARCH_SH
choice
prompt "SH chip selection"
default ARCH_CHIP_SH7032
config ARCH_CHIP_SH7032
bool "SH7032"
select ARCH_SH1
---help---
Hitachi/Renesas SH7032 (SH1)
config ARCH_CHIP_M30262F8
bool "M30262F8"
select ARCH_M16C
---help---
Renesas M30262F8 (M16C)
@@ -22,11 +25,11 @@ endchoice
config ARCH_SH1
bool
default y if ARCH_CHIP_SH7032
default n
config ARCH_M16C
bool
default y if ARCH_CHIP_M30262F8
default n
config ARCH_CHIP
string
@@ -37,4 +40,4 @@ source arch/sh/src/common/Kconfig
source arch/sh/src/m16c/Kconfig
source arch/sh/src/sh1/Kconfig
endif
endif # ARCH_SH
+61
View File
@@ -6,4 +6,65 @@
if ARCH_SH1
comment "SH-1 Configuration Options"
menu "SH-1 Peripheral Selections"
config SH1_DMAC0
bool "DMAC0"
default n
config SH1_DMAC1
bool "DMAC1"
default n
config SH1_DMAC2
bool "DMAC2"
default n
config SH1_DMAC3
bool "DMAC3"
default n
config SH1_ITU1
bool "ITU2"
default n
config SH1_ITU2
bool "ITU2"
default n
config SH1_ITU3
bool "ITU3"
default n
config SH1_ITU4
bool "ITU4"
default n
config SH1_SCI0
bool "SCI0"
default n
select ARCH_HAVE_SCI0
config SH1_SCI1
bool "SCI1"
default n
select ARCH_HAVE_SCI1
config SH1_PCU
bool "PCU"
default n
config SH1_AD
bool "AD"
default n
config SH1_WDT
bool "WDT"
default n
config SH1_CMI
bool "CMI"
default n
endmenu # SH-1 Peripheral Selections
endif
+1
View File
@@ -764,6 +764,7 @@ config ARCH_BOARD_US7032EVB1
bool "Hitachi SH-1/US7032EVB1 board"
depends on ARCH_CHIP_SH7032
select ARCH_HAVE_LEDS
select ARCH_HAVE_BUTTONS
---help---
This is a port of the Hitachi SH-1 on the Hitachi SH-1/US7032EVB1 board.
STATUS: Work has just began on this port.
+39 -18
View File
@@ -6,7 +6,7 @@ The port is basically complete and many examples run correctly. However, there
are remaining instabilities that make the port un-usable. The nature of these
is not understood; the behavior is that certain SH-1 instructions stop working
as advertised. This could be a silicon problem, some pipeline issue that is not
handled properly by the gcc 3.4.5 toolchain (which has very limit SH-1 support
handled properly by the gcc 3.4.5 toolchain (which has very limited SH-1 support
to begin with), or perhaps with the CMON debugger. At any rate, I have exhausted
all of the energy that I am willing to put into this cool old processor for the
time being.
@@ -55,30 +55,51 @@ shterm
Configurations
^^^^^^^^^^^^^^
Each SH-1 configuration is maintained in a sub-directory and
can be selected as follow:
Common Configuration Notes
--------------------------
cd tools
./configure.sh us7032evb1/<subdir>
cd -
. ./setenv.sh
1. Each SH-1 configuration is maintained in a sub-directory and
can be selected as follow:
Where <subdir> is one of the following:
cd tools
./configure.sh us7032evb1/<subdir>
cd -
. ./setenv.sh
ostest
^^^^^^as advertised. This could be a silicon problem, some pipeline issue that is not handled properly by the gcc 3.4.5 tool
Where <subdir> is one of the configuration sub-directories described in
the following paragraph.
This configuration directory, performs a simple OS test using
examples/ostest.
2. These configurations use the mconf-based configuration tool. To
change a configurations using that tool, you should:
nsh
^^^
a. Build and install the kconfig-mconf tool. See nuttx/README.txt
and misc/tools/
Configures the NuttShell (nsh) located at examples/nsh. The
Configuration enables only the serial NSH interfaces.
b. Execute 'make menuconfig' in nuttx/ in order to start the
reconfiguration process.
NOTE: At present, the NSH example does not run. See the "Status"
discussion above for a full explanation.
3. By default, all configurations assume the NuttX Buildroot toolchain
under Linux (should work under Windows with Cygwin as well). This
is easily reconfigured:
CONFIG_HOST_LINUX=y
CONFIG_ARM_TOOLCHAIN_BUILDROOT=y
Configuration Sub-Directories
-----------------------------
ostest
This configuration directory, performs a simple OS test using
examples/ostest.
nsh
Configures the NuttShell (nsh) located at examples/nsh. The
Configuration enables only the serial NSH interfaces.
NOTE: At present, the NSH example does not run. See the "Status"
discussion above for a full explanation.
Configuration Options
^^^^^^^^^^^^^^^^^^^^^
-39
View File
@@ -1,39 +0,0 @@
############################################################################
# configs/us7032evb1/ostest/appconfig
#
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
# Path to example in apps/examples containing the user_start entry point
CONFIGURED_APPS += examples/ostest
File diff suppressed because it is too large Load Diff
+178 -24
View File
@@ -333,44 +333,99 @@ endif
#
config ARCH_HAVE_UART
bool
bool
default n
select MCU_SERIAL
config ARCH_HAVE_UART0
bool
bool
default n
config ARCH_HAVE_UART1
bool
bool
default n
select MCU_SERIAL
config ARCH_HAVE_UART2
bool
bool
default n
select MCU_SERIAL
config ARCH_HAVE_UART3
bool
bool
default n
select MCU_SERIAL
config ARCH_HAVE_UART4
bool
bool
default n
select MCU_SERIAL
config ARCH_HAVE_UART5
bool
bool
default n
select MCU_SERIAL
config ARCH_HAVE_UART6
bool
bool
default n
select MCU_SERIAL
config ARCH_HAVE_UART7
bool
bool
default n
select MCU_SERIAL
config ARCH_HAVE_UART8
bool
bool
default n
select MCU_SERIAL
config ARCH_HAVE_SCI0
bool
default n
select MCU_SERIAL
config ARCH_HAVE_SCI1
bool
default n
select MCU_SERIAL
config ARCH_HAVE_USART0
bool
bool
default n
config ARCH_HAVE_USART1
bool
bool
default n
config ARCH_HAVE_USART2
bool
bool
default n
config ARCH_HAVE_USART3
bool
bool
default n
config ARCH_HAVE_USART4
bool
bool
default n
config ARCH_HAVE_USART5
bool
bool
default n
config ARCH_HAVE_USART6
bool
bool
default n
config ARCH_HAVE_USART7
bool
bool
default n
config ARCH_HAVE_USART8
bool
bool
default n
#
# USARTn configuration. Is the USART configured to behave like a UART?
@@ -382,54 +437,59 @@ config USART0_ISUART
bool "USART0 is a UART"
default y
depends on ARCH_HAVE_USART0
select MCU_SERIAL
config USART1_ISUART
bool "USART1 is a UART"
default y
depends on ARCH_HAVE_USART1
select MCU_SERIAL
config USART2_ISUART
bool "USART2 is a UART"
default y
depends on ARCH_HAVE_USART2
select MCU_SERIAL
config USART3_ISUART
bool "USART3 is a UART"
default y
depends on ARCH_HAVE_USART3
select MCU_SERIAL
config USART4_ISUART
bool "USART4 is a UART"
default y
depends on ARCH_HAVE_USART4
select MCU_SERIAL
config USART5_ISUART
bool "USART5 is a UART"
default y
depends on ARCH_HAVE_USART5
select MCU_SERIAL
config USART6_ISUART
bool "USART6 is a UART"
default y
depends on ARCH_HAVE_USART6
select MCU_SERIAL
config USART7_ISUART
bool "USART7 is a UART"
default y
depends on ARCH_HAVE_USART7
select MCU_SERIAL
config USART8_ISUART
bool "USART8 is a UART"
default y
depends on ARCH_HAVE_USART8
select MCU_SERIAL
config MCU_SERIAL
bool
default y if ARCH_HAVE_UART || ARCH_HAVE_UART0 || USART0_ISUART || \
ARCH_HAVE_UART1 || USART1_ISUART || ARCH_HAVE_UART2 || USART2_ISUART || \
ARCH_HAVE_UART3 || USART3_ISUART || ARCH_HAVE_UART4 || USART4_ISUART || \
ARCH_HAVE_UART5 || USART5_ISUART || ARCH_HAVE_UART6 || USART6_ISUART || \
ARCH_HAVE_UART7 || USART7_ISUART || ARCH_HAVE_UART8 || USART8_ISUART
default n
#
# Standard serial driver configuration
@@ -547,6 +607,14 @@ config USART8_SERIAL_CONSOLE
bool "USART8"
depends on USART8_ISUART
config SCI0_SERIAL_CONSOLE
bool "SCI0"
depends on ARCH_HAVE_SCI0
config SCI1_SERIAL_CONSOLE
bool "SCI1"
depends on ARCH_HAVE_SCI1
config NO_SERIAL_CONSOLE
bool "No serial console"
@@ -1639,6 +1707,92 @@ config UART8_OFLOWCONTROL
endmenu
menu "SCI0 Configuration"
depends on ARCH_HAVE_SCI0
config SCI0_RXBUFSIZE
int "SCI0 receive buffer size"
default 256
---help---
Characters are buffered as they are received. This specifies
the size of the receive buffer.
config SCI0_TXBUFSIZE
int "SCI0 transmit buffer size"
default 256
---help---
Characters are buffered before being sent. This specifies
the size of the transmit buffer.
config SCI0_BAUD
int "SCI0 BAUD rate"
default 115200
---help---
The configured BAUD of the SCI.
config SCI0_BITS
int "SCI0 character size"
default 8
---help---
The number of bits. Must be either 7 or 8.
config SCI0_PARITY
int "Parity setting"
default 0
---help---
0=no parity, 1=odd parity, 2=even parity
config SCI0_2STOP
int "SCI0 use 2 stop bits"
default 0
---help---
1=Two stop bits
endmenu # SCI0 Configuration
menu "SCI1 Configuration"
depends on ARCH_HAVE_SCI1
config SCI1_RXBUFSIZE
int "SCI1 receive buffer size"
default 256
---help---
Characters are buffered as they are received. This specifies
the size of the receive buffer.
config SCI1_TXBUFSIZE
int "SCI1 transmit buffer size"
default 256
---help---
Characters are buffered before being sent. This specifies
the size of the transmit buffer.
config SCI1_BAUD
int "SCI1 BAUD rate"
default 115200
---help---
The configured BAUD of the SCI.
config SCI1_BITS
int "SCI1 character size"
default 8
---help---
The number of bits. Must be either 7 or 8.
config SCI1_PARITY
int "Parity setting"
default 0
---help---
0=no parity, 1=odd parity, 2=even parity
config SCI1_2STOP
int "SCI1 use 2 stop bits"
default 0
---help---
1=Two stop bits
endmenu # SCI1 Configuration
config SERIAL_IFLOWCONTROL
bool
default n