2007-11-28 19:19:14 +01:00
|
|
|
The cpu/6502/ directory is used for targeting 6502-based machines using the cc65
|
2010-10-23 21:42:53 +02:00
|
|
|
compiler (http://www.cc65.org/).
|
2008-06-13 00:15:50 +02:00
|
|
|
|
2007-11-28 19:19:14 +01:00
|
|
|
|
|
|
|
The Contiki network configuration for 6502-based targets is loaded from a binary
|
|
|
|
configuration file (by default named contiki.cfg). It has the following format:
|
2008-06-13 00:15:50 +02:00
|
|
|
|
2007-11-28 19:19:14 +01:00
|
|
|
- Bytes 1 - 4: IP Address (HiByte first)
|
|
|
|
- Bytes 5 - 8: Subnet Mask (HiByte first)
|
|
|
|
- Bytes 9 - 12: Default Router (HiByte first)
|
|
|
|
- Bytes 13 - 16: DNS Server (HiByte first)
|
|
|
|
- Bytes 17 - 18: Ethernet card I/O address (LoByte first !)
|
|
|
|
- Bytes 19 - xx: Ethernet card driver name (ASCII / PETSCII)
|
2008-06-13 00:15:50 +02:00
|
|
|
|
|
|
|
An online Contiki configuration file generator is available at two sites:
|
|
|
|
|
2008-06-13 22:08:06 +02:00
|
|
|
- http://www.a2retrosystems.com/contiki.html
|
2013-01-29 22:44:37 +01:00
|
|
|
- http://contiki.cbm8bit.com/
|
2008-06-13 00:15:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
The build for 6502-based machines includes the 'disk' make goal which creates a
|
|
|
|
bootable floppy disk image containing the project binary, a sample configuration
|
|
|
|
file and the Ethernet card drivers.
|
|
|
|
|
|
|
|
|
|
|
|
The build for 6502-based machines supports so-called high-level configuration
|
|
|
|
macros which allow to customize Contiki on a per-project basis. They are set
|
|
|
|
in form of a comma-separated list as value of the make variable DEFINES on the
|
|
|
|
make command line. The value of DEFINES can be saved with the 'savedefines' make
|
|
|
|
goal. The values of the high-level configuration macros are not tracked by the
|
|
|
|
build so a manual rebuild is necessary on any change. The following high-level
|
|
|
|
configuration macros may be set:
|
|
|
|
|
|
|
|
MTU_SIZE
|
|
|
|
- Default: 1500
|
|
|
|
- Purpose: Set the Maximum Transfer Unit size.
|
|
|
|
|
2010-04-11 22:47:16 +02:00
|
|
|
CONNECTIONS
|
|
|
|
- Default: 10
|
|
|
|
- Purpose: Set the maximum number of concurrent TCP connections.
|
|
|
|
|
2008-06-13 00:15:50 +02:00
|
|
|
WITH_LOGGING
|
|
|
|
- Default: 0
|
2010-01-30 21:48:31 +01:00
|
|
|
- Purpose: Have log_message() and UIP_LOG() write messages to the screen.
|
2008-06-13 00:15:50 +02:00
|
|
|
|
|
|
|
WITH_BOOST
|
|
|
|
- Default: 0
|
|
|
|
- Purpose: Significantly improve troughput on sending full sized packets by
|
|
|
|
splitting them thus workarounding the "delayed acknowledge".
|
|
|
|
|
|
|
|
WITH_FORWARDING
|
|
|
|
- Default: 0
|
|
|
|
- Purpose: Enable support for the 'IP forwarding' packet driver.
|
|
|
|
|
|
|
|
WITH_CLIENT
|
|
|
|
- Default: 0
|
|
|
|
- Purpose: Enable support for outgoing TCP connections.
|
|
|
|
|
|
|
|
WITH_DNS
|
|
|
|
- Default: 0
|
|
|
|
- Purpose: Enable UDP support and initialize resolver process on startup.
|
|
|
|
|
|
|
|
WITH_GUI
|
|
|
|
- Default: 0
|
|
|
|
- Purpose: Initialize the the CTK process on startup.
|
|
|
|
|
|
|
|
WITH_MOUSE
|
|
|
|
- Default: 0
|
|
|
|
- Purpose: Enable CTK mouse support and load a mouse driver.
|
|
|
|
|
|
|
|
WITH_PFS
|
|
|
|
- Default: 0
|
|
|
|
- Purpose: Implement the CFS interface with a Platform-specific File System
|
|
|
|
instead of the POSIX file system.
|