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

7247 Commits

Author SHA1 Message Date
Juergen Fitschen
47b8439cd8 sys/evtimer: add helper for retrieving the current system time 2020-03-24 13:07:19 +01:00
Gunar Schorcht
62e55bb8c0 sys/net/lorawan: fix broken links 2020-03-24 10:39:49 +01:00
Gunar Schorcht
b1ad00eb11 sys/net/eui64: fix broken links 2020-03-24 10:39:49 +01:00
Gunar Schorcht
a4b21a46cb sys/embUnit: fix broken links 2020-03-24 10:39:49 +01:00
Gunar Schorcht
10cdaa1bd6 sys/can: fix broken links 2020-03-24 10:39:49 +01:00
e12defd5a0
suit/transport/coap: Use nanocoap coap_tree_handler 2020-03-24 09:38:24 +01:00
1d5010e126
nanocoap: make separate tree handling function
This refactors nanocoap to seperate out the resource tree parsing. It
allows for calling the tree handler with custom resource trees. The
advantage is that a resource with COAP_MATCH_SUBTREE can parse a new
separate resource tree.
2020-03-23 15:08:53 +01:00
7d0c475113
Merge pull request #13486 from bergzand/pr/suit/ietf_v3
SUIT: Update to draft-ietf-v3
2020-03-20 14:44:29 +01:00
Francisco
cdbf0b2d69
Merge pull request #13583 from benpicco/at86rf215-minimal
drivers/at86rf215: add basic support for AT86RF215 dual-band radio
2020-03-20 09:33:50 +01:00
benpicco
5435792034
Merge pull request #12277 from benemorius/pr/kw41zrf
drivers: add kw41zrf
2020-03-20 00:49:56 +01:00
Joakim Nohlgård
5bd67d88a8 drivers/kw41zrf: Transceiver driver for the KW41Z radio
This is the radio found in NXP Kinetis KW41Z, KW21Z. Only 802.15.4 mode
is implemented (KW41Z also supports BLE on the same transceiver).

The driver uses vendor supplied initialization code for the low level
XCVR hardware, these files were imported from KSDK 2.2.0 (framework_5.3.5)
2020-03-19 17:00:04 -05:00
1d1d5b6f0d
examples/suit: Refactor to draft ietf-v3
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-19 22:56:01 +01:00
413b91326f
tests/suit_v3_manifest: Add draft-ietf-v3 manifest parser test
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-19 22:56:01 +01:00
benpicco
b0fab9c53a
Merge pull request #13638 from gschorcht/sys/shell/rtt_command
sys/shell: add rtt command
2020-03-19 21:21:12 +01:00
Gunar Schorcht
3d20b0b6c5 sys/shell: add rtt command 2020-03-19 17:17:26 +01:00
Benjamin Valentin
d35511bee7 drivers/at86rf215: Add basic driver for the AT86RF215 radio
This adds a driver for the SPI based AT86RF215 transceiver.
The chip supports the IEEE Std 802.15.4-2015 and IEEE Std 802.15.4g-2012 standard.

This driver supports two versions of the chip:
    - AT86RF215:  dual sub-GHz & 2.4 GHz radio & baseband
    - AT86RF215M: sub-GHz radio & baseband only

Both radios support the following PHY modes:
    - MR-FSK
    - MR-OFDM
    - MR-O-QPKS
    - O-QPSK (legacy)

The driver currently only implements support for legacy O-QPSK.

To use both interfaces, add

    GNRC_NETIF_NUMOF := 2

to your Makefile.

The transceiver is able to send frames of up to 2047 bytes according to
IEEE 802.15.4g-2012 when operating in non-legacy mode.

Known issues:

 - [ ] dBm setting values are bogus
 - [ ] Channel spacing for sub-GHz MR-O-QPSK might be wrong
 - [ ] TX/RX stress test will lock up the driver on openmote-b
2020-03-19 14:39:18 +01:00
14bdf8f46b
sys/suit: Add SUIT draft ietf-v3 firmware upgrade module
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-18 14:13:12 +01:00
182cb8735b
sys: periph_uart is required for arduino 2020-03-18 10:53:17 +01:00
95bf34ee9c
makefiles: sys/cdc-acm-stdio: provide a reset in bootloader hook 2020-03-18 10:43:05 +01:00
643187c1e4
sys: add usb_board_reset module 2020-03-18 10:43:05 +01:00
6538687a4c
Merge pull request #13613 from fjmolinas/pr_light_shell_interactive_sync
tests: add interactive_sync adapted to shell
2020-03-17 18:16:51 +01:00
Francisco Molina
a31003a23c
tests: add interactive_sync adapted to shell 2020-03-17 17:23:27 +01:00
Francisco Molina
d57c39f09f
sys/shell: remove sc_interactive_sync 2020-03-17 17:20:58 +01:00
Jose Alamos
c2e491d2b7 gnrc_netif: change macros to inline functions 2020-03-17 10:54:30 +01:00
Jose Alamos
4393822b0f gnrc_netif: add function to check if device requires 6Lo 2020-03-17 10:54:30 +01:00
Jose Alamos
6ace7b5472 gnrc_netif: use gnrc_netif_single where possible 2020-03-17 10:54:30 +01:00
Jose Alamos
121626b362 gnrc_netif: add function to check if single GNRC netif 2020-03-17 10:50:49 +01:00
Leandro Lanzieri
d281d4843f
Merge pull request #13628 from jia200x/pr/gnrc_rpl_macro
gnrc_rpl: add default value to GNRC_RPL_DEFAULT_NETIF
2020-03-13 15:47:13 +01:00
Jose Alamos
b553535cea gnrc_rpl_auto_init: replace preprocessor logic with if chain 2020-03-13 13:30:29 +01:00
Ken Bannister
ec2aff4546
Merge pull request #13240 from kb2ma/gcoap/deprecate_add_qstring
net/coap: deprecate gcoap_add_qstring() and update uses
2020-03-13 08:04:50 -04:00
Martine Lenders
20e30ec58b
Merge pull request #13622 from gschorcht/net/dhcpv6_fix_opt_len
sys/net/dhcpv6: fixes option length handling in client implementation
2020-03-12 18:56:43 +01:00
Jose Alamos
062643091c gnrc_rpl: add default value to GNRC_RPL_DEFAULT_NETIF 2020-03-12 18:50:18 +01:00
Gunar Schorcht
a25c61bc8b sys/net/dhcpv6: fix client option length handling 2020-03-12 18:33:17 +01:00
benpicco
1212165222
Merge pull request #13584 from kb2ma/nanocoap/add_uquery_improvements
net/nanocoap: add uquery improvements
2020-03-12 15:18:07 +01:00
benpicco
d5c7d28b38
Merge pull request #10745 from kaspar030/make_idle_stacksize_configurable
cpu: make default idle/main stacksizes configurable on all archs
2020-03-12 14:38:32 +01:00
Robert Hartung
dc6665d5cf
Merge pull request #12717 from dylad/pr/bme680_pkg_driver
driver/bme680: add I2C/SPI driver for BME680 device
2020-03-12 14:00:40 +01:00
Ken Bannister
e6b20b4ce7 net/nanocoap: Fix return value doc for coap_opt_add_uqueryX() 2020-03-12 08:44:26 -04:00
Ken Bannister
c55837d809 net/nanocoap: add query option directly 2020-03-12 08:44:26 -04:00
b2278b64a8 sys/ps: ignore IST_STACKSIZE if it is == 0 (undefined) 2020-03-12 13:08:05 +01:00
Leandro Lanzieri
b3aa417d9f
Merge pull request #13605 from jia200x/pr/nib_fix_parenthesis
gnrc_ipv6_nib: remove parenthesis from boolean configs
2020-03-12 10:10:10 +01:00
Gunar Schorcht
558322bc6f sys/phydat: add ohm as unit 2020-03-12 08:42:59 +01:00
Martine Lenders
72d28d54e5
Merge pull request #13615 from miri64/sock_async/api/callback-arg
sock_async: add optional callback argument
2020-03-11 20:07:18 +01:00
Martine Lenders
086d0ac83e
Merge pull request #13152 from miri64/shell_commands/enh/version
shell_commands: provide command to print version
2020-03-11 18:36:43 +01:00
Martine S. Lenders
411e320b0c
sock_async_event: update for async callback argument support 2020-03-11 16:54:12 +01:00
Martine S. Lenders
4bdd138021
gnrc_sock: update implementation for async callback argument 2020-03-11 16:54:11 +01:00
Martine S. Lenders
612e782b3c
sock_async: supply optional callback argument with callback setter 2020-03-11 16:54:11 +01:00
Martine S. Lenders
6e6e435c65
sock_async: add optional callback argument 2020-03-11 16:54:11 +01:00
Jose Alamos
c5cba0733f gnrc_ipv6_nib: remove parenthesis from boolean configs 2020-03-10 12:30:12 +01:00
b45f4236de sys/ztimer: make ztimer_overhead() return signed value (int32_t) 2020-03-10 12:23:33 +01:00
c2f9700f5e
Merge pull request #13570 from kaspar030/ztimer_allow_adjust_config
sys/ztimer: allow "adjust" config for ztimer_usec, ztimer_msec
2020-03-10 11:58:21 +01:00
benpicco
6f7293d7c3
Merge pull request #13559 from aabadie/pr/sys/crypto_modules_rework
sys/crypto: define cipher using a module instead of CFLAGS
2020-03-09 19:41:27 +01:00
803698037a
Merge pull request #13554 from OTAkeys/fix/memarray_init
memarray: fix memarray init
2020-03-09 19:21:33 +01:00
benpicco
d405cb7dd1
Merge pull request #13577 from kaspar030/fix_ztimer_rtt_logic
sys/ztimer: fix typo in rtt conversion selection
2020-03-09 19:11:07 +01:00
Vincent Dupont
97cfd1e512 memarray: fix memarray init
If memarray data is not initialized to 0 (for instance during a
re-init). The last element of the array is not properly cleared thus
leading to returning an invalid pointer when everything is allocated.
2020-03-09 17:56:34 +01:00
MichelRottleuthner
26f3caf9d7
Merge pull request #13495 from pokgak/pr/sock_dtls/fix_timeout_when_waiting
examples/dtls-sock: fix timeout msg stays in mbox
2020-03-09 16:33:05 +01:00
Aiman Ismail
aa3cbacceb net/sock_dtls: do not put msg in mbox on timeout 2020-03-09 15:08:52 +01:00
José Alamos
de4a1bf552
Merge pull request #13595 from gschorcht/gnrc/lorawan/fix_downlink_handling
gnrc/lorawan: fixes the handling of downlink frames without payload
2020-03-09 15:08:25 +01:00
Martine S. Lenders
c110337f6a
gnrc_dhcpv6_client: only configure 6Lo-ND features if interface is 6LN 2020-03-09 14:21:53 +01:00
Martine S. Lenders
06d1d79ffa
gnrc_dhcpv6_client: configure prefix as compression context on 6LBRs 2020-03-09 14:21:53 +01:00
Martine S. Lenders
079b9f717f
gnrc_dhcpv6_client: replace #if guards with if expressions 2020-03-09 14:21:52 +01:00
Gunar Schorcht
de38fc5e2e gnrc/lorawan: fix handling of downlink message without payload 2020-03-09 12:33:03 +01:00
Gunar Schorcht
32c78e3317 gnrc/lorawan: fix netopt_state_t size in link_layer
`netopt_state_t` is an enumeration type which is not necessarily 1 byte. If `uint8_t` is used, the cast `*((const netopt_state_t*) val` in `sx127x_netdev::_set`tries to read the real size, which can be more than the given length of 1 byte. Therefore, `netstat_opt_t` has to be used instead of `uint8_t`
2020-03-08 17:10:24 +01:00
Martine Lenders
c30f83ac3b
Merge pull request #13579 from jia200x/pr/gnrc_netif_send
gnrc_netif_send: add send function
2020-03-06 20:07:45 +01:00
0b082d8cff
sys: extend crypto_* dependency resolution
Add dependency resolution for crypto_aes_unroll and
crypto_aes_precalculated pseudomodules

Co-authored-by Gunar Schorcht <gunar@schorcht.net>
2020-03-06 19:54:23 +01:00
08162f72b6
sys/crypto: update documentation 2020-03-06 19:49:58 +01:00
f6c4e269b1
sys/crypto: define ciphers via pseudomodules 2020-03-06 19:49:58 +01:00
benpicco
dc89c279b2
Merge pull request #13574 from jue89/fix/ztimer_rtt
sys/ztimer: fix RTT backend
2020-03-06 18:29:16 +01:00
57985806c1
Merge pull request #13562 from jia200x/pr/netdev_irq_end
netdev: add netdev_trigger_event_isr() function
2020-03-06 15:37:24 +01:00
Jose Alamos
6143cd800b gnrc_netif: use gnrc_netif_send where possible 2020-03-06 15:22:58 +01:00
Jose Alamos
ca54366712 gnrc_netif: add send function 2020-03-06 15:22:43 +01:00
962679282e sys/ztimer: fix typo in rtt conversion selection 2020-03-06 14:49:56 +01:00
Gunar Schorcht
fc37d7bf81
Merge pull request #13427 from miri64/lwip/enh/sock_async
lwip: provide sock_async support
2020-03-06 14:37:54 +01:00
Juergen Fitschen
61334c3034 ztimer: fix RTT backend 2020-03-06 14:22:06 +01:00
2ad4ea67e9 sys/ztimer: allow configuring ZTIMER_[UM]SEC adjust value 2020-03-06 14:17:29 +01:00
Jose Alamos
3ad574a822 drivers/netdev: use netdev_trigger_event_isr function 2020-03-06 14:03:43 +01:00
7acb889a32
Merge pull request #13569 from kaspar030/ztimer_auto_init_log_debug
sys/ztimer: make auto_init use LOG_DEBUG
2020-03-06 13:28:07 +01:00
Ken Bannister
2fb2a3b260
Merge pull request #13022 from pokgak/pr/gcoap/gcoap_add_qstring_with_len
nanocoap: add coap_opt_add_uquery2() with parameter key value length
2020-03-06 06:09:35 -05:00
c05d0bed66 sys/ztimer: make auto_init use LOG_DEBUG 2020-03-06 11:25:35 +01:00
ed316309c8
Merge pull request #11874 from kaspar030/ztimer
sys/ztimer: initial import
2020-03-06 09:46:27 +01:00
MichelRottleuthner
d8cb8a2839
Merge pull request #13199 from JulianHolzwarth/pr/xtimer_mutex_lock_timeout/short_time_fix
xtimer/xtimer.c: xtimer_mutex_lock_timeout fix with short timeout
2020-03-06 09:31:40 +01:00
Martine S. Lenders
f159b86b8a
gnrc_uhcpc: only configure 6Lo-ND features if wireless-interface is 6LN
Otherwise the border router has no way to disseminate the context
throughout the network.
2020-03-05 19:59:27 +01:00
Aiman Ismail
64f9658472 nanocoap: add coap_opt_add_uquery2() 2020-03-05 19:06:14 +01:00
JulianHolzwarth
4d85fa16e0 xtimer/xtimer.c: _mutex_remove_thread_from_waiting_queue
This function tries to remove the thread from a mutex waiting queue.
The value pointed to by unlocked will be set to 1 if the thread was removed from the waiting queue otherwise 0.
2020-03-05 19:05:34 +01:00
JulianHolzwarth
bce45fd9d8 xtimer/xtimer.c: xtimer_mutex_lock_timeout fix test
Handling timeout smaller than XTIMER_BACKOFF (the timer spins) when the mutex is already locked.
This fixes the test tests/xtimer_mutex_lock_timeout/main.c:mutex_timeout_spin_locked.
2020-03-05 18:56:35 +01:00
JulianHolzwarth
dfeaea3c36 sys/xtimer/xtimer.c: comment change 2020-03-05 18:45:27 +01:00
Martine Lenders
c1a34ce860
Merge pull request #13560 from miri64/gnrc_uhcpc/fix/rm-before-adding
gnrc_uhcpc: ensure compression context is managed by the ABR
2020-03-05 17:12:45 +01:00
benpicco
7af046d740
Merge pull request #13548 from benpicco/sys/auto_init/netif-manual
sys/auto_init: allow delayed initialisation of SAUL & gnrc_netif
2020-03-05 17:05:02 +01:00
Martine S. Lenders
eacd0814d2
gnrc_uhcpc: remove wild comment 2020-03-05 15:51:52 +01:00
Martine S. Lenders
081499e280
gnrc_uhcpc: add compression context before ABR
This way the context is added to the ABR's context list automatically.
2020-03-05 15:51:52 +01:00
Martine S. Lenders
f626e5e7ef
gnrc_uhcpc: remove old prefix before adding new 2020-03-05 15:51:52 +01:00
Benjamin Valentin
4f7d5b105b sys/net/gnrc: Flag esp_now as 6LN
In gnrc_netif_init_6ln() the flag GNRC_NETIF_FLAGS_6LN is accidentally not set
for esp_now devices. This commit fixes this.
2020-03-05 15:18:43 +01:00
Benjamin Valentin
521b1ce440 sys/auto_init: allow delayed initialisation of SAUL
Co-authored-by: Martine S. Lenders <m.lenders@fu-berlin.de>
2020-03-04 16:13:40 +01:00
Benjamin Valentin
d765098d72 sys/auto_init: allow delayed initialisation of gnrc_netif
Co-authored-by: Martine S. Lenders <m.lenders@fu-berlin.de>
2020-03-04 16:13:40 +01:00
dd218333c2 sys/ztimer: add xtimer_on_ztimer
This commit adds logic to make xtimer use ztimer_usec as backend
(instead of periph_timer). This allows ztimer_usec and xtimer to
coexist. It also allows xtimer to profit from eventually implemented
power mode blocking in ztimer's periph_timer backend.
2020-03-04 12:44:03 +01:00
21613b0aa6 sys/ztimer: adapt to DEFAULT_MODULE based auto_init scheme 2020-03-04 12:44:03 +01:00
8c1e577a06 sys/ztimer: move dependencies to sys/ztimer/Makefile.dep 2020-03-04 12:44:03 +01:00
616daff945 sys/ztimer: introduce xtimer wrapper 2020-03-04 12:44:02 +01:00
eccb6e89ed sys/ztimer: add coccinelle script for xtimer -> ztimer conversion 2020-03-04 12:44:02 +01:00
6dd79366bb sys: add ztimer subsystem
Co-authored-by: Joakim Nohlgård <joakim.nohlgard@eistec.se>
2020-03-04 12:44:02 +01:00
benpicco
0c8ddd6620
Merge pull request #13542 from miri64/auto_init/enh/IS_USED
auto_init: some more cleanup and unification
2020-03-04 00:25:38 +01:00
Martine S. Lenders
6765ff8a77
auto_init: use IS_USED() to check if module is used 2020-03-03 17:42:12 +01:00
Martine S. Lenders
43c153ce1a
auto_init: move grouped initializations to own function 2020-03-03 17:42:05 +01:00
Martine Lenders
e7047cb85e
Merge pull request #13539 from miri64/gnrc_uhcpc/fix/null-ptr
gnrc_uhcpc: fix NULL pointer dereference
2020-03-03 16:56:59 +01:00
Martine S. Lenders
b04e01a19f
auto_init: replace remaining DEBUG with LOG_DEBUG
Follow-up on dfeb4116c8
2020-03-03 16:39:20 +01:00
Martine S. Lenders
4160439eab
auto_init: unify init function declarations 2020-03-03 16:39:19 +01:00
4f7d7c03b4
Merge pull request #13364 from kaspar030/auto_init_more_Debug
sys/auto_init: cleanup / unify / DEBUG -> LOG_DEBUG
2020-03-03 16:06:35 +01:00
Martine S. Lenders
6c5d9e4f39
gnrc_uhcpc: fix NULL pointer dereference 2020-03-03 13:56:56 +01:00
Sebastian Meiling
448aa46e66
Merge pull request #13509 from gschorcht/sys/phydat/improve_dump_test
sys/phydat: improvement of phydat_dump including test application
2020-03-03 09:09:40 +01:00
Dylan Laduranty
ee8b837b51
Merge pull request #13512 from fjmolinas/pr_interactive_sync_disable
tests: handle cml interactive_sync disabling
2020-03-02 09:39:53 +01:00
Francisco Molina
091ab15912
sys/test_utils/interactive_sync: allow module disabling
If the header file is included test_utils_interactive_sync() will
be defined as an empty function when the module is not used, e.g.
added to DISABLE_MODULES in tests/*
2020-03-02 08:50:18 +01:00
Benjamin Valentin
2f6bf38d17 net/eui64: provide 32 bit access
Allow to read the eui64 as two 32 bit values.
2020-03-01 18:37:51 +01:00
benpicco
6dd69e7134
Merge pull request #13515 from gschorcht/sys/newlib_multiheap_stats
sys/newlib_syscalls_default: update heap_stats for multiple heaps
2020-02-29 13:59:03 +01:00
Gunar Schorcht
1eabcb9566 sys/phydat: improvements of formatting in dump 2020-02-29 12:36:55 +01:00
Gunar Schorcht
fd1052bc9a sys/newlib: update heap_stats for multiple heaps 2020-02-29 12:24:39 +01:00
Gunar Schorcht
b1228beb68 sys/phydat: add data and time in dump 2020-02-28 16:27:34 +01:00
Gunar Schorcht
4e77c7eb7b sys/phydat: add unit permille in dump 2020-02-28 15:29:06 +01:00
ddee330bbd sys/net/sock/sock_util: use MODULE_FMT instead of RIOT_VERSION
sock_util used ot check RIOT_VERSION for selecting fmt functions.
RIOT's Makefile.dep sets fmt as a dependency for sock_util,
so the usual MODULE_FMT can be used.

One special case less.
2020-02-28 12:13:44 +01:00
benpicco
244c7da050
Merge pull request #13026 from brummer-simon/gnrc_tcp-prepare_for_sock_integration
gnrc_tcp: Prepare for sock integration.
2020-02-26 23:22:58 +01:00
Simon Brummer
10872d9a85 gnrc_tcp: Add Endpoints for connection specification 2020-02-26 21:24:06 +01:00
ef8daaf7be
suit: remove moran-v4 version of the parser
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-02-26 14:54:16 +01:00
ad7c19d584
Merge pull request #8576 from miri64/gnrc_uhcpc/enh/update-context
gnrc_uhcpc: update compression context with new prefix
2020-02-26 14:20:44 +01:00
benpicco
6a0b399b7f
Merge pull request #13474 from gschorcht/sys/expect_reduce_avr_ram
sys/test_utils: reduce the RAM usage by `expect` on AVR
2020-02-26 14:20:08 +01:00
Martine S. Lenders
d99d0a0df0
gnrc_uhcpc: use LOG_INFO() for configuration information 2020-02-26 13:22:56 +01:00
Martine Lenders
8cc9c5ebe7
gnrc_uhcpc: update compression context with new prefix
This updates (or adds) a compression context whenever a new prefix
arrives at the border router. This allows 6LoWPAN to compress said
prefix in the network.

Sadly, there is now way to just remove the context when the prefix is
overwritten, so I do not do it. If an administrator chooses to reset the
prefix they can use `6ctx del` which timeouts the prefix appropriately,
but IMHO it doesn't hurt to keep the old contexts.
2020-02-26 13:22:56 +01:00
Martine Lenders
ec6c07d35d
Merge pull request #13424 from miri64/examples/enh/dhcpv6-br
examples/gnrc_border_router: add optional DHCPv6 support
2020-02-25 20:08:31 +01:00
Gunar Schorcht
f688f84a15
Merge pull request #12928 from benpicco/newlib-multiheap
sys/newlib: enable multiple heaps in _sbrk_r()
2020-02-25 19:16:42 +01:00
Gunar Schorcht
9c726e7eb5 sys: reduce RAM usage by expect on AVR 2020-02-25 16:43:04 +01:00
0e7e1b76cd
sys: remove exports of UNDEF vars 2020-02-25 09:40:34 +01:00
benpicco
d044800300
Merge pull request #13450 from benpicco/dns-fixes
fix DNS resolution in ping6
2020-02-24 21:58:34 +01:00
benpicco
ad56ba8453
Merge pull request #13455 from miri64/sock_async/fix/include-sock_async_ctx.h
sock_async: include `sock_async_ctx.h` before sock-types
2020-02-24 19:09:33 +01:00
Ken Bannister
a2c5ec789b
Merge pull request #13454 from kb2ma/gcoap/fix_vera_warnings
net/gcoap: fix vera++ warnings
2020-02-24 12:53:11 -05:00
Benjamin Valentin
fa4447241f sock_dns: make sock_dns_query() return the length of the address
The implementation already did that, now also reflect this in the
documentation.
2020-02-24 14:29:17 +01:00
Benjamin Valentin
1de14931b8 sock_dns: use the same buffer for request & reply
Saving RAM is more important than saving a few cycles
used by re-creating the request buffer in the error case.

Also reduce the size of the buffer to 128 bytes.
If we are just requesting the AAAA record it is unlikely
for the reply to take up the maximum size of 512 bytes.

We were already placing restrictions on the domain name length,
those are now actually a bit more relaxed (112 bytes instead of 64)
2020-02-24 14:29:17 +01:00
Benjamin Valentin
367f19d390 shell/gnrc_icmpv6_echo: don't do DNS lookup for plain IP
When using ping6 with an IP address, don't do a DNS lookup.
Hostnames can't contain ':', so use that to tell them apart
from plain IP addressees.
2020-02-24 14:21:54 +01:00
Benjamin Valentin
a65daf7a31 shell/gnrc_icmpv6_echo: set success state if DNS query succeeded
We need to set `res` to 0 to signal success, otherwise we end up
in the print usage case.
2020-02-24 14:21:54 +01:00
Benjamin Valentin
e9a40933f7 sock_dns: fix off-by-one error in _parse_dns_reply() 2020-02-24 14:19:50 +01:00
63f805c5b7
Merge pull request #13268 from kaspar030/add_expect_header
sys/test_utils: add expect() header
2020-02-24 13:34:16 +01:00
Martine S. Lenders
9b4dac7f3e
sock_async: include sock_async_ctx.h before sock-types
This way, the sock-types can use the sock_async_ctx_t type in their
definition without including `sock_async_ctx.h` (potentially creating
further cyclic includes).
2020-02-24 12:33:38 +01:00
Ken Bannister
e98a6e5932 net/gcoap: update copyright date 2020-02-24 06:22:04 -05:00
Ken Bannister
c8cd3f0229 net/gcoap: fix vera++ code style warnings 2020-02-24 06:20:43 -05:00
36bb7741ac sys/test_utils: add "expect()" 2020-02-24 11:45:33 +01:00
1e74280308
Merge pull request #13270 from wosym/conn_cann_native
tests/conn_can: fix build error on native
2020-02-24 10:39:29 +01:00
Martine Lenders
cba056d560
Merge pull request #13386 from kb2ma/gcoap/sock_async
net/gcoap: use sock_async and events
2020-02-23 16:17:53 +01:00
Ken Bannister
9b63abb718 net/gcoap: cast required for pic32 platform
Fixes bug found during rework for sock_async implementation.
2020-02-22 05:46:07 -05:00
Ken Bannister
0dc1e4c4e7 net/gcoap: fix when no timeout event
Fixes bug found during rework for sock_async implementation.
2020-02-22 05:46:07 -05:00
Benjamin Valentin
f5a5c5dd2c shell/gnrc_icmpv6_echo: fix build with USEMODULE += sock_dns
To be able to call sock_dns_query() in _configure(), we also
need to include the header file.
2020-02-21 23:56:33 +01:00
f257765ce9
Merge pull request #13433 from haukepetersen/fix_trickle_misc
sys/trickle: remove redundant pid assignment
2020-02-21 20:06:08 +01:00
Martine S. Lenders
0f391a554e sock_async_event: fix typo in tcp_queue function
This was never checked at compile time before so a naming error sneaked
in.
2020-02-21 19:07:47 +01:00
Gunar Schorcht
8dc53cfd7a
Merge pull request #13438 from miri64/sock_async_event/fix/race-condition
sock_async_event: fix race-condition
2020-02-21 19:04:30 +01:00
benpicco
aa00191384
Merge pull request #13256 from MichelRottleuthner/pr_sps30
Add driver for SPS30 particulate matter sensor
2020-02-21 18:58:56 +01:00
Martine Lenders
d26355fbb4 sock_async_event: fix race-condition
If a new event is fired during the execution of the event callback,
`event->type` might change. However as `event->type` is set to 0 after
the execution of the callback, that leads to it being 0 on the next
round of the event handler's execution, leading in the event getting
lost.
2020-02-21 15:52:12 +01:00
benpicco
32e7e840fc
Merge pull request #13428 from benpicco/ping6_ifname
shell/gnrc_icmpv6_echo: print interface id in reply
2020-02-21 15:39:55 +01:00
Benjamin Valentin
d572db83e1 shell/gnrc_icmpv6_echo: print interface id in reply
If there is more than one interface, print the id of the receiving
interface for convenience.

```
ping6 ff02::1
2020-02-20 18:19:38,644 # 12 bytes from fe80::d0ae:c1b:2054:58e%7: icmp_seq=0 ttl=64 rssi=-45 dBm time=4.801 ms
2020-02-20 18:19:38,652 # 12 bytes from fe80::d0ae:c1b:2054:58c%8: icmp_seq=0 ttl=64 rssi=-63 dBm time=13.422 ms (DUP!)
2020-02-20 18:19:38,661 # 12 bytes from fe80::c78:16d9:8aca:ba9a%8: icmp_seq=0 ttl=64 rssi=-44 dBm time=21.819 ms (DUP!)
2020-02-20 18:19:39,648 # 12 bytes from fe80::d0ae:c1b:2054:58e%7: icmp_seq=1 ttl=64 rssi=-44 dBm time=4.797 ms
2020-02-20 18:19:39,657 # 12 bytes from fe80::d0ae:c1b:2054:58c%8: icmp_seq=1 ttl=64 rssi=-61 dBm time=12.917 ms (DUP!)
2020-02-20 18:19:39,666 # 12 bytes from fe80::c78:16d9:8aca:ba9a%8: icmp_seq=1 ttl=64 rssi=-43 dBm time=21.679 ms (DUP!)
2020-02-20 18:19:40,657 # 12 bytes from fe80::d0ae:c1b:2054:58e%7: icmp_seq=2 ttl=64 rssi=-41 dBm time=4.795 ms
```
2020-02-21 13:59:52 +01:00
Hauke Petersen
8cb56fba2d sys/trickle: remove redundant pid assignment 2020-02-21 13:26:24 +01:00
Benjamin Valentin
2ed0dd7405 sys/newlib: enable multiple heaps in _sbrk_r
Some MCUs have non-continuous memory regions.
To support those, iterate over all available memory regions
and allocate the first region that fits.
2020-02-20 17:11:25 +01:00
Martine S. Lenders
b929d013d8
dhcpv6_client: re-send SOLICITs after failed ADVERTISE 2020-02-20 16:41:48 +01:00
benpicco
336bfe54a9
Merge pull request #13366 from bergzand/pr/littlefs2/add_pkg
pkg/littlefs2: Add package for LittleFS v2.x.y
2020-02-20 16:23:59 +01:00
Leandro Lanzieri
ec0e18b821
Merge pull request #12906 from nmeum/pr/remove_gnrc_tftp
gnrc_tftp: remove module
2020-02-20 15:19:23 +01:00
9b02c7b4ee
pkg/littlefs2: Add package for LittleFS v2.x.y 2020-02-20 14:51:45 +01:00
Michel Rottleuthner
7e089bce7b drivers/sps30: add saul integration 2020-02-20 14:26:55 +01:00
Michel Rottleuthner
36fca364f8 sys/phydat: add unit for count per cubic meter 2020-02-20 14:26:55 +01:00
benpicco
410542df90
Merge pull request #13420 from Einhornhool/fix-issue13353
sys/ecc: fix assertion in golay2412
2020-02-20 14:18:55 +01:00
Lena Boeckmann
463178a892 sys/ecc: fix assertion in golay2412 2020-02-20 13:24:14 +01:00
640cbfe77e
Merge pull request #13405 from kaspar030/introduce_riotboot_slot_offset
sys/riotboot: provide riotboot_slot_offset()
2020-02-20 13:03:29 +01:00
Sören Tempel
0e2a620788 gnrc_tftp: remove module
Has been deprecated for awhile (01fc3d8f0b).
2020-02-20 12:04:01 +01:00
benpicco
030e7ebc06
Merge pull request #13307 from miri64/dhcpv6-client-6lbr/feat/init
gnrc_dhcpv6_client_6lbr: initial import of a 6LBR DHCPv6 client
2020-02-20 11:00:35 +01:00
Martine Lenders
c6331bfc77
Merge pull request #13379 from cgundogan/pr/gnrc_rpl_p2p
gnrc_rpl_p2p: several compilation fixes
2020-02-20 10:25:55 +01:00
Martine S. Lenders
db463a3373
gnrc_dhcpv6_client_6lbr: initial import of a 6LBR DHCPv6 client 2020-02-19 17:37:47 +01:00
Martine Lenders
056127bc00
Merge pull request #13396 from leandrolanzieri/pr/net/remove_nhdp
net: Remove NHDP module
2020-02-19 14:34:58 +01:00
9ede06fbbb sys/suit: make use of riotboot_slot_offset() 2020-02-19 10:08:47 +01:00
87fcd061a8 sys/riotboot: provide riotboot_slot_offset() 2020-02-19 10:04:52 +01:00
Leandro Lanzieri
9026823bb9 net: Remove NHDP module
NHDP has been flagged as deprecated in
056bd35e6c, due to lack of maintenance.
2020-02-18 13:20:05 +01:00
8c7ebbdc4f
suit: cleanup of TinyCBOR to NanoCBOR refactor 2020-02-18 11:26:40 +01:00
9866cdd411
Merge pull request #13380 from kaspar030/pm_blocker_one_value
sys/pm_layered: change PM_BLOCKER_INITIAL to single value
2020-02-17 13:07:02 +01:00
Sören Tempel
5cf433806e gnrc_sock_udp: fix null check in port generation function
Still check if the port is unused if no socket has been given.
2020-02-17 10:20:22 +01:00
Ken Bannister
d6fa3c7c2f net/gcoap: add timeout event/handler for server response 2020-02-16 09:17:48 -05:00
Ken Bannister
ea62734baf net/gcoap: add sock_async event handling
Rework from earlier custom event/msg handling.
2020-02-16 09:17:48 -05:00
e1e43118da
suit: Remove non-standard hello handler 2020-02-14 21:38:52 +01:00
f66fd7b1ca sys/pm_layered: change PM_BLOCKER_INITIAL to single value 2020-02-14 12:05:59 +01:00
Cenk Gündoğan
08c3dedf38 gnrc_rpl_p2p: use correct netif functions 2020-02-14 11:42:33 +01:00
Cenk Gündoğan
50423d60cf gnrc_rpl_p2p: use correct parameters for trickle_start() 2020-02-14 11:41:56 +01:00
Cenk Gündoğan
4b58e5d41b gnrc_rpl_p2p: fix cleanup timer usage 2020-02-14 11:41:30 +01:00
benpicco
da78d03e95
Merge pull request #13338 from chrysn-pull-requests/coap-no-deduplication
nanocoap: State handler idempotentcy requirement
2020-02-13 17:36:28 +01:00
Hauke Petersen
e06cbce940 sys/event: add event_wait_timeout64() 2020-02-13 16:18:32 +01:00
fc40b54cae
Merge pull request #13371 from haukepetersen/add_xtimer_settimeoutflag64
xtimer: add xtimer_set_timeout_flag64()
2020-02-13 16:16:45 +01:00
Hauke Petersen
58e381979f xtimer: add xtimer_set_timeout_flag64() 2020-02-13 15:37:14 +01:00
Hauke Petersen
b92f5ccd15 xtimer: properly expose xtimer_usleep64() 2020-02-13 15:13:47 +01:00
8c16e3fef0 sys/auto_init: cleanup / unify debug messages 2020-02-13 11:50:16 +01:00
dfeb4116c8 sys/auto_init: DEBUG -> LOG_DEBUG 2020-02-13 11:50:16 +01:00
87a50c2d6f sys/auto_init: add more DEBUG messages 2020-02-13 11:49:10 +01:00
aa9388b238
Merge pull request #13089 from fjmolinas/pr_auto_init_default_modules
Makefile.dep: auto_init_% as DEFAULT_MODULES
2020-02-12 17:22:34 +01:00
Francisco Molina
e446920cd2
Makefile.dep: add auto_init_gnrc_% MODULEs 2020-02-12 16:51:29 +01:00
Francisco Molina
afc43bf314
Makefile.dep: add auto_init_lwip MODULE 2020-02-12 16:51:29 +01:00
Francisco Molina
802216ce53
Makefile.dep: add auto_init_at86rf2xx MODULE 2020-02-12 16:51:27 +01:00
Francisco Molina
73bf2293bc
Makefile.dep: add auto_init_random MODULE 2020-02-12 16:51:25 +01:00
Francisco Molina
a5a036be43
Makefile.dep: add auto_init_xtimer pseudomodule 2020-02-12 16:51:22 +01:00
ca5ed3e34e
Merge pull request #13352 from fjmolinas/pr_suit_progress_unused_vars
sys/suit/coap: fix unused vars
2020-02-12 16:12:42 +01:00
Francisco Molina
1a9deef303
sys/suit/coap: fix unused vars 2020-02-12 14:58:56 +01:00
benpicco
5b608ef712
Merge pull request #12766 from miri64/gnrc_netapi/enh/report-error
gnrc_netapi: report errors on dispatch
2020-02-11 23:41:39 +01:00
Martine S. Lenders
a0740ee535 gnrc_netapi: report errors on dispatch 2020-02-11 18:16:02 +01:00