Commit graph

36 commits

Author SHA1 Message Date
adamdunkels 5585d72c86 A simple but substantial change: uIP used the htons()/HTONS() macro
functions for converting between host and network byte order. These
names are the de facto standard names for this functionality because
of the original BSD TCP/IP implementation. But they cause problems for
uIP/Contiki: some platforms define these names themselves (Mac OS,
most notably), causing compilation problems for Contiki on those
platforms.

This commit changes all htons to uip_htons instead. Same goes for
htonl, ntohs, and ntohl. All-caps versions as well.
2010-10-19 18:29:03 +00:00
matsutsuka 23d5f84a46 Workaround for compiling some examples available 2009-12-16 06:47:17 +00:00
matsutsuka ebe74fed56 size-optimization option and peep-hole optimizer have been introduced.
object files have been moved to binary directory
2009-12-11 14:59:31 +00:00
matsutsuka c55d3ded6c restored specific compilation option since SDCC seems not supporting -MDD very well
introduced a snprintf macro as empty function
2009-07-09 18:26:55 +00:00
oliverschmidt 7a228fea41 Replaced classic approach of generating dependency files via rule with generating them as side effect of generating object files. The issue with "No rule to make target ..." is solved as suggested in http://make.paulandlesley.org/autodep.html.
At least with gcc (and cc65) the dependency files are generated without an additional run of the C compiler. This is especially beneficial on Cygwin because of the fork() performance issue.
2009-07-02 22:36:04 +00:00
adamdunkels b20f0884ed Renamed serial module to serial-line 2009-03-17 20:19:11 +00:00
matsutsuka d194d54e8e CC_CONST_FUNCTION replaces some const keywords in order to workaround a sdcc bug, which cannot handle function pointers as const. 2008-07-02 15:02:33 +00:00
matsutsuka 29b17c6933 Modified some glitches in startup code, and introduced additional typedefs required in the current version. 2008-07-02 07:13:22 +00:00
oliverschmidt ae4978e994 Moved z80 specific line to z80 makefile. 2007-12-21 00:49:40 +00:00
matsutsuka 80f858b68b typedef uint8_t, uint16_t, and uint32_t have been added to help some sources. 2007-11-28 09:36:06 +00:00
matsutsuka fbb8fb409a The Micro-Executable Format (MEF) support (experimental). 2007-11-28 06:13:24 +00:00
oliverschmidt d609db3580 Removed compiler warnings. 2007-11-18 01:36:59 +00:00
matsutsuka 0ab5a22a47 Fixed a minor glitch 2007-10-01 23:04:02 +00:00
matsutsuka 4d6d5eb8ff RS232 support has been unified from just 'dumb' serial line and SLIP support. 2007-09-29 03:58:38 +00:00
matsutsuka f553789fea Made unnecessary symbols static. 2007-09-29 03:57:39 +00:00
matsutsuka 1e6ac84151 Customized crt0 has been introduced to fix some SDCC glitches. 2007-09-29 03:57:07 +00:00
matsutsuka 8d5e863b9a File names are changed. 2007-09-19 12:48:26 +00:00
matsutsuka c99b7dc827 status has been added for polling function. 2007-09-19 12:47:19 +00:00
matsutsuka eb39a24ad8 Char bug seems to be fixed in the newer version of sdcc. 2007-09-19 12:44:01 +00:00
matsutsuka 7b402d38f8 The suffix for preprocessed assembler file has been changed from ".hS" to ".cS" 2007-09-19 12:41:33 +00:00
matsutsuka c258a2e83a library extension has been modified form .o to .a 2007-09-11 12:11:38 +00:00
matsutsuka cce43c2efc Baud-rate has been added to the architecture-depend initialization.
Enabled packaged buffer reading.
2007-09-11 12:03:20 +00:00
matsutsuka cd971ff8cc sdcc-custom-rule has been added to makefile.z80 2007-09-10 15:09:28 +00:00
matsutsuka fe980b4445 Comment and include files are slightly changed for readablility. 2007-09-09 13:41:50 +00:00
matsutsuka 259c5a00b9 Some gliches and filenames are changed regarding RS-232C driver. 2007-09-09 13:41:15 +00:00
matsutsuka c58e4f94b8 Screen-bsae logging implementation. 2007-09-09 12:23:03 +00:00
matsutsuka 17da4a73be Not signal but polling-based rs-232c process. 2007-09-09 12:22:34 +00:00
matsutsuka 91a57c89ba VRAM based default implementation of libconio_arch. 2007-09-09 12:21:54 +00:00
matsutsuka f9a01d6282 strcasecmp is moved to lib directory 2007-09-09 12:20:59 +00:00
matsutsuka 88c30a63a5 Directory of some sources files has been moved. 2007-09-09 12:20:12 +00:00
matsutsuka efbe8ab536 renamed contiki-sdcc-conf.h to z80def.h in order to follow the convention of cpu-dependent configuration header file name. 2007-09-07 04:59:06 +00:00
matsutsuka d44a1e97e6 int32_t typedef is added to make compatibility with rand.c 2007-09-06 01:41:05 +00:00
matsutsuka 4766593ff7 Add assembler checksum calculation support for z80 port. 2007-09-01 11:14:50 +00:00
matsutsuka 3af69d229a Added some comments. 2007-09-01 01:09:25 +00:00
matsutsuka cc2b6e58d7 Followed a coding convention of contiki, in which cast operation should not be followed by a space char. 2007-09-01 01:08:07 +00:00
matsutsuka 9d4fc0a1a8 Support for z80(sdcc) port.
In order to support, some core modules are modified as follows:

core/sys/dsc.h
- If CTK_CONF_ICONS is diabled, the whole icon-related code is disabled.
- DSC_HEADER is changed to remove extra semicolon.

core/sys/process.h
- process_data_t is expressed by void* in signatures (known bug on sdcc).

core/sys/autostart.h
- autostart_processes is changed to remove extra semicolon.

core/sys/cc.h
- CC_CONF_ASSIGN_AGGREGATE is introduced.
- CC_CONF_INC_CAST_POINTER is introduced, a workaround of a kind
  of sdcc bug for an increment.

core/net/hc.c
core/net/uip_arp.c
core/net/uaodv.c
- Aggregation assignments are changed to uip_ipaddr_copy.

core/net/psock.c
core/net/uipbuf.c
core/net/dhcpc.c
apps/shell/shell.c
core/ctk/vnc-server.c
core/ctk/vnc-out.c
- "register" keyword in a signature cannot be used in sdcc,
  CC_REGISTER_ARG is used instead.

core/net/uip-over-mesh.c
- An extra semicolon is removed.

apps/dhcp/dhcp-dsc.c
apps/shell/shell-dsc.
apps/ftp/ftp-dsc.c
apps/process-list/process-list-dsc.c
apps/email/email-dsc.c
apps/webserver/webserver-dsc.c
apps/vnc/vnc-dsc.c
apps/vnc/vnc-viewer.h
apps/webbrowser/www-dsc.c
apps/about/about-dsc.c
apps/irc/irc-dsc.c
apps/telnet/telnet-dsc.c
apps/telnetd/telnetd-dsc.c
apps/netconf/netconf-dsc.c
apps/directory/directory-dsc.c
pps/calc/calc-dsc.c
- Modify an extern type to a real declaration, which is static
  to prevent a compile error.

core/net/mac/xmac.c
- Variables cannot be defined in a head of block on sdcc.

core/ctk/ctk.h
core/ctk/ctk.c
apps/program-handler/program-handler.c
- If CTK_CONF_ICONS is diabled, the whole icon-related code is disabled.

Makefile.include
- Add a set of configuration for an assembler.
- $(CLEAN) variable is introduced for customized cleanup.

apps/process-list/process-list.c
- PROCESSLIST_CONF_HEIGHT is introduced to address smaller screen size.

core/lib/ctk-filedialog.c
- FILES_CONF_HEIGHT is introduced to address smaller screen size.
- "register" keyword in a signature cannot be used in sdcc,
  CC_REGISTER_ARG is used instead.

apps/vnc/vnc-viewer.c
- A cast is added to prevent a compile error.
- "register" keyword in a signature cannot be used in sdcc,
  CC_REGISTER_ARG is used instead.

apps/webbrowser/webclient.c
- CC_CONF_INC_CAST_POINTER is introduced, a workaround of a kind
  of sdcc bug for an increment.

core/loader/elfloader.c
- A cast is added to prevent a compile error.

core/net/rime/rimeaddr.c
- An initialization is added to prevent a compile error.

core/net/rime/rudolph0.c
- NULL is changed to 0, because NULL causes a compile error.

core/net/rime/route-discovery.c
- Add an argument to match the definition of nf_callbacks.

cpu/z80/strcasecmp.h
cpu/z80/strcasecmp.c
cpu/z80/contiki-sdcc-conf.h
cpu/z80/mtarch.c
cpu/z80/mtarch.h
cpu/z80/Makefile.z80
- New files to make compilation availble on sdcc.
- Added support for multithreading.
2007-08-30 14:39:16 +00:00