c46d6afa39
New discovery: Contiki also uses timer 0. With almost the same interface as Arduino. So we now completely get rid of wiring.c (only the main file, the other wiring_xxx stay) and implement Arduino timer, delay, etc in terms of the corresponding Contiki routines. Verified that now delay works as expected. The LED in examples/osd/arduino-sketch blinks! Before this, the arduino_init routine in wiring.c destroyed the timer-0 initialization of contiki, making both, contiki timer implementation *and* contiki timer implementation fail if the arduino_init routine was called. Now both work. Squashed with following bug-fix commit. |
||
---|---|---|
.. | ||
adc.c | ||
adc.h | ||
Arduino.h | ||
batmon.c | ||
batmon.h | ||
battery-sensor.c | ||
battery-sensor.h | ||
binary.h | ||
button-sensor.c | ||
dht11.c | ||
dht11.h | ||
ds1820.c | ||
ds1820.h | ||
hw-arduino.h | ||
i2c.c | ||
i2c.h | ||
key.c | ||
key.h | ||
led.c | ||
led.h | ||
leds-arch.c | ||
leds-arch.h | ||
optriac-sensor.c | ||
optriac-sensor.h | ||
optriac.c | ||
optriac.h | ||
pins_arduino.h | ||
pir-sensor.c | ||
pir-sensor.h | ||
relay-sensor.c | ||
relay-sensor.h | ||
relay.c | ||
relay.h | ||
servo-sensor.c | ||
servo-sensor.h | ||
servo.c | ||
servo.h | ||
t4-servo-sensor.c | ||
t4-servo-sensor.h | ||
t4-servo.c | ||
t4-servo.h | ||
temperature-sensor.c | ||
temperature-sensor.h | ||
wiring_analog.c | ||
wiring_digital.c | ||
wiring_private.h |