mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
More Kconfig files
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4632 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -2,3 +2,30 @@
|
|||||||
# For a description of the syntax of this configuration file,
|
# For a description of the syntax of this configuration file,
|
||||||
# see misc/tools/kconfig-language.txt.
|
# 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
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#
|
||||||
|
# For a description of the syntax of this configuration file,
|
||||||
|
# see misc/tools/kconfig-language.txt.
|
||||||
|
#
|
||||||
|
|
||||||
|
if ARCH_X86
|
||||||
|
endif
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#
|
||||||
|
# For a description of the syntax of this configuration file,
|
||||||
|
# see misc/tools/kconfig-language.txt.
|
||||||
|
#
|
||||||
|
|
||||||
|
if ARCH_I486
|
||||||
|
endif
|
||||||
@@ -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
|
||||||
@@ -2,3 +2,44 @@
|
|||||||
# For a description of the syntax of this configuration file,
|
# For a description of the syntax of this configuration file,
|
||||||
# see misc/tools/kconfig-language.txt.
|
# 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
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#
|
||||||
|
# For a description of the syntax of this configuration file,
|
||||||
|
# see misc/tools/kconfig-language.txt.
|
||||||
|
#
|
||||||
|
|
||||||
|
if ARCH_Z16
|
||||||
|
endif
|
||||||
@@ -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
|
||||||
@@ -2,3 +2,71 @@
|
|||||||
# For a description of the syntax of this configuration file,
|
# For a description of the syntax of this configuration file,
|
||||||
# see misc/tools/kconfig-language.txt.
|
# 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
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#
|
||||||
|
# For a description of the syntax of this configuration file,
|
||||||
|
# see misc/tools/kconfig-language.txt.
|
||||||
|
#
|
||||||
|
|
||||||
|
if ARCH_Z80
|
||||||
|
endif
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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
|
* the head index but must not modify the tail index. The tail
|
||||||
* index is only modified in this function. Therefore, no
|
* index is only modified in this function. Therefore, no
|
||||||
* special handshaking is required here.
|
* 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;
|
tail = dev->recv.tail;
|
||||||
|
|||||||
Reference in New Issue
Block a user