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

9828 Commits

Author SHA1 Message Date
fabian18
09b98ea4fc
Merge pull request #17850 from fabian18/bugfix_nib_6LN_context_option_length
ipv6/nib: bugfix of 6CO length checking
2022-03-24 22:07:18 +01:00
Benjamin Valentin
bb8def8b3e cord_ep: replace sock_udp_str2ep() with sock_udp_name2ep() 2022-03-24 17:10:51 +01:00
Benjamin Valentin
9cab45931a nanocoap: replace sock_udp_str2ep() with sock_udp_name2ep() 2022-03-24 17:09:16 +01:00
Martine Lenders
76935ddbf5
Merge pull request #17510 from benpicco/sock_tl_str2ep-dns
sys/net/sock_util: add sock_tl_name2ep() to optionally perform DNS lookups
2022-03-24 15:59:59 +01:00
Martine Lenders
624e8099ec
gnrc_netif: fix potential null pointer dereference 2022-03-24 15:53:23 +01:00
Martine Lenders
5aefb8d5dc
gnrc_sock: initialized un-initialized timer objects 2022-03-24 15:23:50 +01:00
Francisco
b91b984e38
Merge pull request #17733 from fjmolinas/pr_gettimeofday_64_bit
sys/syscalls: make gettimeofday() implementation optional
2022-03-24 15:22:27 +01:00
Francisco
d53f37546f
Merge pull request #17852 from fjmolinas/pr_gnrc_sock_ztimer_alt
sys/net/gnrc/sock: use ztimer_usec or xtimer for timeout
2022-03-24 14:22:55 +01:00
Francisco Molina
0819660303 sys/syscalls: add libc_gettimeofday
Conditionally implement gettimeofday() if module is included, this
avoids including ztimer64 even when not needed
2022-03-24 11:36:49 +01:00
Fabian Hüßler
77cbe15b1d ipv6/nib: bugfix of 6CO length checking 2022-03-24 10:06:56 +01:00
Leandro Lanzieri
48ae24b545
sys/test_utils: add netdev Ethernet minimal processing 2022-03-24 09:44:52 +01:00
Leandro Lanzieri
a2e5934ec9
drivers/encx24j600: introduce setup function with index 2022-03-24 09:32:10 +01:00
Leandro Lanzieri
5f7a906b95
drivers/w5100: introduce setup with index 2022-03-24 09:30:42 +01:00
Francisco Molina
66d87fccf9 sys/net/gnrc/sock: use ztimer_usec or xtimer for timeout 2022-03-24 08:06:05 +01:00
benpicco
858e4b6f46
Merge pull request #17833 from benpicco/nanocoap_get_blockwise_url_to_buf
nanocoap: add nanocoap_get_blockwise_url_to_buf() function
2022-03-22 21:22:07 +01:00
Benjamin Valentin
15f210e4e4 gnrc/nib: don't advertise /128 prefix for auto-configuration
A single IP address will be added as a /128 prefix.
It makes sense to advertise it, as neighbors can then know that
the address/prefix is on-link.

It does however not make sense to advertise the prefix as suitable
for auto-configuration.

Co-authored-by: Fabian Hüßler <fabian.huessler@st.ovgu.de>
2022-03-22 20:52:38 +01:00
Fabian Hüßler
bc3dfd4fda gnrc/ndp: bugfix set O-flag on non anycast target 2022-03-22 13:03:28 +01:00
Benjamin Valentin
3f95f39d88 sys/net/sock_util: add sock_{udp,tcp}_name2ep() wrapper 2022-03-22 11:03:12 +01:00
Benjamin Valentin
1ef6da7de4 sys/net/sock_util: add sock_tl_name2ep() 2022-03-22 11:03:12 +01:00
Benjamin Valentin
a6a8356385 nanocoap: add nanocoap_get_blockwise_url_to_buf() function
This moves the internal convenience function suit_coap_get_blockwise_url_buf()
into nanocoap to make it globally available.
2022-03-22 10:36:50 +01:00
Geovane Fedrecheski
eabeee0ebe sys/shell+pkg/semtech-loramac: add get ch_mask
Also, set LORAMAC_CHANNELS_MASK_LEN based on the
selected LORA_REGION configuration.
2022-03-18 14:26:01 -03:00
Geovane Fedrecheski
26c55a91bd sys/shell: add 'loramac set ch_mask' command 2022-03-18 10:48:18 -03:00
Francisco Molina
20e68fbb68 sys/xtimer: switch default backend to ztimer
With this commit xtimer will always be implemented with ztimer.
The default compat layer will be ztimer_xtimer_compat, so xtimer
calls will be inlined to ZTIMER_USEC, or ZTIMER64_USEC when the
64bit xtimer API is required.

This can be reverted by adding 'xtimer_no_ztimer_default' module
to a build.
2022-03-18 08:23:00 +01:00
Leandro Lanzieri
202fb261fe
Merge pull request #17811 from fjmolinas/pr_xtimer_dep_rework_simple
sys/*timer: rework dependecies to ease backend switch, prefer ztimer_xtimer_compat over xtimer_on_ztimer
2022-03-18 08:17:24 +01:00
benpicco
299e960eb4
Merge pull request #17816 from leandrolanzieri/pr/sys/fido2/ctap/fix_parsing_validation
sys/fido2/ctap: fix parsing validation
2022-03-17 22:04:54 +01:00
Francisco Molina
9260cfb4f0 sys/xtimer: prefer ztimer_xtimer_compat 2022-03-17 14:37:40 +01:00
Francisco Molina
0b1453667e sys/xtimer-ztimer: rework dependecies to ease backend switch
This adds a xtimer_no_ztimer_default that is currently always
selected in Makefile, but that can be switched off in Kconfig.
Removing its inclusion will allow switching the default xtimer
backend to ztimer, while allowing for an easy way back.
2022-03-17 14:37:40 +01:00
Francisco Molina
7227d1bb77 sys/xtimer: move dependencies to xtimer/Makefile.dep 2022-03-17 14:37:40 +01:00
Francisco Molina
be6a76a3c0 sys/sc_gnrc_udp: fix *timer include 2022-03-17 14:37:40 +01:00
Francisco Molina
2cc5af664e treewide: make all modules use Kconfig ZTIMER_USEC indirection 2022-03-17 14:33:07 +01:00
Francisco
114e61c111
Merge pull request #17786 from fjmolinas/pr_ztimer_rtt_sam3
sys/ztimer: auto-select ztimer_no_periph_rtt only for samd21
2022-03-17 12:32:29 +01:00
Leandro Lanzieri
9bb6449a1e
sys/fido2/ctap: fix parsing validation 2022-03-17 09:43:42 +01:00
Francisco Molina
53c3e38cb9 sys/ztimer: select ztimer_periph_no_rtt only for samd21 2022-03-15 08:15:22 +01:00
Martine Lenders
bec2868223
Merge pull request #17676 from benpicco/revert-gnrc_ipv6_nib-all_ifs
Revert "gnrc_ipv6_nib: consider all local interfaces when looking for…
2022-03-14 10:31:16 +01:00
Kevin "Tristate Tom" Weiss
5acf19118c
Merge pull request #17791 from leandrolanzieri/pr/sys/bus/model_kconfig
sys/bus: model Kconfig
2022-03-14 09:24:41 +01:00
benpicco
9f73630ed9
Merge pull request #17798 from benpicco/pkg/fatfs-exfat
pkg/fatfs: enable exFAT support
2022-03-11 22:02:28 +01:00
Martine Lenders
3fbf0e35e6
Merge pull request #13790 from cgundogan/coap_proxy_server
gcoap: add simple forward-proxy
2022-03-11 20:54:45 +01:00
Cenk Gündoğan
9746c3a830
nanocoap: add COAP_IGNORE for when method parsing is not important 2022-03-11 14:53:17 +01:00
Cenk Gündoğan
fa19b62cdb
gcoap/forward_proxy: add submodule 2022-03-11 14:53:17 +01:00
Benjamin Valentin
805bfc754a pkg/fatfs: enable exFAT support
Enabling exFAT requires enabling long file names, so enable LFN if
exFAT is enabled.
exFAT (and LFN) also requires bumping the per-file/per-dir buffer.

Can be tested with

    CFLAGS += -DFATFS_FFCONF_OPT_FS_EXFAT=1
2022-03-11 13:21:46 +01:00
Leandro Lanzieri
fc555a6702
sys/bus: model Kconfig 2022-03-11 09:24:12 +01:00
Leandro Lanzieri
171c20b03a
sys/od/kconfig: add od_string 2022-03-11 09:20:24 +01:00
b29a658555
Merge pull request #17719 from fjmolinas/pr_sys_posix_convert
sys/sema: add sema_ztimer64 to implement old api, deprecate sema
2022-03-10 15:36:06 +01:00
Francisco Molina
0fa1551500 sys/posix: convert to ztimer64_usec 2022-03-10 14:24:57 +01:00
Francisco Molina
f6e9609363 treewide: use sema_deprecated when required 2022-03-10 14:24:46 +01:00
Francisco Molina
2e2daae5d0 sys/sema: use sema_ztimer64 to implement old sema api
This PR removes the old xtimer based implementation for sema. Since
this implementation used 64bit timeout, backweard compatibility is
kept by having `sema_wait_timed` be implemented by `ztimer64_usec`
which is enabled by selecting `sema_deprecated`

With this 64bit `sema` api is now deprecated.
2022-03-10 14:19:44 +01:00
Marian Buschsieweke
f298d0a585
Merge pull request #17780 from benpicco/gnrc_sock-iolist
net/gnrc_sock: depend on iolist
2022-03-10 11:38:14 +01:00
Francisco
8fa2687880
Merge pull request #17753 from fjmolinas/pr_fido2_all_ztimer
sys/fido2: use ztimer instead of xtimer
2022-03-10 08:08:30 +01:00
benpicco
9896071bb9
Merge pull request #17493 from HendrikVE/pr/auto_init_sock_dns
sys/net/application_layer/sock_dns: add pseudomodule auto_init_sock_dns
2022-03-10 00:53:32 +01:00
Benjamin Valentin
32cf05b110 net/gnrc_sock: depend on iolist 2022-03-09 22:42:01 +01:00
benpicco
60fb36eb1e
Merge pull request #17710 from benpicco/sys/bitfield-ops
sys/bitfield: add support for bit-wise bitfield operations
2022-03-09 22:09:34 +01:00
Hendrik van Essen
0b0910f82a sys/net/application_layer/sock_dns: add pseudomodule auto_init_sock_dns 2022-03-09 20:05:20 +01:00
benpicco
f83fa88ccd
Merge pull request #17764 from HendrikVE/pr/netutils_netutils_get_ipv4
sys/net/netutils: add netutils_get_ipv4()
2022-03-09 11:30:38 +01:00
benpicco
948e8d9463
Merge pull request #17766 from HendrikVE/pr/sock_util_fix_compilation_ipv4
sys/net/sock_util: fix compilation for IPv4-only mode
2022-03-09 01:47:40 +01:00
benpicco
34ea5c31d1
Merge pull request #17758 from chrysn-pull-requests/ztimer_periodic_callback_t
sys/ztimer: Name callback types
2022-03-08 17:23:01 +01:00
Hendrik van Essen
ffd93c9b1b sys/net/netutils: add netutils_get_ipv4() 2022-03-08 13:35:32 +01:00
benpicco
888b2aa098
Merge pull request #17762 from HendrikVE/pr/const_ipv4_addr_t_pointer
sys/net/ipv4: ipv4_addr_t pointer should be const
2022-03-08 12:10:42 +01:00
Benjamin Valentin
d406f12028 sys/bitfield: improve documentation of bf_get_unset() 2022-03-08 10:28:31 +01:00
Benjamin Valentin
f3e519e27a sys/bitfield: add support for bitfield operations 2022-03-08 10:28:16 +01:00
chrysn
f3e462d039 sys/ztimer: Name callback types 2022-03-08 09:12:20 +01:00
benpicco
2d89399047
Merge pull request #17745 from leandrolanzieri/cpu/esp32/esp-eth/move_auto_init
cpu/esp32/esp-eth: move GNRC auto_init to init_devs
2022-03-07 20:25:06 +01:00
Dylan Laduranty
9d459b8a14
Merge pull request #17746 from leandrolanzieri/cpu/sam0_common/eth/expose_correct_setup
cpu/sam0_common/eth: expose correct setup function
2022-03-07 18:42:08 +01:00
benpicco
8a67aaba91
Merge pull request #17744 from leandrolanzieri/sys/chunked_ringbuffer/kconfig
sys/chunked_ringbuffer: model Kconfig
2022-03-07 18:20:38 +01:00
benpicco
8281dc21bc
Merge pull request #17752 from benpicco/ipv6_addr_init
sys/net/ipv6: add ipv6_addr_init() helper function
2022-03-07 15:13:19 +01:00
benpicco
a9456b6935
Merge pull request #17741 from fabian18/bugfix-NIB_handle_rtr_timeout
ipv6/nib: fix memcpy() bug in _handle_rtr_timeout()
2022-03-07 13:39:05 +01:00
Hendrik van Essen
73431b398d sys/net/sock_util: fix compilation for IPv4-only mode 2022-03-07 02:58:17 +01:00
Hendrik van Essen
a3faa79612 sys/net/netutils: add missing string.h include 2022-03-07 02:57:50 +01:00
Hendrik van Essen
60153eed4c sys/net/ipv4: ipv4_addr_t pointer should be const 2022-03-05 14:39:50 +01:00
benpicco
f31fdfd12d
Merge pull request #17747 from leandrolanzieri/drivers/encx24j600/default_params
drivers/encx24j600: define default parameters
2022-03-05 10:29:48 +01:00
Francisco Molina
8e3422781d sys/fido2: use ztimer instead of xtimer
- for ctap hid timeouts xtimer was used, use ztimer64_msec instead
  since the code is using absolute times, an already using ztimer_msec
- use event_timeout_ztimer instead of event_timeout to not pull in
  xtimer
2022-03-04 17:04:28 +01:00
Benjamin Valentin
91ad8ec403 sys/net/ipv6: add ipv6_addr_init() helper function
Setting a compile-time const IP address can be a bit cumbersome.
Add a helper function to easy the process.
2022-03-04 15:34:15 +01:00
Leandro Lanzieri
de79edb352
drivers/encx24j600: define default parameters 2022-03-04 09:58:50 +01:00
Leandro Lanzieri
74c8893a4f
cpu/esp32/esp-eth: move GNRC auto init to init_devs 2022-03-04 09:41:18 +01:00
Leandro Lanzieri
c47bd3d402
sys/chunked_ringbuffer: model in Kconfig 2022-03-04 09:35:50 +01:00
Leandro Lanzieri
0d4dae9c38
sys/chunked_ringbuffer: move config to CONFIG_ namespace 2022-03-04 09:35:39 +01:00
Leandro Lanzieri
f1075ad749
cpu/sam0_common/eth: expose correct setup function 2022-03-04 08:57:42 +01:00
Francisco Molina
1aea12c27c sys/net/gnrc/sock_types: guard tcp.h header inclusion 2022-03-04 08:47:47 +01:00
Francisco
0c166b1e2a
Merge pull request #17732 from fjmolinas/pr_xtimer_compat_deps
sys: sort out ztimer_xtimer_compat and ztimer64_xtimer_compat depes
2022-03-04 08:08:41 +01:00
Fabian Hüßler
6916f72419 ipv6/nib: fix memcpy() bug in _handle_rtr_timeout 2022-03-03 23:35:06 +01:00
c7c5279362
Merge pull request #17731 from fjmolinas/pr_csma_sender_use_public_api
sys/net/link_layer/csma_sender: use public xtimer_now()
2022-03-03 19:20:18 +01:00
benpicco
21205bd6ce
Merge pull request #17351 from benpicco/ztimer_periodic-return
ztimer_periodic: make callback function return bool
2022-03-03 14:42:33 +01:00
benpicco
c411edef55
Merge pull request #16688 from miri64/gcoap/enh/multitransport
gcoap: multi-transport support
2022-03-03 12:15:48 +01:00
Francisco
644f32fb9c
Merge pull request #17734 from gschorcht/sys/posix/pthread_newlib_compatibility
sys/posix/pthread: newlib compatibility
2022-03-03 08:30:05 +01:00
Benjamin Valentin
9eb62da2d4 gnrc_dhcpv6_client_simple_pd: set AAC_DHCP if IA_NA is enabled 2022-03-02 14:53:09 +01:00
Francisco Molina
f1d4cc0924 sys/ztimer/Kconfig: remv dep between ztimer64_compat and ztimer_compat
This is done to avoid circular dependency, it will currently allow for
ztimer64_xtimer_compat beeing selected as well as xtimer_on_ztimer.
This altough incorrect mimics make, and will be fixed when making
ztimer_xtimer_compat the default xtimer backend
2022-03-02 14:28:55 +01:00
Francisco Molina
6151895bfa sys: use ztimer64_xtimer_compat when required 2022-03-02 14:28:54 +01:00
97174015ac
Merge pull request #17730 from fjmolinas/pr_sixlowpan_frag_fb_include_guard
sys/gnrc/sixlowpan/frag/fb: guard sfr_types.h header include
2022-03-02 14:25:44 +01:00
Francisco Molina
8378b401d8 sys/net/link_layer/csma_sender: use public xtimer_now_usec() 2022-03-02 12:06:47 +01:00
Gunar Schorcht
c09d9d87b7 sys/posix/pthread: newlib compatibility
When using a toolchain with built-in POSIX thread support, static C++ constructors use a static mutex variable which is initialized with `pthread_once` when first used. However, since RIOT's `pthread_once_t` type is different from that in newlib's `pthread`, which is assumed by GCC, RIOT crashes as soon as static constructors are used.
Changing the `pthread_once_t` type to be compatible with newlib's `pthread_once_t` type solves the problem and allows the RIOT `pthread` modules to be used even with toolchains with built-in POSIX thread support.
2022-03-02 11:57:47 +01:00
ce1ec91adc
Merge pull request #17729 from fjmolinas/pr_gomach_no_periph_rtt_ztimer
sys/net/gnrc: ztimer_no_periph_rtt if gomach
2022-03-02 10:59:33 +01:00
Francisco Molina
bf83387030 sys: if xtimer_ztimer_compat, evtimer uses ztimer
The xtimer based module was only there to avoid duplicate code,
is the compat layer is used this does not make sense.
2022-03-02 08:59:52 +01:00
Francisco Molina
fc169b98cd sys/trickle: if ztimer_xtimer_compat is used, use ztimer_msec
If already using the compat layer then just use ztimer_msec otherwise
the 64bit compat layer would be needed for this module
2022-03-02 08:59:52 +01:00
Francisco Molina
c8045dc815 sys/gnrc/sixlowpan/frag/fb: guard sfr_types.h header include
The included header references evtimer which is not a direct
dependency for gnrc_sixlowpan_frag, but only for
gnr_sixlowpan_frag_sfr
2022-03-02 08:42:36 +01:00
Francisco Molina
a151a8e66a sys/net/gnrc: ztimer_no_periph_rtt if gomach 2022-03-02 08:33:29 +01:00
Benjamin Valentin
2034fa5101 sys/net/application_layer: add telnet server module 2022-03-01 23:07:22 +01:00
Benjamin Valentin
1b52dee2d6 net/gnrc: restore inclusion of net/gnrc/tcp.h
This reverts d03175c2ae
2022-03-01 23:07:21 +01:00
Martine Lenders
287bfdc10d
gcoap: multi-transport support for listeners 2022-03-01 19:33:15 +01:00
Martine Lenders
90eae8e0a4
gcoap: multi-transport support for clients
23a8659bdf introduced DTLS support for
CoAP, but did not make it possible to select the transport on request.
Since switching between CoAP and CoAPS (CoAP-over-DTLS) as client is a
valid use case (one might want to e.g. talk to one server over CoAP and
to another over CoAPS), this change makes that possible.
2022-03-01 19:26:10 +01:00
a17ff53ecf
Merge pull request #17485 from benpicco/sock_udp_sendv
sys/net/sock: add sock_udp_sendv() API
2022-03-01 14:05:21 +01:00
888cb09dff sys/ztimer64: properly clear timer on removal 2022-03-01 11:03:10 +01:00
Karl Fessel
4147042bc1 sys/shell: add missing includes 2022-02-28 14:53:07 +01:00
Karl Fessel
35107ec4ba sys/net: add missing includes 2022-02-28 14:53:07 +01:00
Karl Fessel
d03175c2ae net/gnrc: avoid *timer creeping though header 2022-02-28 14:53:07 +01:00
Francisco Molina
ec06163402 pkg/lvgl: adapt to SDL display and input driver 2022-02-28 10:23:06 +01:00
benpicco
bbfa69153e
Merge pull request #17474 from benpicco/nanocoap-suit
sys/net/nanocoap: introduce `nanocoap_sock_*()`, use in suit/transport/coap
2022-02-27 02:07:50 +01:00
Karl Fessel
f3d935e31f
Merge pull request #17705 from kfessel/p-fix-ztimer-compat
sys/ztimer/xtimer_compat: fix bug introduced in #17690 and ..

also adds missing
    dummy XTIMER_BACKOFF
    xtimer_init
    xtimer_is_set
    xtimer_rmutex_lock_timeout
2022-02-25 23:44:30 +01:00
benpicco
51e47e70cb
Merge pull request #17631 from benpicco/pkg/fatfs-non_tiny
pkg/fatfs_vfs: support FF_FS_TINY=0
2022-02-25 23:43:54 +01:00
Karl Fessel
08442dbc83 sys/ztimer/xtimer_comapt: add missing define and functions
- dummy XTIMER_BACKOFF
- xtimer_init
- xtimer_is_set
- xtimer_rmutex_lock_timeout
2022-02-25 16:32:35 +01:00
Karl Fessel
eb87cb7d3a sys/ztimer/xtimer_compat: fix bug introduced in #17690 2022-02-25 13:52:18 +01:00
Francisco
d895a29c79
Merge pull request #17690 from kfessel/p-ztimer-xtimer-compat32
sys/ztimer: cleanup xtimer_compat.h for 32Bit only
2022-02-25 08:37:34 +01:00
benpicco
67b98fd741 sys/net/nanocoap: introduce nanocoap_sock_*()
Co-authored-by: Jan Romann <jan.romann@uni-bremen.de>
2022-02-24 12:20:47 +01:00
Benjamin Valentin
0b768e5602 nanocoap: add nanocoap_request_simple() 2022-02-24 12:20:05 +01:00
Benjamin Valentin
7dc2f730d2 nanocoap: check if all critical options were handled 2022-02-24 12:20:05 +01:00
Francisco Molina
106db4616b sys/Makefile.dep: add missing newlib_syscalls dep 2022-02-24 09:10:58 +01:00
df8086091f sys/ztimer: add ztimer64_xtimer_compat
The ztimer64_xtimer_compat modules implements the whole xtimer api
on top of ztimer64_usec
2022-02-24 09:10:58 +01:00
Karl Fessel
822dbc718d sys/ztimer: xtimer_compat (32) remove xtimer_now_timex() 2022-02-23 16:21:37 +01:00
Karl Fessel
d81fbf044b sys/ztimer: cleanup xtimer_compat.h for 32Bit only 2022-02-23 16:01:05 +01:00
d43ad768f1
Merge pull request #17689 from fjmolinas/pr_event_timeout_deprecate_xtimer
sys/event/timeout: remove alternative xtimer implementation
2022-02-23 13:37:30 +01:00
Francisco Molina
dff92b59b5 sys/event/periodic: remove wrong event_timeout_dependency 2022-02-23 12:14:52 +01:00
Francisco Molina
b4a70fc29c sys/event/timeout: remove alternative xtimer implementation
The old event_timeout API is no soley implemented on top of ztimer_usec.
2022-02-23 12:14:30 +01:00
c6151226ad
Merge pull request #17633 from fjmolinas/pr_ztimer_auto_adjust
sys/ztimer: add auto_adjust module
2022-02-23 10:01:05 +01:00
Benjamin Valentin
8322110f84 pkg/fatfs: support FF_USE_FASTSEEK=1 2022-02-22 15:03:55 +01:00
Benjamin Valentin
635016baf9 pkg/fatfs: support FF_FS_TINY=0
For increased performance it can be desireable to disable the tiny option.
The config option enables a per-file cache which increases the size
of `fatfs_file_desc_t`.
2022-02-22 15:03:55 +01:00
Francisco
ff39d5f388
Merge pull request #17657 from benpicco/shell/udp_cmd-fix
shell/sc_gnrc_udp: always use delay in µs
2022-02-22 10:44:57 +01:00
Benjamin Valentin
4cf94083de sys/net/grnc: implement sock_udp_sendv_aux() 2022-02-22 10:05:41 +01:00
Benjamin Valentin
2a129fc327 sys/net/sock: add sock_udp_sendv() API 2022-02-22 10:05:41 +01:00
Francisco Molina
0a2b83358c sys/net/dsm: add missing dependencies 2022-02-21 15:15:02 +01:00
Francisco
dd150fe47e
Merge pull request #17584 from benpicco/auto_init_leds
sys/auto_init: add auto_init_leds, drop LED init code from boards
2022-02-18 19:40:50 +01:00
Benjamin Valentin
982598a199 drivers/periph_common: add periph_init_leds to init all on-board LEDs 2022-02-18 14:35:43 +01:00
d758cb93ef sys/ztimer: add auto_adjust module 2022-02-18 13:07:49 +01:00
benpicco
34b11e032d
Merge pull request #17675 from benpicco/net/dhcpv6-doc
sys/net/dhcpv6: enhance doc of CONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX
2022-02-17 23:00:53 +01:00
Benjamin Valentin
32c89e72ef Revert "gnrc_ipv6_nib: consider all local interfaces when looking for address"
This reverts commit 8871b929ab.
2022-02-17 19:27:48 +01:00
chrysn
40f7c66625
Merge pull request #17660 from chrysn-pull-requests/vfs-drop-per-fs-fstatvfs
vfs: Introduce reliable disk enumeration
2022-02-17 18:47:41 +01:00
Benjamin Valentin
effa879a56 sys/net/dhcpv6: enhance doc of CONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX
I always keep forgetting which option to tweak when I want multiple
downstream networks.
2022-02-17 18:46:28 +01:00
b2a93b0c7f
Merge pull request #17668 from fjmolinas/pr_sixlowpanfrag_xtimer_is_set
sys/net/gnrc_sixlowpan_frag_sfr: use xtimer_set
2022-02-17 09:48:01 +01:00
Francisco Molina
2005ba53f5 sys/include/ztimer: document CONFIG_ZTIMER_USEC_ADJUST_% 2022-02-17 09:30:09 +01:00
Francisco Molina
13bb00f863 sys/net/gnrc_sixlowpan_frag_sfr: use xtimer_is_set 2022-02-17 08:29:21 +01:00
chrysn
395d031cd3
Merge pull request #17661 from benpicco/vfs_mount_path
sys/vfs: add vfs_mount_by_path()
2022-02-16 23:42:51 +01:00
chrysn
d60f7aee72 sys/vfs: Deprecate public use of vfs_iterate_mounts 2022-02-16 19:15:02 +01:00
chrysn
b9b0ca8972 sys/shell/vfs: Use vfs_iter_mount_dirs instead of vfs_iter_mounts
This solves highly theoretical race conditions of file systems being
unmounted in an application while a shell `df` runs, fixes the previous
weird behavior that `/mountpoint/non-existant-path` could be df'd and
would even report that non-existant path as a file name, but more
practically ensures that an example of vfs_iter_mount_dirs is around.
2022-02-16 19:15:02 +01:00
chrysn
f0e80ee10c tests: Cover vfs_iterate_mount_dirs in a new test
... adding precision to the documentation where a corner case was
discovered during testing and is permitted.

The test is too large for one small board, just like the other existing
VFS test.
2022-02-16 19:15:02 +01:00
chrysn
90069197f7 sys/vfs: Introduce vfs_iterate_mount_dirs
... as thread-safe replacement for vfs_iterate_mounts
2022-02-16 19:15:02 +01:00
chrysn
9a319a9b4f sys/vfs: Iterate over file systems in sequence
This is a cosmetic change when considering vfs_iterate_mounts alone
(which now reports FSs in precise mount order rather than reporting the
most recently mounted, followed by the rest in mount order), but is
helpful for uses of it that need some guarantees in order to produce
reliable results even when iteration and (un)mounting interact.
2022-02-16 19:15:02 +01:00
Benjamin Valentin
609ed81f36 sys/shell: add vfs mount command 2022-02-16 18:55:26 +01:00
Benjamin Valentin
54d5f43aff sys/vfs: add vfs_mount_by_path() 2022-02-16 18:55:26 +01:00
Benjamin Valentin
5b246d02c0 pkg/fatfs: fatfs_vfs: wire up format() 2022-02-16 14:30:08 +01:00
Francisco
9314a591cb
Merge pull request #16789 from kaspar030/fix_lto_linking
make: add -ffunction-sections -fdata-sections to LINKFLAGS if LTO=1
2022-02-15 19:48:46 +01:00
Benjamin Valentin
8bb405a493 shell/sc_gnrc_udp: always use delay in µs 2022-02-15 15:08:53 +01:00
Karl Fessel
c4b760cb6b
Merge pull request #17655 from kfessel/p-remove-evtimer-now-min
sys/evtimer: remove deprecated evtimer_now_min
2022-02-15 15:03:57 +01:00
chrysn
599eade495 sys/vfs: Add vfs_dstatvfs 2022-02-15 14:58:01 +01:00
chrysn
ff1f81aac8 sys/vfs: Drop per-filesystem fstatvfs
No current file system implements it, there is no defined semantic
difference between running fstatfs and the fallback currently
implemented, and there is practically no optimization gained from not
just running it through a single statvfs.
2022-02-15 14:58:01 +01:00
812b273845 sys/malloc_thread_safe: mark functions "used"
Fixes LTO.
2022-02-15 12:28:16 +01:00
Karl Fessel
726c461cb5
Merge pull request #17574 from kfessel/p-fix-asserth
core/assert: avoid including panic.h with assert.h
2022-02-15 11:57:55 +01:00
chrysn
4c54bd8bdb vfs: Document that open directories are counted
The addition is helpful because directories are visibly different from
open files (and generally are not treated like files).
2022-02-15 11:17:02 +01:00
chrysn
69db27f1cc
Merge pull request #17614 from chrysn-pull-requests/ztimer-doc-stricter
sys/ztimer doc: List prerequisites for successful use of ztimer_now
2022-02-15 09:09:12 +01:00
Benjamin Valentin
d5dee30368 shell/sc_gnrc_udp: don't add delay after last packet 2022-02-14 17:58:20 +01:00
Benjamin Valentin
e22698f9cd shell/sc_gnrc_udp: set proper timeout based on which timer is used 2022-02-14 17:52:55 +01:00
benpicco
78e4f6b557
Merge pull request #17643 from benpicco/vfs_default
sys/vfs: add vfs_default, configure default fs for same54-xpro
2022-02-14 16:33:23 +01:00
Karl Fessel
a1f5b5d05f sys/evtimer: remove deprecated evtimer_now_min 2022-02-14 16:17:27 +01:00
chrysn
632ca35eb4 sys/ztimer doc: List prerequisites for successful use of ztimer_now
Closes: https://github.com/RIOT-OS/RIOT/issues/17298

Co-authored-by: Karl Fessel <karl.fessel@ovgu.de>
2022-02-14 15:50:09 +01:00
Benjamin Valentin
991f8e8c29 sys/fs/constfs: drop dummy implementations
VFS will handle it if those functions are not implemented.
2022-02-14 13:36:45 +01:00
Benjamin Valentin
92d9d5676a sys/vfs: add vfs_default pseudo-module 2022-02-14 13:04:37 +01:00
Francisco Molina
3de5549899 makefile: move DEFAULT_MODULEs with deps to default_modules.deps.mk 2022-02-14 13:03:32 +01:00
Francisco Molina
08dc06d5e0 sys/Makefile.dep: fix dhcp_relay dependency
Modules select by auto-init modules MUST NOT have dependencies
themselfs, dhcp_relay was not respecting that. Instead of having
the auto-init module select dhcp_relay, do it the other way
around.
2022-02-14 12:59:31 +01:00
Karl Fessel
49e99f712b net/gnrc: include kernel_defines.h 2022-02-12 18:30:58 +01:00
Karl Fessel
3bce72af2d sys/utlist: include stddef.h 2022-02-12 18:30:58 +01:00
Karl Fessel
909ffc9d34 sys/fmt: include kernel_defines.h 2022-02-12 18:30:58 +01:00
chrysn
aae6c18cb1
Merge pull request #17645 from chrysn-pull-requests/all-stat-buffers
vfs: Initialize stat buffers so FSs don't have to
2022-02-12 15:12:47 +01:00
chrysn
2cb4b70458 vfs / treewide: Remove manual zeroing of vfs stat buffers 2022-02-12 12:31:38 +01:00
chrysn
4e84c19281 vfs: Zero buffers in all stat calls
This allows individual VFS implementations to populate just the fields
they can populte.
2022-02-12 12:23:03 +01:00
Juergen Fitschen
b957b3cea1 sys/pm_layered: allow board.h to set PM_BLOCKER_INITIAL 2022-02-11 17:05:34 +01:00
8c36648bd5
Merge pull request #17640 from benpicco/sys/benchmark-cleanup
sys/benchmark: wrap BENCHMARK_FUNC in do {} while (0)
2022-02-11 16:35:46 +01:00
Benjamin Valentin
17cc382b93 sys/benchmark: wrap BENCHMARK_FUNC in do {} while (0)
This makes the BENCHMARK_FUNC() behave more like a normal C function.
2022-02-11 14:24:38 +01:00
Francisco
e6024c7fa7
Merge pull request #16384 from silkeh/pr/senml-module
sys/senml: add SenML modules
2022-02-11 13:57:36 +01:00
Silke Hofstra
9d61bdbb06 sys/senml: add SenML modules
Add a basic SenML module and submodules with support for:

- Encoding SenML values as CBOR using NanoCBOR.
- Converting from Phydat to SenML.
- Reading and encoding SAUL sensors.
2022-02-11 12:38:21 +01:00
benpicco
ce779f7b70
Merge pull request #17637 from jenswet/feature/unix_af_enum_t
net: Add typedef for AF enum
2022-02-11 11:52:32 +01:00
benpicco
561157ce72
Merge pull request #17635 from jenswet/feature/netdev_tap_register
cpu/native/netdev_tap: Add to netdev_register
2022-02-11 11:52:04 +01:00
Jens Wetterich
4dfeafcabd cpu/native/netdev_tap: Add to netdev_register 2022-02-11 07:54:11 +01:00
Jens Wetterich
fd5b1a68b5 net: Add typedef for AF enum 2022-02-10 19:02:50 +01:00
Jens Wetterich
f1f1896628 net/gnrc/pkt: Fix ISO C++ compatibility 2022-02-10 18:26:38 +01:00
benpicco
be45400631
Merge pull request #17341 from benpicco/vfs-mtd_cleanup
sys/vfs: add file-system auto-mount
2022-02-09 21:50:34 +01:00
Marian Buschsieweke
899635425b
Merge pull request #17625 from fjmolinas/pr_event_callback_init
sys/event/callback: in init set list_node.next to NULL
2022-02-09 21:01:43 +01:00
Francisco Molina
797f19d4cd sys/event/callback: in init set list_node.next to NULL
When using static initializers uninitialized fields are set to 0, or
NULL for pointers. But when using event_callback_init() on non
static variables event_callback_t structure may hold non 0 values.
This will lead to the event never being called since if super.list_node.next
is not NULL as it is considered already in the event queue and therefore
not touched.
2022-02-09 13:08:21 +01:00
b15d1c127b sys/xtimer: introduce xtimer_is_set() 2022-02-09 12:54:16 +01:00
Benjamin Valentin
ae06265de0 pkg/fatfs: VFS: internally handle fatfs_mtd_devs
This makes FAT behave more like the other file systems supported by VFS.
The `fatfs_mtd_devs` array is populated internally so the application does
not have to handle this.
2022-02-09 12:21:53 +01:00
Benjamin Valentin
2f6aa71946 sys/vfs: add file-system auto-mount 2022-02-09 12:21:53 +01:00
Benjamin Valentin
574dc86716 sys/fido2: make use of mtd_flashpage_t 2022-02-08 17:14:34 +01:00
Benjamin Valentin
8c2314647e fs/constfs: omit leading '/' in readdir()
This aligns ConstFS readdir() implementation more with POSIX.
2022-02-08 16:28:51 +01:00
Benjamin Valentin
0cd3cf4506 sc_vfs: print files with unknown type 2022-02-08 16:28:33 +01:00
benpicco
28fa5c72a8
Merge pull request #17622 from benpicco/sys/shell-ls_size
sc_vfs: print file size
2022-02-08 16:11:05 +01:00
Benjamin Valentin
a486bae55a sc_vfs: print file size
This prints the size of the displayed files in `ls`.
It also makes it easier to distinguis files from directories.
2022-02-08 13:23:42 +01:00
Benjamin Valentin
5833bcb7ba sys/benchmark: fix divide by zero if runs < 1000
If runs < 1000, `runs / 1000` will result in 0 - which causes a division by 0.
2022-02-08 12:52:48 +01:00
Benjamin Valentin
aac538ba7f sys/vfs: provide vfs_fsync() 2022-02-07 16:07:20 +01:00
benpicco
4aa90d3dc6
Merge pull request #16919 from maribu/core/rmutex
core/rmutex: use atomic utils
2022-02-04 11:56:05 +01:00
Francisco
dbae3ed706
Merge pull request #16860 from haukepetersen/add_nimble_netifextadv
nimble/netif: add support for BT5 PHY modes
2022-02-04 11:16:11 +01:00
Francisco
14f22c17aa
Merge pull request #12012 from HendrikVE/nimble_shell_module
sys/stdio_nimble: add new stdio module using nimble
2022-02-04 11:10:17 +01:00
Leandro Lanzieri
1e300a4959
Merge pull request #17435 from Ollrogge/fido2_kconfig
sys/fido2: model Kconfig
2022-02-01 12:03:11 +01:00
Ollrogge
1dde2cd3bc sys/fido2: remove unnecessary module import from Makefile.dep 2022-01-31 16:49:38 +01:00
Ollrogge
4b24012cbc sys/fido2: model Kconfig 2022-01-31 16:49:19 +01:00
Francisco
ba325e8a35
Merge pull request #17354 from bergzand/pr/gnrc_netif/ztimer
gnrc/netif: convert to ztimer
2022-01-31 09:42:28 +01:00
benpicco
d0d4497162
Merge pull request #17589 from kfessel/p-fix-ztimer64-print
sys/ztimer64: PRIu64 requires stdio before inttypes
2022-01-30 22:28:38 +01:00
benpicco
5a57dec71a
Merge pull request #17093 from maribu/core/change_prio
core/sched: add sched_change_priority()
2022-01-28 20:01:20 +01:00
Hendrik van Essen
f91751ee08 sys/stdio_nimble: implementation of stdio_available 2022-01-28 19:26:38 +01:00
Hendrik van Essen
7ab13448ef tests/shell_ble: add variant of shell test for stdio_nimble 2022-01-28 19:26:38 +01:00
Hendrik van Essen
72a6ca6366 sys/stdio_nimble: add new stdio module using nimble
Implement a new module stdio_nimble, which uses nimble
for stdio. The characteristic for stdin is writable and
the characteristic for stdout uses the indicate mechanism
to publish the system's output to a connected device.
Data will be sent out asynchronously via callout functions.

The module can be enabled with "USEMODULE += stdio_nimble"

Co-authored-by: Francisco Molina <femolina@uc.cl>
2022-01-28 19:26:38 +01:00
Karl Fessel
6321a958a9 sys/ztimer64: PRIu64 requires stdio before inttypes 2022-01-28 17:48:47 +01:00
3b5662e116
gnrc/netif: convert to ztimer 2022-01-28 13:38:50 +01:00
Benjamin Valentin
2682848a29 suit/transport/coap: move suit_coap_get_blockwise() to nanocoap 2022-01-27 14:42:49 +01:00
Benjamin Valentin
8c9f413b33 suit/transport/coap: move suit_coap_get_blockwise() to socket based API 2022-01-27 14:42:49 +01:00
Benjamin Valentin
88d0b5753c suit/transport/coap: let caller allocate blockwise work buffer 2022-01-27 14:42:49 +01:00
Benjamin Valentin
d680743fe9 net/coap: specify timeout in milliseconds
This allows for more flexibility when choosing timeouts.
2022-01-27 14:42:49 +01:00
Benjamin Valentin
6f161569f4 suit/transport/coap: use nanocoap for request
This changes the retransmission timeout behavior.
In SUIT the timeout was uses as the maximum time *all* retransmissions
could take, whereas in nanocoap the timeout was specified per retransmission.

This means that SUIT now adopts the timeout behavior of nanocoap.
2022-01-27 14:41:06 +01:00
Benjamin Valentin
3895fdc2c3 net/coap: move socket open/close out of nanocoap API
This allows to reuse a socket between requests and aligns the API
with the usage in SUIT.
2022-01-27 14:31:06 +01:00
Hauke Petersen
7c3f4e0fe9 shell/sc_nimble_statconn: allow to set PHY mode 2022-01-27 10:30:29 +01:00
Hauke Petersen
f9386b4af7 shell/sc_nimble_netif: extend to support PHY modes 2022-01-27 10:30:29 +01:00
chrysn
418dafd40e net/cord doc: Expand CONFIG_CORD_EXTRAARGS documentation 2022-01-27 09:50:08 +01:00
chrysn
72c21f6506 net/cord doc: Fix Endpoint ID grouping
The braces (which appear to do nothing) were keeping Doxygen from
grouping the three "Endpoint ID defition" parameters (apparently
intended to be grouped from the braces in the file) from being shown
together.

Moreover, they kept CONFIG_CORD_EXTRAARGS from showing.
2022-01-27 09:50:08 +01:00
chrysn
7253817890 net/cord doc: Unify configuration documentation ...
... anchored both under "compile time configuration" and "Networking /
CoRE RD"

This makes the related configuration items visible on the same page.

Co-authored-by: Martine Lenders <mail@martine-lenders.eu>
2022-01-27 09:50:03 +01:00
chrysn
ca25ab95f9 net/cord doc: Fix unbalanced grouping 2022-01-27 09:47:14 +01:00
chrysn
da03ee80d8 net/cord doc: Rename configuration section
The title is long enough that it is easily misread as "Client
Configuration" and skipped when looking for common configuration.

(Plus none of the other submodules of net_cord spell out the full "Core
RD Endpoint and Lookup Client" module name again,a dn all say "CoRE RD
Something".)
2022-01-27 09:47:14 +01:00
chrysn
206bea0a1d phydat: Add Tesla unit
While this is equivalent to the existing Gs (1 T = 10^-4 Gs), this is
the SI (and thus preferred) unit.
2022-01-25 13:46:08 +01:00
benpicco
09ddd400c8
Merge pull request #17546 from gschorcht/cpu/esp32/gcc_8_4_0
cpu/esp32: changes for toolchain update to gcc version 8.4.0
2022-01-25 10:12:54 +01:00
Gunar Schorcht
881a92fe47 cpu/esp32: remove types.h in sys include 2022-01-25 00:36:51 +01:00
Francisco Molina
de50d557d8 sys/ztimer64/util.c: fix ztimer64_set_timeout_flag 2022-01-24 18:37:18 +01:00
Benjamin Valentin
70d9f2fb1a sys/vfs: move mtd_vfs_ops to vfs.h
This avoids a cyclic include of mtd.h
2022-01-24 13:53:21 +01:00
c21730a765
Merge pull request #17406 from fjmolinas/pr_twr_aloha_rework
examples/twr_aloha: refactor
2022-01-21 10:08:46 +01:00
f511a64302
Merge pull request #17538 from leandrolanzieri/pr/doc/pkg_includes
pkg: fix documentation on includes
2022-01-19 16:50:14 +01:00
Benjamin Valentin
77ab8a657a sys/chunked_ringbuffer: add chunked ringbuffer 2022-01-19 11:43:35 +01:00
Francisco Molina
dda5441c6c sys/event/periodic: model in Kconfig 2022-01-19 10:32:33 +01:00
Leandro Lanzieri
d8e84434a8
sys/Makefile.dep: Remove unneeded include 2022-01-19 10:16:34 +01:00
benpicco
2542195cdf
Merge pull request #15671 from PeterKietzmann/pr_add_pkg_mbedtls
pkg/mbedtls: initial pkg import to use entropy module
2022-01-18 08:22:50 +01:00
PeterKietzmann
b05f93405e pkg/mbedtls:initial port of the entropy module 2022-01-17 23:22:14 +01:00
75f5048b68
Merge pull request #17497 from jia200x/pr/lora/fix_rssi_val
[treewide] lora: use int16_t for RSSI value
2022-01-17 18:57:37 +01:00
Jose Alamos
9955a35c63
[treewide] lora: use int16_t for RSSI value
The RSSI values reported by LoRa transceiver can be less than -127.
Therefore, `int8_t` is not enough. This commit defines the RSSI of
`netdev_lora_rx_info` as `int16_t` and adapt the drivers accordingly
(sx126x, sx127x).
2022-01-17 17:54:18 +01:00
José Alamos
c326be00f6
Merge pull request #16940 from chrysn-pull-requests/6lo-docs
net/ieee802154: Add overview documentation
2022-01-17 17:33:05 +01:00
Marian Buschsieweke
8549ff2f7d
Merge pull request #17479 from gschorcht/cxxexflags_cpp+14
makefiles: use C++14 standard by default for C++ compilations
2022-01-17 13:42:41 +01:00
Francisco
000e6fa99d
Merge pull request #17228 from miri64/gnrc_pktbuf_cmd/enh/add-od-dep
gnrc_pktbuf_cmd: add od dependency with gnrc_pktbuf_static
2022-01-17 12:10:49 +01:00
Francisco
54d62f1303
Merge pull request #17517 from aabadie/pr/sys/lora_remove_deprecated_define
sys/lora: remove deprecated LORA_PAYLOAD_CRC_ON_DEFAULT define
2022-01-17 11:09:00 +01:00
chrysn
13036c1bc4 net/iee802154 doc: Add overview / introduction documentation
The module previously called net_ieee802154 is renamed to capture that
it is about interacting the frames and headers, and moved "into" the new
topic in the documentation tree.

Exceptions for undocumented headers are updated.
2022-01-16 11:29:32 +01:00
chrysn
fdf3c324b9 net/ieee802154 doc: Group security with existing 802154 2022-01-16 11:24:22 +01:00
chrysn
2637a9f17e net/ieee802154 doc: Consistent spacing
This ensures that the the 802.15.4 modules are grouped together in the
built documentation (vs. "IEEE 802.15.4" / "IEEE EUI-..." /
"IEEE802.15.4" sorting).
2022-01-16 11:24:22 +01:00
d792bc2b35
Merge pull request #17516 from aabadie/pr/sys/loramac_use_new_private_network_config
sys/loramac: remove deprecated LORAMAC_DEFAULT_PUBLIC_NETWORK
2022-01-15 12:29:00 +01:00
Karl Fessel
2bebcb62b5
Merge pull request #17411 from kfessel/p-nib-no-minutes
gnrc/ipv6nib: remove the need for evtimer-minutes
2022-01-15 02:33:30 +01:00
ed155f82ce
sys/lora: remove deprecated LORA_PAYLOAD_CRC_ON_DEFAULT define 2022-01-14 10:37:42 +01:00
cceaf45389
sys/loramac: remove deprecated LORAMAC_DEFAULT_PUBLIC_NETWORK define 2022-01-14 10:21:20 +01:00
50c5d84277
sys/net/gnrc_lorawan: use CONFIG_LORAMAC_DEFAULT_PRIVATE_NETWORK 2022-01-14 10:21:19 +01:00
Marian Buschsieweke
b6b7065ddc
core/rmutex: use atomic utils
Replace use of C11 atomics with atomic utils. This fixes

> error: address argument to atomic operation must be a pointer to a
>        trivially-copyable type ('_Atomic(int) *' invalid)

error when compiling on AVR with LLVM.
2022-01-14 09:52:17 +01:00
Benjamin Valentin
67ef5faeed sys/net/sock_util: make use of SOCK_HAS_IPV4 2022-01-13 18:40:12 +01:00
Gunar Schorcht
20dfe40330 sys: remove -std=c++11 2022-01-13 17:50:59 +01:00
Gunar Schorcht
a0f0d2ea43 sys/cpp_new_delete: add deleted operators required by C++14 2022-01-13 17:50:59 +01:00
Karl Fessel
505ce8481b gnrc/ipv6nib: remove the need for evtimer-minutes
gnrc/nib: add unitmarker to valid_untils that where min and are now ms
2022-01-13 15:17:24 +01:00
Benjamin Valentin
22c46b04c9 sys/net/sock: introduce SOCK_HAS_IPV4 2022-01-13 12:53:41 +01:00
Marian Buschsieweke
71ed611607
Merge pull request #17366 from aabadie/pr/can_ztimer
sys/can: migrate to ztimer
2022-01-12 17:56:41 +01:00
benpicco
d0868bc997
Merge pull request #16918 from jia200x/pr/gnrc_netif/refactor_init
gnrc_netif: move netdev initialization to ops->init
2022-01-10 17:58:45 +01:00
Jose Alamos
e40f97c4da
net/gnrc/netif: move interface registration to init function 2022-01-10 13:59:28 +01:00
Jose Alamos
5f46ab72e0
net/gnrc/lorawan: adapt ops->init to handle driver initialization 2022-01-10 13:59:27 +01:00
Jose Alamos
08ec9693cd
net/lwmac: adapt ops->init to handle driver initialization 2022-01-10 13:59:26 +01:00
Jose Alamos
298f16fee7
net/gomach: adapt ops->init to handle driver initialization 2022-01-10 13:59:26 +01:00
Jose Alamos
415704fa76
net/gnrc_netif: move netdev init code to ops->init 2022-01-10 13:59:24 +01:00
Jose Alamos
e7fac9f661
net/gnrc_netif: add return values to init 2022-01-10 13:59:01 +01:00
Jose Alamos
874a13e090
ieee802154/hal: remove RX continuous cap 2022-01-10 13:57:03 +01:00
Jose Alamos
94a996ee7c
ieee802154/hal: request set IDLE before calling read 2022-01-10 13:57:02 +01:00
Jose Alamos
db815aa779
ieee802154/hal: migrate to request_op and confirm_op 2022-01-10 13:57:02 +01:00
benpicco
f33b3ad10d
Merge pull request #17242 from bergzand/pr/hid/add_descriptor_defines
usb/hid: Add HID report descriptor defines
2022-01-10 12:28:01 +01:00
ce373902ee
sys/can: migrate to ztimer 2022-01-10 12:21:40 +01:00
a148f2d40d
sys/fido2: Adapt CTAP HID descriptors to use helper defines
Content of the HID report descriptor itself is unchanged
2022-01-10 11:35:58 +01:00
758a0bc174
usb/hid: Add HID report descriptor defines 2022-01-10 11:35:58 +01:00
c49f156e6e
Merge pull request #17448 from aabadie/pr/drivers/ft5336
drivers/ft5x06: add support for touch panel controller
2022-01-09 18:02:40 +01:00
benpicco
c18c56aa03
Merge pull request #17380 from qmk/bind_extra_usb_config
usbus: Bind extra USB config
2022-01-09 17:58:38 +01:00
8ca9cbc0b6
sys/auto_init/screen: fix coccinelle warning 2022-01-09 16:43:35 +01:00
f5b5af9469
drivers/ft5x06: add touch_dev interface 2022-01-09 16:43:34 +01:00
08f93d7904
sys/saul_reg: remove deprecated saul_reg_rm 2022-01-08 11:48:44 +01:00
c5656ef3b2
Merge pull request #17481 from aabadie/pr/sys/asymcute_bufsize_removal
sys/asymcute: remove deprecated CONFIG_ASYMCUTE_BUFSIZE_EXP
2022-01-08 11:30:59 +01:00
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
benpicco
9829ac2041
Merge pull request #17484 from aabadie/pr/sys/shell_remove_deprecated_defines
sys/shell: remove deprecated SHELL_NO_{ECHO,PROMPT} defines
2022-01-07 19:50:12 +01:00
3676b63583
Merge pull request #17447 from gschorcht/sys/arduino_serial_stdio
sys/arduino: add Serial over stdio support
2022-01-07 18:04:35 +01:00
2703c63397
sys/auto_init: add periph_ltdc auto_init 2022-01-07 14:32:24 +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
Gunar Schorcht
2dcd761954 sys/arduino: enable arduino_serial_stdio if stdio_cdc_acm is used 2022-01-06 17:27:53 +01:00
Gunar Schorcht
725472cbc4 sys/arduino: add Serial over stdio support
If module `arduino_serial_stdio` is used and `ARDUINO_UART_DEV` is `UART_UNDEF`, the STDIO is used for `Serial`. It requires that the used `stdio` backend implements `stdio_available`.
2022-01-06 17:27:53 +01:00
Gunar Schorcht
3e2de3590e sys/cpp11-compat: add deleted operators required by C++14 2022-01-06 11:18:33 +01:00
7d8b31d887
Merge pull request #17475 from gschorcht/sys/move_new_delete_dso_handle
sys/cpp11-compat: use new/delete operators from sys/cpp_new_delete
2022-01-06 11:00:15 +01:00
Gunar Schorcht
9ec52361d1 sys/cpp11_compat: move __dso_handle to sys/cpp_new_delete
On ARM platforms, `__dso_handle` is used for dynamic shared objects. But it is also required if global static objects are used. To avoid that `sys/cpp11_compat` is required only for using the (re)defined `new`/`delete` operators, `__dso_handle` is moved to module `sys/cpp_new_delete`
2022-01-06 09:50:29 +01:00
Gunar Schorcht
eaf3a4c81a sys/cpp11-compat: use new/delete from sys/cpp_new_delete
The `new` and `delete` operators that don't need `libtsdc++` are also provided by module `sys/cpp_new_delete` for platforms that don't have the `libstdc++`. Since these operators in `sys/cpp11-compat` are just wrappers for standard `malloc`/`free` functions like in `sys/cpp_new_delete`, the `new`/`delete` operators that don't need `libstdc++` are used from `sys/cpp_new_delete`. Only the `new`/`delete` operators that require the `libstd++` are left in `sys/cpp11-compat`.
  So it is sufficient for the use of the (re)defined `new`/`delete` operators that an application uses the module `sys/cpp_new_delete` instead of `sys/cpp11-compat` and thus also works on platforms without `libstdc++`.
2022-01-06 09:50:14 +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
Marian Buschsieweke
674fca2023
sys/arduino: use static_assert() instead of BUILD_BUG_ON() 2022-01-05 15:41:39 +01:00
3aac469e61
Merge pull request #16852 from HendrikVE/pr/wolfmqtt_split_4
sys/posix/socket: use explicit bind
2022-01-05 14:31:52 +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
Marian Buschsieweke
30b3f9ad55
Merge pull request #17464 from gschorcht/sys/new_delete_module
sys/new_delete: add malloc/free based new/delete implementation
2022-01-04 14:50:30 +01:00
benpicco
55900e0fb5
Merge pull request #16755 from benpicco/gnrc_ipv6_nib-no_adv_router
gnrc_dhcpv6_client / uhcp: delay router advertisements until prefix was received
2022-01-04 13:34:32 +01:00
Benjamin Valentin
0504771c6c sys/net/uhcp: delay router advertisements until prefix was received 2022-01-04 12:42:44 +01:00
Benjamin Valentin
a629e70357 gnrc_dhcpv6_client: delay router advertisements until prefix was received 2022-01-04 12:42:43 +01:00
Gunar Schorcht
4bfd549301 sys/new_delete: add malloc/free based new/delete implementation
On some platforms `libstdc++` is not used or not available, like on the AVR. Such platforms can use this module to implement the C++ `new` and `delete` operators using `malloc` and `free` respectively. However, to be thread-safe, a thread-safe implementation of `malloc` and `free` must be present.
2022-01-03 23:35:35 +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
af621ec91b sys/usb/cdc/acm: implementation of stdio_available 2022-01-03 16:14:11 +01:00
Gunar Schorcht
0ffad24112 sys/stdio_uart: implementation of stdio_available 2022-01-03 16:14:11 +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
benpicco
fadb4d9e6c
Merge pull request #17452 from Ollrogge/hid_pr
usbus/hid: Remove unimplemented function declaration
2022-01-03 01:07:43 +01:00
Jan Romann
e29da26ea1
Merge pull request #17250 from JKRhb/dhcpv6-restart-fix
sys/net/dhcpv6: fix variable shadowing issue
2022-01-01 20:48:07 +01:00
Jan Romann
e185a2556d
sys/net/dhcpv6: fix variable shadowing issue 2022-01-01 18:43:13 +01:00
Ollrogge
8ec310b085 usbus/hid: Remove unimplemented function declaration 2021-12-27 21:18:43 +01:00
Gunar Schorcht
ede5f9ebab sys/arduino: add assertion to gpio handling
Not all boards that provide a Arduino pin layout break out all GPIOs. A good example are Adafruit `feather-m0` boards. GPIOs that are not broken out have to be defined as `GPIO_UNDEF` to preserve the Arduino pin layout. However, GPIO functions lead to a complete system lock on `feather-m0` boards if a pin is used that is defined as `GPIO_UNDEF`. Therefore, at least an assert should blow up in this case.
2021-12-27 11:38:05 +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
43988120f9
Merge pull request #17409 from kaspar030/ztimer_no_timer_fix
sys/ztimer: don't access non-existant timer
2021-12-17 23:27:04 +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
eb72086e35
Merge pull request #17414 from fjmolinas/pr_ztimer64_init
sys/ztimer64: default select ztimer64_init
2021-12-16 15:11:46 +01:00
Francisco Molina
f3e348dee0 sys/ztimer64: default select ztimer64_init 2021-12-16 12:28:25 +01:00
Martine Lenders
e062ad78f3
Merge pull request #17265 from miri64/ethos/fix/threadify-state-machine
ethos: move bulk of state machine out of ISR context
2021-12-16 12:24:14 +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
Martine Lenders
568be105f2
stdio_ethos: move to ethos_stdio 2021-12-15 16:15:29 +01:00
Francisco Molina
efeecae3a5 sys/Makefile.dep: remove ztimer_periodic dep
This module does not exist, its part of ztimer core.
2021-12-15 15:52:08 +01:00
b551bbf747 sys/ztimer: don't access non-existant timer 2021-12-15 15:51:59 +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
Francisco
03a004e3c9
Merge pull request #17395 from fjmolinas/pr_cpu_no_rtt
cpu: do not auto-select ztimer_periph_rtt for sam0, fe310
2021-12-15 14:04:57 +01:00
Francisco
fe850e8919
Merge pull request #17357 from kfessel/p-evtimer32
sys/evtimer,ztimer: do not depend on ztimer_now64
2021-12-15 13:24:44 +01:00
ec41c43751
sys: introduce coreclk utility function 2021-12-15 12:41:36 +01:00
Kevin "Tristate Tom" Weiss
e3f6212708
Merge pull request #17355 from leandrolanzieri/pr/boards/samd21/model_kconfig
boards/samd21-based: model Kconfig
2021-12-15 12:35:32 +01:00
32afae0b5f sys/ztimer: ztimer_now() add warning regarding comparing now() values 2021-12-15 12:34:37 +01:00
Francisco
e2608e178f
Merge pull request #17394 from fjmolinas/pr_evtimer_now_ztimer
sys/evtimer: use now returned by set
2021-12-15 12:11:44 +01:00
Leandro Lanzieri
8bcd7e53e8 sys/arduino/kconfig: use periph_uart 2021-12-15 10:31:19 +01:00
Karl Fessel
af13447238 gnrc/ipv6_auto_subnets: depend on xtimer 2021-12-14 22:53:01 +01:00
Karl Fessel
427df6d59d suit: example doesn't need xtimer suit_coap needs xtimer 2021-12-14 22:53:01 +01:00
Karl Fessel
0a25554ca7 net/uhcpc: depends on xtimer 2021-12-14 22:53:01 +01:00
Karl Fessel
1e31818f9e sys/benchmark_upd: depends on xtimer 2021-12-14 22:53:01 +01:00
Karl Fessel
0a3dd441ce net/gnrc_sock: do not include xtimer.h without xtimer module 2021-12-14 22:53:01 +01:00
Karl Fessel
95767ec9b5 sys/evtimer: deprecate evtimer_now_min 2021-12-14 22:53:01 +01:00
Francisco Molina
c21c01b5b9 sys/ztimer: fix kconfig ZTIMER_SEC default 2021-12-14 18:44:48 +01:00
Francisco Molina
5e47fc7e22 cpu: do not auto-select ztimer_periph_rtt for sam0, fe310
The sam0 rtt busy loops for 180us every time an alarm is set or
the counter is read, this propagates and leads to timing errors
on ztimer_msec that are higher than > +-1msec.

The same goes for fe310.
2021-12-14 18:43:53 +01:00
Karl Fessel
4d70d939ca sys/evtimer,ztimer: do not depend on ztimer_now64 2021-12-14 14:41:06 +01:00
Hauke Petersen
bc0adc19a8 shell/sc_gnrc_udp: rename static functions 2021-12-14 13:50:38 +01:00
Hauke Petersen
13363782b2 shell/sc_gnrc_udp: mark all feasible params const 2021-12-14 13:50:29 +01:00
Francisco Molina
240e778b8b sys/evtimer: use now returned by set 2021-12-14 13:24:29 +01:00
benpicco
cfaa167469
Merge pull request #16598 from benpicco/sys/shell/udp
examples/gnrc_networking: move udp command to shell commands
2021-12-13 15:03:18 +01:00
efa24b3f1e
Merge pull request #17385 from fjmolinas/pr_ztimer_set_now
sys/ztimer: ztimer_set() return the now value
2021-12-13 13:06:27 +01:00
Francisco Molina
dd03d8c362 sys/ztimer: ztimer_set return the now value 2021-12-13 11:21:23 +01:00
Marian Buschsieweke
5b86d65744
Merge pull request #14364 from gschorcht/fix_ndebug_compilation
Fix NDEBUG compilation problems
2021-12-12 14:39:42 +01:00
Gunar Schorcht
85313ccc02
Merge pull request #17232 from leandrolanzieri/pr/cpu/esp/model_kconfig
cpu/esp{32,8266}: model kconfig
2021-12-11 08:53:31 +01:00
zvecr
bf241a117c usbus: Bind extra USB config 2021-12-10 23:34:59 +00:00