Commit Graph

94 Commits

Author SHA1 Message Date
adamdunkels
0c4c88ae66 Improved per-packet power profiling: if a packet is retransmitted, the new energy is added to the old energy so that it is possible to measure the full energy for all transmissions of the packet 2010-02-23 18:39:00 +00:00
adamdunkels
e21c1a39d3 Removed unused code; a number of fixed by Anthony Asterisk 2010-02-02 21:13:27 +00:00
adamdunkels
6f72ff7af1 Remove compiler warnings 2010-01-19 13:08:24 +00:00
adamdunkels
eff2203310 There were many bugs in the rtimer code, particularly one that made only one rtimer at a time work. We have a new rtimer system that we're testing, but in the meantime, I rewrote the rtimer code to explicitly support only one rtimer. Makes the code significantly simpler (and fixes a bug that was very hard to track down). 2009-12-08 23:55:17 +00:00
adamdunkels
a25a3a45b5 Bugfix: attribute energy expenditure to a device only if the device was actually switched on 2009-10-20 20:19:27 +00:00
adamdunkels
49e9b0bdcb Fixed compiler warning 2009-09-09 21:10:35 +00:00
nvt-se
a21dece53f removed unused state codes and unused printf statements 2009-09-03 12:57:57 +00:00
nvt-se
74e9bc8789 Added flash reads and writes to energest. 2009-05-11 15:26:24 +00:00
adamdunkels
65eb5fd4e8 Renamed the rimebuf module to packetbuf to signal that the module is used outside of a pure Rime context (e.g., the sicslowpan code uses it). 2009-03-12 21:58:20 +00:00
adamdunkels
9816f49fe6 Changed listen and transmit energy attributes so that they are named _TIME rather than _ENERGY, to indicate that they contain the time during which the radio was switched on and not the energy 2009-03-02 22:00:41 +00:00
adamdunkels
94c2c0ce85 Communication power accounting: this module keeps track of the energy expenditure of individial communication activities, such as transmission or reception of individual packets or idle listening. 2009-03-01 20:32:03 +00:00
adamdunkels
e78fd82f7d Documentation bugfix: rtimer should be in sys group and the stimer library should have the correct documetation group 2009-03-01 09:31:43 +00:00
adamdunkels
bdc488c7f3 Removed PROCESS_ZOMBIE code, which does not compile with sdcc, added some optional debugging printouts 2009-02-20 21:24:17 +00:00
adamdunkels
e346d8cf95 Reverted the timer_expired() back to the previous version (which should be correct). Removed the definition of CLOCK_LT() because it seems to only cause problems. 2009-01-24 15:20:11 +00:00
adamdunkels
3a4a961ff5 Fixed the CLOCK_LT again. The previous revert was incorrect: the conditional was missing due to a bad copy-and-paste on my part :( 2009-01-24 10:54:44 +00:00
adamdunkels
6cbe50d9ef Fixed missing parenthesis 2009-01-23 17:16:38 +00:00
adamdunkels
b258a99e22 Reverted CLOCK_LT to the previous version, which upon closer examination seems to be correct. The new version did not work correctly on the minimal-net platform. 2009-01-23 16:13:57 +00:00
nvt-se
da7877e8ab corrected macro name 2008-11-05 19:34:36 +00:00
nvt-se
b693690fbe added parameter descriptions 2008-10-14 13:27:55 +00:00
nvt-se
775b8b4ae5 fixed documentation typos. 2008-10-14 12:46:39 +00:00
nvt-se
ebeb0b1452 use unsigned long since clock_seconds() returns that. 2008-10-02 15:04:37 +00:00
nvt-se
87a136d33a a timer of seconds 2008-10-02 10:17:48 +00:00
joxe
193bbc9ffa fixed energest to always add positive values and to use all bits, removed energest arch 2008-09-29 11:44:37 +00:00
adamdunkels
f127b3e24c Added a timer_remaining() function that returns the time until the timer expires 2008-09-21 08:58:05 +00:00
adamdunkels
9324dc1e7d Hardy Griech's timer bugfix: avoid direct comparison for timer values since they may wrap. Instead, use the CLOCK_LT() that works correctly even for wrapped timers. 2008-08-15 19:16:09 +00:00
adamdunkels
4875d5926d Added CCIF to make clock_seconds() function name visible for win32 2008-07-10 17:09:32 +00:00
adamdunkels
8835868590 Moved to core/net/rime long ago... 2008-07-09 22:14:34 +00:00
adamdunkels
e04e49999d Added a clock_seconds() function prototype to core/sys/clock.h, that returns seconds in 32 bit format. 2008-07-07 23:38:46 +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
adamdunkels
3847448496 Added configuration option to circumvent C compilers that have problems with const function pointers (i.e., sdcc) 2008-07-02 08:35:29 +00:00
adamdunkels
41f2443c02 Removed old unused documentation that messed up Doxygen 2008-05-27 14:00:09 +00:00
fros4943
7fcb9554f4 added timetable aggregate reset function 2008-03-13 14:27:34 +00:00
oliverschmidt
2b24ec3189 The cc65 compiler has a bug that doesn't allow to initialize an automatic struct with references to automatic variables. Therefore I changed the timetable used for measuring the timestamping time from automatic to static - which wastes some bytes in the data segment. If this isn't generally acceptable then an #ifdef __CC65__ seems to be the appropriate approach. 2008-02-28 22:43:40 +00:00
oliverschmidt
20dc5ee52f Adjusted tabs. 2008-02-28 22:11:30 +00:00
oliverschmidt
d1ad3d0246 Decorate declaration rather than definition with export attribute. 2008-02-10 11:17:33 +00:00
oliverschmidt
420b06863c Declare some more functions as CCIF (Contiki Core Interface) to trigger exporting the symbols from the main binary on Win32. 2008-02-07 23:04:35 +00:00
oliverschmidt
58d047667d Declare 'autostart_processes' as CLIF (Contiki Loadable Interface) to trigger exporting the symbol from shared libraries on Win32. 2008-02-07 15:47:28 +00:00
oliverschmidt
41beef7cca Removed support for the old method of starting a dynamically loaded process based on the symbol 'process_load'. All loaders now have to use the new method based on the symbol 'autostart_processes'. 2008-02-07 15:43:37 +00:00
adamdunkels
f93a48599e Process only one poll request at a time to avoid starvation if one process keeps calling process_poll() from its poll handler 2008-01-24 21:00:51 +00:00
adamdunkels
546efc7b61 Removed remaining debug code 2008-01-23 21:06:25 +00:00
adamdunkels
f4dd9ccd5b Rewrote the process code so that initialization events are posted synchronously instead of asynchronously, so that we don't have to explicitly wait for processes to be initialized. This also reduces the size of the event queue by half on the Tmote Sky platform since the queue was maximized during system bootup. This change also prompted an update of the process invokation code to ensure that a process is not invoked again when processing an event. General cleanup of the code also. 2008-01-23 15:18:06 +00:00
adamdunkels
7b71f23abe Factored out the time table keeping code from the profiling code and placed it in a separate 'timetable' module, that may be uesd on its own. 2008-01-17 12:19:25 +00:00
adamdunkels
3d17762735 Added a macro for concatenation of two strings, which may be macro expansions 2008-01-14 09:22:22 +00:00
adamdunkels
1640b11972 The radio driver now takes care of adjusting for the transmission time 2008-01-08 07:54:16 +00:00
oliverschmidt
a9ebc469b8 Avoid usage of POSIX function names even for static functions as some indirectly included system header might declare them. 2007-12-23 14:56:54 +00:00
oliverschmidt
1b5ae78a95 Easily avoided double (meant to be a forward ?) definition of timesynch_driver. 2007-12-20 20:30:55 +00:00
adamdunkels
d80052c0e7 Removed debug output 2007-12-16 14:48:33 +00:00
adamdunkels
8bf9a08a70 A simple implicit network time synchronization mechanism 2007-12-16 14:29:56 +00:00
oliverschmidt
476848fbe0 Including stddef.h for NULL seems to be somewhat more portable than stdlib.h. 2007-11-18 19:16:49 +00:00
ksb
71dc988cb9 slip.c:
char is signed but uip_buf is unsigned

spi.h:
	casted unused values to void

autostart.c:
autostart.h:
        The array itself should be const but the processes pointed to
        should not.

profile-aggregates.c:
        sizeof returns unsigned long on my platform
2007-11-18 12:27:44 +00:00