795b71f7bf
Merge pull request #17480 from aabadie/pr/sys/crypto_aes_cipher_removal
...
sys/crypto: remove deprecated CIPHER_AES_128
2022-01-08 02:18:23 +01:00
844fd52deb
sys/shell: remove deprecated SHELL_NO_{ECHO,PROMPT} defines
2022-01-07 13:23:52 +01:00
19628804ba
sys/asymcute: remove deprecated CONFIG_ASYMCUTE_BUFSIZE_EXP
2022-01-07 11:28:11 +01:00
0e977b89ae
sys/crypto: remove deprecated CIPHER_AES_128
2022-01-07 11:14:10 +01:00
Ollrogge
58764f2e16
usbus/hid: Remove unimplemented function declaration
2022-01-05 21:46:15 +01:00
Marian Buschsieweke
20793fd6c6
sys/atomic_utils: Add load/store for kernel PIDs
...
This will make it easier to change the width of kernel_pid_t if needed
without breaking code.
2022-01-05 15:45:53 +01:00
8d3d012acd
Merge pull request #17248 from benpicco/riotboot_serial-btn
...
riotboot_serial: enter bootloader mode by pin
2022-01-05 14:14:00 +01:00
0056648581
Merge pull request #17418 from aabadie/pr/drivers/periph_build_enh
...
drivers/periph_common: build periph module selectively
2022-01-04 14:59:39 +01:00
74b38ca641
Merge pull request #17446 from gschorcht/sys/std_available
...
sys/stdio: add optional function stdio_available
2022-01-03 18:15:06 +01:00
Gunar Schorcht
a71dec81a2
sys/stdio_base: add optional function stdio_available
...
A couple of `stdio` backend implementations allow to check for the number of available bytes for reading before the blocking `stdio_read` is called. This helps to implement non-blocking functionalities while waiting for `stdin`.
2022-01-03 16:14:11 +01:00
benpicco
74d1582fad
Merge pull request #17407 from kaspar030/time_units
...
sys: factor out US_PER_SEC etc from timex.h into time_units.h
2022-01-03 13:32:53 +01:00
f27cccd0cc
sys/net: fix non matching arguments in doc
2022-01-03 09:52:57 +01:00
c78a67422a
sys/crypto: fix missing documentation
2022-01-03 09:52:28 +01:00
Ollrogge
8ec310b085
usbus/hid: Remove unimplemented function declaration
2021-12-27 21:18:43 +01:00
23ab8431a7
Merge pull request #17412 from jenswet/feature/cpp-doxygen-documentation
...
doc: Improve C++ documentation
2021-12-21 12:32:47 +01:00
79df157727
sys: move rtc utility functions to their own module
2021-12-20 13:04:20 +01:00
chrysn
9e35b75ff4
Merge pull request #17408 from chrysn-pull-requests/ztimer-report-removal
...
sys/ztimer: ztimer_remove report success
2021-12-17 08:57:14 +01:00
chrysn
c703dc6e35
sys/ztimer: Documentation clarification
2021-12-16 15:35:20 +01:00
chrysn
991f74a62a
sys/ztimer: ztimer_remove return its success
...
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2021-12-16 15:35:17 +01:00
Jens Wetterich
a0930a8ec0
doc: Improve C++ documentation
...
Move C++ modules in a new menu tree and improve the description.
2021-12-15 18:58:23 +01:00
a8ade82a95
Merge pull request #17404 from kaspar030/ztimer_clarify_now_comparisons
...
sys/ztimer: ztimer_now() add warning regarding comparing now() values
2021-12-15 15:44:27 +01:00
9c71dd7566
Merge pull request #17342 from aabadie/pr/sysclk
...
sys: introduce sysclk function to retrieve core clock frequency
2021-12-15 15:41:34 +01:00
fd1f257ee8
sys: factor out US_PER_SEC etc from timex.h into time_units.h
2021-12-15 14:33:20 +01:00
ec41c43751
sys: introduce coreclk utility function
2021-12-15 12:41:36 +01:00
32afae0b5f
sys/ztimer: ztimer_now() add warning regarding comparing now() values
2021-12-15 12:34:37 +01:00
Karl Fessel
95767ec9b5
sys/evtimer: deprecate evtimer_now_min
2021-12-14 22:53:01 +01:00
Francisco Molina
dd03d8c362
sys/ztimer: ztimer_set return the now value
2021-12-13 11:21:23 +01:00
zvecr
bf241a117c
usbus: Bind extra USB config
2021-12-10 23:34:59 +00:00
ca74a57870
Merge pull request #17370 from kaspar030/ztimer_best_practices
...
sys/ztimer: add some best practices
2021-12-10 08:47:55 +01:00
b07b11b431
sys/ztimer: add some best practices
2021-12-09 15:53:39 +01:00
Karl Fessel
6347dcdffc
Merge pull request #17141 from kfessel/p-ztimer-gcoap
...
net/gcoap: port to ztimer
2021-12-09 15:22:10 +01:00
d959ce7eea
Merge pull request #16928 from kaspar030/ztimer64
...
sys/ztimer64: initial PR
2021-12-09 10:17:15 +01:00
Karl Fessel
08ef57fbd0
Merge pull request #16126 from kfessel/p-mix-schedrr
...
sys/sched_rr: Add a round robin scheduler module
2021-12-08 16:01:57 +01:00
Benjamin Valentin
64bd80d389
ztimer_periodic: make callback function return bool
...
The callback function of `ztimer_periodic` is only expected to have
two states.
So let it return `true` if the timer should keep repeating, `false`
otherwise.
2021-12-08 00:10:55 +01:00
benpicco
536f7e23c8
Merge pull request #17276 from fjmolinas/pr_event_periodic_count
...
sys/include/event/periodic: add count
2021-12-08 00:09:57 +01:00
439fcbf392
sys/ztimer64: initial implementation
...
Co-authored-by: Francisco Molina <femolina@uc.cl>
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2021-12-07 23:57:56 +01:00
Francisco
97b4dd3a57
Merge pull request #17216 from bergzand/pr/ps_schedstatistics/ztimer
...
schedstatistics: Convert to ztimer
2021-12-07 20:22:58 +01:00
Francisco Molina
7d084a43ff
sys/include/event/periodic: add count
2021-12-07 19:42:32 +01:00
Francisco
07e7a6edce
Merge pull request #17336 from HendrikVE/pr/isrpipe_write
...
sys/isrpipe: add isrpipe_write
2021-12-07 17:10:44 +01:00
4b95459483
schedstatistics: Convert to ztimer
2021-12-07 16:31:15 +01:00
Hendrik van Essen
774e765d59
sys/isrpipe: add isrpipe_write
2021-12-07 13:00:58 +01:00
Francisco
6749b71066
Merge pull request #17337 from HendrikVE/pr/tsrb_init
...
sys/tsrb: add tsrb_clear
2021-12-07 09:20:22 +01:00
Karl Fessel
9195a4f02b
net/gcoap: most ZITMER_USEC to ZTIMER_MSEC
2021-12-06 13:31:18 +01:00
Karl Fessel
2dd0cec4e9
net/gcoap: clean xtimer include from header
2021-12-06 13:31:18 +01:00
Hendrik van Essen
de4b32ef54
sys/tsrb: add tsrb_clear
2021-12-06 11:53:59 +01:00
Marian Buschsieweke
581aa6b70b
sys/net/netif: allow const in netif_iter()
...
For consistency with `gnrc_netif_iter()`, add the `const` qualifier to the
parameter of `netif_iter()`. This allows calling it on `const` pointers without
having to cast `netif_t *`, which (apart of dropping the `const` qualifier)
disables a lot of type safety checks offered by the compiler.
2021-12-03 10:12:33 +01:00
b6cc07009f
Merge pull request #17284 from fjmolinas/pr_ztimer_no_periph_rtt
...
sys/ztimer: add 'ztimer_no_periph_rtt'
2021-12-02 11:02:24 +01:00
Francisco Molina
7c3360e4d6
sys/ztimer: add 'ztimer_no_periph_rtt'
...
This is a temporary fix for Issue #17060 . It allows to disable
auto inclusion of `ztimer_periph_rtt` in cases where another
module or application requires direct access.
Limitations:
- as ifeq are involved order of inclusion matters, therefore
these modules should be included early in the build at application
level and not in modules `Makefile.dep`
- this does not disallow direct inclusions of `ztimer_periph_rtt`,
since this only disables auto inclusion of these modules
This is a temporary solution since this is already possible with
Kconfig, but not in make.
2021-12-02 07:54:38 +01:00
Martine Lenders
2cf0fca4e2
Merge pull request #17157 from maribu/sys/net/gnrc
...
sys/net/gnrc: fix compilation with -Wcast-align
2021-12-01 09:49:21 +01:00
Marian Buschsieweke
50be359a96
sys/net/gnrc: fix compilation with -Wcast-align
...
Also ensure that the alignment requirement is indeed matched.
2021-11-30 11:20:17 +01:00
Francisco Molina
92a003fcdc
sys/include/xtimer.h: deprecate nanosleep
2021-11-30 10:31:22 +01:00
Francisco Molina
857f3c3c51
sys/tsrb: add peek functions
2021-11-24 17:54:44 +01:00
Marian Buschsieweke
78ded2dd08
sys/atomic_utils: add atomic_{load,store}_ptr()
2021-11-23 14:23:50 +01:00
62772ab3f9
sys/fmt: add some documentation about out
2021-11-22 14:11:02 +01:00
61c62c2ed6
sys/fmt: make fmt_s32_dfp() string based
2021-11-22 14:11:01 +01:00
Benjamin Valentin
e6a06501b8
sys/riotboot: serial: add bootloader LED
2021-11-21 23:09:24 +01:00
Benjamin Valentin
e17cce41b4
bootloaders/riotboot_dfu: move bootloader_selection.h to common place
2021-11-21 23:08:31 +01:00
Karl Fessel
eb11e463df
sys/ztimer: make internal head update static
2021-11-18 13:45:49 +01:00
Francisco Molina
81c5d5dbcc
sys/event/timeout: split xtimer, ztimer backends, don't force usec
...
This PR makes `event_timeout` and `event_timeout_ztimer` two distinct
pseudomodules, where the only api difference is in the init function.
If only `event_timeout_ztimer` is selected then no default ZTIMER
backend is selected and the old init function is not implemented.
If only `event_timeout` is selected then `xtimer` is used unless
`ztimer_usec` is included. In which case the `xtimer` wrapper on top
of `ztimer` is used and `xtimer` is not directly selected. This
allows for the legacy api to be supported with `ztimer_usec` as
a drop-in replacement.
If `event_timeout` and `event_timeut_ztimer` are selected then
`event_timeout` SRC file is excluded from compilation.
2021-11-17 10:15:11 +01:00
587d25a38e
USBUS/hid: Adapt to xmit API
2021-11-16 20:17:05 +01:00
5455c40c7a
USBUS/cdc_ecm: Adapt to xmit API
2021-11-16 20:17:04 +01:00
1a0bc3d8bc
USBUS/cdc_acm: Adapt to xmit API
2021-11-16 20:17:04 +01:00
7d9a177f25
USBUS: Adapt to xmit API
...
Converts the control endpoint to xmit API
2021-11-16 20:17:04 +01:00
59e85cf921
usbdev: Refactor to xmit API
...
This API change refactors the usbdev API to supply buffers via the
usbdev_ep_xmit function. This changes from the usbdev_ep_ready call to allow
separate buffers per call. An usbdev_ep_buf_t pseudotype is available and must
be used when defining buffers used for endpoints to adhere to the DMA alignment
restrictions often required with usb peripherals.
Main advantage is that the usbdev peripherals no longer have to allocate
oversized buffers for the endpoint data, potentially saving multiple KiB
of unused buffer space. These allocations are now the responsibility of
the individual USB interfaces in the firmware
2021-11-16 11:21:00 +01:00
8c2f0dd2af
sys/benchmark: Convert to ztimer
2021-11-15 14:14:23 +01:00
Karl Fessel
8c3aad1c25
sys/sched_round_robin: Add a round robin scheduler module
2021-11-11 13:18:52 +01:00
Marian Buschsieweke
7b06e665ee
sys/architecture: add HAS_ALIGNMENT_OF() helper
2021-11-11 10:57:26 +01:00
Marian Buschsieweke
2e6eca1918
sys/net/dns: mark dns_hdr_t as packed
...
This structure is used to parse data from unaligned buffers, so make
sure the compiler issues instructions suitable for unaligned memory
access.
2021-11-06 20:16:56 +01:00
df39337ebf
usbopt: resolve vera++ issues
2021-11-04 13:49:34 +01:00
benpicco
47029055a6
Merge pull request #8954 from zhuoshuguo/gnrc_gomach/adapt_duty_recode_para_name
...
gnrc_gomach: adapt duty recording parameters' namings.
2021-11-03 12:56:39 +01:00
Jens Wetterich
14f90f3c5e
pkg/fff: Add fake functions framework package
2021-11-02 18:01:21 +01:00
Benjamin Valentin
358aa11d48
ztimer/xtimer_compat: implement trivial functions
...
xtimer_ticks64_t / xtimer_ticks32_t is no longer a struct, so these are
even more trivial than on xtimer.
2021-10-29 00:45:01 +02:00
chrysn
a92cdb535e
Merge pull request #16378 from chrysn-pull-requests/gcoap-handle-truncation
...
sys/net/gcoap: Use socket _buf API to recognize truncated requests
2021-10-27 08:55:52 +02:00
0ce6bfc1a2
usbus: Deprecate USBUS_HANDLER_FLAG_TR_FAIL event
2021-10-24 19:33:29 +02:00
Martine Lenders
44927b493f
Merge pull request #16967 from miri64/dsm/enh/peer-sync
...
dsm: rename DTLS_PEER_MAX and make it dependent on CONFIG_DTLS_PEER_MAX
2021-10-18 16:27:26 +02:00
benpicco
f8c8abf75d
Merge branch 'master' into gnrc_gomach/adapt_duty_recode_para_name
2021-10-13 17:36:21 +02:00
Martine Lenders
65ff161b3a
dsm: make CONFIG_DSM_PEER_MAX depend on CONFIG_DTLS_PEER_MAX
2021-10-08 12:15:53 +02:00
Martine Lenders
945b05886b
dsm: rename DTLS_PEER_MAX to CONFIG_DSM_PEER_MAX
...
To make avoid confusion with tinydtls's `DTLS_PEER_MAX` and
`CONFIG_DTLS_PEER_MAX`
2021-10-08 12:15:16 +02:00
Martine Lenders
a2cd5ed903
dtls: set CONFIG_DTLS_PEER_MAX in dtls.h header
2021-10-08 12:10:28 +02:00
Jose Alamos
d7f4d5b0bd
ieee802154/submac: avoid race condition between RX_DONE and ACK_TIMEOUT
2021-10-07 14:34:34 +02:00
Martine Lenders
e804a738de
Merge pull request #16947 from miri64/gnrc_ipv6_nib/fix/queue-pkts-on-6lbr
...
gnrc_ipv6_nib: queue packets that trigger probing on border router
2021-10-05 14:01:17 +02:00
Martine Lenders
96eb2c5050
Merge pull request #16731 from JKRhb/dhcp-stateless
...
sys/net/dhcpv6: Add stateless DHCPv6
2021-10-05 10:13:22 +02:00
Jan Romann
c62d6eb834
sys/net/dhcpv6: Implement stateless DHCPv6
2021-10-04 17:40:56 +02:00
Martine Lenders
b8691842fb
gnrc_ipv6_nib: queue packets that trigger probing on border router
2021-10-04 17:25:36 +02:00
benpicco
b1af25d4c6
Merge pull request #16743 from benpicco/net/sock/tcp-doc_fix
...
sock: tcp: fix sock_tcp_read() example
2021-09-22 20:58:49 +02:00
Leandro Lanzieri
9980aa35b3
sys/net/credman: add key loading functions
...
This allows to load private and public keys encoded in DER format.
2021-09-20 08:10:59 +02:00
chrysn
b6dee72161
Merge pull request #16869 from chrysn-pull-requests/802154_submac-docs-syntax
...
ieee802154_submac doc: Make readable in doxygen builds
2021-09-19 11:11:22 +02:00
chrysn
eaf6219af3
ieee802154_submac doc: Make readable in doxygen builds
2021-09-18 21:32:26 +02:00
benpicco
ea80df1780
Merge pull request #16824 from benpicco/gnrc_netif_ipv6_wait_for_prefix
...
gnrc/netif: add gnrc_netif_ipv6_wait_for_global_address()
2021-09-17 14:32:53 +02:00
Martine Lenders
75c9aaceb4
Merge pull request #15946 from jia200x/pr/gnrc_lorawan_redundancy
...
net/gnrc_lorawan: implement unconfirmed uplink redundancy
2021-09-17 13:38:10 +02:00
Benjamin Valentin
9c783ac7c4
gnrc/netif: accept const addr in gnrc_netif_ipv6_addr_add/remove()
2021-09-17 13:00:15 +02:00
Benjamin Valentin
4bd53e70fa
gnrc/netif: add gnrc_netif_ipv6_wait_for_global_address()
...
This adds a function to wait until a global address becomes available.
2021-09-17 13:00:14 +02:00
Martine Lenders
913573a200
Merge pull request #16702 from miri64/ut_process/feat/initial
...
ut_process: initial import of a URI template processor
2021-09-17 09:43:20 +02:00
Martine Lenders
7c60f6031c
ut_process: initial import of a URI template processor
2021-09-16 18:18:48 +02:00
Jean Pierre Dudey
cd728e08c6
Merge pull request #16764 from brummer-simon/gnrc_tcp-experimental_dynamic_MSL
...
gnrc_tcp: experimental feature "dynamic msl"
2021-09-13 10:36:54 +02:00
chrysn
5710d5ff34
net/ieee802154_security doc: Shape security expectations
2021-09-12 20:20:00 +02:00
Sören Tempel
71f933312d
ipv6: fix typo in ipv6_addr_to_str documentation
...
It doesn't make any sense that `result_len` should specify the length of
`result_len`. Instead, `result_len` should specify the length of the
`result` parameter.
2021-09-09 03:56:39 +02:00
Peter Kietzmann
b98fa6d9d0
Merge pull request #16489 from Ollrogge/fido2_pr
...
FIDO2 support in RIOT
2021-09-08 21:14:52 +02:00
Ollrogge
e127a4d865
FIDO2 support in RIOT
2021-09-08 15:22:40 +02:00
Benjamin Valentin
9a6fc85b16
treewide: replace gnrc_netdev_default with netdev_default
2021-09-06 15:43:40 +02:00
chrysn
7381fb638a
Merge pull request #16113 from chrysn-pull-requests/cord-extraargs
...
sys/net/app/cord: Support the addition of extra registration arguments
2021-09-04 16:43:16 +02:00
Simon Brummer
1870e8a3ce
gnrc_tcp: experimental feature "dynamic msl"
2021-09-04 07:37:53 +02:00
benpicco
c98c488559
Merge pull request #16746 from jia200x/pr/hal/fb_lock
...
ieee802154/submac: reimplement using FSM
2021-09-03 18:13:58 +02:00
Jose Alamos
8f97f73453
ieee802154/submac: reimplement using FSM
2021-09-03 15:00:47 +02:00
Jose Alamos
3c1909b443
ieee802154/radio: update FB Lock handle
2021-09-03 11:00:45 +02:00
Jose Alamos
56a8fece01
ieee802154/radio: add IEEE802154_CAP_RX_CONTINUOUS
2021-09-03 11:00:45 +02:00
Benjamin Valentin
73b929b3b9
test_utils: add UDP benchmark
2021-09-02 23:12:31 +02:00
chrysn
2e70f29d4f
sys/net/gcoap: Use socket _buf API to recognize truncated requests
...
Closes: https://github.com/RIOT-OS/RIOT/issues/14167
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2021-09-02 16:49:46 +02:00
chrysn
0ff56f284d
sys/net/app/cord: Support the addition of extra registration arguments
2021-09-02 16:40:19 +02:00
benpicco
0b69747389
Merge pull request #16023 from maribu/max_pdu_size
...
sys/net/netopt: Drop deprecated NETOPT_MAX_PACKET_SIZE
2021-08-26 14:40:18 +02:00
Hauke Petersen
f5f28347c2
net/gnrc/rpl: add hooks for nimble_rpble
2021-08-24 11:33:13 +02:00
Erik Ekman
2816ade5f8
pkg/lwip: Start rework of netif initialisation
...
Use separate files with auto_init
Proof of concept with only moving netdev_tap
2021-08-20 14:56:46 +02:00
Jose Alamos
ddc9c7c686
ieee802154/radio_hal: detach hal descriptor from driver
2021-08-18 15:24:10 +02:00
Benjamin Valentin
c3849ed9f9
sock: tcp: fix sock_tcp_read() example
...
sock_tcp_read() will return 0 if the connection was closed, we
need to check for this.
2021-08-16 12:55:12 +02:00
Simon Brummer
6fba0d970c
gnrc_sock_tcp: integrate gnrc_tcp
2021-08-14 21:27:34 +02:00
Simon Brummer
11d73fbf30
gnrc_tcp: handle zero size buffers
2021-08-14 17:04:57 +02:00
benpicco
84413a3e6e
Merge pull request #16735 from brummer-simon/gnrc_tcp-add_GNRC_TCP_NO_TIMEOUT
...
gnrc_tcp: Add GNRC_TCP_NO_TIMEOUT
2021-08-14 17:00:11 +02:00
Simon Brummer
6b24601ee9
gnrc_tcp: Add GNRC_TCP_NO_TIMEOUT
2021-08-14 15:28:14 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
Martine Lenders
febb07c64e
Merge pull request #16704 from fjmolinas/pr_block_finish_return_more
...
sys/net/nanocoap: block_finish returns if more are expected
2021-08-12 19:16:46 +02:00
Jan Romann
ad0096cde6
sys/net/dhcpv6: Refactor IA_NA implementation
2021-08-11 22:19:59 +02:00
Martine Lenders
f2f6700865
Merge pull request #16228 from JKRhb/dhcp-ia-na
...
sys/net/dhcpv6: Add IA_NA support to the DHCPv6 client
2021-08-11 20:50:01 +02:00
Jan Romann
234a71870a
sys/net/dhcpv6: Add IA_NA implementation
2021-08-11 19:15:35 +02:00
Martine Lenders
2d7c613948
tests/gnrc_dhcpv6_relay: initial import
2021-08-11 14:30:37 +02:00
Martine Lenders
4afc65688f
dhcpv6_relay: initial import of a lightweight DHCPv6 relay agent
2021-08-11 13:19:06 +02:00
Martine Lenders
6da2f0fab3
Merge pull request #16669 from miri64/sock_dns/enh/factor-out-msg-parsing
...
sock_dns: factor out message parsing and composition
2021-08-11 12:43:26 +02:00
Martine Lenders
7920ab2b95
dns_msg: make parsing input buffer const
2021-08-11 11:55:29 +02:00
Martine Lenders
e8cbc6da85
dns: move message parsing and composition to own module
2021-08-11 11:55:29 +02:00
benpicco
7991e71384
Merge pull request #16721 from benpicco/sock/tcp-fix_doc
...
sock: tcp: fix Echo Server example
2021-08-10 14:41:42 +02:00
Benjamin Valentin
091e013ff0
sock: tcp: fix Echo Server example
...
The example has two errors:
- `sock_tcp_accept()` expects a timeout parameter
- `sock_tcp_stop_listen()` expects a pointer
with these fixed, the example actually compiles.
2021-08-10 13:45:56 +02:00
Martine Lenders
6e0c8db99f
Merge pull request #16706 from miri64/gnrc_ipv6_nib/enh/offset-time-functions
...
gnrc_ipv6_nib: provide functions to get offset of public timestamps
2021-08-08 02:28:12 +02:00
Martine Lenders
c33e40cce1
gnrc_ipv6_nib: provide functions to get offset of public timestamps
2021-08-07 14:04:44 +02:00
Francisco Molina
9195f772ad
sys/net/nanocoap: block_finish returns if more are expected
2021-08-06 09:29:03 +02:00
benpicco
81df6d6fcb
Merge pull request #16712 from miri64/gcoap+nanocoap/enh/buffer-path
...
nanocoap & gcoap: allow path to be non-`\0`-terminated.
2021-08-05 17:25:41 +02:00
Martine Lenders
17b9c5adbb
Merge pull request #16707 from benpicco/sys/uri_parser-constify
...
uri_parser: constify result
2021-08-05 15:55:45 +02:00
Martine Lenders
5d59065b09
gcoap: provide buffer version of gcoap_req_init()
...
This simplifies the usage of `gcoap` with modules such as `uri_parser`
greatly.
2021-08-05 13:31:07 +02:00
Martine Lenders
adce90343c
nanocoap: provide buffer version of coap_opt_add_uri_path()
...
This simplifies the usage of `nanocoap` with modules such as
`uri_parser` greatly.
2021-08-05 11:25:13 +02:00
Martine Lenders
1b0152bd73
Merge pull request #16709 from leandrolanzieri/pr/net/netif_get_by_name_buf
...
net/netif: add function to get interface by name from a buffer
2021-08-04 19:37:55 +02:00
Leandro Lanzieri
d8cf157b26
sys/net/netif: add netif_get_by_name_buffer function
2021-08-04 18:12:56 +02:00
Peter Kietzmann
e1a8280e2b
Merge pull request #16689 from Ollrogge/usb_hid_pr2
...
usbus/hid_io: add missing header file, add RX callback function
2021-08-04 15:56:33 +02:00
Ollrogge
2c2eb88c0e
usbus/hid: uncrustify files
2021-08-04 14:54:33 +02:00
Ollrogge
834ac3f5a5
usbus/hid_io: add missing header file, add RX callback function
2021-08-04 14:54:33 +02:00
Benjamin Valentin
b068d9245d
uri_parser: constify result
...
`uri_parser_process()` takes a `const char *` as input parameter but
the result is a struct of `char *` to the original string.
This may lead a user to modifying the strings in `uri_parser_result_t`
which will cause a crash if the original string resides in read-only
memory (and violates the no-modifications promise of the const parameter
in `uri_parser_process()`).
To fix this, make the resulting strings `const` as well, so nobody dares
to touch them in a writing way.
2021-08-04 14:01:28 +02:00
Martine Lenders
af03ba4aa8
uri_parser: provide function to split query
2021-08-04 12:47:28 +02:00
Martine Lenders
8492bd7b12
Merge pull request #16568 from benpicco/gnrc_ipv6_nib-rio
...
gnrc_ipv6_nib: handle route information option and add config to add to final RAs
2021-08-03 15:44:01 +02:00
Benjamin Valentin
71ae768e56
net/gnrc/ipv6/nib: add option to include RIO with final RA
...
Sending a RA with ltime = 0 does not get us added to the default router
list, but the options (and therefore the RIO) are still parsed.
This even appears to work with Linux as a receiver.
2021-08-02 21:44:55 +02:00
Martine Lenders
6b5a1818f1
Merge pull request #16672 from benpicco/gnrc_util_conf_prefix
...
gnrc_netif: add gnrc_netif_ipv6_add_prefix() & helper functions
2021-07-29 18:01:26 +02:00
Benjamin Valentin
d99972791a
gnrc/rpl: add gnrc_rpl_configure_root() convenience function
2021-07-29 16:04:28 +02:00
Benjamin Valentin
3dad587307
gnrc/rpl: allow const dodag ID
2021-07-29 16:04:28 +02:00
Benjamin Valentin
b90c6ed373
gnrc_netif: add gnrc_netif_ipv6_add_prefix()
2021-07-29 16:04:28 +02:00
Martine Lenders
4b7ef70e66
gcoap: fix socket type naming
...
The `coap_socket_t` and `coap_socket_type_t` types are used by gCoAP
only and the `coap_` prefix is usually used to namespace the `nanocoap`
module's API. This makes it confusing to locate the types in question.
Signed-off-by: Martine Lenders <m.lenders@fu-berlin.de>
2021-07-27 22:37:04 +02:00
Martine Lenders
0f1e0b6798
Merge pull request #16676 from miri64/nanocoap/enh/opt_accept
...
nanocoap: provide Accept option convenience function
2021-07-23 18:21:22 +02:00
Martine Lenders
3cff67ce13
nanocoap: provide Accept option convenience function
2021-07-23 15:25:41 +02:00
Martine Lenders
b5d9f78cbd
dhcpv6_client: port timeout mechanism to event_timeout
2021-07-21 16:28:39 +02:00
Martine Lenders
02c0581ab9
timex: introduce MS_PER_CS
2021-07-21 16:27:53 +02:00
benpicco
c4bc40f03b
Merge pull request #16658 from miri64/dhcpv6_client/enh/optional-ia_pd
...
dhcpv6_client: make IA_PD an optional module
2021-07-21 14:36:34 +02:00
Martine Lenders
bf99bcc8d2
event/timeout.h: fix typos in doc
2021-07-21 12:25:05 +02:00
Martine Lenders
38d14b6335
dhcpv6_client: make IA_PD an optional module
...
Prefix delegation used to be the only supported feature of our DHCPv6
client, but by now it also supports MUD, DNS recursive name servers and
IA_NA is on the horizon. So it makes sense to make IA_PD an optional
module like all those other features are as well.
2021-07-21 11:37:29 +02:00
benpicco
4f905bfa8c
Merge pull request #15493 from benpicco/riotboot-serial
...
riotboot: implement serial flasher
2021-07-21 11:01:31 +02:00
Martine Lenders
7793098ed8
Merge pull request #16634 from benpicco/gnrc_netif_parse_hostname
...
netutils: add netutils_parse_hostname()
2021-07-21 10:11:25 +02:00
Jose Alamos
df97f348e2
net/gnrc_lorawan: implement uplink redundancy
...
This commit implements uplink redundancy in GNRC LoRaWAN. Uplink
redundancy is used to retransmit unconfirmed uplink frames. The
retransmission stops when either a downlink message is received or the
number of uplink retransmissions is reached.
This functionality doesn't affect confirmed uplinks.
2021-07-21 03:51:47 +02:00
Jose Alamos
02151deae4
net/loramac: add redundancy configuration parameter
2021-07-21 03:51:46 +02:00
Jose Alamos
0e41f9e557
net/loramac: fix typo
2021-07-21 03:51:46 +02:00
Benjamin Valentin
cabe639d04
sys/riotboot: move magic address to common file
2021-07-20 22:51:15 +02:00
Benjamin Valentin
7a07b7471f
riotboot: implement serial bootloader feature
2021-07-20 22:50:41 +02:00
Benjamin Valentin
3081eeb556
netutils: add netutils_get_ipv6()
2021-07-20 22:44:39 +02:00
Martine Lenders
70f3723fab
Merge pull request #16659 from miri64/gnrc_dhcpv6_client_mud_url/cleanup/rename
...
gnrc_dhcpv6_client_mud_url: rename to dhcpv6_client_mud_url
2021-07-20 17:22:17 +02:00
Martine Lenders
d9be29318d
gnrc_dhcpv6_client_mud_url: rename to dhcpv6_client_mud_url
...
There is no real reason for that pseudo-module to use the `gnrc_`
prefix. Neither does it need GNRC-components (except, but optionally, as
a network stack of course), nor is it implemented with in the GNRC
network stack.
2021-07-20 15:30:34 +02:00
Martine Lenders
a0b9eb064c
gnrc_dhcpv6_client_simple_pd: fix old doc and names
2021-07-20 14:42:07 +02:00
Leandro Lanzieri
9ca9efd15b
Merge pull request #16640 from jia200x/pr/revert/rx_symbol
...
net/lorawan: Revert #16604 and fix NETOPT_RX_SYMBOL_TIMEOUT documentation
2021-07-14 16:42:38 +02:00
Jose Alamos
986fe58704
netopt: fix NETOPT_RX_SYMBOL_TIMEOUT documentation
2021-07-14 14:11:14 +02:00
Simon Brummer
873d1fe378
gnrc_tcp: align with sock_tcp
2021-07-13 20:32:14 +02:00
Jose Alamos
b483d1f809
netdev_test: avoid explicit cast to netdev
2021-07-09 11:35:19 +02:00
Jose Alamos
650be4fdaf
netdev_test: inherit from netdev_ieee802154_t
2021-07-09 10:08:45 +02:00
Francisco
79ee4fd489
Merge pull request #16459 from brummer-simon/gnrc_tcp-rewrite_passive_open
...
gnrc_tcp: rewrite passive open
2021-07-08 12:08:52 +02:00
cb9a1fcc8e
suit/storage/ram: Make prefix and separator configurable
2021-07-08 10:22:14 +02:00
Simon Brummer
88a0273434
gnrc_tcp: add listen/accept
2021-07-08 09:40:02 +02:00
János Brodbeck
23a8659bdf
net/gcoap: support DTLS
2021-07-07 14:45:30 +02:00
János Brodbeck
5567f13258
net/dtls/dsm: add DTLS session management module
2021-07-07 14:45:28 +02:00
Martine Lenders
b034ccaaa3
Merge pull request #16422 from janosbrodbeck/pr/tinydtls/reset_session
...
pkg/tinydtls: handling of close_notify
2021-07-06 00:25:20 +02:00
János Brodbeck
c016b843d6
pkg/tinydtls: destroy session after sending close notification
2021-07-05 23:45:20 +02:00
031d8b75bd
netstats: add missing cib.h include
2021-07-05 10:32:50 +02:00
Martine Lenders
c5a1012695
Merge pull request #16596 from JKRhb/aac-flags
...
sys/net/gnrc/netif: Make aac_mode a flag field
2021-06-30 13:29:44 +02:00
Jan Romann
672a86d58e
sys/net/gnrc/netif: Make aac_mode a flag field
2021-06-29 19:06:22 +02:00
Kevin "Tristate Tom" Weiss
25c871ed9a
Merge pull request #16576 from jia200x/pr/netdev/migrate_dst_filter
...
ieee802154: migrate `netdev_ieee802154_dst_filter` to a common ieee802154
2021-06-29 10:50:08 +02:00
Kevin "Tristate Tom" Weiss
d9973d4bf8
Merge pull request #16586 from jia200x/pr/fix_gnrc_lorawan_psdu_null
...
gnrc_lorawan: fix undefined state when PSDU is NULL
2021-06-25 13:42:39 +02:00
Martine Lenders
4deb15cb6f
dhcpv6_client: add DNS recursive name server option handling
...
Signed-off-by: Martine Lenders <m.lenders@fu-berlin.de>
2021-06-24 16:01:59 +02:00
Jose Alamos
a90e5e6fc4
gnrc_lorawan: update gnrc_lorawan_radio_rx_done function
2021-06-24 15:56:23 +02:00
Jose Alamos
71ddd3bd61
gnrc_lorawan: fix undefined state when PSDU is NULL
2021-06-24 15:51:04 +02:00
Jose Alamos
8f2be7b486
ieee802154: add ieee802154_dst_filter
2021-06-23 16:44:07 +02:00
Benjamin Valentin
9fbab8f0f8
drivers/slipdev: report NETOPT_ADDRESS to simulate l2 address
...
A lot of things break if `GNRC_NETIF_FLAGS_HAS_L2ADDR` is not set.
In order to handle router advertisements and auto-configureation,
generate a faux l2 address based on the netdev ID.
2021-06-21 12:42:03 +02:00
Benjamin Valentin
68afd9d900
gnrc_ndp: add route information option
2021-06-18 00:13:08 +02:00
Martine Lenders
7cad799afe
Merge pull request #15468 from jia200x/pr/rh/rev.13.11
...
ieee802154/hal: adapt frame filter and source address matching changes
2021-06-17 16:18:57 +02:00
Leandro Lanzieri
ae81b808a1
Merge pull request #16080 from jia200x/pr/gnrc_lorawan_netif
...
gnrc_lorawan: encode LoRaWAN port in netif header
2021-06-17 11:30:09 +02:00
Jose Alamos
7d14fb3571
ieee802154/hal: remove set_rx_mode
2021-06-17 10:07:43 +02:00
Jose Alamos
6d64b537ef
ieee802154/hal: remove set_hw_addr_filter
2021-06-17 10:07:43 +02:00
Francisco
a20790b0ef
Merge pull request #16530 from benpicco/gnrc_dhcpv6_client_6lbr-generic
...
gnrc_dhcpv6_client_6lbr: choose downstream if as !upstream
2021-06-17 08:37:30 +02:00
Francisco
629cecb625
Merge pull request #14558 from jia200x/pr/gnrc_lorawan_rtt_support
...
gnrc_lorawan: add support for RTT (ztimer)
2021-06-17 08:34:59 +02:00
Hauke Petersen
7c6b72d3b4
net/gnrc/rpl: use ztimer_msec if available
2021-06-16 20:39:32 +02:00
Jose Alamos
9dce6eba14
ieee802154: add Auto ACK compile time config
2021-06-16 14:19:39 +02:00
Jose Alamos
70815e012b
ieee802154/hal: add set config addr filter
2021-06-16 14:19:39 +02:00
Jose Alamos
eb7282db0a
ieee802154/hal: add set frame filter
2021-06-16 14:19:38 +02:00
Jose Alamos
e13aac3909
ieee802154/hal: add config src address match
2021-06-16 14:19:38 +02:00
Jose Alamos
7343c1c503
gnrc_netif_lorawan: add netif hdr support
2021-06-16 13:18:04 +02:00
Jose Alamos
dfacff9568
gnrc_lorawan: add support for RTT
2021-06-16 13:13:37 +02:00
Jose Alamos
2f680eaf01
gnrc_lorawan: remove xtimer and msg dependency
...
This commit removes the dependency to xtimer and RIOT messages.
This step is required to use other sources of events (e.g event_queue)
and timers (RTT)
2021-06-16 13:03:28 +02:00
Jose Alamos
7fd0364d59
net/netopt: deprecate NETOPT_LORAWAN_TX_PORT
2021-06-15 16:25:03 +02:00
benpicco
c7d12733ea
Merge pull request #16523 from benpicco/boards/same54-xpro-lock_eui
...
boards: lock EUI provider to interface type
2021-06-15 16:16:12 +02:00
Benjamin Valentin
056dcd8ae1
gnrc_dhcpv6_client_6lbr: choose downstream if as !upstream
2021-06-15 15:35:10 +02:00
Leandro Lanzieri
fee045d3e9
Merge pull request #16515 from fabian18/ieee802154_security_kconfig
...
Kconfig: expose IEEE 802.15.4 Security to Kconfig
2021-06-15 11:21:41 +02:00
Hauke Petersen
c5d1a34b83
sys/trickle: migrate to ZTIMER_MSEC
2021-06-14 09:04:25 +02:00
Benjamin Valentin
118e08607a
net/eui_provider: prohibit use of NETDEV_ANY for EUI device type
...
The EUI provider function only gets the index of a device within it's
device type.
Using NETDEV_ANY with two devices of different type causes the EUI
provider to be used for both (since both interfaces are index 0 of
their type).
To prevent this, require EUI providers to be locked to an interface type.
2021-06-08 14:30:40 +02:00
cfb10db9b7
Merge pull request #16507 from fjmolinas/pr_event_timeout_periodic
...
sys/event: add periodic timeout event
2021-06-08 13:07:40 +02:00
János Brodbeck
2e523bf101
net/gcoap: change return type from gcoap_req_send() to ssize_t
2021-06-04 17:15:04 +02:00
Francisco Molina
b0396eec5a
sys/include/event/timeout: add missing DOXYGEN
...
Fix styling
2021-06-03 17:54:26 +02:00
Francisco Molina
4ddbac3be3
sys/event: add periodic event
2021-06-03 17:53:44 +02:00
benpicco
3ad85a380c
Merge pull request #16522 from benpicco/bit_check
...
sys/bit: add bit_checkXX() functions
2021-06-03 13:07:21 +02:00
Fabian Hüßler
93759a747b
ieee802154_security: adapt to Kconfig
2021-06-03 08:38:25 +02:00
Benjamin Valentin
3dd5f5c789
sys/bit: add bit_checkXX() functions
2021-06-02 14:07:17 +02:00
fde0bb7819
Merge pull request #16505 from fjmolinas/pr_event_timeout_ztimer
...
sys/event/timeout: add option to use ztimer as backend
2021-06-01 12:19:39 +02:00
Francisco Molina
4f34e50130
sys/event/timeout: add option to use ztimer as backend
2021-05-27 22:34:01 +02:00
ca60cc9f66
Merge pull request #16363 from haukepetersen/add_byteorder_letofrombuf
...
sys/byteorder: add little endian to/from buf functions
2021-05-21 13:35:42 +02:00
Leandro Lanzieri
d36628d37e
Merge pull request #16183 from Ollrogge/aes_pr
...
sys/crypto: Enable support for AES-192, AES-256
2021-05-05 09:19:12 +02:00
Mumpfie
185570b034
gnrc tx-sync: add cast for c++ compatibility
2021-05-04 16:59:56 +02:00
Francisco
3cb3b5ab85
Merge pull request #16133 from miri64/congure_mock/enh/real-methods
...
congure_mock: add capability to provide actual methods
2021-05-04 11:06:35 +02:00
Ollrogge
b1a2d4787d
sys/crypto: Remove leftover code related to deprecated 3DES block cipher
2021-05-03 17:34:53 +02:00
Ollrogge
427d2bd06e
sys/crypto: Enable support for AES-192, AES-256
2021-05-03 17:34:49 +02:00
Fabian Hüßler
346f92f663
sys/net/link_layer/ieee802154: stricter names for security types
...
stricter prefixing of security related types and constants with
"ieee802154_sec_"
2021-04-27 08:54:19 +02:00
Fabian Hüßler
7036c2b9ee
sys/net/link_layer/ieee802154: fix small typos
2021-04-27 08:54:19 +02:00
Hauke Petersen
9f19152c5c
sys/byteorder: add little endian to/from buf funcs
2021-04-21 11:48:38 +02:00
Hauke Petersen
b339e91e18
sys/sema: allow to use ztimer and/or xtimer
2021-04-12 13:08:39 +02:00
Leandro Lanzieri
e7732d9a00
Merge pull request #16217 from fjmolinas/pr_driver_sm_pwm_01c
...
drivers/sm_pwm_01c: initial import
2021-04-08 09:04:38 +02:00
Francisco Molina
424192fbe7
sys/progress_bar: add Konfig configuration
2021-04-07 12:05:00 +02:00
Karl Fessel
951fa14d70
sys/ztimer: rename required_pm_mode to block_pm_mode
2021-04-06 16:57:53 +02:00
Peter Kietzmann
c8cb79c3cf
Merge pull request #16253 from Ollrogge/ciphers_PR
...
crypto/ciphers: remove unneeded max_key_size in cipher_interface_st
2021-04-06 11:18:30 +02:00
Peter Kietzmann
f3482071e1
Merge pull request #16179 from leandrolanzieri/dev/net/sock/dtls_multi_cred
...
net/sock/dtls: allow using multiple credentials
2021-04-06 10:04:45 +02:00
Ollrogge
650e69038c
crypto/ciphers: remove unneeded max_key_size in cipher_interface_st
2021-04-02 10:50:58 +02:00
Francisco
9d1d2f9e21
Merge pull request #16172 from kfessel/p-zimer-sec
...
sys/ztimer: add ZTIMER_SEC, improve auto_init
2021-04-02 08:32:38 +02:00
Karl Fessel
c9e17196de
sys/ztimer: enhance periph selection documentation
...
provide more information about the selection procedure to Doxygen
2021-04-01 18:19:15 +02:00
Karl Fessel
aa770fdd8c
ztimer/auto_init: restructure for flexibitily, pm for ZTIMER_SEC
...
MSEC and SEC are now usable on TIMER(0) without having USEC
pm is configured by used hardware
OLD configuration values are translated for backward compatibility
prefer rtt for ZTIMER_SEC
avoid doing partial ztimer setup if auto_init_ztimer is disabled
before this patch some const pointers might have been definend to values
that a user who disables auto_init for ztimer does not like.
2021-04-01 18:19:01 +02:00
Leandro Lanzieri
6428505017
net/sock/dtls: allow CREDMAN_TAG_EMPTY on sock creation
2021-04-01 09:47:39 +02:00
Leandro Lanzieri
95fd4f947a
net/sock/dtls: add documentation on multi-credential
2021-04-01 09:47:37 +02:00
Leandro Lanzieri
8b57b87258
net/sock/dtls: add RPK callback for credential selection
2021-04-01 09:47:37 +02:00
Leandro Lanzieri
81892ee389
net/sock/dtls: add client PSK callback for credential selection
2021-04-01 09:47:37 +02:00
Leandro Lanzieri
62fb9ad69f
net/sock/dtls: allow to register multiple credentials into a sock
2021-04-01 09:47:36 +02:00
Leandro Lanzieri
d7440ce1e3
net/sock/dtls: allow to set PSK Identity hint
2021-04-01 09:47:36 +02:00
Hauke Petersen
91859fc261
sys/event: add event_wait_timeout_ztimer()
2021-03-31 10:11:29 +02:00
Francisco
c9f8836a9f
Merge pull request #16227 from rgrunbla/fix-doc-random
...
sys/include/random: generate documentation for random double generation
2021-03-30 15:54:25 +02:00
Jnae
b1aaa974bd
sys/ztimer: add periph_ptp backend
2021-03-28 15:50:19 +02:00
Rémy Grünblatt
3e8dacde41
sys/include/random: generate documentation for random double generation
2021-03-24 14:34:19 +01:00
Marian Buschsieweke
d86df5b217
sys/net/netopt: make NETOPT_TX_END_IRQ and friends read-only
...
Reasoning:
- Many drivers already just generate these events regardless of configuration.
This will make behavior more consistent
- Run time configuration increases ROM, complexity and maintaining
effort
- At least NETOPT_TX_END_IRQ is now de facto mandatory, as the new
netdev driver API requires NETDEV_EVENT_TX_COMPLETE to always be
generated.
2021-03-22 08:14:27 +01:00
Leandro Lanzieri
99c7ec57cf
Merge pull request #15943 from jia200x/pr/gnrc_lorawan_channel_mask
...
net/gnrc_lorawan: implement channel mask support
2021-03-19 16:23:13 +01:00
Jose Alamos
166ee57a5a
net/gnrc_lorawan: implement funcion to set channel mask
2021-03-19 12:15:03 +01:00
Martine Lenders
214fdf007d
Merge pull request #16193 from miri64/gnrc_netif_pktq/feat/usage
...
gnrc_netif_pktq: add function to check usage
2021-03-18 23:05:27 +01:00
José Alamos
21390849bf
Merge pull request #16188 from aabadie/semtech-loramac_netdev
...
pkg/semtech-loramac: refactor to use netdev API only
2021-03-18 13:11:32 +01:00
Martine S. Lenders
db8415b5b6
gnrc_netif_pktq: add function to check usage
2021-03-15 15:13:27 +01:00
Martine Lenders
fd36c626a3
Merge pull request #15950 from MrKevinWeiss/pr/turo/initial
...
sys/test_utils/result_output: Initial implementations and API of turo
2021-03-15 11:35:01 +01:00
05224adc96
sys/net/loramac: move lora time on air compute helper in loramac.h
2021-03-14 11:09:39 +01:00
MrKevinWeiss
6a3eb46d5e
sys/result_output: Expose result output
2021-03-12 16:20:33 +01:00
010ba56174
Merge pull request #16061 from kaspar030/xfa_shell
...
sys/shell: add XFA support
2021-03-09 14:47:43 +01:00
Francisco
fc82e3916e
Merge pull request #15931 from haukepetersen/add_dbgpin3
...
sys: add `dbgpin` module for debugging and profiling (take 2)
2021-03-09 10:26:37 +01:00
madokapeng
905723be59
sys/include/can: Add loopback operation mode
...
tests/candev: Add loopback mode for testing purpose
2021-03-08 12:13:15 -05:00
Marian Buschsieweke
da76ca68db
sys/ztimer: add ZTIMER_SEC
...
wire up ZTIMER_SEC to the existing RTC backend, or RTT backend, or periph_timer
backend (in this order of preference).
Update sys/ztimer/auto_init.c
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2021-03-08 15:11:53 +01:00
Silke Hofstra
5e9b531d33
sys/phydat: clarify use of phydat::scale in phydat_fit
2021-03-04 21:30:18 +01:00
Marian Buschsieweke
cf05b39da5
sys/event: add missing precondition to doc
2021-03-04 12:21:07 +01:00
Kevin "Tristate Tom" Weiss
bf93d85d4e
Merge pull request #16111 from miri64/congure_test/enh/shorter-shell-cmd
...
congure_test: make shell commands shorter
2021-03-03 14:09:49 +01:00
Martine Lenders
384df31946
congure_mock: add capability to provide actual methods
2021-03-03 13:30:35 +01:00
Marian Buschsieweke
9e55c2d9e9
sys/net/gnrc/lwmac: add missing const qualifier
...
The name of the thread running the MAC can be stored in ROM.
2021-03-02 17:12:01 +01:00
Marian Buschsieweke
f7f739046d
sys/net/gnrc/gomach: add missing const qualifier
...
The name of the thread running the MAC can be stored in ROM.
2021-03-02 17:10:58 +01:00
3eaa1beb56
sys/shell: initial XFA support
2021-03-02 14:57:29 +01:00
Martine Lenders
f19c8bad01
congure_test: make shell commands shorter
2021-03-01 14:41:31 +01:00
benpicco
b572e67846
Merge pull request #16112 from chrysn-pull-requests/cord-27
...
sys/net/app/cord: Update to RD draft -27
2021-03-01 14:13:33 +01:00
chrysn
049b5179a7
sys/net/app/cord and examples: Update references to -27
...
With all (the few necessary) changes done, this can claim -27
compatibility.
2021-03-01 11:59:57 +01:00
benpicco
c007b00951
Merge pull request #15932 from jeandudey/2021_02_04-ieee802154-phy
...
net/ieee802154: add PHY modes caps for HAL
2021-02-26 23:09:37 +01:00
Hauke Petersen
47a031e483
cpu/cortexm_common: add dbgpin initialization
2021-02-26 11:34:52 +01:00
Hauke Petersen
2d582cdd2e
sys: initial import of dbgpin module
2021-02-26 11:34:52 +01:00
Jean Pierre Dudey
e99e2d222d
net/ieee802154/submac: select and save PHY mode on device init
...
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2021-02-26 11:16:27 +01:00
Jean Pierre Dudey
4ca37c96b3
net/ieee802154: add PHY mode capabilities
...
- Adds capabilities for each PHY mode. Converts the uint16_t caps field to an
uint32_t in order to hold all capability bits, size of the structure remains
unchanged due to alignment.
- Modifies the test application to configure the PHY mode using the shell
command. Also adds the PHY modes to the capabilities shell command.
- Updates the nrf802154 and cc2538 radio drivers to specify the PHY mode
supported.
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2021-02-26 11:16:27 +01:00
Jean Pierre Dudey
0cd3deb74c
net/ieee802154: add PHY mode configuration
...
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2021-02-26 11:16:27 +01:00
Jean Pierre Dudey
8183b1fe78
net/ieee802154: add type for PHY modes enum
...
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2021-02-26 11:16:27 +01:00
Martine Lenders
f5bae1a8fb
congure_mock: initial import of a CongURE mock implementation
2021-02-26 10:08:12 +01:00
Martine Lenders
e65fee4587
congure_test: initial import of CongURE test framework
2021-02-26 10:08:12 +01:00
Martine Lenders
2f2a009e7a
congure: initial import of a congestion control framework
2021-02-26 10:08:11 +01:00
Marian Buschsieweke
0c349cd0bc
sys/net/netopt: minor style fixes
2021-02-25 16:49:34 +01:00
Marian Buschsieweke
38a94fb137
sys/net/netopt: Drop deprecated NETOPT_MAX_PACKET_SIZE
...
This option has been deprecated for quite a few release. It should be safe to
delete now.
2021-02-25 16:49:34 +01:00
benpicco
9fc60da4ca
Merge pull request #15830 from benpicco/net/nanocoap_add_uri
...
nanocoap: add coap_opt_put_uri_pathquery()
2021-02-24 12:09:08 +01:00
Benjamin Valentin
d4e5c25b70
nanocoap: add coap_opt_put_uri_pathquery()
2021-02-23 18:27:54 +01:00
Antonio Galea
9c9056844e
USB CDC: fix typo in definitions
2021-02-22 14:56:37 +01:00
José Alamos
093272c562
Merge pull request #16000 from jeandudey/2021_02_12-ieee802154-bitcaps
...
net/ieee802154/radio: use bitflags for capabilities
2021-02-17 16:56:25 +01:00
Jean Pierre Dudey
243de6e501
net/ieee802154/radio: use bitflags for capabilities
...
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2021-02-17 10:56:28 +01:00
Francisco Molina
3cd12d3e1b
sys/include/net/netstats: move xtimer header where it is needed
2021-02-16 18:18:21 +01:00
MrKevinWeiss
c84c34c005
sys/fmt: Add print_s64_dec to header
2021-02-10 13:32:54 +01:00
Marian Buschsieweke
e241b43d3f
sys/ztimer: clearify doc on clock ops
2021-02-09 22:34:04 +01:00
807b154fc4
Merge pull request #15956 from fjmolinas/pr_riotboot_uncrustify
...
sys/riotboot: uncrustify
2021-02-09 22:14:50 +01:00
Francisco Molina
6a79d94f1a
sys/riotboot: uncrustify
2021-02-09 13:38:31 +01:00
Benjamin Valentin
75bb317eba
l2util: add l2util_addr_equal()
2021-02-09 12:27:58 +01:00
f97267ba68
sys/net: add netstats_neighbor
2021-02-09 12:27:58 +01:00
Martine Lenders
209b48e385
Merge pull request #15694 from maribu/gnrc_tx_sync
...
sys/net/gnrc/tx_sync: new module
2021-02-08 19:47:43 +01:00
Martine Lenders
492000f232
Merge pull request #15909 from leandrolanzieri/pr/ieee802154_security_radio_hal
...
net/ieee802154_security: remove radio hal dependency and cleanup
2021-02-05 17:08:52 +01:00
Leandro Lanzieri
8a29cf285d
sys/shell: fix menuconfig symbol name
2021-02-04 12:46:19 +01:00
Leandro Lanzieri
67f36d78a9
sys/shell: document configs and add to Kconfig
2021-02-04 09:19:43 +01:00
Marian Buschsieweke
89c69c5450
sys/net/gnrc/tx_sync: new module
...
The new `gnrc_tx_sync` module allows users of the GNRC network stack to
synchronize with the actual transmission of outgoing packets. This is directly
integrated into gnrc_sock. Hence, if `gnrc_tx_sync` is used, calls to e.g.
sock_udp_send() will block until the network stack has processed the message.
Use cases:
1. Prevent packet drop when sending at high rate
- If the application is sending faster than the stack can handle, the
message queues will overflow and outgoing packets are lost
2. Passing auxiliary data about the transmission back the stack
- When e.g. the number of required retransmissions, the transmission time
stamp, etc. should be made available to a user of an UDP sock, a
synchronization mechanism is needed
3. Simpler error reporting without footguns
- The current approach of using `core/msg` for passing up error messages is
difficult to use if other message come in. Currently, gnrc_sock is
busy-waiting and fetching messages from the message queue until the number
of expected status reports is received. It will enqueue all
non-status-report messages again at the end of the queue. This has
multiple issues:
- Busy waiting is especially in lower power scenarios with time slotted
MAC protocols harmful, as the CPU will remain active and consume
power even though the it could sleep until the TX slot is reached
- The status reports from the network stack are send to the user thread
blocking. If the message queue of the user thread is full, the network
stack would block until the user stack can fetch the messages. If
another higher priority thread would start sending a message, it
would busy wait for its status reports to completely come in. Hence,
the first thread doesn't get CPU time to fetch messages and unblock
the network stack. As a result, the system would lock up completely.
- Just adding the error/status code to the gnrc_tx_sync_t would preallocate
and reserve memory for the error reporting. That way gnrc_sock does not
need to search through the message queue for status reports and the
network stack does not need to block for the user thread fetching it.
2021-02-03 15:16:42 +01:00
Francisco
3b2a55a923
Merge pull request #15865 from benpicco/pm_layered-default
...
cpu: make pm_layered a DEFAULT_MODULE
2021-02-03 08:17:29 +01:00
Martine Lenders
6da60c933d
Merge pull request #15802 from miri64/treewide/cleanup/cppcheck-whitelisted
...
treewide: re-uncrustify whitelisted files
2021-02-03 07:59:27 +01:00
Martine Lenders
7e3846b6a4
ztimer: apply uncrustify patches
2021-02-02 22:21:15 +01:00
Vincent Dupont
fb4d2e509a
ztimer: add ztimer_rmutex_lock_timeout()
...
Similar to xtimer_rmutex_lock_timeout()
2021-02-02 10:51:50 +01:00
Leandro Lanzieri
2f28a91c4f
net/ieee802154/security: make default cipher_ops implementations private
2021-02-02 09:16:50 +01:00
Leandro Lanzieri
e31daf1583
net/ieee802154: remove dependency of radio HAL in security
2021-02-02 09:16:50 +01:00
Benjamin Valentin
9c1455d55f
cpu: make pm_layered a DEFAULT_MODULE
...
Allow to disable pm_layered in the bootloader to save some ROM.
2021-01-27 13:21:20 +01:00
Jean Pierre Dudey
38ade8d2e9
ieee802154: add MR-FSK SFD values for 2FSK
...
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2021-01-27 11:52:53 +01:00
Jean Pierre Dudey
9fe6b9ac99
ieee802154: add MR-FSK PHR length definition
...
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2021-01-27 11:52:53 +01:00
Leandro Lanzieri
434b6b68d5
Merge pull request #15790 from akshaim/Kconfig_skald_update
...
net/skald: Update Kconfig implementation
2021-01-26 20:46:27 +01:00
Akshai M
42eb6c4097
net/lorawan : Update documentation
...
Marked as non-supported:
LORAMAC_DEFAULT_ADR_ACK_LIMIT
LORAMAC_DEFAULT_ADR_ACK_DELAY
LORAMAC_DEFAULT_ADR_TIMEOUT
2021-01-26 16:56:05 +01:00
Akshai M
a2f505f116
net/lorawan : Move 'LORAMAC_DEFAULT_MIN_RX_SYMBOLS' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
216956d7b0
net/lorawan : Move 'LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
ed269a7fd7
net/lorawan : Move 'LORAMAC_DEFAULT_MAX_FCNT_GAP' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
85c4b5eb3b
net/lorawan : Move 'LORAMAC_DEFAULT_JOIN_DELAY2' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
b6e4e74a87
net/lorawan : Move 'LORAMAC_DEFAULT_JOIN_DELAY1' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
ed1b86492f
net/lorawan : Move 'LORAMAC_DEFAULT_JOIN_PROCEDURE' to 'CONFIG_'
...
Added symbols 'CONFIG_LORAMAC_DEFAULT_JOIN_PROCEDURE_XXX'
for Kconfig exposure
2021-01-26 16:52:59 +01:00
Akshai M
81dac00d5c
net/lorawan : Move 'LORAMAC_DEFAULT_RX2_FREQ' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
d5086ecf60
net/lorawan : Move 'LORAMAC_DEFAULT_RX2_DR' to 'CONFIG_'
...
Added symbols 'CONFIG_LORAMAC_DEFAULT_RX2_DR_XX' to define
choice in Kconfig
2021-01-26 16:52:58 +01:00
Akshai M
d48cee7c2a
net/lorawan : Move 'LORAMAC_DEFAULT_RX1_DELAY' to 'CONFIG_'
2021-01-26 16:52:58 +01:00
Akshai M
ca4acbff12
net/lorawan : Move 'LORAMAC_DEFAULT_LINKCHK' to 'CONFIG_'
2021-01-26 16:52:58 +01:00
Akshai M
e93c362df2
net/lorawan : Move 'LORAMAC_DEFAULT_RETX' to 'CONFIG_'
2021-01-26 16:52:58 +01:00
Akshai M
97d873a5bd
net/lorawan : Move 'LORAMAC_DEFAULT_ADR' to 'CONFIG_'
...
Move 'LORAMAC_DEFAULT_ADR' to 'CONFIG_' namespace and model
'CONFIG_LORAMAC_DEFAULT_ADR' as BOOL for Kconfig
2021-01-26 16:52:58 +01:00
Akshai M
d2d90fbce5
net/lorawan : Move 'LORAMAC_DEFAULT_TX_MODE' to 'CONFIG_'
...
Move 'LORAMAC_DEFAULT_TX_MODE' to 'CONFIG_' and added symbols
for Kconfig exposure
2021-01-26 16:52:58 +01:00
Akshai M
aa3b1da0c4
net/lorawan : Move 'LORAMAC_DEFAULT_TX_PORT' to 'CONFIG_'
2021-01-26 16:52:58 +01:00
Akshai M
3a6c4f2f71
net/lorawan : Move 'LORAMAC_DEFAULT_TX_POWER' to 'CONFIG_'
...
Move 'LORAMAC_DEFAULT_TX_POWER' to 'CONFIG_' namespace and
assign choices for Kconfig exposure
2021-01-26 16:52:58 +01:00
Akshai M
55f196095d
net/lorawan : Move 'LORAMAC_DEFAULT_DR' to 'CONFIG_'
...
Move 'LORAMAC_DEFAULT_DR' to 'CONFIG_' and enable options for
Kconfig
2021-01-26 16:52:58 +01:00
Akshai M
1befae9022
net/lorawan : Invert 'LORAMAC_DEFAULT_PUBLIC_NETWORK'
...
Introduced a bool 'LORAMAC_DEFAULT_PRIVATE_NETWORK' to invert
the semantics of 'LORAMAC_DEFAULT_PUBLIC_NETWORK'. Move
'LORAMAC_DEFAULT_PRIVATE_NETWORK' to 'CONFIG_' namespace.
2021-01-26 16:52:58 +01:00
Akshai M
3c5c429541
net/lorawan : Move 'LORAMAC_DEFAULT_NETID' to 'CONFIG_'
2021-01-26 16:52:58 +01:00
Akshai M
e46c4401a9
net/lorawan : Move 'LORAMAC_DEFAULT_DEVICE_CLASS' to 'CONFIG_'
...
Move 'LORAMAC_DEFAULT_DEVICE_CLASS' to 'CONFIG_' and added
additional symbols for Kconfig exposure.
2021-01-26 16:52:57 +01:00
Akshai M
9e626f471a
net/lorawan : Move 'LORAMAC_DEV_ADDR_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
50e979c600
net/lorawan : Move 'LORAMAC_NWK_SKEY_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
43d7f28e63
net/lorawan : Move 'LORAMAC_APP_SKEY_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
d138fa9aad
net/lorawan : Move 'LORAMAC_APP_KEY_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
bcb0ed38ff
net/lorawan : Move 'LORAMAC_APP_EUI_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
5b4a873de5
net/lorawan : Move 'LORAMAC_DEV_EUI_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
3ecd304354
net/gnrc_lorawan : String keywords for keys
...
Swapped hex input for keys with string keywords.
2021-01-26 16:52:57 +01:00
Akshai M
f7aff3c0aa
net/skald : Add CONFIG_SKALD_ADV_CHANNELS
to allow ordered list
...
Added `CONFIG_SKALD_ADV_CHANNELS` which is then parsed to
and ordered list `SKALD_ADV_CHAN`
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2021-01-26 16:17:17 +01:00
Martine Lenders
8e47621e7c
Merge pull request #15839 from maribu/gnrc_pktbuf_release_error
...
sys/net/gnrc_pktbuf: deduplicate code
2021-01-26 15:23:50 +01:00
Marian Buschsieweke
3970b667aa
sys/net/gnrc_pktbuf: deduplicate code
...
Implement gnrc_pktbuf_release_error() in gnrc_pktbuf once, rather than providing
two implementations in gnrc_pktbuf_static and gnrc_pktbuf_malloc
2021-01-26 10:50:19 +01:00
Hauke Petersen
4540b6273b
ble/skald: switch from xtimer to ZTIMER_MSEC
2021-01-26 09:34:09 +01:00
benpicco
83201ddb00
Merge pull request #15760 from maribu/sock-aux-rssi
...
sys/net/sock: add sock_aux_rssi
2021-01-25 18:51:11 +01:00
fabian18
f7a77ebb04
drivers/nrf24l01p_ng: netdev driver for nrf24l01+
...
The driver uses the netdev interface. Due to the limited
capabilities of the transceiver (32 byte FIFO and no source address in the layer2 frame),
it relies on 6LowPAN compression and adds the source address to the frame for that.
2021-01-24 20:49:39 +01:00
Martine Lenders
879fbc179e
Merge pull request #15755 from janosbrodbeck/pr/dtls/get_event_session
...
sock/async: add function to retrieve session object of current DTLS event
2021-01-22 10:51:51 +01:00
János Brodbeck
050b268705
sock/async: fix typo in doc of sock_dtls_set_cb
2021-01-21 19:03:41 +01:00
János Brodbeck
80d592b1b8
sock/async: introduce function to retrieve session of current DTLS event
2021-01-21 18:58:12 +01:00
Benjamin Valentin
b24480538a
nanocoap: add coap_opt_put_string_with_len()
2021-01-21 15:17:28 +01:00
a1250963d4
Merge pull request #15780 from haukepetersen/opt_ztimer_isset
...
ztimer: add ztimer_is_set() to user API
2021-01-20 12:42:21 +01:00