Commit Graph

56 Commits

Author SHA1 Message Date
Simon Duquennoy
a9cc909794 Network layer configuration: replace UIP_CONF_* with NETSTACK_CONF_WITH_* 2014-12-01 21:02:57 +01:00
Simon Duquennoy
722b3258d1 Cleanup of the Contiki network layer configuration. Now using CONTIKI_WITH_IPV6, CONTIKI_WITH_IPV4, and CONTIKI_WITH_RIME in makefiles, and UIP_CONF_IPV6, UIP_CONF_IPV4, UIP_CONF_RIME in c code. Now only the stacks that are used are compiled (via makefile MODULES). Make IPv6 the default network stack. 2014-12-01 20:13:09 +01:00
kkrentz
fb00a217f5 packetbuf: Use packetbuf_holds_broadcast() all-over 2014-11-13 09:58:08 -08:00
Adam Dunkels
def57199b9 Merge pull request #511 from ADVANSEE/leds
leds: Fixes and enhancements
2014-06-11 22:37:34 +02:00
Adam Dunkels
45265249fc Changed the name of the rimeaddr module to linkaddr 2014-01-29 20:12:24 +01:00
Adam Dunkels
8eace27f9b Moved net/rime.h to net/rime/rime.h 2014-01-26 23:20:45 +01:00
Adam Dunkels
25367fb08c Moved the ds2411 driver into a dev/ds2411 module 2014-01-26 23:20:31 +01:00
Adam Dunkels
5f3fe7f7c7 Updated include paths for the moved files under net/ 2014-01-26 23:20:23 +01:00
Benoît Thébaudeau
7f48057b9e leds: Fix the API
The leds API did not work in some cases. E.g. with the following sequence:
  leds_off(LEDS_ALL);
  leds_toggle(LEDS_GREEN);
  leds_off(LEDS_ALL);
the green LED was remaining on after the last call.

This was caused by the toggle feature made synonymous with the invert feature,
although it is unrelated. leds_toggle() is indeed supposed to toggle an LED,
while leds_invert() is supposed to change the active level of an LED. However,
all users of leds_invert() actually meant leds_toggle(), and the invert feature
does not make sense in this module because it is not handy due to successive
calls to leds_invert() changing the intended behavior, and hardware active
levels should be managed in leds_arch_set() (e.g. by XORing the passed value
with a hardware-specific constant before setting the output levels of the pins).

Consequently, this change:
 - removes the leds_invert() function,
 - makes leds_toggle() behave as expected relatively to leds_off() / leds_on(),
 - sanitizes the code in the leds module.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
2014-01-07 13:02:41 +01:00
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
469884171a Added the const keyword to functions that use the tcpip_set_outputfunc(), which now takes a const argument 2013-11-18 23:26:37 +01:00
Simon Duquennoy
5dc05e7913 Port apps, examples, platforms and tools so they use the new neighbor and route API. 2013-08-19 17:48:30 +02: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
Niclas Finne
b7c28a48b0 Makefile for Sky tools 2012-05-07 22:55:27 +02:00
Niclas Finne
40595ad5c7 Support for serialdump on MacOS X. Patch by Laurent Deru. 2012-05-07 13:16:27 +02:00
Laurent Deru
cc863e7bd4 Sky motelist support for MacOS X 2012-05-07 11:18:09 +02:00
Nicholas J Humfrey
aa67ad67cc Converted u8_t to uint8_t and u16_t to uint16_t in the docs and tools directories. 2012-02-21 08:33:25 -05:00
Enric M. Calvo
404b735cc4 Fixed radio and contiki conf to get RIME working
cc2420 isr handled at cc2420-arch, disabled accel. interrupts and modified
platform/z1/contiki-conf.h to use same mac as sky.
Added example-broadcast-button, sends packets every second or when button pushed.
Works with other Z1s and Sky
2011-02-27 12:35:19 +01:00
adamdunkels
5585d72c86 A simple but substantial change: uIP used the htons()/HTONS() macro
functions for converting between host and network byte order. These
names are the de facto standard names for this functionality because
of the original BSD TCP/IP implementation. But they cause problems for
uIP/Contiki: some platforms define these names themselves (Mac OS,
most notably), causing compilation problems for Contiki on those
platforms.

This commit changes all htons to uip_htons instead. Same goes for
htonl, ntohs, and ntohl. All-caps versions as well.
2010-10-19 18:29:03 +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
joxe
0d3c7edd6c fixed for new uip_buf 2010-05-24 11:10:51 +00:00
adamdunkels
d9d3f7b6b5 Bugfix: don't send packets if they are shorter than the link layer header length 2010-04-05 21:05:56 +00:00
nifi
75481f6460 Removed debug output 2010-03-23 12:05:36 +00:00
nifi
cba5256ca2 updated to use uip-ds6 2010-03-19 12:58:17 +00:00
adamdunkels
51980f0be4 CC2420_CONF_AUTOACK is now defined in contiki-conf.h 2010-02-18 23:03:36 +00:00
adamdunkels
5efce5eeed The path to the Contiki root was not correctly set 2010-02-06 18:23:04 +00:00
adamdunkels
b3e0a2506f Turned off CC2420 auto ack for the bridge 2010-02-03 16:48:54 +00:00
adamdunkels
b0db9cc588 Print informative message if radvd could not be restarted (instead of failing) 2010-02-01 11:54:07 +00:00
adamdunkels
da3a7ffbd8 Increase uIP buffer size for the bridge to accomodate for the Ethernet headers from the PC host 2010-01-28 13:49:24 +00:00
adamdunkels
01683428ea Added missing functions to make the bridge code compile 2009-11-03 09:09:55 +00:00
adamdunkels
0a12f6da77 Allow debugging output to be written from the bridge mote and be printed out by the tapslip6 program 2009-11-02 11:46:49 +00:00
adamdunkels
61f16ae6cb Configure RF channel to be the same as the default Contiki sky channel 2009-10-26 13:34:08 +00:00
adamdunkels
fca2cfc919 radvd configuration file for linux 2009-10-26 13:20:57 +00:00
adamdunkels
2b54d1f1b4 Added make targets that help to setup the SLIP IPv6 bridge 2009-10-26 13:20:31 +00:00
joxe
68ba32eaee added autoack config for bridge 2009-07-28 21:34:13 +00:00
joxe
890eb830e8 ipv6 bridge between 802.15.4 and ethernet - over USB/SLIP - use with sliptap6 2009-05-08 12:49:36 +00:00
zhitao
7bc3df218c removed file to avoid violation of IP rights 2009-04-16 13:37:28 +00:00
zhitao
302e4339a8 added supposedly missing BSL program for JCreate nodes 2009-04-16 12:33:19 +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
joxe
1a1ddd0bd5 removed energest-arch from sky and esb platforms 2008-09-29 12:38:18 +00:00
adamdunkels
d28b27f031 Source code for the serialdump tool 2008-08-21 21:59:19 +00:00
adamdunkels
d134a1fcb1 Moved sky-specific make targets from the tools/sky/Makefile to the more natural platform/sky/Makefile.sky. Added a number of convenient targets for accessing the serial port. 2008-05-29 20:15:49 +00:00
adamdunkels
e160610711 Added slip target for setting up a SLIP link 2008-03-03 20:24:23 +00:00
adamdunkels
9550fad2f3 Added sizeplot target that plots and shows the size of the code 2008-02-11 10:43:02 +00:00
adamdunkels
264176fe1b Small scripts (hacks!) for checking and plotting the Contiki code size 2008-02-04 23:51:42 +00:00
adamdunkels
6557863bb8 The reset now comes after the binaries are compiled 2008-02-03 21:04:31 +00:00
nifi
98b2bd7de8 changed to not show the executed command 2007-12-12 11:51:47 +00:00
adamdunkels
2c4aba1b1b Closing stderr to avoid error messages for compilation without Tmote Sky boards 2007-11-26 23:21:41 +00:00
adamdunkels
261254b22d Added SERIALDUMP variable pointing to the serialdump executable 2007-11-13 20:21:02 +00:00
adamdunkels
d8717c264a Serial library for Python needed for some of the Tmote Sky tools 2007-11-13 13:23:02 +00:00