nes-proj/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 Added the computation of average loss rate 2011-02-26 22:07:46 +01:00
cygwin Updated to a version compatible with latest serialdump-windows.exe 2011-09-19 17:42:30 +02:00
mspsim@58f187351f Added mspsim as a submodule instead of as a binary mspsim.jar file 2013-11-07 17:28:50 +01:00
powertrace Avoid multiple inclusion 2010-10-24 21:12:52 +00:00
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 PROGMEM changes needed for newer avr-gcc compiler 2012-02-21 11:10:57 -05:00
avr-makecoffeedata 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
avr-makefsdata
base64-encode
codeprop.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
empty-symbols.c Replaced make-empty-symbols with empty-symbols.[c|h] 2011-04-03 13:24:58 +02:00
empty-symbols.h Replaced make-empty-symbols with empty-symbols.[c|h] 2011-04-03 13:24:58 +02:00
freebsd-6-setup-slip
make-symbols-nm
Makefile Add gitclean and distclean options to /tools/Makefile 2011-08-05 12:14:18 -04:00
makefsdata 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
makestrings
mknmlist Filter out symbols defined by the C implementation 2013-08-06 21:33:03 +02:00
mknmlist-ansi
msp430-make-symbols
scat.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
serial-log.pl Add serial logging tool. 2011-08-28 16:12:41 -04:00
setup-nat-ubuntu
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
timestamp
tunslip6.c Fix command line handling in tunslip6 2012-05-15 17:16:42 -04:00
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