adamdunkels
f6b4022511
Setting a lower value now causes a discovery packet go out quicker
2008-01-08 08:27:25 +00:00
adamdunkels
bac26c90c8
Made a primary transmission go out immediately instead of within a random interval
2008-01-08 08:26:48 +00:00
adamdunkels
a20202231d
Minor type change
2008-01-08 08:00:13 +00:00
adamdunkels
d2be099c0e
Bugfix: queue buffers were not freed when a new packet was sent, leading to memory leakage. Added debug output.
2008-01-08 07:59:51 +00:00
adamdunkels
c6a43333d2
Call the timeout function only if it is non-NULL
2008-01-08 07:58:49 +00:00
adamdunkels
40d6216ec9
Added API for reading the routing table
2008-01-08 07:58:23 +00:00
adamdunkels
601560b1eb
Added hopcount to callbacks
2008-01-08 07:55:56 +00:00
adamdunkels
0c748d7dd2
Debug formatting fixes
2008-01-08 07:55:15 +00:00
adamdunkels
f737127cca
Minor type change
2008-01-08 07:55:00 +00:00
adamdunkels
16142f12c7
Removed unused code
2008-01-08 07:54:40 +00:00
adamdunkels
1640b11972
The radio driver now takes care of adjusting for the transmission time
2008-01-08 07:54:16 +00:00
adamdunkels
88a010acdc
Added a simple sniffer callback, which currently is a hack - a better solution would be a list of sniffers for both outgoing and incoming packets, but this will do for now.
2008-01-08 07:53:02 +00:00
adamdunkels
5b454bbd5f
Added a simple sniffer callback, which currently is a hack - a better solution would be a list of sniffers for both outgoing and incoming packets, but this will do for now. Added trickle, neighbor & route includes.
2008-01-08 07:52:31 +00:00
adamdunkels
b356ebe009
Increased the default input line length from 40 to 80
2008-01-08 07:49:51 +00:00
adamdunkels
25a5434fb5
Sending with interval 0 made explicit
2008-01-07 14:53:04 +00:00
adamdunkels
d33871facc
Bugfix: hops should be at least one for all packets that are sent over the radio
2008-01-07 14:52:23 +00:00
adamdunkels
a0a524e128
Added watchdog_reboot() prototype
2008-01-07 14:42:35 +00:00
adamdunkels
cc6c6eee62
Added prototype for _on() and _off() functions
2008-01-07 14:41:34 +00:00
adamdunkels
d8e84abaae
Made estimation of departure time better by locally measuring the average time per byte and adding this to the incoming timestamp.
2008-01-07 14:08:02 +00:00
oliverschmidt
00d75c8d16
Made use of uip_ipaddr_to_quad().
2008-01-04 23:28:33 +00:00
oliverschmidt
af6d9a59be
Adjusted value (without distinguishing between Ethernet, SLIP, ...).
2007-12-23 20:24:46 +00:00
oliverschmidt
1ecf65d6c2
Allow to implement cfs API on preprocessor level. The benefits are:
...
- Less overhead.
- Switching implementations without makefile changes.
- Compatibility with specific declaration needs. (I.e. the cc65 module loader expects the read() function to be defined as fastcall but that contradicts the cfs API declaration.)
2007-12-23 15:22:33 +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
f67506ba2a
Set truncate flag to make sure that overwriting a existing file doesn't result in a mix of old and new content.
2007-12-23 14:12:44 +00:00
oliverschmidt
8a4e2ec268
Fixed typo.
2007-12-22 12:02:43 +00:00
oliverschmidt
0564cc50fd
Splitted POSIX based cfs implementation to avoid pulling in potentially large POSIX directory I/O functions without needing them at all.
2007-12-21 01:36:01 +00:00
oliverschmidt
878f56837d
Did more aggressive fullscreen ctk codesize optimization. Now ctk draw implementations need adjustment as the struct window member x and y are gone. Another potential optimization would be to remove clipping...
2007-12-20 20:45:06 +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
3033b86753
Made the number of routing table entries configurable
2007-12-17 09:20:16 +00:00
adamdunkels
758411d06d
Cleaned up #includes to avoid cyclic dependencies - the Rime includes no longer depend on rime.h
2007-12-17 09:14:08 +00:00
adamdunkels
8287215c82
Removed obsolete, unused files
2007-12-17 09:12:16 +00:00
adamdunkels
d80052c0e7
Removed debug output
2007-12-16 14:48:33 +00:00
adamdunkels
07e2ca9287
Documentation updates
2007-12-16 14:33:32 +00:00
adamdunkels
5c5775e93b
Ensure that receiver_callback is set before calling it
2007-12-16 14:31:43 +00:00
adamdunkels
c948c97b4f
Fixed timestamping to support the simple implicit network time synchronization mechanism
2007-12-16 14:30:36 +00:00
adamdunkels
8bf9a08a70
A simple implicit network time synchronization mechanism
2007-12-16 14:29:56 +00:00
oliverschmidt
4b11df81ba
Mustn't include libconio header as this is just one possible implementation of the conio API (and further code exlusion for fullscreen ctk).
2007-12-16 13:00:51 +00:00
oliverschmidt
dca1f5cc19
Exclude unnecessary code in ctk fullscreen mode.
2007-12-15 22:18:13 +00:00
oliverschmidt
80d47e851f
Have the fullscreen mode (triggered by not setting CTK_CONF_WINDOWS) work with mouse support.
2007-12-15 21:29:46 +00:00
oliverschmidt
9c9e336f45
Some source reformatting.
2007-12-15 21:04:20 +00:00
oliverschmidt
4671ee3d10
Have ctk (at least on conio) work correctly without menus.
2007-12-15 20:46:15 +00:00
oliverschmidt
6fd3b0dbae
Removed CTK_CONF_HYPERLINK from shared code as its use is still unclear (and the implementation was incomplete anyway).
2007-12-15 11:34:59 +00:00
oliverschmidt
3e1431b854
Ooops, forgot to remove debug printfs before committing :-(
2007-12-14 23:38:00 +00:00
oliverschmidt
2da3a926a2
Introduced CTK_CONF_WINDOWS.
...
If it is set the behaviour is (supposed to be) as before. Otherwise ctk supports just one window in fullscreen mode: No windows, no borders, no menu, no dialogs, no desktop.
The ctk draw interface stays stable but obviously further code savings are possible by making ctk draw implementations CTK_CONF_WINDOWS aware.
Currently the fullscreen mode doesn't work with mouse support - this is supposed to come later...
2007-12-14 23:34:19 +00:00
fros4943
2c67936d6d
including uaodv-rt
2007-12-13 10:04:59 +00:00
adamdunkels
43d394f758
Maximum rtmetric now defined by the collect module - a bit of a hack since this probably should be configured elsewhere (and be referenced by both the collect and the neighbor module) but it will do for now
2007-12-09 15:44:21 +00:00
adamdunkels
5a89c19b5e
Changed to store neighbors' rtmetrics as 16 bit valued
2007-12-09 15:43:51 +00:00
adamdunkels
01da62aa25
Changed local rtmetric name from 'local_rtmetric' to 'rtmetric' and updated the neighbor discovery module from nbh to neighbor-discovery
2007-12-09 15:43:09 +00:00
adamdunkels
4e1d2906b7
Changed name on the neighbor discovery module from (cryptic) 'nbh' to 'neighbor-discovery'
2007-12-09 15:40:43 +00:00
oliverschmidt
29b2d1d236
Allow to link with UIP_CONF_ACTIVE_OPEN set to 0.
2007-12-08 23:06:02 +00:00
oliverschmidt
3b95e284fc
Allow to actually configure active open support via UIP_CONF_ACTIVE_OPEN.
...
Is there any reason I don't understand why this wasn't allowed? At least it seems to work...
2007-12-08 23:04:34 +00:00
adamdunkels
761ad7dd57
Updated debug output
2007-12-05 13:40:34 +00:00
adamdunkels
fff49f6671
Correct route lookup
2007-12-05 13:40:26 +00:00
adamdunkels
36b7c7e782
Added missing forwarding function
2007-12-05 13:26:13 +00:00
adamdunkels
bfd5db667a
Don't call the forward function if it is not defined
2007-12-05 13:25:07 +00:00
adamdunkels
18fd561041
Avoid switching the radio on and off when the MAC layer is turned off. Cleanups.
2007-12-05 13:23:17 +00:00
adamdunkels
442516356a
Expose the Rime MAC driver so that applications can use it - a bit of a hack, but it works for now
2007-12-05 13:21:58 +00:00
adamdunkels
d8617c7879
Added API for setting 802.15.4 channel and for measuring RSSI
2007-12-05 13:21:05 +00:00
oliverschmidt
5aa55f3f80
Enhanced CTK_CONF_ICONS support.
2007-11-30 22:37:22 +00:00
oliverschmidt
7669fd8724
Enhanced CTK_CONF_MENUS support.
2007-11-30 21:50:09 +00:00
oliverschmidt
2748a0803f
Minor formatting change.
2007-11-30 11:15:41 +00:00
adamdunkels
5c2fa07acc
Bumped version number to 2.1
2007-11-28 23:04:55 +00:00
adamdunkels
6720b41707
Removed debug output
2007-11-28 20:03:50 +00:00
adamdunkels
1fd6e1bef9
Increased default route lifetime to 60 seconds. Routes are now refreshed every time they are looked up.
2007-11-28 20:00:57 +00:00
adamdunkels
996a8af0dd
Fixed include of ruc instead of abc
2007-11-28 20:00:07 +00:00
adamdunkels
6e739853f7
Updated the multihop forwarding interface to match the intended operation of the module: to let the user produce the route, and the mh module only does the forwarding
2007-11-28 19:55:27 +00:00
adamdunkels
d9bda3bc80
Added mh.h and rmh.h to the default includes
2007-11-28 19:54:24 +00:00
adamdunkels
dca1e0e446
Changed module name to 'collect' from 'tree' to better reflect the purpose of the module, rather than the particular data structure used to implement it
2007-11-28 16:04:41 +00:00
adamdunkels
b003f32e27
Added #ifdef around label (yes, ugly) to avoid compiler warning with UIP_UDP == 0
2007-11-28 12:53:07 +00:00
adamdunkels
6e228f7a79
uaodv.c now compiles without #if UIP_UDP
2007-11-28 12:52:34 +00:00
adamdunkels
3e35a97776
Exposed a few UDP declarations even when UIP_UDP == 0 to make uaodv.c compile
2007-11-28 12:52:12 +00:00
matsutsuka
1dd0e32a1e
#if UIP_UDP
...
option is added, because this file cannot be compiled and is unnecessary when UIP_UDP==0.
2007-11-28 10:15:44 +00:00
matsutsuka
2f121a1609
CTK_WINDOW_CLOSE support is enhanced.
...
CTK_CONF_HYPERLINK is introduced.
Both are for the memory sake.
2007-11-28 10:13:57 +00:00
adamdunkels
b07b46dd79
Removed unused return value from ruc recv callback
2007-11-27 23:32:34 +00:00
adamdunkels
f6cf045413
Always add neighbors to the list regardless if their rtmetric is higher than ours or not. If our rtmetric rises, we may need ot have those neighbors in our list.
2007-11-26 23:31:44 +00:00
adamdunkels
98854f80e0
Made Rime address size configurable through contiki-conf.h
2007-11-26 23:30:35 +00:00
adamdunkels
75be20bea6
Added function for accessing a specific neighbor
2007-11-26 23:30:13 +00:00
adamdunkels
58d6310979
Added #ifdef around MAX definition to avoid compiler warnings
2007-11-26 23:22:41 +00:00
adamdunkels
52a8e8d16b
Fixed to match the Contiki code style
2007-11-26 15:31:32 +00:00
oliverschmidt
034111b106
Made cfs implementation adhere to (new) cfs interface, streamlined implementation, reduced header dependencies and removed the 'cfs-root/' prefix. The reasoning behind the latter:
...
- Productive embedded targets don't use the posix based variant anyway.
- For testing purposes the prefix is a hurdle as the documentation doesn't mention it ;-))
- The prefix is incompatible with posix implementations lacking directory support (like the C64).
2007-11-22 11:37:34 +00:00
oliverschmidt
df1c80ee79
Made cfs implementation adhere to (new) cfs interface.
2007-11-22 11:29:13 +00:00
oliverschmidt
c69a49b2a2
Improved cfs interface.
2007-11-22 11:27:08 +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
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
nvt-se
977fdc7f03
Format requires unsigned long.
2007-11-18 11:21:29 +00:00
oliverschmidt
536f20efba
Removed compiler warnings.
2007-11-18 01:49:48 +00:00
oliverschmidt
d8330e9416
Removed compiler warning.
2007-11-18 01:46:53 +00:00
oliverschmidt
d609db3580
Removed compiler warnings.
2007-11-18 01:36:59 +00:00
oliverschmidt
131807370f
Removed reference to logically empty file.
2007-11-18 01:19:31 +00:00
oliverschmidt
aedb4f56da
Moved logically empty files to backyard.
2007-11-18 01:18:09 +00:00
adamdunkels
b49e9b34b1
reverted the PROCESS_LOAD() commit - the PROCESS_LOAD() code is used by ports such as the win32 and 6502 ports
2007-11-17 22:11:19 +00:00
oliverschmidt
552969ed24
Adjusted include path.
2007-11-17 21:24:50 +00:00
oliverschmidt
6f1c485d8e
Removed compiler warnings.
2007-11-17 21:01:31 +00:00
oliverschmidt
3b057f7966
Removed used variable that caused compiler warning.
2007-11-17 20:04:44 +00:00
adamdunkels
2f50fe9c57
Made definition of PROCESS() macro nicer by removing unused PROCESS_LOAD() and PROCESS_NOLOAD()
2007-11-17 18:07:13 +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
7fd1eca954
Added debug output
2007-11-17 10:34:17 +00:00
adamdunkels
9bd3c0c07c
Re-added hop count to header, fixes related to ETX computation: adv packets do not add a good etx, timedout packets do not restore the neighbor age, removed unused code
2007-11-17 10:32:54 +00:00
adamdunkels
e1affe5e72
Changed watchdog API by adding a start function, and renaming the restart function to periodic to make it clear that this should be called periodically
2007-11-17 10:15:50 +00:00
adamdunkels
5e7cbff22a
Fixed compiler warnings
2007-11-17 10:12:19 +00:00
adamdunkels
a7102829e3
Updated ruc callback types to fix compiler warnings
2007-11-17 09:59:48 +00:00
adamdunkels
0a8b1cbd76
Updated ruc callback types to fix compiler warnings
2007-11-17 09:47:55 +00:00
fros4943
532d9814c2
configurable rudolph datasize
2007-11-16 09:17:22 +00:00
fros4943
12338bee6d
changed R_AVR_CALL relocation (but unsure why the old didn't work)
...
+ defined debug output
2007-11-16 09:16:31 +00:00
nifi
c989d425dc
fixed compiler warning
2007-11-15 13:33:09 +00:00
nifi
a6d827fa1f
moved initialization of ctimer to allow MAC layer to use ctimers
2007-11-15 13:07:42 +00:00
fros4943
c645cad175
fixed conflicting types: nbh.c vs nbh.h
2007-11-15 08:10:42 +00:00
adamdunkels
0a7f35d62c
Added neighborhood discovery module
2007-11-13 21:01:54 +00:00
adamdunkels
1386b8ae8f
Added API to retrieve address of current receiver
2007-11-13 21:00:10 +00:00
adamdunkels
c40dde1209
Updated ruc to send ACKs before notifying applications, and API support for the etx-based tree code
2007-11-13 20:58:46 +00:00
adamdunkels
6845d2a1aa
Updated tree to use expected transmissions (etx) as routing metric
2007-11-13 20:39:29 +00:00
adamdunkels
670f65b55e
Added battery sensor to the core interfaces
2007-11-13 20:36:40 +00:00
nifi
44480fc7b7
added fix to enable start of ctimers before etimer process has started
2007-11-13 15:13:03 +00:00
fros4943
2c1af74f37
declaration outside loop
2007-11-13 06:45:29 +00:00
adamdunkels
1cb3bad088
Multiple bugfixes and updates to xmac code by Niclas
2007-11-12 22:29:37 +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
c5d79e8aea
Added contentiondrop rimestats when a packet couldn't be sent because of failing CCA check
2007-11-12 22:26:03 +00:00
nvt-se
6b7173809d
anonymous -> identified.
2007-11-12 12:34:29 +00:00
adamdunkels
127503e2a6
waiting for valid RSSI bugfix, minor cleanup
2007-10-25 13:29:21 +00:00
adamdunkels
feed6cf679
const parameter to rimbuef_copyfrom()
2007-10-25 12:48:46 +00:00
adamdunkels
349274cb81
Turn off listen energy accounting when transmitting
2007-10-25 09:38:15 +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
67aa9e8589
Made initialization function return a pointer to the MAC driver structure, to make initialization nicer
2007-10-23 21:27:57 +00:00
adamdunkels
f638c628d7
Made initialization function return a pointer to the MAC driver structure, to make initialization nicer
2007-10-23 20:57:37 +00:00
adamdunkels
0fdb3e3ddc
Initial implementation of a profiling system for Contiki
2007-10-23 20:39:07 +00:00
adamdunkels
d3319f71b3
Made rtimer callback a typedefed type to make function prototypes nicer
2007-10-23 20:33:19 +00:00
nifi
9a11bc1543
only update rimestats rexmit for retransmissions + added debug output when retransmitting
2007-10-23 14:00:36 +00:00
nvt-se
045225fa05
Made driver less platform-dependent and added support for msb-430.
2007-10-22 12:19:58 +00:00
nifi
0bf47de9ba
fixed compiler warning
2007-10-19 13:50:01 +00:00
joxe
35bff8238d
renamed variable, rewrote comment to make easier to read
2007-10-07 19:59:27 +00:00
nifi
d5580ae7ee
corrected debug print
2007-10-02 13:41:12 +00:00
matsutsuka
a6527b34d9
When UIP_UDP is off, turn off udp functions more accurately.
2007-09-29 03:54:18 +00:00
adamdunkels
a03ff4d7ac
Convenience function for printing out system statistics
2007-09-27 22:22:40 +00:00
nifi
1abf2c4c16
fixed compiler warning
2007-09-26 11:34:49 +00:00
matsutsuka
7dec361a80
#include <conio.h>
...
doesn't work on z80 version, because this is not a standard library.
2007-09-19 12:50:23 +00:00
fros4943
aa99049af0
simple tdma rtimer implemetation
2007-09-18 10:37:17 +00:00
fros4943
19b3035e36
simple tdma ctimer implementation
2007-09-18 10:36:36 +00:00
nifi
ccf6bc4d9d
moved ENERGEST_ON to actual transmission
2007-09-18 10:36:31 +00:00
fros4943
25d2514541
xmac ctimer implementation
2007-09-18 10:35:39 +00:00
nifi
c12af56ad0
Turn off ENERGEST_TYPE_TRANSMIT if send error
2007-09-18 10:32:00 +00:00
nvt-se
33687d8e6f
A function declared in lib/random.h is used, so this file should be included
...
instead of lib/rand.h.
2007-09-14 20:26:52 +00:00
nvt-se
d60f3449ea
static before const.
2007-09-14 20:12:55 +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
matsutsuka
8fd76351eb
removed debugging printf
2007-09-08 16:12:54 +00:00
matsutsuka
4cd7302ecb
make an old debbuging printf optional
2007-09-08 15:32:30 +00:00
fros4943
59c75144e8
compare clock_time_t's
2007-09-07 10:20:30 +00:00