Commit graph

59 commits

Author SHA1 Message Date
oliverschmidt 50be40768b Removed closing of stdin, stdout (and stderr on the Apple2). It was introduced in order to maximize the number of available file handles for the webserver. However none of the target machine DOSes allows to open a single file several times diminishing the intended effect very much. One the other hand not being able to "just printf() something" causes trouble over and again - i.e. hello-world seemingly not working...after all a typical case of german over-enigneering ;-) 2010-02-10 07:43:25 +00:00
oliverschmidt fc7b0d31bc Added configuration values for the email client example. 2010-01-31 21:50:11 +00:00
oliverschmidt 6111814aec Added configuration values for the IRC client example. 2010-01-31 18:30:50 +00:00
oliverschmidt 3826b8c0c4 Use only the base name of projects as program file name. 2010-01-31 18:21:41 +00:00
oliverschmidt 953d3ce7a0 Now that we have at least two examples working on the cc65 targets it is preferable to not name the program files all 'contiki'. 2010-01-31 09:34:12 +00:00
oliverschmidt 26c9ec41f7 Activate uIP logging when "high level config" logging is enabled. 2010-01-30 20:48:31 +00:00
oliverschmidt 882e4692c7 cc65 2.13. allows to define all necessary paths through the single env var CC65_HOME. 2010-01-27 22:37:15 +00:00
oliverschmidt caaa790add cc65 2.13. comes with secondary linker configs. The 'apple2enh-reboot.cfg' is more or less what was previously engineered as part of Contiki for the Apple2 - now moved into the cc65 distro. 2009-10-18 10:06:44 +00:00
oliverschmidt d8aee18f6c cc65 2.13. allows to
- explicitly set 80 column mode
- control exit behaviour from the program itself (instead of requiring a loader variant).
2009-10-18 09:37:37 +00:00
oliverschmidt 31eb62821f cc65 2.13. features a default-per-target mouse driver so there's no need to deal with their names in Contiki anymore. 2009-10-18 09:33:08 +00:00
oliverschmidt 392c3aa2b6 Updated URL from Loader 1.3 to Loader 1.4. 2009-09-13 19:59:34 +00:00
oliverschmidt daf29d0a87 Supply prototype even if there's no implementation (yet) to keep compiler happy. 2009-09-13 19:07:34 +00:00
oliverschmidt f822ac9797 Added clock_seconds() implementation. 2008-07-12 14:44:37 +00:00
oliverschmidt 86bd7e9829 Added lseek dummy. 2008-07-06 07:34:34 +00:00
oliverschmidt c2bec97eef Added some info on the Apple2 PFS (and AppleCommander). 2008-06-12 22:45:17 +00:00
oliverschmidt 2ede893aa6 The feature set of gnumake is really frightening: This time I discovered 'target-specific variable values'... 2008-05-26 11:26:57 +00:00
oliverschmidt f74503c23c Replace non-fully-functional hack with the new gnumake variable CONTIKI_PROJECT. 2008-05-26 10:13:32 +00:00
oliverschmidt 356f5cfa04 The recent optimizations (usage of language card bank2 through new C-library, logging through ROM routine, removal of unused IP forwarding code) allowed to increase the number of concurrent HTTP conntections from 3 to 7 :-) 2008-05-23 23:13:41 +00:00
oliverschmidt a78a7dedbc Added make target 'disk' for creating a .dsk disk image using AppleCommander. 2008-05-22 22:21:43 +00:00
oliverschmidt a341f981aa Moved platform/apple2enh/contiki.cfg to tools/apple2enh/sample.cfg 2008-05-21 07:59:43 +00:00
oliverschmidt 85edbc01db Starting with the cc65-snapshot-2.11.9.20080316 the Apple2 C-library supports placing code in the Apple2 Language Card by choosing the code segment 'HIGHCODE'. By default the memory area 0xD400 - 0xE000 is used for HIGHCODE. If the application doesn't need the ProDOS 8 QUIT code then the memory area used for HIGHCODE may be extended to 0xD000 - 0xE000.
Contiki now leverages that feature to place process.o, etimer.o and uip_arp.o in HIGHCODE. These files were carefully chosen as:
- they are necessary for all Ethernet apps
- their size doesn't depend on configuration macros
- they fill the available space nicely (with a little reserve for changes in the source or the compiler)
2008-03-24 22:49:00 +00:00
oliverschmidt 368d389970 Free up unused file descriptors. 2008-02-28 21:36:37 +00:00
oliverschmidt 93789de9dd Now that process initialization has been changed (back) to synchronous it needs to be called after reading the config file in order to preserve the existing logic. 2008-02-17 14:11:48 +00:00
oliverschmidt 2632f8f937 Removed finally unnecessary cast. 2008-02-10 22:36:36 +00:00
oliverschmidt bb19396d21 Introduced yet another high-level config macro. 2008-01-01 19:47:03 +00:00
oliverschmidt 852d2c0283 Introduced very lightweight pfs implementation based on Apple ProDOS.
ProDOS requires for each opened file a user-supplied page-aligned 1024 byte i/o buffer. This makes the generic POSIX file i/o library contained in the cc65 C-library quite heavyweight.

In contrast the lightweight pfs implementation uses the uIP packet buffer as ProDOS i/o buffer. Therefore:
- Only one file may be open at any time.
- That file may not be open while the uIP packet buffer is used by uIP. The open()/read()/close() sequence should be completed before Contiki event scheduling or inside handling a single Contiki event.
- The uIP packet buffer must be large enough to hold the ProDOS I/O buffer. Depending on the position of the uIP buffer in memory this means between 1024 and 1024 + 256 bytes. Therefore in an Ethernet environment setting the MTU_SIZE to at least 1266 is safe (So the default of 1500 is just fine).
2008-01-01 18:49:50 +00:00
oliverschmidt 5592b1df6c Implement cfs API on preprocessor level using POSIX functions.. 2007-12-23 15:29:19 +00:00
oliverschmidt fda38428d9 Introduced some more high-level config macros. 2007-12-23 13:55:38 +00:00
oliverschmidt 14a8cf7200 Made use of the new high-level config macros. 2007-12-23 12:33:57 +00:00
oliverschmidt 125f261b7d Introduced high-level macros to be set on the make command line. They allow easy configuration of Contiki for typical (cc65-)project scenarios. 2007-12-23 12:32:43 +00:00
oliverschmidt fe023c6d3e Introduced very lightweight log implementation not depending on any file I/O library. 2007-12-21 00:43:57 +00:00
oliverschmidt c36697fca9 Added target-specifc mouse configuration values. 2007-12-20 22:59:41 +00:00
oliverschmidt 70fe24817e Added target-specifc ctk (and www) configuration values. 2007-12-18 17:51:20 +00:00
oliverschmidt 8644822a34 Soe we're finally back at reducing the memory footprint be avoiding to pull in large C-library enitities. 2007-12-16 13:08:09 +00:00
oliverschmidt b32f0643ab Moved stuff into sys subdir to clean up the apple2enh dir (and because the corresponding shared res. cpu stuff is in the sys dir as well). 2007-12-15 11:04:11 +00:00
oliverschmidt 70321f690f Made error_exit() implementation target-specific. 2007-12-08 22:16:43 +00:00
oliverschmidt 026ba0801f Added LANceGS. 2007-11-30 12:35:18 +00:00
oliverschmidt 2bec16e07d Added some info on the apple2enh plattform. 2007-11-28 17:55:43 +00:00
oliverschmidt a91fe3ea98 Limit the maximum number of simultaneous connections to the cfs webserver to three because there's not enough memory left on the heap for more open files anyway - ProDOS 8 needs 1kB of page-aligned heap per open file :-( 2007-11-27 22:03:29 +00:00
oliverschmidt 963cc8b31e Made use of config file read function. 2007-11-27 21:50:19 +00:00
oliverschmidt 0d8d5c7c5c Added (default) binary config file. 2007-11-27 21:46:35 +00:00
oliverschmidt ef55496de0 Use common log implementation for cc65 targets. 2007-11-27 16:50:02 +00:00
oliverschmidt 380407ae5a Reduced stacksize. 2007-11-27 12:24:03 +00:00
oliverschmidt f779a8cdff Set the maximum number of simultaneous connections to the cgi webserver to the maximum number of uIP connections. 2007-11-26 21:38:32 +00:00
oliverschmidt 9c5f62d361 Switched to lowercase file name and do consistently "first-log then operate". 2007-11-25 22:21:19 +00:00
oliverschmidt b26ff75aad Added user feedback on Ethernet configuration. 2007-11-25 15:15:05 +00:00
oliverschmidt 20d395e9b6 Added user feedback on IP configuration. 2007-11-25 15:00:32 +00:00
oliverschmidt 0eb7106bd2 Include dummy for posix function missing in cc65 C-library. 2007-11-24 13:02:27 +00:00
oliverschmidt 7c1cbd4ee2 Added speed detection user feedback and adjusted soft clock to ethernet polling. 2007-11-20 21:54:06 +00:00
oliverschmidt 8ebc56aad5 Shortened welcome message. 2007-11-20 21:24:25 +00:00