Commit Graph

75 Commits

Author SHA1 Message Date
adamdunkels
3ae774c91a Added a way to for specifying lists as parts of structs. These lists
must be initialized with a special LIST_STRUCT_INIT() call before
using.
2010-09-13 13:31:00 +00:00
adamdunkels
a84cc7c8a0 Added a function for obtaining the next item on the list. This makes list iterations nicer, as the ->next pointer now is hidden within the list abstraction. 2010-06-15 18:54:27 +00:00
nifi
46f9f7e6c0 corrected include path 2010-06-15 13:31:22 +00:00
adamdunkels
a1f69138d1 Avoid adding elements twice 2010-04-30 07:18:24 +00:00
fros4943
3394a3ef23 make sure not to add an already existing list element, as it breaks the list iteration functions 2010-03-22 11:29:58 +00:00
nvt-se
bf2e85a57f supply an argument of the same type as the print format 2010-03-09 14:14:36 +00:00
adamdunkels
47578806b5 Removed semicolon from #define to allow the semicolon to be placed naturally after the macro is used 2010-02-23 18:27:04 +00:00
oliverschmidt
3f142f0718 Convert '@' correctly from PETSCII to ASCII - by leaving it alone. 2010-01-31 23:46:19 +00:00
adamdunkels
f6715890de Made SENSORS_ACTIVATE() and SENSORS_DEACTIVATE() use non-pointers, for concistency 2010-01-14 20:13:34 +00:00
nifi
079db2af55 fixed sensors_find API 2010-01-14 20:04:38 +00:00
joxe
dd6922906c replace void pointer types with int 2010-01-14 15:33:27 +00:00
nifi
480f72c95c changed argument for SENSORS_ACTIVATE/DEACTIVATE to be a pointer to the sensor structure 2010-01-14 14:17:08 +00:00
nifi
1d592b5680 removed obsolete structure 2010-01-14 13:55:21 +00:00
joxe
84d969ce85 simplified the sensors API - will break some platforms... 2010-01-14 13:29:56 +00:00
nvt-se
b0a8154e96 make it possible to accumulate CRC values through crc16_data. 2009-05-14 12:05:04 +00:00
adamdunkels
c330b23c57 Minor documentation addition 2009-05-06 15:07:35 +00:00
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