The official git repository for OSD-Contiki, the open source OS for the Internet of Things
Go to file
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
apps Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00
core bugfix server client demo 2014-11-19 13:34:37 +01:00
cpu Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00
dev Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00
doc [doc] Added minimal doxygen anchor for each platform currently available in Contiki 2014-11-10 23:53:34 +01:00
examples Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00
platform Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00
regression-tests Output sha1sums of files used for simulation on fail 2014-11-13 09:10:53 +01:00
tools Output sha1sums of files used for simulation on fail 2014-11-13 09:10:53 +01:00
.gitignore Add initial EV-ADuCRF101MKxZ platform support 2014-07-22 21:18:16 -04:00
.gitmodules Added the cc2538-bsl submodule to the tools dir 2014-03-07 15:44:29 +01:00
.travis.yml Always compile verbose when running the CI 2014-11-13 09:10:53 +01:00
CONTRIBUTING.md Adding a CONTRIBUTING file to use github feature 2014-07-04 09:29:12 +02:00
LICENSE Removed the explicit year 2012 to make it more generic 2012-10-25 23:08:54 +02:00
Makefile.include Allow compilation of c++ files (extension .cpp) 2014-11-19 13:47:51 +01:00
README-BUILDING.md Rename to md 2013-03-26 23:15:37 +01:00
README-EXAMPLES.md Several minor consistency improvements. 2013-07-31 00:55:31 +02:00
README.md Rename to md 2013-03-26 23:15:37 +01:00

The Contiki Operating System

Build Status

Contiki is an open source operating system that runs on tiny low-power microcontrollers and makes it possible to develop applications that make efficient use of the hardware while providing standardized low-power wireless communication for a range of hardware platforms.

Contiki is used in numerous commercial and non-commercial systems, such as city sound monitoring, street lights, networked electrical power meters, industrial monitoring, radiation monitoring, construction site monitoring, alarm systems, remote house monitoring, and so on.

For more information, see the Contiki website:

http://contiki-os.org