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

9918 Commits

Author SHA1 Message Date
Benjamin Valentin
babee877ce cpu/sam0_common: add SD Host Controller implementation 2022-05-31 11:07:20 +02:00
benpicco
b94dd60978
Merge pull request #17912 from benpicco/pkg/fatfs-rtt_rtc
pkg/fatfs, shell: enable RTC support if rtt_rtc is used
2022-05-31 10:30:29 +02:00
Benjamin Valentin
01eba05ca1 sys/net/sock: add a word of warning to sock_udp_create()
If a socket is created we must also call sock_udp_recv() on it as
otherwise messages will get stuck in it's queue until the socket is
closed (which might be never).

If applications only want to send without receiving, they must use
sock_udp_send().
2022-05-30 20:21:13 +02:00
Martine Lenders
e22fb6ef07
gnrc_netif_pktq: create dedicated Kconfig
Reflects dependency change in e5f93f856d
2022-05-30 11:13:52 +02:00
Martine Lenders
e5f93f856d
gnrc: gnrc_netif etc. modules are not required by gnrc_netif_pktq 2022-05-30 10:39:06 +02:00
Benjamin Valentin
bf5926283b gnrc_netreg: drain mbox on unregister
If there are still messages in the mbox when gnrc_netreg_unregister()
is called, we must release the associated pktbuf snips, otherwise
they are leaked away forever.

E.g. `sock_udp_close()` was called without receiving all messages with
`sock_udp_recv()`.
2022-05-29 22:42:48 +02:00
Martine Lenders
2d67eaf7ef
Merge pull request #18105 from kfessel/p-deprecate-ztimer-now64-2
ztimer: add module removal information to doxygen and date it
2022-05-25 18:54:09 +02:00
benpicco
31b8518d20
Merge pull request #17965 from benpicco/coap_get_blockopt-uint8
nanocoap: use uint8_t for szx value
2022-05-25 14:00:04 +02:00
Benjamin Valentin
1662f0fa46 sys/suit: move suit_storage_helper() to handlers_command_seq.c 2022-05-25 12:17:48 +02:00
Martine Lenders
3e531801e6
Merge pull request #17678 from miri64/gnrc_netif/enh/optional-comp-ctx
gnrc_netif: make auto-config of compression context optional
2022-05-25 00:51:36 +02:00
Martine Lenders
a2ca69ac91
Merge pull request #17691 from miri64/gnrc_sock/enh/warn-about-async-timeout
gnrc_sock: warn about non-zero receive timeouts with sock_async
2022-05-24 23:20:42 +02:00
benpicco
85169fc220
Merge pull request #17937 from benpicco/nanocoap_vfs
nanocoap_vfs: add nanocoap_vfs_get()
2022-05-24 16:10:15 +02:00
Martine Lenders
a61c4b738c
Merge pull request #17547 from benpicco/gnrc_ipv6_auto_subnets-multi
gnrc/ipv6_auto_subnets: allow to join multiple subnets
2022-05-24 15:49:17 +02:00
Martine Lenders
4599c21b19
Merge pull request #18085 from benpicco/ipv6_auto_subnets-pio-flags
gnrc/ipv6_auto_subnets: only use prefixes meant for automatic address configuration
2022-05-24 14:23:53 +02:00
Hauke Petersen
f10a28a7f7 net/ble/skald: let itvl be configured per context 2022-05-24 13:02:10 +02:00
Martine Lenders
3d819ce707
gnrc_netif: make auto-config of compression context optional 2022-05-24 12:30:36 +02:00
Martine Lenders
4e88b7552b
gnrc_sock: warn about non-zero receive timeouts with sock_async 2022-05-24 12:29:13 +02:00
benpicco
eb09fe21fd
Merge pull request #18025 from leandrolanzieri/pr/sys/random/change_kconfig_default_backend
sys/random/kconfig: remove HWRNG default in backend choice
2022-05-24 11:35:21 +02:00
Benjamin Valentin
4dd971f749 sys/shell: add 'nget' shell command 2022-05-24 09:35:04 +02:00
Benjamin Valentin
87359bb70a nanocoap_vfs: add nanocoap_vfs_get() 2022-05-24 09:32:57 +02:00
Benjamin Valentin
ad7d974183 nanocoap: define default block size 2022-05-24 09:32:09 +02:00
Martine Lenders
078bced8e1
Merge pull request #16090 from maribu/gnrc_tx_sync_frag_sfr
sys/net/gnrc: add gnrc_tx_sync for gnrc_sixlowpan_frag_sfr
2022-05-24 03:38:38 +02:00
Martine Lenders
a5cc629fb8
Merge pull request #18127 from benpicco/gnrc/nib-no_default_router_from_wpan
gnrc/nib: don't add routers from WPAN as default router on the 6LBR
2022-05-24 00:38:43 +02:00
Benjamin Valentin
c6ba5d9180 gcoap_fileserver: use uint8_t for szx value 2022-05-23 23:43:21 +02:00
Benjamin Valentin
00221818b6 nanocoap: use uint8_t for szx value
The value is an exponent, 8 bits totally suffice here
2022-05-23 23:41:21 +02:00
benpicco
c72d4ccc0e
Merge pull request #18112 from fjmolinas/pr_vfs_rmount_mkdir
sys/shell/vfs: add umount, rmount and mkdir commands
2022-05-23 23:33:16 +02:00
benpicco
08e430bee7
Merge pull request #17956 from benpicco/coapfileserver
gcoap: Add file server
2022-05-23 22:10:49 +02:00
Benjamin Valentin
f544890056 gnrc/nib: don't add routers from WPAN as default router for 6LBR
This avoids a race condition where the default router slots for the 6LBR
are used up by router advertisements from the 6Lo network that arrived
before router advertisements from the upstream network.

The border router should ignore 'default routers' from the 6Lo network as
it consitutes the uplink for that network.
2022-05-23 16:44:58 +02:00
Francisco Molina
81f172039a sys/shell/vfs: add umount, rmount and mkdir commands 2022-05-23 16:41:34 +02:00
Benjamin Valentin
fad65011b7 netdev_tap: make NETDEV_TAP_MAX an upper bound 2022-05-23 15:27:35 +02:00
Martine Lenders
3398898e76
gnrc_ipv6_nib: fix inconsistent ABR valid lifetime representation 2022-05-23 14:21:25 +02:00
Marian Buschsieweke
16f859dafd
drivers/saul: use const qualifier for data to write
This makes life easier when calling e.g. `saul_reg_write()` with data
stored in flash.

As now the signatures for reading and writing differ (in that `const`
qualifier only), `saul_notsup()` is split into `saul_write_notsup()`
and `saul_read_notsup()`. However, one is implemented as a symbol alias
of the other, so that ROM consumption remains unchanged.
2022-05-23 08:35:27 +02:00
chrysn
185dfea07f gcoap_fileserver: New module to serve VFS via CoAP 2022-05-22 16:36:21 +02:00
chrysn
bb56b34c3a
Merge pull request #18117 from LP-HAW/fix-phydat_to_json
sys/phydat: fix phydat_to_json precondition
2022-05-19 23:24:25 +02:00
Marian Buschsieweke
158203fe71
Merge pull request #17651 from benpicco/fs/constfs-cleanup
sys/fs/constfs: drop dummy implementations
2022-05-19 23:23:49 +02:00
Benjamin Valentin
a587069b18 vfs: return -EROFS if remove operation is not implemented 2022-05-19 11:43:08 +02:00
Karl Fessel
b7fef93f9c ztimer: add module removal information to doxygen 2022-05-19 11:39:00 +02:00
benpicco
82fd89fa89
Merge pull request #18040 from benpicco/vfs_util-hash
sys/vfs_util: add vfs_file_<hash>() functions and md5sum, sha1sum and sha256sum shell commands
2022-05-19 09:08:23 +02:00
Lars Pfau
7a94b36430 sys/phydat: fix phydat_to_json dim precondition 2022-05-19 07:29:51 +02:00
Francisco
37da85f047
Merge pull request #18033 from thingsat/pr/sx1280_v2
drivers/sx1280: add driver for SX1280 transceiver v2
2022-05-18 22:10:38 +02:00
Benjamin Valentin
7c75852316 nanocoap_sock: clean up state management 2022-05-18 11:41:58 +02:00
benpicco
7c62c8983d
Merge pull request #17958 from benpicco/nanocoap-blockwise_put
nanocoap_sock: add nanocoap_sock_block_request()
2022-05-18 10:40:24 +02:00
Gunar Schorcht
6e996f6a4d sys/posix/select: remove conditional compilation for ESP32 2022-05-18 07:27:23 +02:00
Benjamin Valentin
c20a1d04c8 net/nanocoap: improve documentation of coap_pkt_t 2022-05-17 23:07:23 +02:00
Benjamin Valentin
b99d4b58bd nanocoap_sock: add nanocoap_sock_block_request() 2022-05-17 23:07:23 +02:00
Benjamin Valentin
f2279e43ae nanocoap_sock: support sending CoAP packet with payload snips 2022-05-17 23:07:23 +02:00
benpicco
cabb0b7398
Merge pull request #18109 from benpicco/vfs_unmount_by_path
sys/vfs: add vfs_unmount_by_path()
2022-05-17 20:25:18 +02:00
Aymeric Brochier
8e86382e29 sys/include/net/lora: add 2.4Ghz BW definitions 2022-05-17 15:30:01 +02:00
Marian Buschsieweke
e4098d4b0d
sys/net/gnrc: add gnrc_tx_sync for gnrc_sixlowpan_frag_sfr
Implement TX synchronization for gnrc_sixlowpan_frag_sfr
2022-05-17 14:01:57 +02:00
Benjamin Valentin
ff27db9bce sys/shell: add sha256sum command 2022-05-17 11:32:25 +02:00
Benjamin Valentin
a250c2b5ad sys/shell: add sha1sum command 2022-05-17 11:30:52 +02:00
Benjamin Valentin
845450c663 sys/shell: add md5sum command 2022-05-17 11:30:52 +02:00
Benjamin Valentin
427d06c987 sys/vfs_util: add vfs_file_sha256() 2022-05-17 11:30:51 +02:00
Benjamin Valentin
846adfc0cc sys/vfs_util: add vfs_file_sha1() 2022-05-17 11:30:51 +02:00
Benjamin Valentin
65578269fc sys/vfs_util: add vfs_file_md5() 2022-05-17 11:30:51 +02:00
chrysn
9879a68f31
Merge pull request #18050 from benpicco/vfs_sysop_stat_from_fstat
vfs: fix dir detection in vfs_sysop_stat_from_fstat()
2022-05-17 03:08:17 +02:00
benpicco
1c97eea8b9
Merge pull request #18038 from benpicco/vfs_util
sys/vfs_util: add VFS helper functions
2022-05-17 02:17:38 +02:00
chrysn
ee346fe628 sys/vfs: Point user to simplified functions 2022-05-16 13:52:29 +02:00
Benjamin Valentin
c15e87475b sys/vfs_util: add VFS helper functions 2022-05-16 13:52:29 +02:00
benpicco
d28a45e939
Merge pull request #18089 from benpicco/NETOPT_RX_END_IRQ
net/netopt: drop NETOPT_RX_END_IRQ
2022-05-16 11:34:48 +02:00
Benjamin Valentin
ff4c738e2d sys/vfs: add vfs_unmount_by_path() 2022-05-16 11:11:11 +02:00
benpicco
1e315c7308
Merge pull request #16748 from jia200x/pr/gnrc_netif/remove_netdev_event_isr_msg
gnrc_netif: use event loops by default to process ISR
2022-05-13 18:49:01 +02:00
Martine Lenders
dbed2b48ea
nanocoap_cache: add helper function to check if entry is stale 2022-05-13 12:14:55 +02:00
Martine Lenders
310ed649ae
gcoap: reflect truncation with caching 2022-05-13 12:14:55 +02:00
Martine Lenders
70d0d7f624
gcoap_forward_proxy: only leave upstream validation for caching
Most of the caching operation was moved to the client code. Since the
forward proxy is using that code for upstream messaging, interacting
with the cache directly is not necessary anymore.

The only cache-related thing necessary for the proxy is validating ETags
from upstream. However, that can be done by just looking at the ETags
from the upstream response (which may or may not have come from the
cache).
2022-05-13 12:14:55 +02:00
Martine Lenders
728c7d6088
gcoap: add nanocoap_cache support for clients 2022-05-13 12:14:54 +02:00
Martine Lenders
cbbde07cc6
gcoap: add helper function to get request header from a request memo 2022-05-12 15:22:05 +02:00
Cenk Gündoğan
820ca617fd
Merge pull request #17801 from miri64/gcoap_forward_proxy/enh/etag
gcoap_forward_proxy: provide cache validation mechanism
2022-05-12 14:50:12 +02:00
Martine Lenders
73bcd83543
nanocoap_cache, forward_proxy: add ETag validation support 2022-05-12 13:22:41 +02:00
Benjamin Valentin
b13b942e18 gnrc/ipv6_auto_subnets: allow to join multiple subnets 2022-05-12 00:44:18 +02:00
Benjamin Valentin
aae9bb0a91 net/netopt: remove NETOPT_RX_END_IRQ 2022-05-11 23:44:24 +02:00
1f08e2e2c8 sys/uri_parser: enforce maximum port length 2022-05-11 21:15:55 +02:00
Benjamin Valentin
83d7d05885 gnrc/link_layer: don't set NETOPT_RX_END_IRQ 2022-05-11 13:58:06 +02:00
Benjamin Valentin
03a669c407 gnrc_netif: remove warning about NETOPT_RX_END_IRQ 2022-05-11 13:56:47 +02:00
Cenk Gündoğan
c5eb53095d
gcoap: integrate nanocoap cache 2022-05-10 18:43:57 +02:00
Cenk Gündoğan
8750605d26
nanocoap: add cache for response messages 2022-05-10 18:43:56 +02:00
Jose Alamos
869c5f37a7 link_layer/lwmac: use event queue for ISR offload 2022-05-10 17:48:43 +02:00
Jose Alamos
6040747f33 link_layer/gomach: use event queue for ISR offload 2022-05-10 17:48:43 +02:00
Jose Alamos
081dfe0e64 gnrc_netif: use event queue for ISR offload 2022-05-10 17:48:42 +02:00
Jose Alamos
38798cb877 gnrc_netif: use events instead of msg queue for ISR offload 2022-05-10 17:48:42 +02:00
Benjamin Valentin
1c1cb481da gnrc/ipv6_auto_subnets: only use prefix meant for address configuration 2022-05-10 16:41:20 +02:00
Marian Buschsieweke
eadd282cf4
Merge pull request #18026 from benpicco/gcoap_add_fix
gcoap: ensure response address is the same as request address
2022-05-10 10:49:56 +02:00
Marian Buschsieweke
3dad6740da
Merge pull request #17990 from benpicco/nanocoap-void
nanocoap: use void * for payload bytes
2022-05-10 10:49:05 +02:00
benpicco
3771c06914
Merge pull request #18075 from kaspar030/drop_shell_buildin_commands_define
sys/shell: drop `_builtin_cmds` define
2022-05-10 10:10:23 +02:00
Benjamin Valentin
e621afb2dc gcoap: ensure response address is the same as request address
If a node has multiple addresses we must reply to a request with the
same address on which the request was received.
2022-05-10 09:24:56 +02:00
Benjamin Valentin
cc8b4f52aa grnc_sock_udp: implement SOCK_AUX_SET_LOCAL 2022-05-10 09:24:56 +02:00
Benjamin Valentin
2197f9c16a grnc_sock_ip: implement SOCK_AUX_SET_LOCAL 2022-05-10 09:24:56 +02:00
Benjamin Valentin
6e1fb4c3aa sys/net/sock: introduce SOCK_AUX_SET_LOCAL 2022-05-10 09:24:56 +02:00
Benjamin Valentin
f11899f6bb sys/net: add local to sock_udp_aux_tx_t 2022-05-10 09:24:56 +02:00
Benjamin Valentin
bcd58bfd10 sys/net: add local to sock_ip_aux_tx_t 2022-05-10 09:24:56 +02:00
Martine Lenders
beb65f8e53
Merge pull request #18078 from benpicco/gnrc_netif_ipv6_addrs_get
net/gnrc_netif: clarify documentation of gnrc_netif_ipv6_addrs_get()
2022-05-10 09:22:48 +02:00
benpicco
cb1aea03a0
Merge pull request #18065 from benpicco/gnrc_sock-implicit_netif
gnrc_sock: implicitly set netif if there is only a single one
2022-05-10 00:16:42 +02:00
Benjamin Valentin
79987483e4 net/gnrc_netif: clarify documentation of gnrc_netif_ipv6_addrs_get()
Reformulate the documentation to make it clear that this returns the
*size* of the addresses, not the number of addresses.
2022-05-09 21:46:01 +02:00
b8fef54724 sys/shell: drop _builtin_cmds define 2022-05-09 15:24:34 +02:00
Benjamin Valentin
4295104866 vfs: fix dir detection in vfs_sysop_stat_from_fstat()
`vfs_sysop_stat_from_fstat()` is a fallback implementation of `stat()`
based on `fstat()`.
It will open a file and call `fstat()`.
This fails if the target is not a file but a directory, which means that
directories are not recognized as such.

To fix this, try to open the path as a directory if opening it as a file
fails. If this succeeds, set the `S_IFDIR` flag.
2022-05-08 23:04:26 +02:00
benpicco
6b0a105344
Merge pull request #18034 from laurin/arpa-inet-restrict
sys/posix/include/arpa: use `__restrict` instead of `restrict`
2022-05-07 17:32:04 +02:00
Laurin Wolf
550f5ea1b1 sys/posix: use __restrict instead of restrict 2022-05-07 16:10:01 +02:00
Benjamin Valentin
cbd48c23aa gnrc_sock: implicitly set netif if there is only a single one 2022-05-06 12:11:13 +02:00
benpicco
de23ba0d04
Merge pull request #18046 from benpicco/nanocoap-minor
nanocoap: minor fixes
2022-05-05 14:56:47 +02:00
a32b01a0af
Merge pull request #18032 from aabadie/pr/sys/quad_math_remove
sys/quad_math: remove unused module for quad arithmetic
2022-05-05 12:57:25 +02:00
Marian Buschsieweke
08ae9bd771
sys/include/time_units.h: add more constants
Added all sensible conversion factors up to days and ordered them.
2022-05-05 11:31:45 +02:00
Karl Fessel
3680198619 ztimer: deprecate ztimer_now64 and ztimer_now_t 2022-05-04 15:57:57 +02:00
1b16ad1e9a
sys/auto_init: model auto_init_security in Kconfig 2022-05-03 16:06:22 +02:00
Benjamin Valentin
0847c18a18 nanocoap: use size_t for payload_len 2022-05-03 11:32:20 +02:00
Benjamin Valentin
cabb2c912d nanocoap: use void * for payload bytes 2022-05-03 11:32:20 +02:00
Benjamin Valentin
76090d98d4 nanocoap: fix doc of coap_blockwise_cb_t return code
see 04a8a36734
2022-05-03 03:54:17 +02:00
Benjamin Valentin
d03c6390c8 nanocoap_sock: release rx buffer on RESET
We must not return without calling sock_udp_recv_buf() again.
2022-05-03 03:53:56 +02:00
Benjamin Valentin
e55f0f8831 sys/net/grnc: make use of iolist_to_buffer() 2022-05-02 23:23:52 +02:00
Benjamin Valentin
42e5d0d402 sys/vfs: add vfs_write_iol() 2022-05-02 23:23:52 +02:00
Benjamin Valentin
501ca7e34d sys/iolist: introduce iolist_to_buffer() 2022-05-02 23:23:52 +02:00
benpicco
1b92fb9858
Merge pull request #17350 from benpicco/gnrc_rpl/auto_init_on_prefix
gnrc/ipv6_auto_subnets: init RPL root when adding a prefix
2022-05-02 21:38:21 +02:00
Benjamin Valentin
a881af8b08 gnrc/ipv6_auto_subnets: bail out early if prefix stays the same 2022-05-01 21:37:32 +02:00
Benjamin Valentin
5785856fe7 gnrc/ipv6_auto_subnets: bail out early if adding prefix fails 2022-04-29 22:56:35 +02:00
Benjamin Valentin
3993fd75d0 gnrc/ipv6_auto_subnets: auto init RPL root 2022-04-29 22:56:35 +02:00
Benjamin Valentin
878596d393 gnrc_netif: improve documentation of gnrc_netif_ipv6_add_prefix() 2022-04-29 22:56:35 +02:00
Benjamin Valentin
04a8a36734 nanocoap_sock: only abort nanocoap_sock_get_blockwise() on negative error
Some user callbacks might just return the result of some other operation
that returns written bytes or negative error.

Let's not break those, only consider negative callback returns an error.
2022-04-29 21:29:36 +02:00
Teufelchen1
4f60140014 net/gnrc: Fixing whitespace in the documentation 2022-04-29 14:19:25 +02:00
Laurin Wolf
2d9a7e27c3 /net/sock/udp: designated iolist_t intializer 2022-04-28 23:47:45 +02:00
Kevin "Tristate Tom" Weiss
7731e6ab62
Merge pull request #17995 from aabadie/pr/tests/pkg_utensor_kconfig
tests/pkg_utensor: model in Kconfig + fix utensor package dependencies
2022-04-28 17:25:56 +02:00
7ca86edec5
sys/quad_math: remove unused module for quad arithmetic 2022-04-28 14:48:10 +02:00
benpicco
42f0d0d24c
Merge pull request #18013 from kfessel/p-coap_pkt-token-deprecate
net/nanocoap: deprecate coap_pkt token ptr
2022-04-28 11:25:47 +02:00
dcbcc53343
sys/posix/pthread: improve Kconfig dependency resolution 2022-04-28 08:49:54 +02:00
Martine Lenders
b167d6931c
Merge pull request #17774 from fjmolinas/pr_nimble_auto_adv_extended
pkg/nimble/autoadv: add support for ext_adv
2022-04-27 16:44:46 +02:00
Leandro Lanzieri
82726a2b2b
sys/random/kconfig: remove HWRNG default in backend choice
For now we match the Makefile.dep default, ignoring if the platform
presents a Hardware RNG.
2022-04-27 15:41:23 +02:00
e9faabd018
Merge pull request #18020 from fjmolinas/pr_suit_storage_flashwrite_log
sys/suit/storage: change log to LOG_DEBUG
2022-04-27 15:10:25 +02:00
Karl Fessel
dcac22eebb net/nanocoap: deprecate coap_pkt token ptr 2022-04-27 12:31:28 +02:00
Francisco Molina
fc616a9916 sys/stdio_nimble: fiter conn_handle 2022-04-27 10:10:32 +02:00
Francisco Molina
8114974ea7 sys/suit/storage: change log to LOG_DEBUG 2022-04-27 09:52:16 +02:00
cdf1d43e15
Merge pull request #17984 from fjmolinas/pr_suit_install_once
sys/suit: avoid installing payload twice
2022-04-27 09:44:58 +02:00
Martine Lenders
aa5a18f833
Merge pull request #16974 from yarrick/lwip_netif
pkg/lwip: Add netif_t struct, register all netifs
2022-04-26 23:49:49 +02:00
chrysn
0a72fc9255
Merge pull request #16812 from chrysn-pull-requests/cord-doc-discoverability
net/cord doc: Usability fixes
2022-04-26 21:10:52 +02:00
Alexandre Moguilevski
17afe9cb1f sys/include/ztimer64: fix for xtimer_msg_receive_timeout64 in xtimer_compat.h 2022-04-25 17:12:11 +02:00
Francisco Molina
e66ad95c4c sys/suit: avoid installing payload twice 2022-04-25 15:21:22 +02:00
Francisco Molina
da9a37a984 pkg/nimble/autoadv: prefix configurations with CONFIG_ 2022-04-25 08:43:51 +02:00
1db89df391
sys: add Kconfig support for cpp11-compat module 2022-04-24 21:23:34 +02:00
c38eb27fe0
sys/posix: add Kconfig file for pthread module 2022-04-24 21:23:33 +02:00
cbcda7c2bf
sys: make MODULE_LIBC_GETTIMEOFDAY prompt visible 2022-04-24 21:23:33 +02:00
677871d717 suit/transport/coap: Use generic subtree handler
The SUIT CoAP code can make use of the generic subtree handler. This
commit removes the obsolete code to make use of the more generic
nanocoap subtree handlers.
2022-04-23 10:21:37 +02:00
eecac6945b nanocoap: Add handler for resource-based subtrees
This adds a coap_handler_t function that can be used to parse new
subtrees. The subtree information is included in the context pointer of
the call and must be of type coap_resource_subtree_t. This object then
contains the pointer and length of a different coap_resource_t instance.
2022-04-23 10:12:18 +02:00
e56f86d594
Merge pull request #17989 from benpicco/ztimer64-msleep-fix
ztimer64_xtimer_compat: fix ztimer_msleep()
2022-04-23 07:40:05 +02:00
Benjamin Valentin
6113b79bdb ztimer64_xtimer_compat: fix ztimer_msleep() 2022-04-22 18:12:45 +02:00
Benjamin Valentin
bb4c597681 nanocoap_sock: document (ab)use of sock_udp_recv_buf(), add asssert() 2022-04-22 11:34:19 +02:00
Benjamin Valentin
b20f89976d nanocoap_sock: pass on error code from user callback 2022-04-22 10:35:52 +02:00
Benjamin Valentin
85833ab58c nanocoap_sock: clean up the request function 2022-04-22 10:35:52 +02:00
Benjamin Valentin
bd7fe3bc5c nanocoap_sock: calculate deadline from interval
So we don't have to wait a full interval again if we got a wrong
message without resend.
2022-04-22 10:35:52 +02:00
Benjamin Valentin
e2fe9d0268 nanocoap_sock: compare response token 2022-04-22 10:35:52 +02:00
Benjamin Valentin
c22b1242ae nanocoap_sock: ensure ctx is reset before receiving new frame 2022-04-22 10:35:52 +02:00
Benjamin Valentin
3ac258ccdf nanocoap_sock: set more false if response was not blockwise 2022-04-22 10:12:27 +02:00
Benjamin Valentin
a5bc3cc069 nanocoap_sock: pass on error code 2022-04-22 10:12:27 +02:00
benpicco
c032e40fba
Merge pull request #17976 from benpicco/coap_get_token
nanocoap: add coap_get_token()
2022-04-22 10:08:30 +02:00
Francisco
21be49a16a
Merge pull request #17973 from fjmolinas/pr_examples_suit_seq_no
examples/suit_update/test: use 'suit seq_no' to get version
2022-04-22 08:47:32 +02:00
Francisco
7307923703
Merge pull request #17960 from benpicco/sock_urlpath
nanocoap_sock: add nanocoap_sock_url_connect()
2022-04-22 08:26:12 +02:00
Francisco Molina
ee9bf559fe sys/sc_suit: aligh seq_no format with riotboot_hdr 2022-04-21 16:59:32 +02:00
Benjamin Valentin
e627d25752 nanocoap: constify get functions 2022-04-21 15:39:25 +02:00
Benjamin Valentin
5c1ff580d6 nanocoap_sock: don't decrement retries twice 2022-04-21 15:39:25 +02:00
Benjamin Valentin
845a757eed nanocoap: don't set lastonum if no option was added 2022-04-21 15:39:25 +02:00
Benjamin Valentin
76e2500b7d nanocoap_sock: use random message IDs 2022-04-21 15:39:25 +02:00
Benjamin Valentin
c4f6249992 nanocoap: make use of coap_get_token() 2022-04-21 15:34:31 +02:00
Benjamin Valentin
3d0c1d09c4 gcoap: make use of coap_get_token() 2022-04-21 15:34:31 +02:00
Benjamin Valentin
328d46277d nanocoap: add coap_get_token() 2022-04-21 15:34:31 +02:00
Benjamin Valentin
8d391a4f5f nanocoap_sock: use random timeout 2022-04-21 15:03:31 +02:00
df95c6ca83
Merge pull request #17945 from fjmolinas/pr_mcp2515_cleanups
drivers/mcp2515: fixes and cleanups
2022-04-20 10:42:08 +02:00
Francisco Molina
4edf33c16d sys/auto_init_mcp2515: fix auto_init 2022-04-20 09:23:50 +02:00
646fb1135a
Merge pull request #17925 from aabadie/pr/drivers/lcd_params_rework
drivers/lcd: slightly rework params to expose offset values to ili9341 driver
2022-04-19 16:21:42 +02:00
718b1e350d
Merge pull request #17459 from aabadie/pr/drivers/cst816s_enh
drivers/cst816s: add touch_dev interface + add Kconfig + migrate to ztimer
2022-04-19 11:43:34 +02:00
56fdc90ef4
Merge pull request #17952 from leandrolanzieri/pr/sys/event/add_doc_and_assert
sys/event: Add documentation and enforce waiter on wait
2022-04-19 09:24:53 +02:00
fabian18
5643b52879
Merge pull request #17814 from fabian18/bugfix_nib_sllao_in_NS_6LR
ipv6/nib: bugfix handle SLLAO on 6LR if ARO is not present
2022-04-18 17:54:04 +02:00
Benjamin Valentin
2ea6c81217 nanocoap_sock: add nanocoap_sock_url_connect() 2022-04-18 01:53:23 +02:00
Benjamin Valentin
f6be7d6ffe sys/net/sock_util: add sock_urlpath() 2022-04-18 01:36:50 +02:00
Fabian Hüßler
560e43ae56 ipv6/nib: bugfix handle SLLAO on 6LR if ARO is not present 2022-04-18 00:09:53 +02:00
benpicco
0e5900d597
Merge pull request #17941 from fjmolinas/pr_suit_seq_no_cmd
sys/sc_suit: add seq_no command
2022-04-17 23:44:20 +02:00
benpicco
c610b1fa2f
Merge pull request #17939 from fjmolinas/pr_suit_manifest_ram_seq_no
sys/suit: save seq_number when parsing manifest
2022-04-15 14:22:57 +02:00
Francisco
0a83d5e415
Merge pull request #17942 from fjmolinas/pr_riotboot_hdr_log
sys/riotboot/hdr: change header validation log to DEBUG
2022-04-15 08:37:51 +02:00
benpicco
4bad5a10bc
Merge pull request #17944 from fjmolinas/pr_gcoap_deps_fixes
gcoap: small dependencies fixes
2022-04-14 18:34:45 +02:00
Leandro Lanzieri
b3b76bf6f3
sys/event: ensure that a queue has a waiter before waiting for flags
Document and enforce that a queue has a waiter (i.e. it is claimed)
before waiting for thread flags.
2022-04-14 17:10:24 +02:00
Leandro Lanzieri
d3ee32fe97
sys/event: add queue initialization pre-cond to event_post
Document that a queue should have been initialized before posting events
to it.
2022-04-14 17:08:42 +02:00
benpicco
2acbb5ebea
Merge pull request #17947 from fjmolinas/pr_proxy_use_gcoap_port
sys/net/application_layer/gcoap: use COAP_PORT
2022-04-14 16:05:28 +02:00
benpicco
2790e361d8
Merge pull request #17946 from fjmolinas/pr_net_af_cleanup_doc
sys/include/net/af: fix doc comment
2022-04-14 13:46:29 +02:00
Francisco Molina
ec4a96b108 sys/riotboot/hdr: change header validation log to DEBUG 2022-04-14 11:53:31 +02:00
a2fc925a0e
drivers/cst816s: add touch_dev interface 2022-04-14 11:31:35 +02:00
Francisco Molina
c67a2086de sys/net/application_layer/gcoap: use COAP_PORT 2022-04-14 09:24:35 +02:00
Francisco Molina
7e520b1194 sys/include/net/af: fix doc comment 2022-04-14 09:23:27 +02:00
Francisco Molina
34eb65642c sys/Makefile.dep: cleanup gcoap deps
- GCOAP requires random functions
- openwsn_sock_udp is elected if openwsn stack is used and sock_udp
  as well, so remove redundant dependency
2022-04-14 09:05:08 +02:00
Francisco Molina
14b3659699 sys/net/gnrc: fix alignment 2022-04-14 09:04:44 +02:00
Francisco Molina
180be1d6ee sys/sc_suit: add seq_no command 2022-04-14 08:39:28 +02:00
Francisco Molina
73d71a6dd5 sys/suit/sotarge/ram: on install set seq_no 2022-04-14 08:27:42 +02:00
Francisco Molina
6a1b472a06 sys/suit: save seq_number when parsing manifest 2022-04-14 08:27:30 +02:00
benpicco
32790eb8f2
Merge pull request #17509 from benpicco/nanocoap-rework
sys/net/nanocoap: refactor to remove work-buffer requirement
2022-04-14 01:17:30 +02:00
benpicco
a39a4a3077
Merge pull request #17934 from Enoch247/fix-typos
Fix typos
2022-04-13 23:58:46 +02:00
Benjamin Valentin
d1fe77e6de suit/transport/coap: adapt to new API 2022-04-13 19:33:00 +02:00
Benjamin Valentin
dbbb602522 net/coap: refactor nanocoap_request for zero-copy operation
This removes the need for a user provied work buffer from nanocoap.
Instead we let the user operate directly on network stack internal
memory and provide a callback mechanism to make sure the memory is
properly freed again.
2022-04-13 19:33:00 +02:00
benpicco
3e03fe669a
Merge pull request #17600 from benpicco/gnrc/nib-ra_on_ra
gnrc/nib: only enable RTR_ADV on RA if MULTIHOP_P6C is enabled
2022-04-13 18:44:10 +02:00
Joshua DeWeese
7f8bf30b70 sys/can: fix typo in documentation
The documentation mentions the can module's interaction with the can
tranciver driver (can_trx), but incorrectly calls it trx_can. This patch
fixes the documentation.
2022-04-13 11:48:43 -04:00
81cf5dba53
drivers/lcd: apply offset parameters to ili9341 2022-04-13 12:55:16 +02:00
Peter Kietzmann
5a8654ecab
Merge pull request #17096 from Ollrogge/fido2_follow_up
Fido2 follow up
2022-04-13 12:14:43 +02:00
benpicco
4d400307bf
Merge pull request #17920 from dp1/fix-loramac-argument-type
Fix argument type of lora_time_on_air to avoid errors in C++
2022-04-13 07:03:23 +02:00
Fabian Hüßler
2139b51cb5 gnrc/nib: only enable RTR_ADV on RA if MULTIHOP_P6C is enabled
If multihop distribution is not done using RA messages, then the
routers follow [RFC4861], which states that they merely do some
consistency checks; in this case, nothing in Section 8.1 applies.

 - https://datatracker.ietf.org/doc/html/rfc6775#section-8.1
2022-04-13 00:20:52 +02:00
Benjamin Valentin
21cba5771d nanocoap: constify helper functions 2022-04-12 16:07:32 +02:00
Ollrogge
deeea2b5f2 sys/fido2: documentation changes && code cleanup 2022-04-12 16:01:50 +02:00
Francisco Molina
62904fa611
sys/auto_init/screen: add common lcd auto_init
- use auto_init_screen if disp_dev is used
2022-04-12 12:39:00 +02:00