Commit graph

11983 commits

Author SHA1 Message Date
Harald Pichler
6bdae7d9ec cleanup code 2016-02-27 22:14:56 +01:00
Harald Pichler
daf2191555 add arduino folder 2016-02-27 22:13:12 +01:00
Harald Pichler
de928cd14e cleanup code 2016-02-27 22:10:53 +01:00
Antonio Lignan
a3e13f1269 Merge pull request #1525 from Zolertia/remote-zonik
Added Zolertia Zonik sound sensor test and drivers
2016-02-26 23:19:38 +01:00
Billy Kozak
ff6d336e8b Fix warning about missing strcasecmp definition
On platforms which do not define the macro __SDCC the strcasecmp
function may not have a definition (true at least on CC26xx). The
prototype for this function is now defined if __SDCC is false.
2016-02-26 13:05:21 -07:00
Ralf Schlatterbeck
6b40e88ecb Add cron functionality 2016-02-26 17:30:16 +01:00
Ralf Schlatterbeck
c6165a3bcf Refactor GENERIC_RESOURCE macro
Now callback functions get the URI of the request, this allows to use a
single resource for multiple different URIs.
The is_json flag is now gone for the to-string function, instead the
macro has an is_str flag. If set this automagically produces quotes
around the string for json output.
Now from-string functions can return an error-code, 0 for success, -1
for error.
2016-02-26 17:13:48 +01:00
Nicolas Tsiftes
65caef495a Merge pull request #1354 from tsparber/pr-count-icmp-stats
uIP Stats: Count sent ICMP6 packets
2016-02-26 15:16:35 +01:00
Nicolas Tsiftes
5c7bc22321 Merge pull request #1526 from alignan/pull/fix-shell-exec-no-process-name
Fixes error when processes name are not used
2016-02-26 15:12:44 +01:00
harald42
c7daa7c45d add linux documentaion 2016-02-25 13:58:07 +01:00
harald42
2df628aa4b bugfix native boarder router 2016-02-25 13:37:08 +01:00
harald42
9bb1f01905 update to new version 2016-02-25 13:25:24 +01:00
harald42
7d8254bd81 use uint32 for clock time 2016-02-25 09:32:21 +01:00
harald42
b462052bf5 CRLF will be replaced by LF 2016-02-25 08:20:41 +01:00
harald42
98e4451518 Merge branch 'contiki' into osd 2016-02-25 08:18:55 +01:00
harald42
e7f270cf37 crf replace by lf 2016-02-25 08:11:05 +01:00
harald42
a7b230a0b7 bugfix get macaddress 2016-02-24 08:29:24 +01:00
Harald Pichler
855bc65b8a initial upload 2016-02-23 20:32:53 +01:00
Harald Pichler
1e5163cbb3 bugfix remove testcode 2016-02-23 20:31:10 +01:00
Billy Kozak
786aa19cbd Fixed numeruous bus in CC26xx-CC13xx lpm
Bug fixes include:
- keep interrupts disabled during lpm_sleep() so that we don't
  miss any interrupts we may have been expecting
- check that the pending etimer isn't already expired (and don't sleep
  at all if it is)
- check that the about-to-be scheduled rtimer wakeup is neither too
  far into  the future nor too close into the future (or even in the
  past) before actually setting the interrupt (should fix #1509); If
  the time is out of bounds we use a default min or max value instead.
- Correctly handle LPM_MODE_MAX_SUPPORTED set to zero (and added a
  macro for the zero value) so that sleeping can be disabled altogether
- If no etimer is set, we specify a wakeup time which is reasonably far
  into the future instead of setting none at all (this will save on
  power consumption whenever no etimers are set).

Also did a bit of refactoring in that some long functions were broken
into multiple functions.
2016-02-23 10:41:01 -07:00
Atis Elsts
9f1fedfbc1 avr-rss2 platform examples: remove some binary files 2016-02-23 11:59:29 +02:00
Atis Elsts
d8f2129b17 avr-rss2 platform: Update README.md 2016-02-23 11:59:09 +02:00
Robert Olsson
42e7a6a7e1 Adding travis regression compile test for the avr-rss2 platform. 2016-02-22 20:53:19 +01:00
Robert Olsson
ce8e87d60e Adding the avr-rss2 platform based on AtMega256RFR2 2016-02-22 20:46:07 +01:00
Robert Olsson
d3980668ee Adding support for AtMega128RFR2 and AtMega256RFR2 2016-02-22 20:14:06 +01:00
Aitor Mejias
56aeb7cd7e Added Zolertia Zonik sound sensor test and drivers 2016-02-22 16:49:35 +01:00
Antonio Lignan
4d4930921e Fixes error when processes name are not used 2016-02-22 16:02:06 +01:00
Antonio Lignan
934cdbacca Adapted the ADXL345 sensor to Contiki's sensor API 2016-02-22 12:08:56 +01:00
Antonio Lignan
1be30d52dc Removed unused blocks and made functions static 2016-02-22 12:08:56 +01:00
Antonio Lignan
151f532225 Adapted the TMP102 sensor to Contiki's sensor API 2016-02-22 12:08:56 +01:00
George Oikonomou
93b9089164 Merge pull request #1504 from bthebaudeau/travis-force-aapcs-toolchain-version
travis: Force AAPCS toolchain version
2016-02-20 23:50:17 +00:00
Simon Duquennoy
b53a1569d9 Merge pull request #1439 from jkent/jsontree
jsontree: new features
2016-02-20 12:49:07 +01:00
Ralf Schlatterbeck
de6477efa8 Fix run.sh scripts to use jumptable of bootloader
Otherwise a crash results with a bootloader compiled with a newer AVR
toolchain (e.g. Debian Jessie). If you still have an ages-old bootloader
without a jump-table, as a short-term measure you can revert this change
in your run.sh. As a long-term fix we recommend you get your bootloader
updated!
2016-02-19 17:32:09 +01:00
Ralf Schlatterbeck
0068611b4d Implement localtime
Now we manage a timezone and daylight-savings aware version of
localtime. We parse UNIX timezone strings. The default (active after the
first call to localtime or localtime_r) is CET/CEST, the timezone of
Europe/Vienna. The wallclock-time osd-example demonstrates how to set a
different timezone via the timezone resource.

Note: After startup no timezone is set. So in this state querying the
timezone resource will return an empty string. After first call to
localtime (if not timezone has been set via the timezone resource) a
query to timezone will return the default timezone string for CET/CEST.

The string returned by the localtime and utc timezones now also includes
the timezone name.

New fields tm_gmtoff and tm_zone were added to the tm structure. These
are available in BSD systems and when setting special compiler
definitions on Linux.

Note: the timezone offset information in the tm structure (tm_gmtoff)
as well as in the tz structure returned by gettimeofday (tz_minuteswest)
may be wrong sign, this code is largely untested.
2016-02-18 09:55:07 +01:00
Michael LeMay
1f445172ff galileo: Fix build help message in examples
This patch fixes examples/galileo/Makefile so that it actually
displays the intended help message when an unrecognized EXAMPLE is
selected.
2016-02-16 21:19:44 -08:00
Michael LeMay
b82d92e373 galileo: Add I2C callbacks example
This patch adds an example for I2C callbacks that is very similar to
the i2c-LSM9DS0 example except that it uses a PWM device that is built
into the platform.
2016-02-16 21:19:44 -08:00
Michael LeMay
58874ea25d x86, galileo: Refactor I2C and GPIO initialization
This patch revises the I2C and GPIO initialization code to always be
run during platform boot rather than within each process that requires
it.

This patch also revises the gpio-output example to use a pin that is
set as an output by the default pinmux configuration.  Previously, it
used a pin that was set as an output by the pinmux configuration that
is in effect when the OS does not change the pinmux configuration.
2016-02-16 21:19:44 -08:00
Michael LeMay
3e64447631 galileo: Expand README for examples
This patch expands the instructions in examples/galileo/README.md.
2016-02-16 21:19:44 -08:00
Michael LeMay
c9bffe6d5a galileo: Convert README for examples into README.md
This patch renames and reformats examples/galileo/README to use
Markdown.
2016-02-16 21:19:44 -08:00
Michael LeMay
c815fa4511 x86: Use shared ISR for I2C and GPIO
This patch permits interrupts to be generated by both the I2C and GPIO
controllers for simultaneously-executing applications. The controllers
share a single interrupt pin, INTC. Prior to this patch,
quarkX1000_gpio_init() routed INTA to PIRQC and IRQ 10 (due to an
incorrect assumption that INTA is connected to the GPIO controller),
and quarkX1000_i2c_init() routed INTC to PIRQC and IRQ 9. The I2C
controller initialization is a prerequisite for GPIO initialization,
so the final configuration was that INTA and INTC were both routed to
PIRQC and IRQ 10. Thus, only the GPIO ISR was being invoked, even if
the I2C controller was actually responsible for the interrupt.

This patch refactors the I2C and GPIO ISR setup and handler code so
that the shared portions are combined in
cpu/x86/drivers/legacy_pc/shared-isr.[ch].  The I2C and GPIO drivers
communicate their interrupt information to the shared component by
placing structures in a specific section of the binary.
2016-02-16 21:19:44 -08:00
Michael LeMay
66629ae58f galileo: build_newlib.sh: Exit on configuration error
This patch adds a check for the result of the newlib configure command
and immediately exits the build_newlib.sh script if configure fails.
2016-02-16 11:36:57 -08:00
Antonio Lignan
0e17b98372 Merge pull request #1518 from Zolertia/pm10-remove-issue
Removed PM10 code lines from adc-sensors driver
2016-02-15 17:38:36 +01:00
Toni Lozano
2cbde75b02 Removed PM10 code lines from adc-sensors driver 2016-02-15 14:45:26 +01:00
Antonio Lignan
0dbed519a5 Merge pull request #1507 from Zolertia/remote-voc-test
Added VOC (iAQ-Core) drivers and test application
2016-02-15 12:21:32 +01:00
Aitor Mejias
cb1e7c2c45 Added VOC (iAQ-Core) drivers and test application 2016-02-15 11:00:48 +01:00
Wojciech Bober
943e526860 nrf52dk: added build artifacts to git ignore 2016-02-15 09:37:38 +01:00
Wojciech Bober
2d45a4207a nrf52dk: regression tests 2016-02-15 09:37:38 +01:00
Wojciech Bober
38481c513d nrf52dk: added examples 2016-02-15 09:37:38 +01:00
Wojciech Bober
d39ad95db5 nrf52dk: platform support 2016-02-15 09:37:38 +01:00
Wojciech Bober
20f9515ed1 nrf52dk: cpu/nrf52832 support 2016-02-15 09:37:38 +01:00