osd-contiki/cpu/avr
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 [doc] Various fixes for doxygen grouping etc. 2014-11-10 23:53:32 +01:00
radio bugfix blockmode, 8 Hz dutycyle as standard 2014-11-19 13:34:07 +01:00
avr.c * Generic AVR stuff. 2007-01-25 18:24:29 +00:00
avrdef.h 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
bootloader.c [avr] Removed usage of deprecated MCUSR 2014-08-30 01:58:18 +02:00
bootloader.h 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
cc2420_spi.c Moved the cc2420 driver into a separate dev/cc2420 module 2014-01-26 23:20:27 +01:00
hw_pwm_timer.c Initial implementation of avr hardware timer 2014-11-19 13:47:37 +01:00
hw_timer.c Initial implementation of avr hardware timer 2014-11-19 13:47:37 +01:00
hw_timer.h Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00
leds-arch.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
Makefile.avr Allow compilation of c++ files (extension .cpp) 2014-11-19 13:47:51 +01:00
minileds.c leds: Fix the API 2014-01-07 13:02:41 +01:00
mtarch.c Add missing mtarch_stop function 2012-02-21 11:11:53 -05:00
mtarch.h 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
rtimer-arch.c Make HW timer for contiki rtimer configurable 2014-11-19 13:44:55 +01:00
rtimer-arch.h Make HW timer for contiki rtimer configurable 2014-11-19 13:44:55 +01:00
slip_uart1.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
spi.c Remove unused SPI initializer flag from AVR. Comment out in the msp-430 template. 2012-02-27 17:05:22 -05:00
watchdog.c [avr] Removed usage of deprecated MCUSR 2014-08-30 01:58:18 +02:00