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

21052 Commits

Author SHA1 Message Date
Sebastian Meiling
f6f42b6132
Merge pull request #10593 from Rotzbua/patch-2
gcoap/example: add comment on resource order
2019-01-09 08:39:42 +01:00
Marian Buschsieweke
aac69c3a56
drivers/cc2420: Fixed behavior on too small buffer
As decided in https://github.com/RIOT-OS/RIOT/issues/10413 when
netdev_driver_t::recv() is called with a too small buffer the incoming frame
should be dropped and `-ENOBUFS` returned. This commit makes cc2420 compliant.
2019-01-08 23:45:06 +01:00
Marian Buschsieweke
078444902f
drivers/cc2420: Implemented missing drop feature
The netdev_driver_t::recv implementation of the cc2420 does not provide the drop
feature. This commit adds it.
2019-01-08 23:42:03 +01:00
Rotzbua
cb5232a107 gcoap/example: add comment on resource order
according to nanocoap/example: fix resource order #9919
2019-01-08 23:14:58 +01:00
Kees Bakker
52102a7aa0 drivers/bmx055: eliminate some casts
First, every read function converts the void pointer into a const bmx055_t

Second, it is cleaner (more obvious) to pass phydat_t.val[3] instead of
type casting to int16_t* and relying that .val[3] is the first struct
member of phydat_t.
2019-01-08 22:03:20 +01:00
Kees Bakker
b8472550a4 drivers/ds18: eliminate cast in auto_init_ds18 2019-01-08 19:25:22 +01:00
Kees Bakker
9ed7d2dc18 drivers/ds18: refactor functions with const dev pointer
All DS18 functions have a dev argument. All except the init function use
it as an IN parameter, so we can prototype it as const ds18_t*.

As a consequence we can drop the cast in read_temperature() in ds18_saul.c
which was the primary trigger for the changes.

The commit also follows the preferred convention that "params" is a field
in the device struct. Only the init function needs to write it.
2019-01-08 19:25:13 +01:00
Sören Tempel
d70a94f139 nanocoap: fix sock_udp return value checks 2019-01-08 19:01:39 +01:00
Kevin "Bear Puncher" Weiss
a1218f007b
Merge pull request #10643 from gschorcht/esp32_uart_board_fix
boards/esp32: UART configuration fix
2019-01-08 17:55:38 +01:00
Marian Buschsieweke
19073742b2
Merge pull request #10725 from jia200x/pr/cc2420_inline_flush
drivers/cc2420: move flush sequence to inline function
2019-01-08 14:49:58 +01:00
Sebastian Meiling
838284f979
Merge pull request #10729 from keestux/replace-memset
drivers: replace memset by simple assignments
2019-01-08 14:26:23 +01:00
Ken Bannister
ee09936cc5 tests: add CLI app for nanocoap testing
Includes both server and client components.
2019-01-08 08:25:04 -05:00
Jose Alamos
87e9172643 drivers/cc2420: add datasheet documentation to duplicated strobe call 2019-01-08 13:46:32 +01:00
Jose Alamos
b965b47d9b drivers/cc2420: move flush sequence to inline function 2019-01-08 13:46:32 +01:00
c1524bab30
Merge pull request #9171 from OTAkeys/pr/stm32_dma_all
cpu/stm32_common: add DMA support for all stm32
2019-01-08 10:11:04 +01:00
Sebastian Meiling
d06aa5f23f
Merge pull request #10597 from miri64/tests/cleanup/rm-NETOPT_IPV6_IID
tests: remove NETOPT_IPV6_IID get() from driver_at86rf2xx test
2019-01-08 09:59:43 +01:00
Sebastian Meiling
b005fa7da0
Merge pull request #10705 from keestux/eliminate-cast-bh1750fvi
drivers/bh1750fvi: change prototype of bh1750fvi_init
2019-01-08 09:54:00 +01:00
Gunar Schorcht
fb9e25faf7
Merge pull request #10724 from miri64/gnrc_ipv6_nib/fix/mixed-mode-ABRO
gnrc_ipv6_nib: fix RA reception for non-6LN interfaces
2019-01-08 09:47:09 +01:00
Cenk Gündoğan
f6f6501109
Merge pull request #10681 from miri64/gnrc_sixlowpan_frag/cleanup/unroll-recursion
gnrc_sixlowpan_frag: unroll recursion
2019-01-08 09:46:15 +01:00
86c102e85b cpu/stm32_common: move dma attribute at end of config 2019-01-08 09:32:18 +01:00
3a5c9cb921 boards/nucleo-f207zg: configure and use DMA 2019-01-08 09:32:18 +01:00
8a9d9e70bc cpu/stm32f2: update CMSIS of stm32f207xx 2019-01-08 09:32:18 +01:00
abc97c2a1e boards/nucleo-l152re: configure and use DMA 2019-01-08 09:32:18 +01:00
294711d9ba boards/nucleo-f767zi: configure and use DMA 2019-01-08 09:32:18 +01:00
0b6bccb543 boards/iotlab-m3: configure and use DMA
Used with UART and SPI peripheral
2019-01-08 09:32:18 +01:00
9ecf12119f boards/b-l475e-iot01a: configure and use DMA 2019-01-08 09:32:18 +01:00
Vincent Dupont
8c99edc18e cpu/stm32_common: fix UART ISR_TXE usage 2019-01-08 09:32:18 +01:00
Vincent Dupont
08a85fbfdd boards/b-l072z-lrwan1: configure and use DMA 2019-01-08 09:32:18 +01:00
Vincent Dupont
962d81b652 boards/nucleo-f091rc: configure and use DMA 2019-01-08 09:32:18 +01:00
Vincent Dupont
021697ae94 cpu/stm32_common: adapt DMA driver for f0/1/3/l0/1/4 2019-01-08 09:32:18 +01:00
Martine Lenders
7452f48c26 gnrc_sixlowpan_frag: unroll recursion
While the recursion in `gnrc_sixlowpan_frag` shouldn't be infinite we
still should avoid using recursions in general (also to be able to
statically analyze stack usage). This unrolls the recursion.
2019-01-08 09:03:22 +01:00
a9a30c0c0f
Merge pull request #10730 from aabadie/pr/core/irq_doc_typo
core/irq: fix 2 missing words in documentation
2019-01-08 08:29:19 +01:00
Kees Bakker
0cb92e1e51 drivers: replace memset by simple assignments
A memset was used to clear two of the SAUL values in phydat_t::val
The change is to replace that by the following
    res->val[1] = 0;
    res->val[2] = 0;
which makes the code more obvious.
2019-01-07 21:59:25 +01:00
Kees Bakker
1d5a67dcce drivers/bh1750fvi: change prototype of bh1750fvi_init
The params argument is now a const pointer. This eliminates the need for
a type cast that converts a const to a non-const.
2019-01-07 21:37:02 +01:00
cladmi
ed1798634b makefiles/docker.inc.mk: handle 'build' directory
The 'build' directory should be created before starting docker.
If not it will be created as root.

Also add mapping for the directory in docker.

Currently create the directory in the target until there is a directory
creation target.
2019-01-07 21:16:36 +01:00
cladmi
4b7a7dad0d gitignore: ignore 'build' directory
The 'build' directory should not be tracked by git.
2019-01-07 21:16:36 +01:00
smlng
5b3d26453a make: introduce BUILDOUT_DIR
This introduces a new environment variable for a common directory
that holds all output of the build process, such as application or
package binaries. This would also allow to easily redirect output
to any other location, e.g. for out-of-source builds.
2019-01-07 21:16:36 +01:00
f2194a8e26 core/irq: fix 2 missing words in documentation 2019-01-07 20:50:59 +01:00
201cff0ada
Merge pull request #10722 from nmeum/gnrc-tcp-comment-typo
gnrc_tcp_pkt: fix typo in comment
2019-01-07 20:23:20 +01:00
Bas Stottelaar
afc81d3e23
Merge pull request #9878 from basilfx/feature/efm32_wtimer
cpu: efm32: add support for 32-bit timers
2019-01-07 19:40:50 +01:00
Bas Stottelaar
00e13e5713 boards: slstk3402a: use wtimer by default 2019-01-07 18:51:08 +01:00
Bas Stottelaar
28d0e46882 cpu: efm32: add support for 32-bit timers 2019-01-07 18:49:21 +01:00
4365d666f7
Merge pull request #10670 from OTAkeys/pr/cc110x_irq
drivers/cc110x: remove irq_disable/irq_restore around spi transfers
2019-01-07 18:49:10 +01:00
Gunar Schorcht
3bb28c989b cpu/esp: esp_now timer restart for peer-scan moved
Timer restart was moved from esp_now_scan_peers_done to esp_now_scan_peers_start to avoid that the scan for peers isn't triggered anymore if the esp_now_scan_peers_done callback isn't called because of errors.
2019-01-07 18:36:35 +01:00
Gunar Schorcht
26cec66be5 cpu/esp: _get_iid removed in esp_now_netdev 2019-01-07 18:27:24 +01:00
Martine Lenders
1f71b30bc2 gnrc_ipv6_nib: fix RA reception for non-6LN interfaces
When having a non-6LN interface and a 6LN interface (e.g. on a border
router) the assertion can hit when a Router Advertisement is received.
This makes the check an `if` statement rather than an assertion, to
account for that case.

Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2019-01-07 17:36:03 +01:00
Martine Lenders
b2a261f0c3 tests: remove NETOPT_IPV6_IID get() from driver_at86rf2xx test 2019-01-07 17:09:23 +01:00
Martine Lenders
22d59cbb08
Merge pull request #10648 from enzingerm/master
Improved docs on module name uniqueness
2019-01-07 16:59:34 +01:00
Sebastian Meiling
a57b970858
Merge pull request #10713 from keestux/eliminate-cast-adxl345
drivers/adxk345: include copy of params in dev struct
2019-01-07 16:38:52 +01:00
ZetaR60
859ba1a71f
Merge pull request #10699 from MrKevinWeiss/pr/fixbaudmega2560
cpu/atmega_common/uart: Comment why brr calc is different from datasheet
2019-01-07 10:21:15 -05:00