77c02d58f8
Now the necessary settings are in adc.h. Refactored to allow repeated ADC reads without reinitialization. Arduino allows setting analogReference, this is now also implemented. ADC is now initialized to sane values in apps/arduino/arduino-process.c dev/arduino/arduino-compat.h now has all hardware independent settings for arduino (some moved from platform/osd-merkur/dev/hw-arduino.h). turnOffPWM re-implemented with hw_timer, removed from wiring_digital.c ADC-specific arduino stuff moved to arduino-compat.h Arduinos wiring_analog no longer necessary. arduino-sketch example now reads analog inputs 1 and 5 using analogRead. |
||
---|---|---|
.. | ||
dev | ||
contiki-conf.h | ||
contiki-main.c | ||
Makefile.osd-merkur | ||
node-id.c | ||
node-id.h | ||
params.c | ||
params.h | ||
slip_uart0.c |