osd-contiki/platform/osd-merkur
Ralf Schlatterbeck b6be226e69 Add Arduino compatibility layer
We can now directly compile arduino sketches (.pde) files.
Arduino compatible analogWrite works now.
But there is still a long way to go, serial I/O and timer stuff (delay,
millis etc) currently don't work (not tested but I don't expect this to
work).
It can be used in an arduino sketch or in a normal contiki program.
We get a PWM frequency of 490.2 Hz (a period of 2.040 ms), that's
Arduino compatible. If you need different frequencies see native timer
usage in examples/osd/pwm-example
In a contiki program you have to call arduino_pwm_timer_init to
initialize the timer before pwm works. The arduino sketch wrapper
already does this.
For running a sketch, see examples/osd/arduino-sketch
2014-11-19 13:48:05 +01:00
..
dev Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00
contiki-conf.h set 0xABCD default panid 2014-11-19 13:46:07 +01:00
contiki-main.c adapt new names and api 2014-11-19 13:40:09 +01:00
Makefile.osd-merkur Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00
node-id.c add platform osd-merkur 2014-11-19 12:04:38 +01:00
node-id.h add platform osd-merkur 2014-11-19 12:04:38 +01:00
params.c bugfix includes and names 2014-11-19 13:40:29 +01:00
params.h bugfix define panid 2014-11-19 13:42:47 +01:00
slip_uart0.c add platform osd-merkur 2014-11-19 12:04:38 +01:00