osd-contiki/platform/c128
Oliver Schmidt 91beb8670f Added SLIP support to retro platforms.
The cc65 tool chain comes with V.24 drivers so it seems reasonable to use the existing Contiki SLIP driver to implement network access via SLIP as alternative to Ethernet.

Some notes:
- The Ethernet configuration was simplified in order to allow share it with SLIP.
- The Contiki SLIP driver presumes an interrupt driven serial receiver to write into the SLIP buffer. However the cc65 V.24 drivers aren't up to that. Therefore the main loops were extended to pull received data from the V.24 buffers and push it into the SLIP buffer.
- As far as I understand the serial sender is supposed to block until the data is sent. Therefore a loop calls the non-blocking V.24 driver until the data is sent.

On all platforms there's only one V.24 driver available. Therefore V.24 drivers are always loaded statically.

On the Apple][ the mouse driver is now loaded statically - independently from SLIP vs. Ethernet. After all there's only one mouse driver available. However there's a major benefit with SLIP: Here all drivers are loaded statically. Therefore the dynamic module loader isn't necessary at all. And without the loader the heap manager isn't necessary at all. This allows for a reduction in code size roughly compensating for the size of the SLIP buffer.
2017-02-15 23:43:28 +01:00
..
lib Added custom log function for CBM machines. 2016-10-15 23:36:53 +02:00
contiki-conf.h Added custom log function for CBM machines. 2016-10-15 23:36:53 +02:00
contiki-main.c Added SLIP support to retro platforms. 2017-02-15 23:43:28 +01:00
Makefile.c128 Added SLIP support to retro platforms. 2017-02-15 23:43:28 +01:00
Makefile.customrules-c128 Moved the 6502 custom rules into its own Makefile.customrules-6502 file 2014-01-26 23:20:40 +01:00
README.md Several minor consistency improvements. 2013-07-31 00:55:31 +02:00

Commodore 128

The platform/c128/ directory is used for targeting a Commodore 128 computer. Most things are shared between the 6502-based targets so please consult cpu/6502/README.md for further details.

The following C128 Ethernet cards are supported:

  • RR+RR-Net: Use driver cs8900a.eth with address $DE08.
  • TFE: Use driver cs8900a.eth with address $DE00.
  • ETH64: Use driver lan91c96.eth with address $DE00.

In most cases it is desirable to use an emulator for the development and testing of a Contiki application. VICE is especially well suited as it emulates both the RR-Net and TFE Ethernet cards. It is available at http://www.viceteam.org.

The c128 target supports a PFS that requires less RAM than the POSIX file system and converts UNIX path names to CMD syntax for CMD drives.