summaryrefslogtreecommitdiff
path: root/nuttx/arch/hc
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-03-05 17:27:58 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-03-05 17:27:58 -0600
commitfded810a18711e96d3ae8d56310eae4fc434550b (patch)
tree3eeec8996f94b5aefe63aa81dff1fd5f66279400 /nuttx/arch/hc
parentade00d9f50648e66e78a562b0c6a83daa3ebe7a2 (diff)
downloadnuttx-fded810a18711e96d3ae8d56310eae4fc434550b.tar.gz
nuttx-fded810a18711e96d3ae8d56310eae4fc434550b.tar.bz2
nuttx-fded810a18711e96d3ae8d56310eae4fc434550b.zip
configs/ne64badge/ostest and demo9s12nec64/ostest: Configurations onverted to use the kconfig-frontends tools
Diffstat (limited to 'nuttx/arch/hc')
-rw-r--r--nuttx/arch/hc/Kconfig6
-rw-r--r--nuttx/arch/hc/src/m9s12/Kconfig140
2 files changed, 143 insertions, 3 deletions
diff --git a/nuttx/arch/hc/Kconfig b/nuttx/arch/hc/Kconfig
index 0ce1288cb..f578283d5 100644
--- a/nuttx/arch/hc/Kconfig
+++ b/nuttx/arch/hc/Kconfig
@@ -4,12 +4,14 @@
#
if ARCH_HC
+
choice
prompt "HC chip selection"
default ARCH_CHIP_MCS92S12NEC64
config ARCH_CHIP_MCS92S12NEC64
bool "MCS92S12NEC64"
+ select ARCH_HSC12
---help---
Motorola/Freescale MCS92S12NEC64 (M9S12)
@@ -17,7 +19,7 @@ endchoice
config ARCH_HSC12
bool
- default y if ARCH_CHIP_MCS92S12NEC64
+ default n
config ARCH_CHIP
string
@@ -25,4 +27,4 @@ config ARCH_CHIP
source arch/hc/src/m9s12/Kconfig
-endif
+endif # ARCH_HC
diff --git a/nuttx/arch/hc/src/m9s12/Kconfig b/nuttx/arch/hc/src/m9s12/Kconfig
index e4addf43f..a2968c85f 100644
--- a/nuttx/arch/hc/src/m9s12/Kconfig
+++ b/nuttx/arch/hc/src/m9s12/Kconfig
@@ -6,4 +6,142 @@
if ARCH_HSC12
comment "M9S12 Configuration Options"
-endif
+menu "M9S12 Peripheral Selection"
+
+config HCS12_SCI0
+ bool "SCI0"
+ default n
+
+config HCS12_SCI1
+ bool "SCI1"
+ default n
+
+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
+ bool "Freescale serial bootloader"
+ default n
+ ---help---
+ Indicates that the target systems uses the Freescale serial
+ bootloader.
+
+config HCS12_NONBANKED
+ bool "Non-banked"
+ default n
+ ---help---
+ Indicates that the target systems does not support banking.
+ Only short calls are made; one fixed page is presented in the
+ paging window. Only 48Kb of FLASH is usable in this configuration:
+ pages 3e, 3d, then 3f will appear as a contiguous address space
+ in memory.
+
+endmenu # HSC12 Build Options
+endif # ARCH_HSC12