1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

18373 Commits

Author SHA1 Message Date
Neil Jones
a77f1eea45 tests: Fix size_t vs int issues
size_t can be any unsigned type but is never a signed integer.
2018-06-27 15:04:07 +01:00
81219e148b
Merge pull request #9425 from gebart/pr/thread-flags-uncrustify
core: uncrustify thread_flags.h
2018-06-27 13:46:01 +02:00
Joakim Nohlgård
69fb02c3fc core: uncrustify thread_flags.h 2018-06-27 12:43:29 +02:00
6e6716a1a6
Merge pull request #9317 from maribu/sht1x
drivers/sht11: Major refactoring
2018-06-27 10:10:39 +02:00
Vincent Dupont
f4c01499c6
Merge pull request #9096 from OTAkeys/pr/stm32_cpu_line
cpu/stm32: add CPU_LINE_* variable and use it for stm32f0 and stm32f4
2018-06-27 00:21:02 -07:00
Marian Buschsieweke
8e200673d3
tests/driver_sht1x: Added tests for sht1x 2018-06-27 08:58:07 +02:00
Marian Buschsieweke
b91359b05b
drivers/sht1x: Added SAUL integration 2018-06-27 08:58:05 +02:00
Marian Buschsieweke
2bff79ef56
tests/unittests: Added unit tests for sht1x
- Added unit tests for new integer only arithmetic
    - Temperature conversion differs at most 0.01°C from double arithmetic
    - Humidity conversions differs at most 0.1% from double arithmetic
2018-06-27 08:58:02 +02:00
Marian Buschsieweke
de9b67bdc2
drivers/sht1x: Major refactoring
- Use RIOT's GPIO interface to access the sensor to increase portability
- Changed API to allow more than one sensor per board
- Added `sht1x_params.h` that specifies how the sensors is connected - each
  board can overwrite default settings by #defining SHT1X_PARAM_CLK and
  SHT1X_PARAM_DATA
- Changed arithmetic to use integer calculations only instead of floating point
  arithmetic
- Added support for checking the CRC sum
- Allow optional skipping of the CRC check to speed up measuring
- Added support for advanced features like reducing the resolution and skipping
  calibration to speed up measuring
- Allow specifying the supply voltage of sensor which heavily influences the
  temperature result (and use that information to calculate the correct
  temperature)
- Reset sensor on initialization to bring it in a well known state
- Support for the obscure heater feature. (Can be useful to check the
  temperature sensor?)
- Updated old SHT11 shell commands to the new driver interface, thus allowing
  more than one SHT10/11/15 sensor to be used
- Added new shell command to allow full configuration of all attached SHT1x
  sensors
- Removed old command for setting the SHT11 temperature offset, as this feature
  is implemented in the new configuration command
2018-06-27 08:58:00 +02:00
Marian Buschsieweke
d208c224b0
drivers: Renamed module sht11 to sht1x
The sensor family SHT10, SHT11 and SHT15 only differ in their accuracy (as in
calibration, not as in resolution). Thus, the same driver can be used for all.
The new driver name better reflects this fact.
2018-06-27 08:57:58 +02:00
MichelRottleuthner
a34f9c1896
Merge pull request #7823 from Hyungsin/hamilton-ekmb
driver/pir: add pir-based occupancy sensing and saul support
2018-06-27 08:55:47 +02:00
Hyungsin
0c5c3d9b77 driver/pir: add pir-based occupancy sensing 2018-06-26 13:46:37 -07:00
Francisco Acosta
9c612d4766
Merge pull request #9260 from cladmi/pr/pic32/doc
pic32prog: add a documentation on how to update PICkit3
2018-06-26 23:34:08 +03:00
Cenk Gündoğan
dc3c49ea88
Merge pull request #8948 from miri64/doc/enh/experimental-command
doc: doxygen: add command
2018-06-26 22:33:33 +02:00
Peter Kietzmann
7f8caf8995
Merge pull request #9367 from maribu/mps430fxyz
cpu/msp430fxyz: Fixed input sanitizing in GPIO_PIN
2018-06-26 21:50:41 +02:00
Cenk Gündoğan
5c9fd94bfc
Merge pull request #9418 from aabadie/pr/examples/lorawan_fixes
examples/lorawan: minor fixes in application README
2018-06-26 21:19:03 +02:00
Francisco Acosta
f0067033ce
Merge pull request #9416 from PeterKietzmann/pr_gvz_samr21_antenna_sw
boards/samr21-xpro: add function to configure antenna switch
2018-06-26 22:17:34 +03:00
Marian Buschsieweke
80e448083e
cpu/msp430fxyz: Fixed input sanitizing in GPIO_PIN 2018-06-26 21:16:23 +02:00
174a94d0c4 examples/lorawan: minor fixes in application README 2018-06-26 20:56:57 +02:00
Francisco Acosta
1c47f9074c
Merge pull request #9365 from basilfx/feature/slstk3402a_uart_modes
boards: slstk3402a: add uart modes
2018-06-26 21:14:59 +03:00
Cenk Gündoğan
315c201747
Merge pull request #9372 from miri64/gnrc_sixlowpan_frag/enh/i8511
gnrc_sixlowpan_frag: adapt for #8511
2018-06-26 19:47:25 +02:00
Martine Lenders
a2eb3c7f15 gnrc_sixlowpan_frag: adapt for #8511
This refactors the `gnrc_sixlowpan_frag` module for the API proposed
in #8511.

The `ctx` for `gnrc_sixlowpan_frag_send()` is required to be a
`gnrc_sixlowpan_msg_frag_t` object, so IPHC can later on use it to
provide the *original* datagram size (otherwise, we would need to adapt
the API just for that, which seems to me as convoluted as this
proposal).

I also provide an expose function with a future possibility to provide
more than just one `gnrc_sixlowpan_msg_frag_t` object later on (plus
having cleaner module separation in general).
2018-06-26 19:38:33 +02:00
Sebastian Meiling
d0a3817cb8
Merge pull request #9394 from cgundogan/pr/newlib_includes
newlib: include fixes for newlib-nano
2018-06-26 19:29:28 +02:00
Georg von Zengen
ad78271a51 boards/samr21-xpro: add function to configure antenna switch 2018-06-26 17:59:10 +02:00
Peter Kietzmann
aafb098a5e
Merge pull request #9413 from PeterKietzmann/pr_olegart_stm32l1_adc_clock
cpu/stm32l1: fix ADC clock
2018-06-26 16:56:48 +02:00
Oleg Artamonov
3f4752e91c cpu/stm32l1: fix ADC clock 2018-06-26 16:42:27 +02:00
Cenk Gündoğan
db6cb1ac65 newlib: include fixes for newlib-nano 2018-06-26 15:45:54 +02:00
Cenk Gündoğan
f08d849f09
Merge pull request #9410 from PeterKietzmann/pr_sys_rand_range
sys/random: fix distribution of random_uint32_range()
2018-06-26 15:41:45 +02:00
Francisco Acosta
f0dce1b920
Merge pull request #8988 from Josar/atmega_isr
cpu/atmega_common: __exit_isr thread_yield
2018-06-26 16:12:39 +03:00
PeterKietzmann
85643ad01f tests/rng: add tests for random_uint32_range() 2018-06-26 14:08:46 +02:00
PeterKietzmann
ec5fb4fbda sys/random: fix distribution of random_uint32_range() 2018-06-26 14:08:43 +02:00
Gaëtan Harter
b0f1f31fdb
Merge pull request #9357 from gebart/pr/WERROR
make: Clean up WERROR handling
2018-06-26 13:54:12 +02:00
Joakim Nohlgård
b36afc3964 make: Clean up WERROR handling 2018-06-26 12:50:02 +02:00
Martine Lenders
68dc5b0d6e
Merge pull request #9315 from danpetry/maintainer_guidelines
Add maintainer guidelines
2018-06-26 11:34:34 +02:00
danpetry
849d20966e doc: add MAINTAINING.md
- This document is the result of original work by @haukepetersen and
  refinement by @miri64, @aabadie, @kaspar030, @jcarrano,
  @PeterKietzmann, @ZetaR60, and @jia200x.
2018-06-26 10:43:07 +02:00
42c4460daf
Merge pull request #9325 from aabadie/pr/saul/tvoc_ppb
drivers/saul :sys/phydat: add definitions for TVOC sensor type and PPB unit
2018-06-25 12:20:11 +02:00
Cenk Gündoğan
5b6af6ddad
Merge pull request #9403 from miri64/gnrc_pktbuf_cmd/fix/not-an-implementation
gnrc_pktbuf_cmd: module is not a pktbuf implementation
2018-06-22 22:59:08 +02:00
Martine Lenders
d3a831ef91 gnrc_pktbuf_cmd: module is not a pktbuf implementation
When I introduced this pseudo-module in #9391 I did not consider, that
the way I named it, it is assumed to be an implementation of the
`gnrc_pktbuf` interface. However, it is not (it just provides the shell
command).

This PR excludes `gnrc_pktbuf_cmd` from the selection algorithm, so
that if it is the only `gnrc_pktbuf_%` module, still
`gnrc_pktbuf_static` gets selected.
2018-06-22 18:47:47 +02:00
011b80cb92
Merge pull request #9400 from haukepetersen/opt_nrf52_icacheenable
cpu/nrf52: enable instruction cache
2018-06-22 16:32:03 +02:00
Cenk Gündoğan
bc57e901a8
Merge pull request #9374 from PeterKietzmann/pr_sys_sha1prng
sys/random: add SHA1PRNG
2018-06-22 16:22:09 +02:00
PeterKietzmann
3c4360eddb sys/random: add SHA1PRNG 2018-06-22 16:11:53 +02:00
Hauke Petersen
7ffd6265bb cpu/nrf52: enable instruction cache 2018-06-22 16:09:23 +02:00
Martine Lenders
ffde933259
Merge pull request #9399 from miri64/sock_dns/doc/fix-spelling
sock_dns: fix typo in doc
2018-06-22 13:32:20 +02:00
Peter Kietzmann
8724407686
Merge pull request #8958 from aabadie/pr/cpu/lm4f120
cpu/lm4f120: remove useless periph file guard
2018-06-22 13:27:23 +02:00
Martine Lenders
a027684a1e sock_dns: fix typo in doc
`s/fuction/function/` ;-)
2018-06-22 13:23:26 +02:00
ce56f91a14
Merge pull request #9397 from smlng/pr/unittests/make
unittests: fix (some more) invisible unicode chars in Makefiles
2018-06-22 11:51:20 +02:00
smlng
854082272a tests/unittests: remove invisible unicode chars 2018-06-22 11:25:31 +02:00
eff3a42dd6
Merge pull request #9396 from smlng/pr/unittests/cn_cbor/make
tests/unittests, cn_cbor: remove invisible unicode char from Makefile
2018-06-22 10:04:58 +02:00
Cenk Gündoğan
3712cdffc2
Merge pull request #9391 from miri64/shell/feat/pktbuf-cmd
shell_commands: add command for packet buffer stats
2018-06-22 10:04:37 +02:00
Martine Lenders
a6a7357077 shell_commands: add command for packet buffer stats
I'm using something like this command for a while now for debugging
GNRC. Usually, I just patch it into the application I'm using it with,
but I think there is a benefit to also provide it to RIOT upstream
properly.
2018-06-22 09:51:17 +02:00