osd-contiki/cpu/avr
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
..
dev Closing doxygen groups 2014-06-02 14:54:17 +02:00
radio bugfix blockmode, 8 Hz dutycyle as standard 2014-04-15 07:27:31 +02: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/bootloader.c: Now compatible with bootloaders which always run first. 2013-05-19 08:21:16 -07: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-06-22 13:32:05 +02:00
hw_timer.c Initial implementation of avr hardware timer 2014-06-22 13:32:05 +02:00
hw_timer.h Add Arduino compatibility layer 2014-06-26 11:00:01 +02: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-06-26 08:37:19 +02:00
minileds.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
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-05-31 16:17:07 +02:00
rtimer-arch.h Make HW timer for contiki rtimer configurable 2014-05-31 16:17:07 +02: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 Add stk500 platform and changes suggested by Daniel Willmann 2011-08-03 11:18:55 -04:00