Benjamin Valentin
81625fd5f2
doc: sort all stdio implementations into sys_stdio group
2023-01-13 11:08:22 +01:00
Benjamin Valentin
d660e3ebbd
nanocoap_sock: implement DTLS socket
2023-01-13 00:17:32 +01:00
Benjamin Valentin
ad5b27df8e
nanocoap_sock: make nanocoap_sock_t a proper struct
2023-01-13 00:08:55 +01:00
Benjamin Valentin
94f9f11596
ztimer: introduce ztimer_mutex_unlock_after()
2023-01-13 00:08:55 +01:00
bors[bot]
53176f7b9e
Merge #18134 #18738 #18939 #19118
...
18134: nanocoap_link_format: add helper function to parse Link Format r=kaspar030 a=benpicco
18738: nanocoap_sock: implement nanocoap_sock_delete() r=maribu a=benpicco
18939: gnrc_ipv6_nib: clean up _resolve_addr() r=maribu a=benpicco
19118: sys/ztimer: ztimer_mock: guard ztimer_ondemand static functions r=kaspar030 a=kaspar030
Co-authored-by: Benjamin Valentin <benpicco@beuth-hochschule.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2023-01-10 11:25:32 +00:00
bors[bot]
441b69964c
Merge #19106
...
19106: core/lib: Add macros/utils.h header r=aabadie a=maribu
### Contribution description
The macros CONCAT(), MIN(), and MAX() are defined over and over again in RIOT's code base. This de-duplicates the code by moving the macros to a common place.
### Testing procedure
Generated binaries don't change, as this only a de-duplication of macros that doesn't change their definition.
### Issues/PRs references
None
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2023-01-07 21:16:51 +00:00
Marian Buschsieweke
86fdbd7054
core/lib: Add macros/utils.h header
...
The macros CONCAT(), MIN(), and MAX() are defined over and over again in
RIOT's code base. This de-duplicates the code by moving the macros to a
common place.
2023-01-07 09:47:44 +01:00
bors[bot]
4f1bb12720
Merge #18752 #19100 #19104
...
18752: nanocoap_sock: deprecate nanocoap_get() r=benpicco a=benpicco
19100: cpu/esp_common: allow configuration of UART0 r=benpicco a=gschorcht
### Contribution description
This PR
- fixes the issue for ESP32 SoCs that UART0 signals can't be routed to arbitrary GPIOs and
- allows the configuration of the UART device used by the bootloader.
The UART interface and its configuration used by the STDIO are defined in RIOT using the define `STDIO_UART_DEV` and the configuration of the corresponding UART device in `periph_conf.h`.
However, the bootloader compiled directly in ESP-IDF uses its own definitions `CONFIG_ESP_CONSOLE_UART_*` for the UART configuration. To be able to use a consistent UART configuration in RIOT and the bootloader, e.g. to see the output of the 2nd stage bootloader, these `CONFIG_ESP_CONSOLE_UART_*` can be defined via a set of KConfig variables in RIOT (not yet implemented in Kconfig):
- `CONSOLE_CONFIG_UART_NUM` defines the UART device to be used by the bootloader and by `STDIO_UART_DEV`
- `CONSOLE_CONFIG_UART_RX` and `CONSOLE_CONFIG_UART_TX` define the GPIOs to be used by the bootloader and should be the GPIOs as defined in `periph_conf.h` for the corresponding UART device.
### Testing procedure
Any ESP32 node should still work with `stdio_uart` and the default configuration. To test an alternative configuration, use
```
CFLAGS='-DUART1_TXD=5 -DUART1_RXD=4 -DCONFIG_CONSOLE_UART_NUM=1 -DCONFIG_CONSOLE_UART_TX=5 -DCONFIG_CONSOLE_UART_RX=4' USEMODULE=esp_log_startup BOARD=esp32-wroom-32 make -C tests/shell flash
```
The bootloader output and the STDIO should be routed to UART1 at GPIO4 and GPIO5.
### Issues/PRs references
Prerequisite for PR ##18863
19104: tests/periph_uart: only exclude STDIO_UART_DEV if stdio_uart is used r=benpicco a=benpicco
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
2023-01-06 21:15:36 +00:00
bors[bot]
6cf2116ae8
Merge #18773
...
18773: nanocoap_sock: fix handling empty ACKs with separate response r=maribu a=benpicco
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
2023-01-06 01:07:57 +00:00
bors[bot]
ca3b259add
Merge #18637
...
18637: Fido2 follow up r=benpicco a=Ollrogge
Co-authored-by: Ollrogge <nils-ollrogge@outlook.de>
2022-12-19 18:02:20 +00:00
Teufelchen1
82f44c5b1f
fuzzing: Add uri_parser fuzzer setup
2022-12-19 13:03:45 +01:00
Teufelchen1
5c51686178
fuzzing: Add generic input reader
2022-12-15 15:13:18 +01:00
bors[bot]
2ea6a2af1e
Merge #19053
...
19053: net/ieee802154: make default ack request configurable r=jia200x a=jue89
Co-authored-by: Jue <me@jue.yt>
2022-12-15 10:15:31 +00:00
bors[bot]
10c1909f2d
Merge #19046
...
19046: gnrc & coap: misc minor changes r=benpicco a=benpicco
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2022-12-14 17:18:05 +00:00
Jue
6ff38347b3
net/ieee802154: add option for default ack request
2022-12-14 16:29:01 +01:00
Benjamin Valentin
b2c5c16a08
sys/bitfield: don't use ambiguous 'size of the bitfield'
...
It's otherwise unclear if those are bits or bytes.
2022-12-13 13:09:31 +01:00
Benjamin Valentin
7ed0f7355f
sys/bitfield: add bf_clear_all()
2022-12-13 13:09:31 +01:00
Benjamin Valentin
9b09f673fd
sys/bitfield: add atomic variants of write functions
2022-12-13 00:32:01 +01:00
Benjamin Valentin
1a4c21fb97
nanocoap: turn coap_szx2size() into a macro
2022-12-13 00:27:45 +01:00
Benjamin Valentin
2002e169dd
net/coap: add COAP_CODE_TOO_MANY_REQUESTS
2022-12-13 00:27:45 +01:00
Benjamin Valentin
ba857582a3
gnrc_netif: constify group parameter
2022-12-13 00:24:44 +01:00
Benjamin Valentin
7b7c63b638
nanocoap_link_format: add helper function to parse link format
2022-12-11 23:39:47 +01:00
Benjamin Valentin
249901bc96
gnrc_static: add static network configuration
2022-12-11 23:34:09 +01:00
Benjamin Valentin
15c8ad2e8e
sys/net/ipv6: add ipv6_prefix_from_str()
2022-12-11 23:34:09 +01:00
Benjamin Valentin
5986d8f371
sys/dns: select appropriate address family if AF_UNSPEC
2022-12-07 22:26:51 +01:00
Marian Buschsieweke
eea954cc22
Merge pull request #18995 from kfessel/p-cleanup-pufsram
...
sys/puf_sram: cleanup header
2022-12-07 20:39:17 +01:00
Juergen Fitschen
71a606a1db
Merge pull request #17607 from jue89/feature/ztimer-ondemand
...
ztimer: add ztimer_ondemand module for implicit power management
2022-12-06 18:30:16 +01:00
Karl Fessel
4753ae382c
sys/puf_sram: cleanup header
2022-12-05 16:13:21 +01:00
Gunar Schorcht
1d9e2cc4f6
sys/riotboot: use BTN0_MODE for default value of BTN_BOOTLOADER_INVERTED
2022-11-30 19:28:14 +01:00
benpicco
e18bc193fc
Merge pull request #18551 from benpicco/suit_worker_cleanup
...
suit: start worker thread on demand, make suit_handle_url() public
2022-11-30 11:42:25 +01:00
benpicco
388f9a2015
Merge pull request #18887 from kfessel/p-clean-header-kerneldef
...
sys/include: remove kernel_defines.h where not needed
2022-11-29 10:14:52 +01:00
benpicco
1a73fb0593
Merge pull request #18795 from benpicco/irq-track
...
debug_irq_disable: add module to debug time spent in irq_disable
2022-11-25 19:10:10 +01:00
Benjamin Valentin
59a3e613fe
cpu/cortexm_common: measure time spent with IRQ disabled
2022-11-24 21:27:20 +01:00
Benjamin Valentin
8145c42955
debug_irq_disable: add module to debug time spent in irq_disable
2022-11-24 21:27:20 +01:00
Juergen Fitschen
d9cde14669
treewide: fix typos found by recent codespell
2022-11-24 14:53:48 +01:00
benpicco
e6284ec244
Merge pull request #18816 from benpicco/nanocoap_handle_req-ctx
...
nanocoap: add request context to coap_handle_req()
2022-11-23 20:36:50 +01:00
Karl Fessel
af8589059e
sys/includes: replace kernel_defines.h
2022-11-22 13:39:35 +01:00
Karl Fessel
dd9c3ba362
includes/net: replace "kernel_defines.h"
2022-11-22 13:39:35 +01:00
Karl Fessel
b70d6c7fd7
gnrc/include: replace kernel_defines.h
2022-11-22 13:39:35 +01:00
Karl Fessel
768451bf09
sys/include: remove kernel_defines.h where not needed
2022-11-22 13:39:35 +01:00
Benjamin Valentin
8a11ca2f87
nanocoap: don't hide coap_request_ctx_t content
2022-11-22 10:41:32 +01:00
Jue
2b53f35a28
ztimer: warn users when calling ztimer_now() on inactive clocks
2022-11-22 00:25:34 +01:00
Juergen Fitschen
88a9f4b8f9
ztimer: add on_demand_strict
...
Enforce ztimer_clock_t to be active (i.e. clock->users > 0) before ztimer_now() can be called.
2022-11-22 00:25:34 +01:00
Juergen Fitschen
90b2f3158c
ztimer/convert: pass-thru start/stop ops to lower timer
2022-11-22 00:25:34 +01:00
Jue
4013dff1fd
ztimer: acquire and release clock for running timers
2022-11-22 00:25:34 +01:00
Jue
a228ca7548
ztimer: introduce ztimer_acquire() and ztimer_release()
2022-11-22 00:25:34 +01:00
Martine Lenders
2a0dad0982
Merge pull request #18936 from benpicco/RIOT_FILE_RELATIVE-purge
...
treewide: replace RIOT_FILE_RELATIVE with __FILE__
2022-11-19 19:37:30 +01:00
3cd9f0d8fb
Merge pull request #18918 from benpicco/print_bytes_hex
...
sys/fmt: add print_bytes_hex()
2022-11-19 09:35:26 +01:00
Benjamin Valentin
74a8911597
sys/embUnit: replace RIOT_FILE_RELATIVE with __FILE__
2022-11-19 01:48:42 +01:00
Benjamin Valentin
7bc115e326
sys/test_utils: replace RIOT_FILE_RELATIVE with __FILE__
2022-11-19 01:48:42 +01:00
Marian Buschsieweke
e92a7164e3
sys/hash/pbkdf2: Accept passwd as void *
instead of uint8_t *
...
Having to cast a password provided as `const char *` to
`const uint8_t *` is a needless pain in the ass when using the API.
Hence, fix it by accepting passwords and salts as `const void *`
instead.
2022-11-18 13:51:32 +01:00
Benjamin Valentin
95e654f232
sys/fmt: add print_bytes_hex()
2022-11-15 22:05:42 +01:00
benpicco
e710b6f07c
Merge pull request #18854 from benpicco/gnrc_sock_udp-_remote_mismatch
...
gnrc_sock_udp: accept response from any address if remote is multicast
2022-11-15 20:33:58 +01:00
Benjamin Valentin
2b92e9ec59
gnrc_sock_udp: accept response from any address if remote is multicast
2022-11-15 11:26:31 +01:00
Marian Buschsieweke
bec46c55bd
Merge pull request #18879 from benpicco/bf_popcnt
...
sys/bitfield: add bf_popcnt()
2022-11-11 11:35:14 +01:00
Benjamin Valentin
4dd0594d09
sys/bitfield: add bf_popcnt()
2022-11-10 23:44:50 +01:00
Marian Buschsieweke
0d5bde0ce2
sys/net/gnrc/pkt: fix gnrc_pkt_delete()
...
The previous implementation used creative construct for impedance
mismatching between the core list API (which returns a ptr to the
removed element if found) and the GNRC pkt list API (which returns a
ptr to the new list head) that creates a temporary list head on the
stack.
I'm not entirely sure if the previous implementation is containing
undefined behavior that is used against us with GCC >= 12.x, or if this
is a compiler bug. In either case, not reusing the core list API here
and just having a textbook linked list delete function here is not much
less readable and fixes the issue for our users.
2022-11-10 17:25:34 +01:00
Karl Fessel
c354ab6285
Merge pull request #18846 from kfessel/p-pm-layerd-speedup1
...
sys/pm_layered: align pm_blocker_t for speed
2022-11-08 10:50:16 +01:00
benpicco
f8964c0149
Merge pull request #18827 from benpicco/nanocoap_block-fix
...
nanocoap_sock: don't store entire sock in coap_block_request_t
2022-11-08 10:49:39 +01:00
Marian Buschsieweke
7e0af3cd22
Merge pull request #18833 from benpicco/bitfield-ops
...
sys/bitfield: add bf_find_first_{set, unset}()
2022-11-07 20:27:48 +01:00
Karl Fessel
21973963c0
sys/pm_layered: align pm_blocker_t for speed
2022-11-04 16:50:52 +01:00
Benjamin Valentin
60ab2dbc95
sys/bitfield: add bf_set_all()
2022-11-04 16:48:48 +01:00
Benjamin Valentin
084f0287a3
nanocoap_sock: support handling empty ACKs with separate response
2022-11-03 23:26:51 +01:00
Jue
904dc0131f
ztimer: don't interact with pm_layered if ztimer_ondemand is used
2022-11-02 22:36:54 +01:00
Juergen Fitschen
84c89f9dd7
Merge pull request #18783 from jue89/fix/ztimer_lptimer_kconfig
...
sys/ztimer: model ztimer_periph_lptimer for Kconfig
2022-11-02 13:56:05 +01:00
Benjamin Valentin
8da267de72
sys/bitfield: add bf_find_first_{set, unset}()
...
At functions to get the first (un)set bit in a bitfield.
2022-11-02 13:06:06 +01:00
Benjamin Valentin
63c9dde3a4
nanocoap_sock: don't store entire sock in coap_block_request_t
2022-11-01 00:17:11 +01:00
Benjamin Valentin
55e13a9d61
nanocoap: add coap_request_ctx_init()
2022-10-28 15:24:23 +02:00
Benjamin Valentin
c6f9654461
nanocoap: request context to coap_handle_req()
2022-10-28 14:21:52 +02:00
Jue
159749e1f0
sys/ztimer: add defaults for ztimer_periph_lptimer
2022-10-27 19:44:57 +02:00
Martine Lenders
7b28794ee6
gnrc_udp: use small stack-size
2022-10-27 17:28:01 +02:00
Martine Lenders
9ae66beedf
Merge pull request #16156 from miri64/gnrc_sixlowpan_frag_sfr/feat/congure
...
gnrc_sixlowpan_frag_sfr: provide CongURE support
2022-10-27 15:01:07 +02:00
Martine Lenders
d485598b3a
Merge pull request #18744 from Teufelchen1/fix/clif_0
...
sys/clif: Fixing out of bounds read under certain conditions
2022-10-26 23:38:43 +02:00
Teufelchen1
499b635ae9
sys/clif: Fixing out of bounds read under certain conditions
2022-10-26 13:44:01 +02:00
Martine Lenders
b92e90f7b5
gnrc_sixlowpan_frag_sfr: make ARQ timer mockable
2022-10-25 18:38:37 +02:00
Martine Lenders
30f990f789
gnrc_sixlowpan_frag_sfr: provide CongURE support
2022-10-25 18:38:36 +02:00
Jan Romann
7c3c466bd4
sys/coap: add Size1 option number
2022-10-25 14:09:26 +02:00
Jan Romann
4ea42c0a3c
sys/coap: add Size2 option number
2022-10-25 14:07:39 +02:00
Martine Lenders
d759d2d18b
Merge pull request #18772 from namib-project/accept-helper
...
sys/net/nanocoap: introduce Accept option helper
2022-10-20 04:13:33 +02:00
Jan Romann
d916b33bc6
sys/net/nanocoap: introduce Accept option helper
2022-10-19 16:44:13 +02:00
benpicco
49d6604bc3
Merge pull request #17763 from HendrikVE/pr/examples_gcoap_ipv4_support
...
examples/gcoap: add IPv4 support
2022-10-19 16:05:30 +02:00
Benjamin Valentin
8553c8ff55
sys/tiny_strerror: add tiny_strerror_minimal
2022-10-18 23:30:15 +02:00
Martine Lenders
07c04bc0e3
Merge pull request #15968 from miri64/congure/feat/congure_abe
...
congure_abe: initial import of TCP Alternative Backoff with ECN for CongURE
2022-10-18 15:50:06 +02:00
Hendrik van Essen
e77aa7b65e
net/ipv4/addr.h: add ipv4_addr_is_multicast
2022-10-18 10:57:50 +02:00
benpicco
0b2fbce906
Merge pull request #18299 from fabian18/preprocessor_successor
...
sys: preprocessor successor module
2022-10-17 22:42:27 +02:00
Martine Lenders
463317391b
congure_abe: initial import of TCP ABE congestion control
2022-10-17 16:44:39 +02:00
Martine Lenders
68b9637295
Merge pull request #15952 from miri64/congure/feat/congure_quic
...
congure_quic: initial import of QUIC congestion control
2022-10-17 14:35:18 +02:00
Fabian Hüßler
77bce9d758
sys: define AUTO_INIT_PRIORITY_AFTER using preprocessor successor
2022-10-17 10:38:14 +02:00
Martine Lenders
fc57bfb511
congure_quic: initial import of QUIC congestion control
2022-10-17 10:27:44 +02:00
benpicco
72d16e152a
Merge pull request #17983 from kfessel/p-remove-coap_pkt-token
...
net/nanocoap: remove coap_pkt token ptr
2022-10-16 04:21:47 +02:00
Benjamin Valentin
1ec834f870
nanocoap_sock: deprecate nanocoap_get()
...
This is an old holdover, all in-tree users have been converted to use
nanocoap_sock_get() or similar functions.
2022-10-15 23:56:00 +02:00
benpicco
5c9715ae74
Merge pull request #18731 from maribu/sys/stdio_uart/onlcr
...
sys/stdio_uart: add stdio_uart_onlcr (pseudo-) module
2022-10-15 23:36:48 +02:00
benpicco
4d0c533260
Merge pull request #18154 from benpicco/nanocoap_no-response
...
nanocoap: add support for no-response option
2022-10-15 21:16:00 +02:00
Martine Lenders
53ed211fc9
Merge pull request #16175 from miri64/gnrc_sixlowpan_frag_sfr/enh/mark-ecn
...
gnrc_sixlowpan_frag_sfr: add support for queue-based ECN
2022-10-15 14:01:44 +02:00
Martine Lenders
c94c32dce4
Merge pull request #18727 from miri64/gnrc/enh/explicit-pseudomodules
...
gnrc: make pseudo-modules explicit + documentation improvements
2022-10-14 17:39:39 +02:00
Marian Buschsieweke
5d5e8d6163
Merge pull request #18740 from maribu/chrysn-pull-requests/gnrc-netreg-lock
...
gnrc_netreg: Use locks around netreg
2022-10-14 15:10:35 +02:00
Leandro Lanzieri
70acefaa55
Merge pull request #18386 from miri64/gcoap_forward_proxy/enh/empty-ack
...
gcoap_forward_proxy: send empty ACK when response takes too long
2022-10-14 11:23:48 +02:00
chrysn
982ec4dcda
gnrc_netreg: Use locks around netreg
...
This eliminates race conditions around unregistering netdevs.
gnrc_netreg_lookup-style functions perform a DEVELHELP check on whether
that lock is held.
2022-10-14 03:35:15 +02:00
Benjamin Valentin
1cfcb307f2
nanocoap_sock: add nanocoap_sock_{put, post}_non()
2022-10-13 19:04:09 +02:00
Benjamin Valentin
56f36c09a0
nanocoap: add support for no-response option
...
See https://datatracker.ietf.org/doc/rfc7967/
2022-10-13 19:04:09 +02:00
Benjamin Valentin
c656df9c3a
nanocoap_sock: implement nanocoap_sock_delete()
2022-10-13 18:56:28 +02:00
Marian Buschsieweke
b539d7ad6d
Merge pull request #17905 from benpicco/GNRC_NETIF_STACKSIZE_DEFAULT
...
gnrc_netif: don't allocate message queue on the stack
2022-10-13 17:10:43 +02:00
Jim Paris
d797c990d6
sys/stdio_uart: add stdio_uart_onlcr (pseudo-) module
...
Add USE_MODULE += "stdio_uart_onlcr" to enable it.
This is named after the "onlcr" stty flag, which does the same thing.
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2022-10-13 12:08:34 +02:00
Martine Lenders
8dcc5d07ba
gnrc_sixlowpan_config: resolve ECN at the earliest convenience
2022-10-12 18:02:18 +02:00
Martine Lenders
653d08281b
gnrc_sixlowpan_frag_sfr: add support for queue-based ECN
2022-10-12 18:02:18 +02:00
chrysn
798dedd4d1
gcoap_forward_proxy: send empty ACK when response takes too long
...
Co-Authored-By: Martine S. Lenders <m.lenders@fu-berlin.de>
Signed-off-by: Martine Lenders <m.lenders@fu-berlin.de>
2022-10-12 17:33:55 +02:00
Martine Lenders
f7510cfb9d
gnrc_nettype: improve documentation on modules made explicit
2022-10-12 11:27:27 +02:00
Martine Lenders
153f42d524
gnrc_dhcpv6: improve documentation on modules made explicit
2022-10-12 11:27:15 +02:00
Martine Lenders
a1794c0cb3
gnrc_nettype: various doc enhancements and fixes
2022-10-12 11:23:56 +02:00
Martine Lenders
774ca13563
gnrc_nettype: reorder gnrc_nettype_t to fit the grouping again
2022-10-12 11:23:16 +02:00
benpicco
988039b351
Merge pull request #18708 from miri64/gnrc_ipv6_nib/enh/handle-up-down-in-gnrc_ipv6
...
gnrc_ipv6_nib: handle iface_up/iface_down in IPv6 thread
2022-10-10 20:26:42 +02:00
Martine Lenders
47aaa94157
gnrc_ipv6_nib: handle iface_up/iface_down in IPv6 thread
2022-10-07 14:12:00 +02:00
Benjamin Valentin
f78fa2c632
sys/checksum: update CRC-16 documentation
2022-10-07 13:01:38 +02:00
benpicco
24f7d2011a
Merge pull request #18701 from benpicco/sys/checksum-crc16_fast
...
sys/checksum: add CRC-16 implementation without lookup table
2022-10-07 12:31:23 +02:00
Martine Lenders
a49863e95c
Merge pull request #18698 from miri64/doc/enh/deprecated-modules
...
doc: add deprecation notice on deprecated pseudo-modules
2022-10-07 01:56:49 +02:00
Benjamin Valentin
e313c56e94
sys/checksum: add CRC-16 implementation without lookup table
2022-10-06 17:43:20 +02:00
benpicco
4493afb582
Merge pull request #18639 from benpicco/nanocoap_sock_put_url
...
sys/shell: ncput: add option to read from stdin
2022-10-06 12:05:39 +02:00
Martine Lenders
bb92b2b281
doc: add deprecation notice on deprecated pseudo-modules
2022-10-06 10:53:10 +02:00
Karl Fessel
b575f0cdf8
net/nanocoap: remove coap_pkt token ptr
2022-10-06 00:20:10 +02:00
Hendrik van Essen
6c98a5b3b7
sys/net/network_layer/ipv4/addr: add ipv4_addr_print function
2022-10-05 15:16:37 +02:00
Marian Buschsieweke
f02bc5791a
Merge pull request #18571 from maribu/sys/tiny_strerror
...
sys/tiny_strerror: add tiny `strerror()` implementation
2022-10-05 09:24:40 +02:00
Marian Buschsieweke
6ced6dfde7
Merge pull request #18686 from benpicco/checksum/crc32
...
sys/checksum: add CRC-32 checksum
2022-10-04 23:06:04 +02:00
benpicco
161172c678
Merge pull request #18656 from benpicco/event_periodic_callback_get_arg
...
event_periodic_callback: add getter for user context, one-shot event
2022-10-04 20:47:26 +02:00
Benjamin Valentin
49a85f4633
sys/checksum: add CRC-32 checksum
...
based on https://github.com/aeldidi/crc32
2022-10-04 15:40:53 +02:00
Benjamin Valentin
49e1720d5c
vfs: allow filesystem to request absolute paths
2022-10-02 00:16:01 +02:00
benpicco
1935b626d5
Merge pull request #18672 from benpicco/vfs-abs_path
...
vfs: drop unused abs_path parameter
2022-09-30 16:42:57 +02:00
José Alamos
f022ac3e23
Merge pull request #17884 from Ollrogge/gnrc_lorawan1.1
...
gnrc/lorawan: add basic LoRaWAN 1.1 features
2022-09-30 11:29:55 +02:00
Benjamin Valentin
85dd564f87
vfs: drop unused abs_path parameter
2022-09-29 22:01:37 +02:00
benpicco
0e181e9ec3
Merge pull request #18668 from miri64/coap/enh/coap_v1
...
coap: provide definition for version field value
2022-09-29 20:41:53 +02:00
benpicco
6257e328c0
Merge pull request #18661 from fabian18/nib-6ln_correct_abr_timeout
...
nib/_nib-6ln: correct ABR timeout in ABRO
2022-09-29 17:25:06 +02:00
Martine Lenders
b9d7028a8f
coap: provide definition for version field value
2022-09-29 11:26:03 +02:00
Ollrogge
12a4e1c1ec
gnrc/lorawan: add support for GNRC LoRaWAN 1.1
2022-09-29 11:25:56 +02:00
Fabian Hüßler
23fa33774f
nib/_nib-6ln: correct ABR timeout in ABRO
2022-09-29 10:48:49 +02:00
benpicco
c35a4ba577
Merge pull request #18621 from benpicco/strscpy
...
sys/string_utils: add strscpy()
2022-09-28 19:11:42 +02:00
Benjamin Valentin
16491eaca7
sys/string_utils: fix check for native
2022-09-28 09:58:43 +02:00
Benjamin Valentin
6563ce2fb7
event_callback: add event_callback_oneshot()
2022-09-27 15:45:19 +02:00
Benjamin Valentin
e20b966109
event_periodic_callback: add getter for user context
2022-09-27 13:15:26 +02:00
Benjamin Valentin
da1f161c3c
gcoap: accept resources in any order
2022-09-26 20:20:14 +02:00
Benjamin Valentin
cdaf715a84
sys/string_utils: add strscpy()
2022-09-26 19:06:46 +02:00
Benjamin Valentin
42a8a587c4
nanocoap_sock: add nanocoap_sock_{put, post}_url()
2022-09-23 19:47:02 +02:00
Ollrogge
aa22771bd9
fido2/ctap: uncrustify files
2022-09-23 16:42:52 +02:00
Ollrogge
37c35112e2
fido2/ctap: simplify flash handling
2022-09-23 16:40:30 +02:00
Marian Buschsieweke
34c61b58a6
sys/string_utils : new (header-only) module for string utilities
...
This header-only module provides a `string_utils.h` that currently
only provides the non-standard function `explicit_bzero()` to securely
wipe memory. It may be extended with other utility functions in the
future.
2022-09-20 17:44:24 +02:00
Marian Buschsieweke
1bdc1a5967
sys/tiny_strerror: add tiny strerror()
implementation
...
`tiny_strerror()` is a drop-in replacement for `strerror()`, but
instead of a long help message it returns the much shorter macro name
matching the given number.
The (pseudo-)module `tiny_strerror_as_strerror` can be used to
replace all calls to `strerror()` with calls to `tiny_strerror()`.
2022-09-20 15:51:11 +02:00
Martine Lenders
0079b0c52f
event_periodic_callback: remove unnecessary dependency
2022-09-20 09:49:30 +02:00
Marian Buschsieweke
4b87a300c0
Merge pull request #18598 from benpicco/event_periodic_callback
...
event_periodic_callback: add convenience wrapper for periodic callbacks
2022-09-19 20:45:52 +02:00
Martine Lenders
d5e63a5e46
Merge pull request #18096 from Teufelchen1/feat/port_parsing
...
sys/uri_parser: Adding the port as uint16_t
2022-09-19 13:40:53 +02:00
Karl Fessel
e43a75d293
Merge pull request #18431 from kfessel/p-doccheck-fix
...
doccheck: make the file pattern more match riot.doxyfile
2022-09-19 11:07:57 +02:00
Marian Buschsieweke
8457f09dde
Merge pull request #18139 from maribu/sys/net/gnrc/netif/confirm_send
...
sys/net/gnrc_netif: Make use of confirm send
2022-09-17 19:40:24 +02:00
Benjamin Valentin
7211aa11af
ipv6/nib: add gnrc_ipv6_nib_iface_{up, down}()
2022-09-16 22:57:06 +02:00
Benjamin Valentin
6e7d5ae2d3
codespell: fix remaining issues
2022-09-16 14:00:35 +02:00
Marian Buschsieweke
6790167a18
Merge pull request #18226 from benpicco/cpu_get_last_instruction
...
cpu: cpu_print_last_instruction() -> cpu_get_caller_pc()
2022-09-15 20:06:10 +02:00
Benjamin Valentin
00c11c3f9d
event_periodic_callback: add convenience wrapper for periodic callbacks
2022-09-15 18:36:41 +02:00
Marian Buschsieweke
2dd185448f
Merge pull request #18587 from Ziesie1/master
...
sys/net: include misplacement inside linkage-specification
2022-09-15 14:06:06 +02:00
Marian Buschsieweke
1cb6f9e11a
sys/net/gnrc/netif: provide support for confirm_send()
...
This adds support for netdevs implementing the new API that provides
`netdev_driver_t::confirm_send()`. This allows implementing netdevs
in an event based non-blocking fashion, making live of driver
developers a bit easier. In addition, `gnrc_tx_sync` will now throttle
users of `sock_udp_send()` so that they can only send datagrams as
fast as the network stack and hardware is able to send out.
Finally, this lays the groundwork to fetch TX statistics (such as
TX timestamps, reception of layer 2 ACKs/NACKs, etc.) from the network
devices.
2022-09-15 13:23:25 +02:00
benpicco
b5bf5da38d
Merge pull request #18444 from kfessel/p-fix-doc-grp
...
doc: fix unbalaced grouping
2022-09-14 22:19:28 +02:00
Karl Fessel
05f114d0af
doc: fix unbalaced grouping
...
- most were trivial
- missing group close or open
- extra space
- no doxygen comment
- name commad might open an implicit group
this hould also be implicit cosed but does not happen somtimes
- crazy: internal declared groups have to be closed internal
2022-09-14 15:05:25 +02:00
Ziesie
be10ffe74e
sys/net: include misplacement inside linkage-specification
...
An include should be outside of the linkage-specification.
2022-09-14 10:47:18 +02:00
Benjamin Valentin
b6fac2b2c7
nanocoap_sock: consitfy remote
2022-09-14 10:29:57 +02:00
benpicco
b117171fcf
Merge pull request #18519 from benpicco/coap_request_ctx_get_remote
...
gcoap: add remote sock_udp_ep_t to coap_request_ctx_t
2022-09-12 20:30:19 +02:00
Benjamin Valentin
02aeab750a
gcoap_forward_proxy: const arg to gcoap_forward_proxy_request_process()
2022-09-12 17:52:54 +02:00
Benjamin Valentin
2376343547
gcoap: add remote sock_udp_ep_t to coap_request_ctx_t
2022-09-12 17:51:26 +02:00
Teufelchen1
df8fe4476d
sys/uri_parser: Adding the port as uint16
2022-09-08 11:32:49 +02:00
Benjamin Valentin
15a43f28f2
suit: start worker thread on demand
2022-09-05 07:46:56 +02:00
Benjamin Valentin
db701de094
suit: clean up worker thread, make suit_handle_url() public
2022-09-05 07:46:56 +02:00
Benjamin Valentin
37dceb6c80
nanocoap_sock: use correct error code in nanocoap_get_blockwise_url_to_buf()
...
It should return -ENOBUFS like the other nanocoap_…() functions, not -1
2022-09-05 07:40:59 +02:00
Benjamin Valentin
0b6e344d4f
suit: rename worker thread functions (they are not CoAP only)
2022-09-03 23:25:01 +02:00
fcf3e01eb7
Merge pull request #18315 from miri64/fmt/doc/wording
...
fmt: unify and align wording regarding characters, digits, and bytes
2022-09-01 21:46:22 +02:00
Marian Buschsieweke
754ad23de5
Merge pull request #18539 from miri64/hashes_cmac/cleanup/rename
...
hashes_cmac: rename to hashes_aes128_cmac
2022-08-31 19:06:21 +02:00
Martine Lenders
803ff1f69e
Merge pull request #18516 from Teufelchen1/feat/crc_fixup
...
sys/checksum: Adding three new crc16 variations
2022-08-31 12:58:04 +02:00
Martine Lenders
5e59649fda
hashes_cmac: rename to hashes_aes128_cmac
2022-08-31 10:43:25 +02:00
Teufelchen1
a25934ca16
sys/checksum: Adding four crc16 variations: ccitt-aug/false/kermit/mcrf4xx
2022-08-30 15:37:04 +02:00
benpicco
346c7336eb
Merge pull request #18514 from benpicco/nanocoap_sock_put
...
nanocoap_sock: add nanocoap_sock_put()
2022-08-30 14:00:42 +02:00
Marian Buschsieweke
eaace28804
sys/usb: Set USB model to $(BOARD) by default
2022-08-29 16:39:05 +02:00
Benjamin Valentin
514f039c30
nanocoap_sock: add nanocoap_sock_{put, post}()
2022-08-25 17:52:43 +02:00
José Alamos
39987817ce
Merge pull request #18496 from jia200x/pr/gnrc_netif_multi_queue
...
net/gnrc_netif: add support for priority queues
2022-08-22 22:54:55 +02:00
Jose Alamos
2c9f3072fb
net/gnrc_netif: add support for priority queues
2022-08-22 18:00:14 +02:00
benpicco
ed3d680aa2
Merge pull request #18482 from benpicco/coap_timeout_avr
...
nanocoap: fix type of CONFIG_COAP_ACK_TIMEOUT_MS (for AVR)
2022-08-20 18:37:15 +02:00
Benjamin Valentin
071ae2ccc0
nanocoap: fix type of CONFIG_COAP_ACK_TIMEOUT_MS
2022-08-20 16:32:20 +02:00
benpicco
0b5f270b15
Merge pull request #18464 from jia200x/pr/bhp_msg
...
sys/bhp_msg: add IPC based implementation of Bottom Half Processor
2022-08-19 14:28:15 +02:00
Jose Alamos
8cf53fc8ab
sys/bhp_msg: add IPC based Bottom Half Processor
2022-08-19 12:01:30 +02:00
Marian Buschsieweke
ca4afc4053
pkg/littlefs2: fix unaligned memory access
...
Previously `tests/pkg_littlefs2` crashed on the `samr21-xpro`. This
now aligns the buffers in `littlefs2_desc_t` to the alignment
requirement of `uint32_t`.
Specifically the issue causing the crash at hand was that
`struct lfs_free::buffer` is of type `uint32_t *`, so access are
expected to be aligned to `uint32_t`. After this commit, this
assumption is fulfilled.
2022-08-18 18:54:37 +02:00
Marian Buschsieweke
f87a401c87
pkg/littlefs: fix unaligned memory access
...
Previously `tests/pkg_littlefs` crashed on the `samr21-xpro`. This
now aligns the buffers in `littlefs_desc_t` to the alignment
requirement of `uint32_t`.
Specifically the issue causing the crash at hand was that
`lfs_free_t::buffer` is of type `uint32_t *`, so access are expected
to be aligned to `uint32_t`. After this commit, this assumption is
fulfilled.
2022-08-18 18:53:59 +02:00
benpicco
0713e0d9a1
Merge pull request #18313 from benpicco/coap_request_ctx_get_tl_type
...
gcoap: move tl_type to coap_request_ctx_t
2022-08-17 16:51:50 +02:00
benpicco
2321841ccc
Merge pull request #18426 from maribu/sys/net/gnrc/netif/api_check
...
sys/net/gnrc/netif: allow checking if a netdev is legacy or new API
2022-08-17 16:50:16 +02:00
Marian Buschsieweke
276ad5716a
sys/net/gnrc/netif: allow checking if a netdev is legacy or new API
...
A if `netdev_driver_t::confirm_send()` is provided, it provides the
new netdev API. However, detecting the API at runtime and handling
both API styles comes at a cost. This can be optimized in case only
new or only old style netdevs are in use.
To do so, this adds the pseudo modules `netdev_legacy_api` and
`netdev_new_api`. As right now no netdev actually implements the new
API, all netdevs pull in `netdev_legacy_api`. If `netdev_legacy_api` is
in used but `netdev_new_api` is not, we can safely assume at compile
time that only legacy netdevs are in use. Similar, if only
`netdev_new_api` is used, only support for the new API is needed. Only
when both are in use, run time checks are needed.
This provides two helper function to check for a netif if the
corresponding netdev implements the old or the new API. (With one
being the inverse of the other.) They are suitable for constant folding
when only new or only legacy devices are in use. Consequently, dead
branches should be eliminated by the optimizer.
2022-08-17 12:56:07 +02:00
benpicco
dffac04069
Merge pull request #18447 from benpicco/vfs_formaat_by_path
...
vfs: introduce vfs_format_by_path()
2022-08-17 12:04:09 +02:00
Benjamin Valentin
855a359058
vfs: introduce vfs_format_by_path()
2022-08-12 15:36:29 +02:00
Jose Alamos
ef80302cca
ieee802154: add ACK timeout in symbols to header
2022-08-12 10:17:33 +02:00
José Alamos
50e4498c84
Merge pull request #18435 from jia200x/pr/bhp
...
sys/bhp_*: add initial support for generic Bottom Half Processor
2022-08-12 09:58:18 +02:00
Jose Alamos
0a3f58158b
sys/bhp_event: add Event based implementation for Bottom Half Processor
2022-08-11 10:57:54 +02:00
Jose Alamos
4c09846426
sys/bhp: add initial support for generic Bottom Half Processor
2022-08-11 10:57:53 +02:00
Karl Fessel
5093153468
ztimer(64): make xtimer_compat documetation visible (defgroup)
2022-08-09 14:26:49 +02:00
Benjamin Valentin
f6cef270c2
gnrc_ipv6_nib: use correct DHCPv6 client module name
...
`MODULE_GNRC_DHCPV6_CLIENT_IA_PD` does not exist, the correct module name
is `MODULE_DHCPV6_CLIENT_IA_PD`.
2022-08-05 12:52:22 +02:00
benpicco
c125e3d98a
Merge pull request #18133 from fabian18/gcoap_fileserver_file_and_directory_creation
...
gcoap/fileserver: add file and directory creation and deletion
2022-08-04 16:14:29 +02:00
Fabian Hüßler
9333970b77
gcoap/fileserver: make PUT and DELETE pseudomodules
2022-08-03 22:10:30 +02:00
Fabian Hüßler
f357d99396
gcoap/fileserver: recursive directory deletion as default
2022-08-03 22:10:30 +02:00
Fabian Hüßler
2e587973eb
sys/vfs_util: add recursive unlink
2022-08-03 22:09:21 +02:00
Fabian Hüßler
2327bef57f
gcoap/fileserver: update documentation
2022-08-03 22:09:21 +02:00
Fabian Hüßler
688acff5bc
gcoap/fileserver: implement PUT/POST/DELETE functionality
2022-08-03 22:09:21 +02:00