osd-contiki/cpu
Ralf Schlatterbeck e65dabb119 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-06-26 11:00:01 +02:00
..
6502 Removed unused variable. 2014-03-27 19:24:23 +01:00
arm Updated include paths for the moved files under net/ 2014-01-26 23:20:23 +01:00
avr Add Arduino compatibility layer 2014-06-26 11:00:01 +02:00
cc253x Changed the name of the rimeaddr module to linkaddr 2014-01-29 20:12:24 +01:00
cc2430 Split the cc2430 custom rules into its own file 2014-01-26 23:20:40 +01:00
cc2538 Merge pull request #472 from ADVANSEE/cc2538-clock-adjust-etimer-poll 2014-04-13 16:35:17 +01:00
mc1322x Changed the name of the rimeaddr module to linkaddr 2014-01-29 20:12:24 +01:00
msp430 Support verbosity control when building MSP430-based platforms with 2014-04-11 17:36:42 +02:00
native Updated include paths for the moved files under net/ 2014-01-26 23:20:23 +01:00
pic32 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
rl78 rl78: Attempt to locate the IAR installation automatically and instruct the user how to specify IAR_PATH if it cannot be found. 2014-01-24 12:50:43 -05:00
stm32w108 Changed the name of the rimeaddr module to linkaddr 2014-01-29 20:12:24 +01:00
x86 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