Karl Fessel
3f66735bde
ztimer/periph_rtc: intialize struct tm to avoid TZ and IDST problems
...
{ .elem = 0 } initializes the complete struct to 0
{} is not ISO C conform
2021-04-01 18:19:15 +02:00
Karl Fessel
9e7f1d0097
sys/ztimer: add ZTIMER_SEC to Kconfig
2021-04-01 18:19:15 +02:00
Karl Fessel
0b5709a853
ztimer/periph_rtc: count months from 0
...
contrary to the western civilised world struct tm requires
us to count months from 0
2021-04-01 18:19:15 +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
Francisco
4b816916dc
Merge pull request #16269 from maribu/drivers/sht1x
...
drivers/sht1x: fix code style issues
2021-04-01 13:51:53 +02:00
Marian Buschsieweke
1454dc3566
sys/Makefile.dep: clean up
2021-04-01 11:06:22 +02:00
Marian Buschsieweke
78aa197ab8
sys/shell/commands/sc_sht1x.c: fix style
2021-04-01 10:19:30 +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
Francisco
9a5657a2bc
Merge pull request #15789 from haukepetersen/add_event_timeoutztimer
...
sys/event: add event_wait_timeout_ztimer()
2021-03-31 11:38:56 +02:00
Hauke Petersen
91859fc261
sys/event: add event_wait_timeout_ztimer()
2021-03-31 10:11:29 +02:00
Hauke Petersen
91bf7bc376
Merge pull request #15920 from haukepetersen/add_nimble_netifscchanmap
...
pkg/nimble/netif: allow to read used channel map
2021-03-31 10:10:35 +02:00
efdaf9225f
sys/net/gnrc: disable sx126x auto init with loramac
2021-03-30 19:03:34 +02:00
ba9b626b6d
sys/auto_init/loramac: add support for sx126x radio
2021-03-30 19:03:34 +02:00
18a0889bc4
Merge pull request #16177 from aabadie/driver_llcc68
...
drivers: add support for sx1261/2 and llcc68 radio devices
2021-03-30 19:02:27 +02:00
bede0cd98c
sys/net/auto_init: add sx126x auto_init logic
2021-03-30 16:12:40 +02:00
Francisco
8ebe4f608b
Merge pull request #16226 from jnohlgard/devfs-submodule
...
devfs: Split devfs-random into two files using submodules
2021-03-30 16:03:06 +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
Marian Buschsieweke
5a7dd703e3
Merge pull request #16194 from maribu/pm_layered_atomic_utils
...
sys/pm_layered: use atomic_utils
2021-03-30 15:41:28 +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
Joakim Nohlgård
f941782442
devfs: Split devfs-random into two files using submodules
2021-03-24 11:57:44 +01:00
chrysn
5b44d7e5b0
Merge pull request #16219 from chrysn-pull-requests/saul-shell-no-null-percents
...
sys/shell/saul: Don't print from NULL
2021-03-23 19:11:43 +01:00
chrysn
9eaaa68641
sys/shell/saul: Don't print from NULL
...
SAUL devices can legitimately be unnamed; catching all attempts to read
their names with a generic "(no name)" name.
2021-03-22 21:53:49 +01:00
Marian Buschsieweke
bcc899f2db
Merge pull request #16100 from maribu/netopt_tx_end_irq
...
sys/net/netopt: make NETOPT_TX_END_IRQ and friends read-only
2021-03-22 21:17:45 +01:00
José Alamos
c5d620add8
Merge pull request #16206 from akshaim/lorawan-netif_dr_fix
...
gnrc_netif_lorawan: Validate DR
2021-03-22 11:03:30 +01:00
Marian Buschsieweke
80d56488cc
sys/net/gnrc/netif: update use of NETOPT_TX_END_IRQ and friends
...
With the API change, it is no longer possible to enable these IRQs at
run time. Instead, query if the needed events are supported (with DEVELHELP).
2021-03-22 08:15:52 +01:00
Marian Buschsieweke
ff08139263
sys/net/gnrc/lwmac: update use of NETOPT_TX_END_IRQ and friends
...
With the API change, it is no longer possible to enable these IRQs at
run time. Instead, query if those are supported (with DEVELHELP).
2021-03-22 08:14:28 +01:00
Marian Buschsieweke
94e0ef47c7
sys/net/gnrc/gomach: update use of NETOPT_TX_END_IRQ and friends
...
With the API change, it is no longer possible to enable these IRQs at
run time. Instead, query if those are supported (with DEVELHELP).
2021-03-22 08:14:27 +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
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