Commit graph

11122 commits

Author SHA1 Message Date
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
Benoît Thébaudeau 287092db42 Merge pull request #1486 from alignan/pull/cc2538-common
Unified cc2538 examples into single cc2538-common placeholder
2016-02-04 23:48:35 +01:00
Antonio Lignan 45c125949a Unified cc2538 examples into single cc2538-common placeholder 2016-02-04 17:26:11 +01:00
Nicolas Tsiftes 9b3e334c7d Merge pull request #1497 from simonduq/pr/shell-warnings
Fix compiler warnings in shell
2016-02-04 13:14:26 +01:00
Nicolas Tsiftes 4dce5f6765 Merge pull request #1494 from simonduq/pr/uip6-debug
Minor debug output fixes
2016-02-04 13:09:21 +01:00
Simon Duquennoy ebdc536d61 Merge pull request #1496 from simonduq/pr/jn516x-serial-input
jn516x enable serial input whenever there is no fallback interface
2016-02-04 10:02:15 +01:00
Simon Duquennoy fa078381cf Fix compiler warnings in shell 2016-02-03 18:01:25 +01:00
Simon Duquennoy f87f7e7edd jn516x enable serial input whenever there is no fallback interface 2016-02-03 17:53:29 +01:00
Simon Duquennoy 521cc7600d Minor debug output fixes 2016-02-03 17:10:24 +01:00
Simon Duquennoy 9f383ba534 Merge pull request #1492 from simonduq/pr/jn516x-minor
Reworking jn516x default configuration and examples
2016-02-03 11:41:10 +01:00
Simon Duquennoy 658cf0d2cc Reworking jn516x default configuration and examples 2016-02-03 10:35:48 +01:00
Simon Duquennoy 79a0709cd7 Merge pull request #1491 from simonduq/pr/sicslowpan-printf
Fix compiler errors and warnings in sicslowpan.c PRINTF statements
2016-02-03 09:35:05 +01:00
Simon Duquennoy f0d1b6c5bb Fix PRINTF statement in sicslowpan 2016-02-02 17:18:45 +01:00
Simon Duquennoy 5d67a612b4 Merge pull request #1402 from simonduq/pr/ci-simexec-log-output
Travis: improved output for failed Cooja simulation
2016-02-01 15:30:13 +01:00
Simon Duquennoy 77fac155c1 Merge pull request #1489 from simonduq/pr/jn516x-examples-tsch
Adding TSCH to examples/jn516x/rpl
2016-02-01 15:08:20 +01:00
Nicolas Tsiftes eef96f3ba7 Merge pull request #1480 from mdlemay/revise-clang-flags
galileo: Revise include flags for LLVM Clang
2016-02-01 14:25:53 +01:00
Nicolas Tsiftes deb39df3a3 Merge pull request #1478 from zq301/patch-11
a memory overflow in shell-vars.c
2016-02-01 14:25:06 +01:00
Simon Duquennoy badc4b77f1 Merge pull request #1488 from simonduq/pr/jn516x-uart
jn516x: flush only uart Tx FIFO in main loop, leaving Rx FIFO intact
2016-02-01 14:19:44 +01:00
Simon Duquennoy 15a5f27080 Adding TSCH to examples/jn516x/rpl 2016-02-01 13:38:53 +01:00
Simon Duquennoy 7c3108bf3b jn516x: flush only uart Tx FIFO in main loop, leaving Rx FIFO intact 2016-02-01 13:36:18 +01:00
Antonio Lignan 447286197f Merge pull request #1487 from alignan/pull/weather-meter-wind-bane-fix
Fixed casts and calculations for the wind direction circular averaging
2016-01-31 23:40:42 +01:00
Antonio Lignan 35345cdb40 Fixed casts and calculations for the wind direction circular averaging 2016-01-31 22:51:08 +01:00
George Oikonomou 7d6966b22c Merge pull request #1483 from Zolertia/pm10-sensor
Added PM10, VAC and AAC sensor drivers
2016-01-27 11:47:07 +00:00
George Oikonomou a2d7b87936 Merge pull request #1479 from g-oikonomou/bugfix/cc13xx/dont-mask-cmdsta
Allow the caller to access the entire content of CMDSTA
2016-01-27 11:46:01 +00:00
Toni Lozano 1f6dafecb0 Modified ADC measurement of PM10 driver to include adc-zoul direct access 2016-01-26 17:55:48 +01:00
Antonio Lignan 8337843d69 Minor fixes 2016-01-26 09:45:43 +01:00
Michael LeMay 6557194fc5 galileo: Revise include flags for LLVM Clang
This patch revises the compiler flags when LLVM Clang is in use to
cause Clang to automatically use its built-in header files rather than
those for GCC.
2016-01-25 14:01:16 -08:00
Antonio Lignan 9f1376d37a Merge pull request #1453 from g-oikonomou/contrib/test-with-arm-gcc-5
Change travis arm tests to use gcc-arm-embedded v5
2016-01-25 21:32:28 +01:00
Toni Lozano 31e6cc48ca Solved doxygen comments information from VAC, AAC and PM10 sensor files 2016-01-25 18:13:00 +01:00
Toni Lozano 42e1beb931 Added PM10 GP2Y1010AU0F sensor driver and demo test 2016-01-25 10:06:17 +01:00
Toni Lozano 4907842821 Added parameters of aac-sensor on adc-sensors file and adapted AAC and VAC test files for correct results 2016-01-25 10:05:43 +01:00
Toni Lozano 1fca3e810a Added PM10 and VAC parameters to adc_sensors driver 2016-01-25 10:04:25 +01:00
Antonio Lignan d4251d7c3b Merge pull request #1470 from alignan/pull/grove-rgb-backlight-lcd
Ported Grove LCD with RGB backlight for the Zoul platforms
2016-01-25 09:54:25 +01:00
zq301 d36eab3750 Update shell-vars.c 2016-01-25 09:35:49 +08:00
zq301 e7c26c57db Update shell-vars.c 2016-01-25 09:35:15 +08:00
George Oikonomou 9e9e6d07b0 Adjust READMEs to point explicitly to the arm-gcc version used by travis 2016-01-24 13:59:19 +00:00
George Oikonomou d42b1b50e5 Allow the caller to access the entire content of CMDSTA
When sending a command to the CC13xx/CC25xx RF core, we wait for command completion by checking the LSB of CMDSTA (correctly so). However, in doing so we also zero out the 3 CMDSTA return bytes. For some commands, those bytes contain useful information (e.g. an RSSI value) and are required by the caller.

This problem manifests itself e.g. in PROP mode `channel_clear()`, whereby the caller will always see an RSSI value of 0.

This pull therefore fixes the logic in `rf_core_send_cmd()` to check for command completion by blocking on the CMDSTA result byte without zeroing out the 3 return bytes.

Fixes #1465
2016-01-24 13:39:14 +00:00
zq301 915facad22 a memory overflow in shell-vars.c
" sprintf(numbuf, "0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x",...)" . the formatted data wrote to "numbuf" is 39 bytes, but numbuf is 32 bytes.
2016-01-24 14:39:48 +08:00
Antonio Lignan 9a5682b75b Merge pull request #1476 from alignan/pull/update-weather-meter
Updated to new adc-zoul renaming
2016-01-23 16:20:22 +01:00
Antonio Lignan 246b01095f Ported Grove LCD with RGB backlight for the Zoul platforms 2016-01-23 15:52:29 +01:00
Antonio Lignan 66ebca3ade Updated to new adc-zoul renaming 2016-01-23 15:42:13 +01:00
Antonio Lignan 481bcd9e00 Merge pull request #1472 from alignan/pull/grove-gyro
Add support for the ITG-3200 3-axis gyroscope
2016-01-23 15:08:47 +01:00
Antonio Lignan 9a80c0098f Added zero-calibration function and added offset values to the structure 2016-01-22 16:58:46 +01:00
Antonio Lignan 426fa24e50 Clear interrupt and trigger callback if new data is generated 2016-01-22 16:58:46 +01:00
Antonio Lignan f5b52e8094 Ported Grove's 3-axis gyroscope sensor (based on ITG-3200) 2016-01-22 16:58:46 +01:00
Antonio Lignan 943da6e014 Merge pull request #1471 from alignan/pull/bmp180-update
Unified BMP180 and BMP085 drivers
2016-01-22 16:56:08 +01:00
Antonio Lignan 6351462e89 Unified BMP180 and BMP085 drivers 2016-01-22 16:11:49 +01:00
Antonio Lignan ec45369d1b Merge pull request #1466 from alignan/pull/weather-meter
Add driver for the Sparkfun Weather meter station
2016-01-22 15:18:14 +01:00
Adam Dunkels 7128a6a178 Merge pull request #1258 from joakimeriksson/multiple-reassembly-fix
6LoWPAN - multiple reassembly fix and cleanup
2016-01-22 07:15:18 +01:00
Fredrik Österlind 9bdb1f1794 Merge pull request #1462 from MichaelKlemm/FixCoojaPluginLoad
Fixed loading SerialSocketServer plugin in Cooja using FQDN
2016-01-21 09:39:40 +01:00