2012-12-10 18:40:01 +00:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see misc/tools/kconfig-language.txt.
|
|
|
|
#
|
|
|
|
|
|
|
|
if ARCH_CHIP_Z180
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Toolchain Selection"
|
|
|
|
default Z180_TOOLCHAIN_SDCCW if HOST_WINDOWS
|
|
|
|
default Z180_TOOLCHAIN_SDCCL if !HOST_WINDOWS
|
|
|
|
|
|
|
|
config Z180_TOOLCHAIN_SDCCL
|
|
|
|
bool "SDCC for Linux, MAC OSX, or Cygwin"
|
|
|
|
depends on !WINDOWS_NATIVE
|
|
|
|
|
|
|
|
config Z180_TOOLCHAIN_SDCCW
|
|
|
|
bool "SDCC for Windows"
|
|
|
|
depends on HOST_WINDOWS
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config LINKER_HOME_AREA
|
2012-12-11 18:04:04 +00:00
|
|
|
hex "Physical start of _HOME area"
|
2012-12-10 18:40:01 +00:00
|
|
|
default 0x0000
|
|
|
|
---help---
|
2012-12-11 18:04:04 +00:00
|
|
|
Physical address of the start of the linker HOME area. Default: 0x0000
|
2012-12-10 18:40:01 +00:00
|
|
|
|
|
|
|
config LINKER_CODE_AREA
|
2012-12-11 18:04:04 +00:00
|
|
|
hex "Physical start of _CODE area"
|
2012-12-10 18:40:01 +00:00
|
|
|
default 0x0200
|
|
|
|
---help---
|
2012-12-11 18:04:04 +00:00
|
|
|
Physical address of the start of the linker _CODE area. Default: 0x0200
|
2012-12-10 18:40:01 +00:00
|
|
|
|
|
|
|
config LINKER_DATA_AREA
|
2012-12-11 18:04:04 +00:00
|
|
|
hex "Physical start of _DATA area"
|
2012-12-10 18:40:01 +00:00
|
|
|
default 0x8000
|
|
|
|
---help---
|
2012-12-11 18:04:04 +00:00
|
|
|
Physical address of the start of the linker _DATA area. Default: 0x8000
|
2012-12-10 18:40:01 +00:00
|
|
|
|
|
|
|
config LINKER_ROM_AT_0000
|
2012-12-11 18:04:04 +00:00
|
|
|
bool "ROM at Physical 0x0000"
|
2012-12-10 18:40:01 +00:00
|
|
|
default n
|
|
|
|
---help---
|
2012-12-11 18:04:04 +00:00
|
|
|
Some architectures may have ROM located at physical address zero. In this
|
2012-12-10 18:40:01 +00:00
|
|
|
case, a special version of the "head" file must be used.
|
|
|
|
|
2012-12-11 18:04:04 +00:00
|
|
|
config Z180_BANKAREA_VIRTBASE
|
|
|
|
hex "Virtual Start of Bank Area"
|
|
|
|
default 0x8000
|
|
|
|
---help---
|
|
|
|
This setting provides the virtual address of the start of the Bank Area.
|
|
|
|
NOTE that 0x0000 <= Z180_BANKAREA_BASE <= Z180_COMMONAREA_BASE is required!
|
|
|
|
Default: 0x8000
|
|
|
|
|
|
|
|
NuttX Memory Organization:
|
|
|
|
|
|
|
|
Common Area 0: This area holds the common NuttX code that is
|
|
|
|
directly call-able from all application threads. Common Area
|
|
|
|
always starts at virtual address 0x0000 and extends to the
|
|
|
|
Bank Area
|
|
|
|
|
|
|
|
Base Area: This area holds the common NuttX data (including the
|
|
|
|
share-able heap) that is accessible from all applications and
|
|
|
|
extends to Common Area 1.
|
|
|
|
|
|
|
|
NOTE: That is execution from RAM, the common NuttX code and
|
|
|
|
data may be contiguous and lie in the same region (either
|
|
|
|
Common Area 0 or the Bank Area). The two regions above would
|
|
|
|
apply in a ROM'ed system, where Common Area 1 is ROM and the
|
|
|
|
Base Area is RAM.
|
|
|
|
|
|
|
|
Common Area 1: This area holds the code and data that is unique
|
|
|
|
to a particular task. his area extends to the end of the virtual
|
|
|
|
address space. All tasks share the same virtual Common Area 2
|
|
|
|
virtual address (but each has a unique mapping to different,
|
|
|
|
underlying physical addresses).
|
|
|
|
|
|
|
|
config Z180_BANKAREA_PHYSBASE
|
|
|
|
hex "Physical Start of Bank Area"
|
|
|
|
default 0x08000
|
|
|
|
---help---
|
|
|
|
This setting provides the physical address of the start of the Bank Area.
|
|
|
|
Default: 0x08000
|
|
|
|
|
|
|
|
config Z180_COMMON1AREA_VIRTBASE
|
|
|
|
hex "Virtual Start of Common Area 1"
|
|
|
|
default 0xc000
|
|
|
|
---help---
|
|
|
|
This setting provides the virtual address of the start of the Common
|
|
|
|
Area 1. NOTE that 0x0000 <= Z180_BANKAREA_BASE <= Z180_COMMONAREA_BASE
|
|
|
|
is required! Default: 0xc000
|
|
|
|
|
|
|
|
NuttX Memory Organization:
|
|
|
|
|
|
|
|
Common Area 0: This area holds the common NuttX code that is
|
|
|
|
directly call-able from all application threads. Common Area
|
|
|
|
always starts at virtual address 0x0000 and extends to the
|
|
|
|
Bank Area
|
|
|
|
|
|
|
|
Base Area: This area holds the common NuttX data (including the
|
|
|
|
share-able heap) that is accessible from all applications and
|
|
|
|
extends to Common Area 1.
|
|
|
|
|
|
|
|
NOTE: That is execution from RAM, the common NuttX code and
|
|
|
|
data may be contiguous and lie in the same region (either
|
|
|
|
Common Area 0 or the Bank Area). The two regions above would
|
|
|
|
apply in a ROM'ed system, where Common Area 1 is ROM and the
|
|
|
|
Base Area is RAM.
|
|
|
|
|
|
|
|
Common Area 1: This area holds the code and data that is unique
|
|
|
|
to a particular task. his area extends to the end of the virtual
|
|
|
|
address space. All tasks share the same virtual Common Area 2
|
|
|
|
virtual address (but each has a unique mapping to different,
|
|
|
|
underlying physical addresses).
|
|
|
|
|
|
|
|
config Z180_PHYSHEAP_START
|
|
|
|
hex "Physical Start of Free Memory"
|
|
|
|
default 0x0c000
|
|
|
|
---help---
|
|
|
|
This setting provides the physical address of the start of free physical
|
|
|
|
memory that will be used to allocate memory for tasks (Common Area 1).
|
|
|
|
Default: 0x0c000
|
|
|
|
|
|
|
|
config Z180_PHYSHEAP_END
|
|
|
|
hex "Physical End(+1) of Free Memory"
|
|
|
|
default 0x100000
|
|
|
|
---help---
|
|
|
|
This setting provides the physical address of the end(+1) of free physical
|
|
|
|
memory that will be used to allocate memory for tasks (Common Area 1).
|
|
|
|
Default: 0x100000
|
|
|
|
|
2012-12-10 18:40:01 +00:00
|
|
|
config ARCH_HAVEHEAD
|
|
|
|
bool "Board-specific Head File"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Use a board-specific version of the "head" file in the
|
|
|
|
configs/<board-name>/src directory
|
|
|
|
|
2012-12-11 21:42:15 +00:00
|
|
|
menu "Z180 Peripheral Support"
|
|
|
|
|
|
|
|
config Z180_UART0
|
|
|
|
bool "UART0"
|
|
|
|
default n
|
|
|
|
select ARCH_HAVE_UART0
|
|
|
|
|
|
|
|
config Z180_UART1
|
|
|
|
bool "UART1"
|
|
|
|
default n
|
|
|
|
select ARCH_HAVE_UART1
|
|
|
|
|
|
|
|
endmenu
|
2012-12-10 18:40:01 +00:00
|
|
|
endif
|