Akshai M
efdefaa7db
gnrc_netif_lorawan: Validate DR
...
Co-authored-by: José Alamos <jialamos@uc.cl>
2021-03-19 12:17:44 +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
a53cbbfa91
sys/net/sock_util: zero out temporary buffer
...
Otherwise, the following strncpy() leaves strtol() with a non-terminated
buffer.
2021-03-18 14:58:35 +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
benpicco
8ca676aa6e
Merge pull request #15907 from benpicco/gnrc_netif-register
...
sys/net/gnrc/netif: only register netif after init was successful
2021-03-16 16:26:06 +01:00
Benjamin Valentin
545497e970
net/netif: make netif_register() thread safe
2021-03-16 14:49:04 +01:00
Marian Buschsieweke
635151dc20
sys/pm_layered: use atomic_utils
2021-03-15 21:17:17 +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
MrKevinWeiss
38884d24b2
sys/result_output: Add kconfig
2021-03-15 10:36:46 +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
MrKevinWeiss
2c2be2636d
sys/result_output: Add initial structure check
2021-03-12 16:17:12 +01:00
MrKevinWeiss
d17829311c
sys/result_output: Add initial text implementation
2021-03-12 16:16:28 +01:00
MrKevinWeiss
3cbd8a356b
sys/result_output: Add initial json implementation
2021-03-12 16:15:07 +01:00
e4c54de2a6
sys/auto_init/loramac: initialize sx127x radio there
2021-03-12 14:40:12 +01:00
Leandro Lanzieri
e47727fb16
treewide: remove unneeded ieee802154_radio_hal pseudomodule
2021-03-10 14:18:13 +01:00
Leandro Lanzieri
fe5c982fa6
drivers/Makefile.dep: don't pull netdev on netdev_default
...
netdev_default should enable the network devices, which do not
necessarily use netdev.
2021-03-10 14:18:12 +01:00
010ba56174
Merge pull request #16061 from kaspar030/xfa_shell
...
sys/shell: add XFA support
2021-03-09 14:47:43 +01:00
Kevin "Tristate Tom" Weiss
9d579a34d0
Merge pull request #16116 from leandrolanzieri/pr/sys/ztimer/kconfig_change_default_backend
...
sys/ztimer/kconfig: add defaults for backends
2021-03-09 12:22:10 +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
Leandro Lanzieri
37419b2b3e
Merge pull request #16157 from MrKevinWeiss/pr/kconfig/posixinet
...
sys/posix/inet: Add posix_inet and dependencies to Kconfig
2021-03-09 10:00:09 +01:00
1588dd8e46
Merge pull request #16166 from fjmolinas/pr_flashpage_dep_riotbooty
...
sys/riotboot: remove remaining FLASHPAGE_SIZE dep
2021-03-09 09:43:43 +01:00
MrKevinWeiss
0fd3cbfa0b
sys/posix: Add posix_inet module to kconfig
2021-03-09 09:15:59 +01:00
MrKevinWeiss
223430f589
net/ipv*/addr: Add ipv*_addr modules to Kconfig
2021-03-09 09:08:50 +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
Francisco Molina
2f7abb637a
sys/riotboot: remove remaining FLASHPAGE_SIZE dep
2021-03-08 10:22:04 +01:00
Leandro Lanzieri
311ed225ae
sys/clif: fix attribute parsing and comply with tests
2021-03-05 16:47:53 +01:00
Silke Hofstra
5e9b531d33
sys/phydat: clarify use of phydat::scale in phydat_fit
2021-03-04 21:30:18 +01:00
Francisco
d369dffb4f
Merge pull request #14339 from aabadie/pr/sys/auto_init_screen
...
drivers: sys/auto_init: pkg/lvgl: setup disp_dev, touch_dev and lvgl auto_init
2021-03-04 19:23:32 +01:00
Marian Buschsieweke
cf05b39da5
sys/event: add missing precondition to doc
2021-03-04 12:21:07 +01:00
Leandro Lanzieri
6a0240d04b
sys/ztimer/kconfig: add defaults for backends
2021-03-04 10:48:27 +01:00
7f5d17da83
sys/event: fix possibly uninitialized return warning
2021-03-03 22:28:31 +01:00
4e09a54521
pkg/lvgl: add auto_init_screen by default + setup auto_init
2021-03-03 18:00:49 +01:00
f45d2c7b2a
sys/auto_init: add auto_init for stmpe811
2021-03-03 18:00:49 +01:00
7c26cf8e76
sys/auto_init: add auto_init for ili9341
2021-03-03 18:00:49 +01:00
bbe0c94167
sys/auto_init: add mechanism for auto_init_screen
2021-03-03 18:00:49 +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
Leandro Lanzieri
7faa84ff56
Merge pull request #16110 from jia200x/pr/fix_gnrc_lorawan_pktbuf
...
gnrc_netif_lorawan: add missing NULL check
2021-03-01 14:46:44 +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
chrysn
6542f7008f
sys/net/app/cord: Use updated .well-known path from draft -26
2021-03-01 11:20:42 +01:00
Jose Alamos
275630289d
gnrc_netif_lorawan: add missing NULL check
2021-03-01 10:50: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
Hauke Petersen
18d6e122b5
sys/shell/nimble_netif: add list channel map cmd
2021-02-26 10:21:21 +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
Benjamin Valentin
a82bc64a34
sys/net/gnrc/netif: only register netif after init was successful
...
If we call `netif_register()` before we can be sure that the interface
can be configured, a 'zombie' interface remains in the list, causing
all kinds of trouble down the line.
Only call `netif_register()` if `init()` was successful.
2021-02-25 21:48:47 +01:00
Marian Buschsieweke
7cfedbfb8a
sys/net/gnrc: fix logic bug in gnrc_tx_sync implementation
...
In case of an error, the tx sync packet snip could previously have been
released twice. This moves re-attaching the tx sync snip down after the
last `goto error` to avoid this.
2021-02-24 21:22:25 +01:00
benpicco
930e760143
Merge pull request #16081 from cgundogan/pr/rpl_options_fix
...
gnrc_rpl: harden validation routine for options
2021-02-24 12:38:45 +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
Leandro Lanzieri
b8774009d0
Merge pull request #16009 from MrKevinWeiss/pr/sys/kconfig/simple
...
sys/*/Kconfig: Add simple sys modules to Kconfig
2021-02-24 10:27:01 +01:00
Cenk Gündoğan
72337ebb9b
gnrc_rpl: harden validation routine for options
2021-02-23 18:58:03 +01:00
Benjamin Valentin
769978904a
suit/transport/coap: use coap_opt_put_uri()
...
The URI is passed as a string to `suit_coap_get_blockwise()`.
It may contain query parameters, those will not be translated
properly to CoAP options if `coap_opt_put_uri_path()` is used.
Instead use `coap_opt_put_uri()` to handle both path and query
parameters.
2021-02-23 18:27:54 +01:00
Benjamin Valentin
d4e5c25b70
nanocoap: add coap_opt_put_uri_pathquery()
2021-02-23 18:27:54 +01:00
Martine Lenders
afb027852d
Merge pull request #15992 from yarrick/more_lwip
...
Add lwIP ifconfig shell command
2021-02-23 16:59:41 +01:00
Erik Ekman
eab317749f
sys/shell: Add lwIP ifconfig shell command
...
Lists state, link type, v4/v6 addresses.
Currently read-only.
Using lwIP debug system to print addresses, to limit dependencies
and work with dual stack setup. Most other code seems to only
allow either v4 or v6 networking. For that to compile I
had to change the `SZT_F` format string due to this error:
```
error: format '%lu' expects argument of type 'long unsigned int',
but argument 2 has type 'size_t {aka unsigned int}'
```
Switching to the lwIP default format string here.
Outputs the following on my ESP32 board with Ethernet,
when both v4 and v6 are enabled in examples/paho-mqtt:
```
> ifconfig
Iface ET0 HWaddr: 24:0a:c4:e6:0e:9f Link: up State: up
Link type: wired
inet addr: 10.4.4.81 mask: 255.255.254.0 gw: 10.4.4.1
inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9f scope: link
inet6 addr: 2001:db8:1000:0:260a:c4ff:fee6:e9f scope: global
Iface ET1 HWaddr: 24:0a:c4:e6:0e:9c Link: up State: up
Link type: wireless
inet addr: 10.4.4.82 mask: 255.255.254.0 gw: 10.4.4.1
inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9c scope: link
inet6 addr: 2001:db8:1000:0:260a:c4ff:fee6:e9c scope: global
>
```
2021-02-23 11:47:45 +01:00
MrKevinWeiss
94504fb9d1
sys: Expose Kconfig modules
2021-02-22 14:58:09 +01:00
Antonio Galea
9c9056844e
USB CDC: fix typo in definitions
2021-02-22 14:56:37 +01:00
MrKevinWeiss
7512e1002a
sys/uri_parser: Add Kconfig support
2021-02-22 14:54:53 +01:00
MrKevinWeiss
b7d4d83d5c
sys/timex: Add Kconfig support
2021-02-22 14:54:15 +01:00
MrKevinWeiss
476c0d8702
sys/seq: Add Kconfig support
2021-02-22 14:54:15 +01:00
MrKevinWeiss
02d19b0b4a
sys/sema: Add Kconfig support
2021-02-22 14:54:15 +01:00
MrKevinWeiss
37d640a5b6
sys/oneway-malloc: Add Kconfig support
2021-02-22 14:54:15 +01:00
MrKevinWeiss
bdaa517da1
sys/mineplex: Add Kconfig support
2021-02-22 14:54:14 +01:00
MrKevinWeiss
1c03c0594a
sys/memarray: Add Kconfig support
2021-02-22 14:54:14 +01:00
MrKevinWeiss
9c6e907a08
sys/matstat: Add Kconfig support
2021-02-22 14:54:14 +01:00
MrKevinWeiss
8bc7893e92
sys/eepreg: Add Kconfig support
2021-02-22 14:54:14 +01:00
MrKevinWeiss
e7f62e89fe
sys/cb_mux: Add Kconfig support
2021-02-22 14:54:14 +01:00
MrKevinWeiss
f1c52296d8
sys/bloom: Add Kconfig support
2021-02-22 14:54:14 +01:00
MrKevinWeiss
820283a12e
sys/bitfield: Add Kconfig support
2021-02-22 14:54:14 +01:00
MrKevinWeiss
e0aea475be
sys/base64: Add Kconfig support
2021-02-22 14:54:14 +01:00
MrKevinWeiss
64202fe091
sys/app_metadata: Add Kconfig support
2021-02-22 14:54:14 +01:00
MrKevinWeiss
e047d013a7
sys/analog_util: Add Kconfig support
2021-02-22 14:54:14 +01:00
Martine Lenders
de4ee0f934
Merge pull request #15562 from benpicco/socket_zep_register
...
socket_zep: register with netdev, provide EUI-64 as command line parameter
2021-02-20 20:32:01 +01:00
7c1cb66fe2
Merge pull request #15246 from haukepetersen/add_example_i2cscanner
...
examples: add I2C scanner
2021-02-19 15:02:47 +01:00
Martine Lenders
6dd49ead83
Merge pull request #16037 from miri64/shell/enh/kconfig-dep-config
...
shell/Kconfig: make config options usable with dependency resolution
2021-02-19 14:49:47 +01:00
Martine Lenders
561960769f
shell/Kconfig: make config options usable with dependency resolution
2021-02-19 13:22:47 +01:00
Martine Lenders
ecba5fa1d0
gnrc_pktbuf_static: expose _align() function to be used for tests
2021-02-19 12:23:22 +01:00
Francisco
87240837fa
Merge pull request #16044 from ant9000/fix_riotboot_dfu
...
sys/riotboot/flashwrite.c: add message to static assert
2021-02-19 08:29:41 +01:00
Antonio Galea
418c88eeb0
sys/riotboot/flashwrite.c: add message to static assert
...
static_assert as defined in c11 requires both an expression and a message.
The message is only optional from c17 onwards.
2021-02-18 18:33:35 +01:00
Cenk Gündoğan
896e44cf93
rpl: strenghen length checks for DAO and DAO-ACK
2021-02-18 15:47:53 +01:00
Hauke Petersen
5d9e9fb9d7
sys/shell/commands: add i2c_scanner deps to Kconfig
2021-02-18 13:22:54 +01:00
Martine Lenders
e740e75f1d
shell/Kconfig: fix SHELL_SHUTDOWN_ON_EXIT dependency
...
Symbol `CPU_NATIVE` does not exist within Kconfig.
2021-02-17 17:21:43 +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
Leandro Lanzieri
4172066ab3
Merge pull request #15984 from MrKevinWeiss/pr/posix_sleep/kconfig
...
sys/posix_sleep: Add Kconfig support
2021-02-15 16:01:09 +01:00
Leandro Lanzieri
85da504d2d
Merge pull request #15947 from nmeum/pr/clif_get_attr_empty
...
clif: Don't access any data if input is empty
2021-02-15 13:53:40 +01:00
MrKevinWeiss
b8eb12d43b
sys/posix_sleep: add module to Kconfig
2021-02-15 12:24:38 +01:00
Sören Tempel
178c9eb745
gnrc_pktbuf: use _free function with gnrc_pktbuf_malloc
...
Otherwise the local mallocs variable is not decremented correctly (if
TEST_SUITES is defined) and the fuzzing setup (i.e. when MODULE_FUZZING
is defined) does not terminate. This regression was introduced in
3970b667aa
.
2021-02-12 18:15:40 +01:00
MrKevinWeiss
c84c34c005
sys/fmt: Add print_s64_dec to header
2021-02-10 13:32:54 +01:00
Marian Buschsieweke
d7f3e92c30
Merge pull request #15975 from maribu/ztimer-doc
...
sys/ztimer: clearify doc on clock ops
2021-02-10 12:23:55 +01:00
Leandro Lanzieri
609c9ada34
Merge pull request #15945 from nmeum/pr/clif_get_attr_bounds
...
clif: After incrementing pos, make sure it is still in bounds
2021-02-10 08:50:10 +01:00
Martine Lenders
1db480006c
Merge pull request #15939 from namib-project/dhcp-mud-fix
...
sys/net/dhcpv6: Fixes for MUD URL option
2021-02-10 08:30:06 +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
Jan Romann
6a2aa7ad52
sys/net/dhcpv6: Fix MUD URL option
2021-02-09 19:47:47 +01:00
benpicco
5fba2c8387
Merge pull request #14448 from benpicco/l2-peerstats-rebased
...
net/netstats: L1/L2 per neighbor statistics
2021-02-09 14:54:53 +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
Benjamin Valentin
37dbbd969b
shell_commands: provide command for neighbor statistics
2021-02-09 12:27:58 +01:00
3b7e852773
net/gnrc/netif: hook up netstats_neighbor
2021-02-09 12:27:58 +01:00
f97267ba68
sys/net: add netstats_neighbor
2021-02-09 12:27:58 +01:00
Francisco Molina
6baadad152
sys/riotboot/flashwrite: when invalidating erase checksum as well
2021-02-09 11:11:47 +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
Marian Buschsieweke
9895b840cd
sys/net: gnrc_tx_sync not implemented for gnrc_sixlowpand_frag_sfr
...
It is currently not possible to use both gnrc_tx_sync and
gnrc_sixlowpand_frag_sfr at the same time - this will be added in a follow
up PR.
2021-02-08 16:13:11 +01:00
Sören Tempel
0d141bf93a
clif: Don't access any data if input is empty
...
This is relevant as clif_decode_link may invoke clif_get_attr with
input_len == 0.
2021-02-08 13:42:18 +01:00
Sören Tempel
767e700a5f
clif: After incrementing pos, make sure it is still in bounds
...
While the for-loop condition does contain a bounds check, the pointer is
independently increment in the for-loop body. This increment therefore
requires a separate bounds check. Otherwise, the parsing loop may access
data outside the given buffer boundaries.
2021-02-08 11:29:44 +01:00
Jose Alamos
1af583a746
net/gnrc_lorawan: refactor gnrc_lorawan_pick_channel
2021-02-05 19:07:20 +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
Cenk Gündoğan
e399ef5d76
uri_parser: terminate, if nothing to consume after scheme
2021-02-05 13:32:49 +01:00
Cenk Gündoğan
6f13325a52
uri_parser: do not parse path if end-of-uri
2021-02-05 13:24:36 +01:00
Cenk Gündoğan
1040cf9862
uri_parser: allow empty host part even if userinfo and port exist
2021-02-05 13:24:36 +01:00
Cenk Gündoğan
f9b8fadd85
uri_parser: check boundaries if host is empty, but userinfo exists
2021-02-05 13:24:36 +01:00
Sören Tempel
333572e091
uri_parser: check if uri is long enough to even contain a ://
...
Before attempting to access these characters. This fixes an
out-of-bounds read on the provided URI buffer.
2021-02-04 20:08:26 +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
Jose Alamos
9bdb58f37d
net/gnrc_lorawan: add channel_mask
2021-02-03 17:55:50 +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
benpicco
2313cefbd3
Merge pull request #15910 from maribu/sys-arduino-spi-fix
...
sys/arduino: Bug and style fixes in SPI
2021-02-02 23:41:04 +01:00
Benjamin Valentin
118cf0e9e6
riotboot_usb_dfu: depend on periph_pm
2021-02-02 23:40:21 +01:00
Benjamin Valentin
32c30aaeaa
pm_layered: depend on periph_pm
2021-02-02 23:40:21 +01:00
Martine Lenders
7e3846b6a4
ztimer: apply uncrustify patches
2021-02-02 22:21:15 +01:00
Marian Buschsieweke
e0f457663c
Merge pull request #15901 from OTAkeys/pr/ztimer_rmutex_lock_timeout
...
ztimer: add ztimer_rmutex_lock_timeout()
2021-02-02 20:47:53 +01:00
Vincent Dupont
751a366931
ztimer: fix uncrustify issue in util.c
2021-02-02 10:52:10 +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
Marian Buschsieweke
45ed8bc330
sys/arduino: Bug and style fixes in SPI
...
- set is_transaction before releasing the SPI bus (and the mutex) to avoid
data races
- adapt switch indent to coding convention
2021-02-02 09:45:46 +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
5b0eaf7cd8
riotboot/flashwrite: Remove last dependencies on flashpage size
2021-02-01 16:14:07 +01:00
1bde5296fd
Merge pull request #14987 from bergzand/pr/riscv/semihosting
...
stdio_semihosting: Extend with RISC-V support
2021-01-27 18:49:35 +01:00
0a6c9c4ec0
stdio_semihosting: Extend with RISC-V support
...
RISC-V support semihosting in very similar way as the cortex-m
microcontrollers. The code calls a breakpoint instruction and the
attached debugger reads/writes registers and memory for stdio.
The RISC-V architecture doesn't support a call number with the EBREAK
instruction, to allow the debugger to detect a semihosting break point,
the EBREAK instruction is wrapped in a SLLI and SRAI instruction. These
use x0 as output register, making them NOP instructions.
One caveat when using this is that the RISC-V core traps the EBREAK
instruction with trap code 3 when no debugger is attached. Restarting
the application with the debugger attached avoids this.
2021-01-27 17:52:19 +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
benpicco
4509dc6812
Merge pull request #15863 from btcven/2020_01_26-ieee-sfd-phr
...
ieee802154: add SFD and length of PHR for MR-FSK.
2021-01-27 12:31:12 +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
Francisco
dc801b9dde
Merge pull request #15817 from leandrolanzieri/pr/kconfig/sys_crypto
...
sys/{crypto, hashes, random}: add modules to Kconfig
2021-01-27 10:20:11 +01:00
ce97e9d8ce
Merge pull request #15859 from fjmolinas/pr_newlib_feature
...
treewide: model newlib as a FEATURE
2021-01-27 10:06:08 +01:00
Francisco Molina
63a2a6ce1b
treewide: model newlib as a FEATURE
2021-01-27 09:24:25 +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
Leandro Lanzieri
5c4df6078e
sys/random: add modules to Kconfig
2021-01-26 17:40:53 +01:00
Leandro Lanzieri
34594ae1dc
sys/luid: add module to Kconfig
2021-01-26 17:40:30 +01:00
Leandro Lanzieri
0fb2711a15
sys/hashes: add module to Kconfig
2021-01-26 17:40:29 +01:00
Leandro Lanzieri
d90ac484a3
sys/crypto: add modules to Kconfig
2021-01-26 17:39:44 +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
9600ebf536
net/lorawan : Expose to Kconfig
2021-01-26 16:56:02 +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
a23dfb7ab9
net/skald : Update kconfig
...
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2021-01-26 16:17:18 +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
Benjamin Valentin
d8918c24fa
socket_zep: register with netdev
2021-01-25 22:59:01 +01:00
Francisco
de9f29cf42
Merge pull request #15835 from leandrolanzieri/pr/makefile/fix_default_modules_in_usemodules
...
Makefile.include: avoid recursive expansion of USEMODULE
2021-01-25 21:50:03 +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
benpicco
1862a73d41
Merge pull request #15844 from benpicco/sys/oneway-malloc_align
...
sys/oneway-malloc: only allocate word-aligned chunks
2021-01-25 14:31:37 +01:00
Benjamin Valentin
65ab38a894
sys/oneway-malloc: only allocate word-aligned chunks
...
If an unevenly sized allocation is requested, the next buffer handed
out would start at an unaligned address.
Fix this by rounding up to the next word-sized allocation size.
2021-01-25 12:05:05 +01:00
Leandro Lanzieri
91ff4e5ce5
sys/Makefile.dep: default saul_init_devs to y when saul_default is used
2021-01-25 09:17:00 +01:00