osd-contiki/tools/sky
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
..
lib Supporting libraries for the Tmote Sky tools 2007-10-25 14:24:59 +00:00
serial Fixed radio and contiki conf to get RIME working 2011-02-27 12:35:19 +01:00
uip6-bridge leds: Fix the API 2014-01-07 13:02:41 +01:00
check-size 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
Makefile Makefile for Sky tools 2012-05-07 22:55:27 +02:00
motelist-linux Tmote Sky tools for Windows and Linux 2007-10-25 11:08:27 +00:00
motelist-macos Sky motelist support for MacOS X 2012-05-07 11:18:09 +02:00
motelist-windows.exe Tmote Sky tools for Windows and Linux 2007-10-25 11:08:27 +00:00
msp430-bsl-linux Tmote Sky tools for Windows and Linux 2007-10-25 11:08:27 +00:00
msp430-bsl-windows.exe Tmote Sky tools for Windows and Linux 2007-10-25 11:08:27 +00:00
plot-size Small scripts (hacks!) for checking and plotting the Contiki code size 2008-02-04 23:51:42 +00:00
python23.dll Python DLL needed for some of the tools 2007-10-25 13:14:15 +00:00
serialdump-linux Tmote Sky tools for Windows and Linux 2007-10-25 11:08:27 +00:00
serialdump-windows.exe Removed debug output 2010-03-23 12:05:36 +00:00
serialdump.c Support for serialdump on MacOS X. Patch by Laurent Deru. 2012-05-07 13:16:27 +02:00