Commit graph

120 commits

Author SHA1 Message Date
Adam Dunkels bb2dcaa057 A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00
Adam Dunkels 563c9d1577 Removed old unused sys/ files 2013-11-19 00:23:13 +01:00
Oliver Schmidt ff5d6e091d Recent changes in telnetd make exporting of those two necessary. 2013-07-31 00:04:43 +02:00
hardy ae62a0d142 one blank less 2013-02-18 20:34:24 +01:00
rgrr 7cb8148226 add_timer() does not set owning process 2013-02-13 09:15:11 +01:00
Adam Dunkels ec8c7e9be0 Cleanup of the node-id.h files. The node-id.h file contains
declarations of functions for setting and getting a node ID number, a
functionality that exists on many platforms. Since this functionality
was not considered part of the Contiki core, each platform defined its
own node-id.h file. This commit attempts to clean this up by
collecting the node-id.h into a core/sys/node-id.h file that replaces
the old node-id.h files from the platform directories.
2012-11-20 19:59:46 +01:00
Adam Dunkels 944537fccf Removed all old RCS tags in the Contiki source tree. Those RCS tags are not used any more, as we are now using git to manage the Contiki source tree 2012-10-26 15:54:49 +02:00
David Kopf cac4e9a222 Add clock_delay_us and clock_set_seconds to clock.h. Modify clock_wait to use clock_time_t.
Remove the troublesome avr/dev/delay.* files.
Add PLATFORM_NAME and combine the confusing *_REVISION defines into a single PLATFORM_TYPE
2012-04-09 15:49:53 -04:00
David Kopf 745f071c98 Eliminate unused variable warnings. Dummy test of PT_YIELD_FLAG does not change program size. 2012-02-21 11:23:54 -05:00
Adam Dunkels 8edd86da5e Bugfix: PROCESS_PAUSE() must explicitly check the event type, otherwise we may cause the process event queue to fill up if we repeatedly call PROCESS_PAUSE() while other (broadcast) events are posted as well, such as timer events. 2011-11-22 09:36:27 +01:00
David Kopf 2feed121d2 Account for 16 bit rtimer wraparound, else ENERGEST way underreports AVR times. 2011-08-17 16:51:22 -04:00
Adam Dunkels 0e792fb742 Flush before computing accumulative power 2011-05-08 22:25:38 +02:00
Lionel Debroux 5cb49e8b07 Several compiler warning fixes:
* msp430: fix "implicit declaration of function" warnings in clock.c, by including watchdog.h;
     * sky: fix a couple pointer target signedness warnings;
     * core: fix several signed/unsigned comparison warnings;
     * framer-802154: "const static" -> "static const" to fix compiler warnings;
     * core: comment or remove unused variables and function definitions.

Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
Signed-off-by: Mariano Alvira <mar@devl.org>
2011-02-20 19:28:14 -05:00
adamdunkels 06123fefe2 Defensive programming: make sure that a process is actually running before we try to kill it. 2010-10-20 22:24:46 +00:00
dak664 b9a9e7695d Add option to remove process name strings to save RAM 2010-09-14 18:55:04 +00:00
nifi 095f700b63 Moved down inclusion of rtimer-arch.h to allow rtimer_clock_t to be used in rtimer-arch.h 2010-09-13 20:46:02 +00:00
joxe 1f0a43bf01 fixed timer bug - did not do equality comparison 2010-06-21 19:07:24 +00:00
joxe 546504516b changed timer comparison to avoid crashing mspgcc4 2010-06-21 09:41:49 +00:00
adamdunkels 3fa8ffda1a Moved the modules packetbuf, queuebuf, and packetqueue from net/rime to net/, since they are not Rime-specific 2010-06-14 19:19:16 +00:00
adamdunkels 97708d6235 Documentation group set accordingly 2010-06-14 07:35:53 +00:00
adamdunkels 8f8393aadc Moved ctimer.[ch] from their old and illogical location in core/net/rime to a more appropriate place in core/sys 2010-06-14 07:34:36 +00:00
anthony-a 694e1498f4 merge change from branch into mainline. <fingers crossed> 2010-04-06 19:10:21 +00:00
fros4943 4833c6555e moved inclusion of rtimer-arch.h to top of rtimer.h, to avoid circular rtimer_clock_t dependencies 2010-03-23 13:35:00 +00:00
fros4943 5eb391dbe1 allows rtimer_clock_t to be defined from contiki-conf.h 2010-03-23 13:24:38 +00:00
joxe 7d5e3fbfde added function to retrieve elapsed time 2010-03-15 15:53:57 +00:00
adamdunkels 50e1452564 Ugly workaround for internal error in mspgcc when applying the >= operator to two 32-bit values 2010-02-23 18:40:08 +00:00
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