contiki/tools
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
..
6502 Have CBM DOS filetype of imported files match the one used by cc65. 2013-12-12 18:57:40 +01:00
apple2enh loader.system is now official part of the cc65 Apple II support. 2013-02-17 00:30:55 +01:00
atarixl Added platform 'Atari XL'. 2013-06-01 22:49:00 +02:00
c64 Replaced 10.1.1.1/8 with 192.168.0.0/24. 2013-02-16 23:04:55 +01:00
c128 Replaced 10.1.1.1/8 with 192.168.0.0/24. 2013-02-16 23:04:55 +01:00
code-style feat(code-style): Add a script to automatically format all changed files 2013-10-05 10:39:47 +02:00
coffee-manager Renamed Java packages to match our contiki-os.org domain. Note that this commit does not affect external dependencies 2013-11-20 16:43:27 +01:00
collect-view Renamed Java packages to match our contiki-os.org domain. Note that this commit does not affect external dependencies 2013-11-20 16:43:27 +01:00
cooja Allow user configuration of RadioLogger pcap file 2013-11-27 14:05:45 +01:00
csc
cygwin
mspsim@58f187351f Added mspsim as a submodule instead of as a binary mspsim.jar file 2013-11-07 17:28:50 +01:00
powertrace
release-tools Rename to md 2013-03-26 23:15:37 +01:00
sensinode Rename to md 2013-03-26 23:15:37 +01:00
sky leds: Fix the API 2014-01-07 13:02:41 +01:00
stm32w leds: Fix the API 2014-01-07 13:02:41 +01:00
wpcapslip 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
z1 Added support for motelist and uploading to Z1 motes under Mac OSX 2013-01-23 22:56:43 +01:00
z80 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
avr-make-symbols
avr-makecoffeedata
avr-makefsdata
base64-encode
codeprop.c
empty-symbols.c
empty-symbols.h
freebsd-6-setup-slip Script for setting up SLIP communication under FreeBSD 6 2006-06-18 05:57:10 +00:00
make-symbols-nm
Makefile
makefsdata
makestrings
mknmlist Filter out symbols defined by the C implementation 2013-08-06 21:33:03 +02:00
mknmlist-ansi Added memmove as a builtin function. 2007-08-22 10:57:31 +00:00
msp430-make-symbols
scat.c
serial-log.pl
setup-nat-ubuntu
tapslip6.c
timestamp
tunslip6.c
tunslip.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