Commit Graph

28 Commits

Author SHA1 Message Date
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
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
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
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