Commit graph

30 commits

Author SHA1 Message Date
matsutsuka 2f4970e61c #include "contiki" has been added so as to enable platform-dependent configuration for LIBCONIO_WIDTH and LIBCONIO_HEIGHT. 2007-09-09 12:24:44 +00:00
bg- e6630a6ccb include contiki.h and use standard data types. 2007-09-04 08:48:54 +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
oliverschmidt 5038537b8f Restored compatibility with non-C99 platforms by sticking to Contiki datatypes. 2007-08-10 08:01:17 +00:00
bg- 5b52db6708 * Use 16x16 bit ==> 32 bit multiplications. This gives a speedup of 5 on
the MSP430.
2007-07-03 13:26:00 +00:00
bg- 25681c9aaa * Gcc libc has broken header files on the msp430. 2007-06-05 10:02:53 +00:00
bg- 65d0a272d0 * Check that we are libc compliant. 2007-06-04 18:03:58 +00:00
bg- c22b261b12 * Add compile time assert CTASSERT. 2007-06-01 15:36:00 +00:00
bg- 709a5846a8 * Increase random cycle at marginal cost and make lower order bits
more random.
2007-06-01 15:28:02 +00:00
oliverschmidt 7beef070ca no message 2007-05-26 21:41:01 +00:00
oliverschmidt 3bb7a21735 Moved RUNES CRTK Implementation into backyard as it depends on the service paradigm. 2007-05-23 23:23:08 +00:00
adamdunkels b8b0dfaa5d Fixed type of energest_crrent_time to match the type in the .h file 2007-05-22 21:55:33 +00:00
adamdunkels 9b6f6d6822 Added IRQ and SERIAL component. 2007-05-22 20:53:04 +00:00
adamdunkels f5c8869028 Added a function for setting the estimated energy of a component 2007-05-22 20:52:20 +00:00
adamdunkels 5c79330b41 Made scalar values explicitly unsigned long. Preliminary support for cummulative estimates (larger than 32 bits) 2007-05-15 07:54:03 +00:00
bg- 1bd92dae47 * Ensure that rand() srand() signatures are compliant with what can be
found in stdlib.h.
2007-04-24 19:01:39 +00:00
adamdunkels 3eb156019e Documentation fix 2007-03-25 17:15:43 +00:00
oliverschmidt 6b1432f69d Changed variable declaration into type definition - as most likely originally intended. 2007-03-25 09:20:53 +00:00
adamdunkels bba0485797 Experimental energy estimation code 2007-03-19 00:30:13 +00:00
adamdunkels 943a12613f + memb_inmemb 2007-03-16 16:53:33 +00:00
bg- e80af3ed34 * Remove include. 2007-01-25 18:19:57 +00:00
barner 94eecb64f1 Respect MMEM_CONF_SIZE user option, otherwise default to 4096 byts
for MMEM_SIZE.
2006-12-22 17:14:06 +00:00
bg- 09e5c8e09a * It is very useful to keep the rand_state across reboots. 2006-11-17 13:05:34 +00:00
adamdunkels 96c771250c Limit number of sensor events to avoid overflowing event queue 2006-10-06 09:18:52 +00:00
adamdunkels b9b8ef7da5 GCR encoding/decoding 2006-10-05 09:23:41 +00:00
oliverschmidt 24e17a9ed1 Avoid compiler warnings. 2006-08-21 21:59:59 +00:00
oliverschmidt 52947189d0 Added main header include. 2006-08-16 22:12:46 +00:00
bg- 0bf3db5df7 Make malloc machine independent by relying on dependent sbrk(2). 2006-08-11 13:41:31 +00:00
bg- 361cd531b6 Assertions are useful. 2006-08-11 13:37:21 +00:00
adamdunkels c9e808d638 Import of the contiki-2.x development code from the SICS internal CVS server 2006-06-17 22:41:10 +00:00