Commit graph

23 commits

Author SHA1 Message Date
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
kkrentz f513ef9ef0 CC2420: Added RSSI_OFFSET as described in the manual 2014-08-05 05:07:06 -07:00
kkrentz 75d2914aaf CC2420: Added GET_LOCK/RELEASE_LOCK to set_key & encrypt 2014-08-05 05:07:06 -07:00
kkrentz c6a98f2968 CC2420: Turned SPI macros to functions and removed redundant AES API 2014-08-05 05:07:06 -07:00
kkrentz 6486c51692 CC2420: Hardware-accelerated aes_128_driver 2014-08-05 05:07:06 -07:00
kkrentz 2bac58f7b6 CC2420: Reusing getrxdata instead of getrxbyte. 2014-08-05 05:07:06 -07:00
kkrentz e977da8fe2 CC2420: Eliminated duplicated code in cc2420_read 2014-08-05 05:07:05 -07:00
kkrentz e3eb924f13 CC2420: Removed unused variables 2014-08-05 05:07:05 -07:00
kkrentz 1cb60b27de CC2420: Removed commented code 2014-08-05 05:07:05 -07:00
kkrentz b53e35b2a0 CC2420: The crystal oscillator only needs to stabilize at startup 2014-08-05 05:07:05 -07:00
kkrentz 06d3225aa7 CC2420: CC2420_WRITE_RAM with parameterizable ordering + resulting
simplifications
2014-08-05 05:07:05 -07:00
kkrentz b89d37d301 CC2420: Macros as functions for saving program memory 2014-08-05 05:07:05 -07:00
kkrentz 9e266acd9c CC2420: Doing CRC in hardware all the time 2014-08-05 05:07:05 -07:00
Niclas Finne 132b8dde3b Fixed CC2420 to return RADIO_RESULT_INVALID_VALUE if trying to set a
transmission power outside the valid range instead of using closest
valid value.
2014-04-13 21:43:37 +02:00
Niclas Finne 271ac4413f Removed the unused function cc2420_cca_valid and replaced some macros
with functions in CC2420. This reduces the code size with over 400 bytes.
2014-04-11 14:46:49 +02:00
Niclas Finne 8c0cdcfaec Added radio parameters RADIO_PARAM_RSSI and RADIO_PARAM_TXPOWER for cc2420 2014-04-09 21:25:38 +02:00
Niclas Finne 9d01fbf735 Added stub for extended radio API for CC2520 2014-04-03 13:38:17 +02:00
Niclas Finne 0874165722 Added stub for extended radio API for CC2420 2014-04-03 13:38:13 +02:00
Adam Dunkels bddd96d5c8 Removed all module makefiles. Instead, all .c files in a module directory are compiled. 2014-01-26 23:20:46 +01:00
Adam Dunkels 25367fb08c Moved the ds2411 driver into a dev/ds2411 module 2014-01-26 23:20:31 +01:00
Adam Dunkels c9efe3c3c4 Moved the cc2520 driver into its own dev/cc2520 module 2014-01-26 23:20:31 +01:00
Adam Dunkels 4cfe6c4a5e Moved the sht11 driver to its own module 2014-01-26 23:20:30 +01:00
Adam Dunkels 0b805e4763 Moved the cc2420 driver into a separate dev/cc2420 module 2014-01-26 23:20:27 +01:00