diff options
-rw-r--r-- | nuttx/arch/x86/Kconfig | 27 | ||||
-rw-r--r-- | nuttx/arch/x86/src/common/Kconfig | 7 | ||||
-rw-r--r-- | nuttx/arch/x86/src/i486/Kconfig | 7 | ||||
-rw-r--r-- | nuttx/arch/x86/src/qemu/Kconfig | 7 | ||||
-rw-r--r-- | nuttx/arch/z16/Kconfig | 41 | ||||
-rw-r--r-- | nuttx/arch/z16/src/common/Kconfig | 7 | ||||
-rw-r--r-- | nuttx/arch/z16/src/z16f/Kconfig | 7 | ||||
-rw-r--r-- | nuttx/arch/z80/Kconfig | 68 | ||||
-rw-r--r-- | nuttx/arch/z80/src/common/Kconfig | 7 | ||||
-rw-r--r-- | nuttx/arch/z80/src/ez80/Kconfig | 7 | ||||
-rw-r--r-- | nuttx/arch/z80/src/z8/Kconfig | 7 | ||||
-rw-r--r-- | nuttx/arch/z80/src/z80/Kconfig | 7 | ||||
-rw-r--r-- | nuttx/drivers/serial/serial.c | 4 |
13 files changed, 203 insertions, 0 deletions
diff --git a/nuttx/arch/x86/Kconfig b/nuttx/arch/x86/Kconfig index ae2bf3130..c988c92a4 100644 --- a/nuttx/arch/x86/Kconfig +++ b/nuttx/arch/x86/Kconfig @@ -2,3 +2,30 @@ # For a description of the syntax of this configuration file, # see misc/tools/kconfig-language.txt. # + +if ARCH_X86 +choice + prompt "x86 chip selection" + default ARCH_I486 + +config ARCH_I486 + bool "i486" + ---help--- + Intel i486 architecture + +endchoice + +config ARCH_CHIP_QEMU + bool "Qemu x86 emulation" + ---help--- + Intel i486 architecture + +config ARCH_CHIP + string + default "qemu" if ARCH_CHIP_QEMU + +source arch/x86/src/common/Kconfig +source arch/x86/src/i486/Kconfig +source arch/x86/src/qemu/Kconfig + +endif diff --git a/nuttx/arch/x86/src/common/Kconfig b/nuttx/arch/x86/src/common/Kconfig new file mode 100644 index 000000000..fff9d7f12 --- /dev/null +++ b/nuttx/arch/x86/src/common/Kconfig @@ -0,0 +1,7 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +if ARCH_X86 +endif diff --git a/nuttx/arch/x86/src/i486/Kconfig b/nuttx/arch/x86/src/i486/Kconfig new file mode 100644 index 000000000..be9fa2cd0 --- /dev/null +++ b/nuttx/arch/x86/src/i486/Kconfig @@ -0,0 +1,7 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +if ARCH_I486 +endif diff --git a/nuttx/arch/x86/src/qemu/Kconfig b/nuttx/arch/x86/src/qemu/Kconfig new file mode 100644 index 000000000..ac2e2a5e9 --- /dev/null +++ b/nuttx/arch/x86/src/qemu/Kconfig @@ -0,0 +1,7 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +if ARCH_CHIP_QEMU +endif diff --git a/nuttx/arch/z16/Kconfig b/nuttx/arch/z16/Kconfig index ae2bf3130..acf58bcf3 100644 --- a/nuttx/arch/z16/Kconfig +++ b/nuttx/arch/z16/Kconfig @@ -2,3 +2,44 @@ # For a description of the syntax of this configuration file, # see misc/tools/kconfig-language.txt. # + +if ARCH_Z16 + +choice + prompt "ZNEO chip selection" + default ARCH_CHIP_Z16F2811 + +config ARCH_CHIP_Z16F2810 + bool "Z16F2810" + ---help--- + ZiLOG Z16F2810 + +config ARCH_CHIP_Z16F2811 + bool "Z16F2811" + ---help--- + ZiLOG Z16F2811 + +config ARCH_CHIP_Z16F3211 + bool "Z16F321" + ---help--- + ZiLOG Z16F321 + +config ARCH_CHIP_Z16F6411 + bool "Z16F6411" + ---help--- + ZiLOG Z16F6411 + +endchoice + +config ARCH_CHIP_Z16F + bool + default y if ARCH_CHIP_Z16F2810 || ARCH_CHIP_Z16F2811 || ARCH_CHIP_Z16F3211 || ARCH_CHIP_Z16F6411 + +config ARCH_CHIP + string + default "z16f" if ARCH_CHIP_Z16F + +source arch/z16/src/common/Kconfig +source arch/z16/src/z16f/Kconfig + +endif diff --git a/nuttx/arch/z16/src/common/Kconfig b/nuttx/arch/z16/src/common/Kconfig new file mode 100644 index 000000000..0f94fb19a --- /dev/null +++ b/nuttx/arch/z16/src/common/Kconfig @@ -0,0 +1,7 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +if ARCH_Z16 +endif diff --git a/nuttx/arch/z16/src/z16f/Kconfig b/nuttx/arch/z16/src/z16f/Kconfig new file mode 100644 index 000000000..f410f51c4 --- /dev/null +++ b/nuttx/arch/z16/src/z16f/Kconfig @@ -0,0 +1,7 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +if ARCH_CHIP_Z16F +endif diff --git a/nuttx/arch/z80/Kconfig b/nuttx/arch/z80/Kconfig index ae2bf3130..160b92d91 100644 --- a/nuttx/arch/z80/Kconfig +++ b/nuttx/arch/z80/Kconfig @@ -2,3 +2,71 @@ # For a description of the syntax of this configuration file, # see misc/tools/kconfig-language.txt. # + +if ARCH_Z80 +choice + prompt "ZiLOG 8-bit MCU" + default ARCH_CHIP_Z80 + +config ARCH_CHIP_Z80 + bool "Classic z80" + ---help--- + Classic ZiLOG z80 chip + +config ARCH_CHIP_Z8F640X + bool "Z8F640X" + ---help--- + ZiLOG Z8F640X (z8 Encore) + +config ARCH_CHIP_Z8F6403 + bool "Z8F6403" + ---help--- + ZiLOG Z8F6403 (z8 Encore) + +config ARCH_CHIP_Z8F642X + bool "Z8F642X" + ---help--- + ZiLOG Z8F642X (z8 Encore) + +config ARCH_CHIP_Z8F6423 + bool "Z8F6423" + ---help--- + ZiLOG Z8F6423 (z8 Encore) + +config ARCH_CHIP_EZ80F91 + bool "EZ80F91" + ---help--- + ZiLOG EZ80F91 (ez80 Acclaim) + +config ARCH_CHIP_EZ80F92 + bool "EZ80F92" + ---help--- + ZiLOG EZ80F92 (ez80 Acclaim) + +config ARCH_CHIP_EZ80F93 + bool "EZ80F93" + ---help--- + ZiLOG EZ80F93 (ez80 Acclaim) + +endchoice + +config ARCH_CHIP_Z8 + bool + default y if ARCH_CHIP_Z8F640X || ARCH_CHIP_Z8F6403 || ARCH_CHIP_Z8F642X || ARCH_CHIP_Z8F6423 + +config ARCH_CHIP_EZ80 + bool + default y if ARCH_CHIP_EZ80F91 || ARCH_CHIP_EZ80F92 || ARCH_CHIP_EZ80F93 + +config ARCH_CHIP + string + default "z80" if ARCH_CHIP_Z80 + default "z8" if ARCH_CHIP_Z8 + default "ez80" if ARCH_CHIP_EZ80 + +source "arch/z80/src/common/Kconfig" +source "arch/z80/src/z80/Kconfig" +source "arch/z80/src/z8/Kconfig" +source "arch/z80/src/ez80/Kconfig" + +endif diff --git a/nuttx/arch/z80/src/common/Kconfig b/nuttx/arch/z80/src/common/Kconfig new file mode 100644 index 000000000..00993bfcc --- /dev/null +++ b/nuttx/arch/z80/src/common/Kconfig @@ -0,0 +1,7 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +if ARCH_Z80 +endif diff --git a/nuttx/arch/z80/src/ez80/Kconfig b/nuttx/arch/z80/src/ez80/Kconfig new file mode 100644 index 000000000..018ecb511 --- /dev/null +++ b/nuttx/arch/z80/src/ez80/Kconfig @@ -0,0 +1,7 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +if ARCH_CHIP_EZ80 +endif diff --git a/nuttx/arch/z80/src/z8/Kconfig b/nuttx/arch/z80/src/z8/Kconfig new file mode 100644 index 000000000..1f0289f7c --- /dev/null +++ b/nuttx/arch/z80/src/z8/Kconfig @@ -0,0 +1,7 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +if ARCH_CHIP_Z8 +endif diff --git a/nuttx/arch/z80/src/z80/Kconfig b/nuttx/arch/z80/src/z80/Kconfig new file mode 100644 index 000000000..a91973167 --- /dev/null +++ b/nuttx/arch/z80/src/z80/Kconfig @@ -0,0 +1,7 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +if ARCH_CHIP_Z80 +endif diff --git a/nuttx/drivers/serial/serial.c b/nuttx/drivers/serial/serial.c index c43060b2b..f2f1e4b99 100644 --- a/nuttx/drivers/serial/serial.c +++ b/nuttx/drivers/serial/serial.c @@ -329,6 +329,10 @@ static ssize_t uart_read(FAR struct file *filep, FAR char *buffer, size_t buflen * the head index but must not modify the tail index. The tail * index is only modified in this function. Therefore, no * special handshaking is required here. + * + * The head and tail pointers are 16-bit values. The only time that + * the following could be unsafe is if the CPU made two non-atomic + * 8-bit accesses to obtain the 16-bit head index. */ tail = dev->recv.tail; |