Commit Graph

59 Commits

Author SHA1 Message Date
adamdunkels
d298fcbbd0 Changed name of the internal struct memb_blocks to struct memb for consistency 2009-04-06 21:18:03 +00:00
adamdunkels
b8860727ac A ring buffer library. The ring buffer library is useful in device drivers, where bytes can be safely written to the buffer from an interrupt handler, and read from non-interrupt code. 2009-03-01 20:23:56 +00:00
adamdunkels
0ded8897e6 Added a dummy function instead of a NULL callback in the textentry widget because sdcc does not like NULL function pointers 2009-02-24 21:30:02 +00:00
adamdunkels
13a3029435 Rewrote the random_rand() pseudo random number generator to use the libc rand() function instead 2009-02-11 11:09:59 +00:00
fros4943
bf39076206 added experimental checkpointing functionality:
currently only implemented on the sky platform
2009-02-04 17:49:15 +00:00
joxe
d2dc732435 changed list_pop to return removed element 2008-12-16 09:59:42 +00:00
nvt-se
0a6ae9b7aa fixed documentation typos 2008-10-15 14:17:28 +00:00
adamdunkels
45e2f10989 Constness 2008-08-26 21:46:06 +00:00
adamdunkels
a6148ac3d0 Moved unused code to backyard 2008-08-15 19:57:13 +00:00
adamdunkels
2f81a0463a Moved unused malloc code to backyard directory 2008-08-15 19:05:16 +00:00
adamdunkels
35261f5208 Added a function for computing the CRC16 over a portion of data 2008-07-07 23:24:36 +00:00
adamdunkels
985fb009bf Rename static function log2 to ilog2 to avoid clashes (and compiler warnings) with built-in function called log2 2008-07-03 23:40:12 +00:00
adamdunkels
1f005b6299 Moved energest.{c,h} from core/lib to core/sys: power profiling is a system mechanism, not a library 2008-07-03 23:36:30 +00:00
nifi
d76474bc13 Changed energest_type_time() to first update the total time, if the device
is currently active, before returning the total time.

Added energest_flush() that updates the total time for all currently
active devices. It should be called periodically to avoid the time to
overflow for devices that are active for long periods of time.
2008-06-02 13:12:07 +00:00
joxe
7722a73abf modified API for fft 2008-04-25 22:12:25 +00:00
joxe
918616a1bf initial/alpha version of integer fft 2008-03-27 12:12:24 +00:00
oliverschmidt
c49fdee653 Avoided compiler warning. 2008-02-10 12:30:57 +00:00
adamdunkels
d9b52d1585 Added ENEGEST_SECOND 2008-01-21 12:36:17 +00:00
thiemovoigt
304898cd79 added support for devices with power levels (e.g. TX radio) 2008-01-14 16:18:39 +00:00
adamdunkels
28eaf5ee40 Moved C preprocessor concatenation macro to sys/cc.h 2008-01-14 09:22:50 +00:00
oliverschmidt
d474777ff8 Moved textedit widget into backyard as it was never platform independent anyway (but relied on the C64 hibit cursor). 2007-11-20 20:41:11 +00:00
oliverschmidt
552969ed24 Adjusted include path. 2007-11-17 21:24:50 +00:00
adamdunkels
1e1e44a3f8 Fixed compiler warnings to make code compile with gcc's -pedantic switch 2007-11-17 18:01:00 +00:00
adamdunkels
d9eebf7e17 Fixed compiler warnings 2007-11-17 10:46:25 +00:00
adamdunkels
8d79ef2219 Include rtimer.h instead of rtimer-arch.h 2007-11-17 10:46:02 +00:00
adamdunkels
88de583f94 Removed nonexistant neighbors rimestat 2007-11-12 22:27:44 +00:00
adamdunkels
812b86f162 Initialization of energest_current_time to fix problems with energy attribution on LEDs during Tmote Sky bootup 2007-11-12 22:27:21 +00:00
adamdunkels
a9e4287cbe Changed the energy estimation type ENERGEST_TYPE_RECEIVE to ENERGEST_TYPE_LISTEN to highlight that energy is spent on idle listening, not just the actual reception of packets 2007-10-25 09:30:39 +00:00
adamdunkels
a03ff4d7ac Convenience function for printing out system statistics 2007-09-27 22:22:40 +00:00
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