osd-contiki/tools/stm32w
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
..
stm32w_flasher In stm32w_flasher adapted error message for missing pyudev. 2013-11-28 16:49:43 +01:00
uip6_bridge leds: Fix the API 2014-01-07 13:02:41 +01:00
wpcapslip6 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
motelist-linux Fix: handle stm32f-based serial interfaces (/dev/ttyACMx) 2012-11-09 14:00:16 +01:00
serialdump-linux Set executable flag on binaries 2012-04-22 20:53:10 +02:00
serialdump-windows.exe Added serialdump utility from sky folder to stm32w folder. It has one more option for limiting upload speed. 2010-12-15 11:18:09 +00:00
serialdump.c Added serialdump utility from sky folder to stm32w folder. It has one more option for limiting upload speed. 2010-12-15 11:18:09 +00:00
tapslip6.c 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