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
Leandro Lanzieri
a8201c03c0
sys/log/kconfig: change entry-point
2021-12-10 18:54:29 +01:00
Leandro Lanzieri
dadaace394
sys/log: check that one and only one backend
2021-12-10 18:54:28 +01:00
Francisco
5f21ade1c6
Merge pull request #17372 from leandrolanzieri/pr/sys/ztimer/fix_backend_selection
...
sys/ztimer: fix backend selection
2021-12-10 17:53:12 +01:00
Leandro Lanzieri
1733953b49
sys/ztimer: fix backend selection
2021-12-10 09:57:05 +01:00
ca74a57870
Merge pull request #17370 from kaspar030/ztimer_best_practices
...
sys/ztimer: add some best practices
2021-12-10 08:47:55 +01:00
Francisco
b52a8857eb
Merge pull request #17368 from kaspar030/fix_ztimer64_uninitialized_timer_crash
...
sys/ztimer64: make _del_entry_from_list() safe for uninit ztimer64_t
2021-12-09 16:51:06 +01:00
Gunar Schorcht
e84068e945
sys/fuzzing: fix compilation with NDEBUG
2021-12-09 16:44:19 +01:00
Gunar Schorcht
8c044c0163
gnrc/ipv6_ext_opt: fix compilation with NDEBUG
2021-12-09 16:44:19 +01:00
b07b11b431
sys/ztimer: add some best practices
2021-12-09 15:53:39 +01:00
Karl Fessel
6347dcdffc
Merge pull request #17141 from kfessel/p-ztimer-gcoap
...
net/gcoap: port to ztimer
2021-12-09 15:22:10 +01:00
Francisco
7362074f49
Merge pull request #17235 from leandrolanzieri/cpu/kinetis/model_kconfig
...
cpu/kinetis: model kconfig
2021-12-09 14:22:10 +01:00
7b9a6850a3
sys/ztimer64: make _del_entry_from_list() safe for uninit ztimer64_t
2021-12-09 13:40:21 +01:00
benpicco
ccc97db715
Merge pull request #17360 from viktorbatista/debug_fixes
...
core/include/debug.h: minor fix in debug.h
2021-12-09 12:41:33 +01:00
Benjamin Valentin
624fd7672f
ut_process: add ; after DEBUG()
2021-12-09 11:20:44 +01:00
d959ce7eea
Merge pull request #16928 from kaspar030/ztimer64
...
sys/ztimer64: initial PR
2021-12-09 10:17:15 +01:00
Benjamin Valentin
4b9bdc61b2
gnrc_netif/lorawan: add ; after DEBUG()
2021-12-09 10:14:07 +01:00
Benjamin Valentin
cbc8251874
gnrc_tcp: add ; after DEBUG()
2021-12-08 21:09:31 +01:00
Benjamin Valentin
1db8ab4f72
sys/net/gcoap: add ; after DEBUG()
2021-12-08 20:41:21 +01:00
Karl Fessel
08ef57fbd0
Merge pull request #16126 from kfessel/p-mix-schedrr
...
sys/sched_rr: Add a round robin scheduler module
2021-12-08 16:01:57 +01:00
Leandro Lanzieri
15165bfdf7
Merge pull request #17299 from fjmolinas/pr_nrf52_boards_kconfig
...
boards: model nrf52 boards
2021-12-08 14:45:03 +01:00
Francisco Molina
0080a27636
sys/Kconfig.stdio: add stdio_rtt
2021-12-08 10:39:55 +01:00
Benjamin Valentin
64bd80d389
ztimer_periodic: make callback function return bool
...
The callback function of `ztimer_periodic` is only expected to have
two states.
So let it return `true` if the timer should keep repeating, `false`
otherwise.
2021-12-08 00:10:55 +01:00
benpicco
536f7e23c8
Merge pull request #17276 from fjmolinas/pr_event_periodic_count
...
sys/include/event/periodic: add count
2021-12-08 00:09:57 +01:00
439fcbf392
sys/ztimer64: initial implementation
...
Co-authored-by: Francisco Molina <femolina@uc.cl>
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2021-12-07 23:57:56 +01:00
Francisco
97b4dd3a57
Merge pull request #17216 from bergzand/pr/ps_schedstatistics/ztimer
...
schedstatistics: Convert to ztimer
2021-12-07 20:22:58 +01:00
Francisco Molina
b65ab31971
sys/ztimer/periodic: always set timer->last, no ztimer_now on last call
2021-12-07 19:42:45 +01:00
Francisco Molina
7d084a43ff
sys/include/event/periodic: add count
2021-12-07 19:42:32 +01:00
José Alamos
ce8cda2fd8
Merge pull request #16932 from benpicco/socket_zep-hal
...
socket_zep: port to radio HAL
2021-12-07 18:24:33 +01:00
Francisco
07e7a6edce
Merge pull request #17336 from HendrikVE/pr/isrpipe_write
...
sys/isrpipe: add isrpipe_write
2021-12-07 17:10:44 +01:00
Francisco
9e5facf3b2
Merge pull request #17122 from bergzand/pr/stdio_rtt/ztimer
...
stdio_rtt: Convert to ztimer
2021-12-07 17:08:38 +01:00
4b95459483
schedstatistics: Convert to ztimer
2021-12-07 16:31:15 +01:00
Francisco
f618c9758a
Merge pull request #17018 from kaspar030/picolibc_stdio_strong_reference
...
sys/picolibc_syscalls_default: make stdin and stderr strong refs
2021-12-07 15:10:55 +01:00
Hendrik van Essen
774e765d59
sys/isrpipe: add isrpipe_write
2021-12-07 13:00:58 +01:00
Leandro Lanzieri
4aebed2d46
sys/constfs: model Kconfig
2021-12-07 11:32:16 +01:00
Leandro Lanzieri
109b336833
sys/devfs: model Kconfig
2021-12-07 11:32:16 +01:00
495a48af0f
sys/ztimer: add ZTIMER_PERIPH_TIMER_OFFSET
2021-12-07 11:06:07 +01:00
265185ffea
stdio_rtt: Add unit clarification to poll define
2021-12-07 10:04:04 +01:00
aa17621279
stdio_rtt: Convert to ztimer
2021-12-07 10:03:54 +01:00
Francisco
6749b71066
Merge pull request #17337 from HendrikVE/pr/tsrb_init
...
sys/tsrb: add tsrb_clear
2021-12-07 09:20:22 +01:00
3ca1a10217
Merge pull request #17319 from aabadie/pr/sys/trace_ztimer
...
sys/trace: migrate to ztimer
2021-12-06 23:07:04 +01:00
benpicco
1efc53b598
Merge pull request #17344 from haukepetersen/opt_nimble_statconnerrno
...
nimble/statconn: use errno return values
2021-12-06 14:11:23 +01:00
Karl Fessel
9195a4f02b
net/gcoap: most ZITMER_USEC to ZTIMER_MSEC
2021-12-06 13:31:18 +01:00
Karl Fessel
f56eb9bb83
net/gcoap: port to ztimer_usec
2021-12-06 13:31:18 +01:00
Karl Fessel
2dd0cec4e9
net/gcoap: clean xtimer include from header
2021-12-06 13:31:18 +01:00
Hendrik van Essen
de4b32ef54
sys/tsrb: add tsrb_clear
2021-12-06 11:53:59 +01:00
Hauke Petersen
c7e11d5904
shell/sc_nimble_statconn: adapt to new return vals
2021-12-06 11:28:04 +01:00
Leandro Lanzieri
4f51174eb4
Merge pull request #17331 from MrKevinWeiss/pr/kconfig/samd5x
...
boards/adafruit-itsybitsy-m4: Model kconfig
2021-12-06 10:22:37 +01:00
MrKevinWeiss
05dd46936b
sys/usb_board_reset: Model kconfig
2021-12-06 09:05:37 +01:00
563e3efe8e
sys/trace: model in Kconfig
2021-12-04 12:03:14 +01:00
13a7aaf1d7
sys/trace: migrate to ztimer
2021-12-04 11:55:47 +01:00
benpicco
f9f95534f6
Merge pull request #17333 from benpicco/gnrc/rpl-auto_init
...
gnrc/rpl: auto-init RPL if there is only a single interface
2021-12-04 11:07:01 +01:00
529cc2d9ad
Merge pull request #17329 from miri64/ieee802154/fix/resv-src
...
ieee802154 / tests/unittests: fix all-asan reported errors
2021-12-04 02:27:27 +01:00
benpicco
8be9fe73f6
Merge pull request #17297 from nmeum/pr/sock_dns_string.h
...
sock_dns: include string.h for strlen(3) function prototype
2021-12-03 19:45:36 +01:00
Francisco
3afa47d8f2
Merge pull request #14955 from maribu/cflags-cast-align
...
makefiles/cflags.inc.mk: Add -Wcast-align
2021-12-03 17:47:24 +01:00
Benjamin Valentin
11672ac5e4
gnrc/rpl: auto-init RPL if there is only a single interface
2021-12-03 15:34:17 +01:00
MrKevinWeiss
f0790ebca1
sys/kconfig: Update todo
2021-12-03 12:16:32 +01:00
Francisco
5ba215f9c5
Merge pull request #16843 from haukepetersen/add_nimble_scannerext
...
nimble_scanner: rework to enable scanning BLE5 PHYs and extended advertisements
2021-12-03 12:00:10 +01:00
Martine Lenders
1eda5b80b9
ieee802154: fix reserved source address handling
...
This fixes the handling when the source address is neither short nor
long. For the reserved address mode no PAN behavior is defined, so
rather check, if the source address is in reserved mode before trying to
read the destination PAN.
2021-12-03 11:31:06 +01:00
Marian Buschsieweke
d571f150ec
sys/usb/usbus/dfu: use container_of()
2021-12-03 10:12:39 +01:00
Marian Buschsieweke
be42be9d15
sys/shell: use container_of in sc_gnrc_netif
2021-12-03 10:12:36 +01:00
Marian Buschsieweke
b7269c39e8
sys/net/gnrc_pktbuf_static: fix compilation with -Wcast-align
...
Comparing the pointers as `uintptr_t` won't hurt but makes the compiler
happy.
2021-12-03 10:12:34 +01:00
Marian Buschsieweke
b1114b0674
sys/net/gnrc/netif: use container_of()
...
Using `container_of()` to translate from `netif_t *` to the containing
`gnrc_netif_t *` adds a bit of plausibility: It will fail when `gnrc_netif_t`
stops to contain `netif_t` as member. Additionally, this silences false
positives of -Wcast-align
2021-12-03 10:12:33 +01:00
Marian Buschsieweke
581aa6b70b
sys/net/netif: allow const in netif_iter()
...
For consistency with `gnrc_netif_iter()`, add the `const` qualifier to the
parameter of `netif_iter()`. This allows calling it on `const` pointers without
having to cast `netif_t *`, which (apart of dropping the `const` qualifier)
disables a lot of type safety checks offered by the compiler.
2021-12-03 10:12:33 +01:00
Francisco
1ec9bfdec4
Merge pull request #17287 from leandrolanzieri/pr/sys/vfs/model_kconfig
...
sys/vfs: model Kconfig
2021-12-03 09:11:57 +01:00
Hauke Petersen
47d1f72a6c
shell/sc_nimble_netif: remove ping sub-command
2021-12-02 23:31:33 +01:00
Hauke Petersen
97780b3610
shell/sc_nimble_netif: adapt to scanner changes
2021-12-02 23:31:33 +01:00
Francisco
fea525f019
Merge pull request #17286 from leandrolanzieri/pr/sys/log/model_kconfig
...
sys/log: model Kconfig
2021-12-02 15:42:30 +01:00
Francisco
662aba4680
Merge pull request #17307 from leandrolanzieri/pr/sys/ztimer/kconfig/fix_compat_deps
...
sys/ztimer/kconfig: enable xtimer compat only with timer backend
2021-12-02 14:52:30 +01:00
9cf22c699e
Merge pull request #17318 from fjmolinas/pr_event_periodic_dep
...
sys/Makefile.dep: fix event periodic dependency
2021-12-02 11:51:18 +01:00
b6cc07009f
Merge pull request #17284 from fjmolinas/pr_ztimer_no_periph_rtt
...
sys/ztimer: add 'ztimer_no_periph_rtt'
2021-12-02 11:02:24 +01:00
Leandro Lanzieri
2b811ba1b9
sys/log: model in Kconfig
2021-12-02 09:41:46 +01:00
Leandro Lanzieri
004da59672
sys/ztimer/kconfig: enable xtimer compat only with timer backend
...
This also moves the selection of MODULE_ZTIMER_PERIPH_TIMER from
MODULE_ZTIMER_USEC to the visible symbol ZTIMER_USEC.
2021-12-02 09:38:06 +01:00
Francisco Molina
6c029bced6
sys/Makefile.dep: fix event periodic dependency
2021-12-02 07:59:14 +01:00
Francisco Molina
638373eec5
sys/ztimer: add ztimer_periph_rtt module conflict warning
2021-12-02 07:54:38 +01:00
Francisco Molina
7c3360e4d6
sys/ztimer: add 'ztimer_no_periph_rtt'
...
This is a temporary fix for Issue #17060 . It allows to disable
auto inclusion of `ztimer_periph_rtt` in cases where another
module or application requires direct access.
Limitations:
- as ifeq are involved order of inclusion matters, therefore
these modules should be included early in the build at application
level and not in modules `Makefile.dep`
- this does not disallow direct inclusions of `ztimer_periph_rtt`,
since this only disables auto inclusion of these modules
This is a temporary solution since this is already possible with
Kconfig, but not in make.
2021-12-02 07:54:38 +01:00
Gunar Schorcht
83e9fdce7c
sys/benchmark/kconfig: cleanup ztimer dependency
2021-12-02 07:00:01 +01:00
benpicco
7155fb82d0
Merge pull request #17194 from maribu/sys/net/fib
...
sys/net/fib: fix compilation with -Wcast-align
2021-12-01 16:29:00 +01:00
Martine Lenders
2cf0fca4e2
Merge pull request #17157 from maribu/sys/net/gnrc
...
sys/net/gnrc: fix compilation with -Wcast-align
2021-12-01 09:49:21 +01:00
8136a265d8
Merge pull request #17296 from fjmolinas/pr_nanosleep_deprecate
...
sys/include/xtimer.h: deprecate nanosleep
2021-12-01 07:34:02 +01:00
Martine Lenders
76bda73235
Merge pull request #17261 from benpicco/shell/gnrc_icmpv6_echo-hang
...
shell/gnrc_icmpv6_echo: Fix hang with no msg queue
2021-12-01 00:16:30 +01:00
benpicco
207964265a
Merge pull request #17188 from benpicco/sys/random-musl_lcg-default
...
sys/random: default to musl LCG instead of TinyMT
2021-11-30 23:28:48 +01:00
Marian Buschsieweke
6907bdf140
sys/net/gnrc: make cppcheck happy
2021-11-30 11:20:20 +01:00
Marian Buschsieweke
50be359a96
sys/net/gnrc: fix compilation with -Wcast-align
...
Also ensure that the alignment requirement is indeed matched.
2021-11-30 11:20:17 +01:00
Francisco Molina
92a003fcdc
sys/include/xtimer.h: deprecate nanosleep
2021-11-30 10:31:22 +01:00
Marian Buschsieweke
050b024b79
sys/net/fib: make CI happy
2021-11-30 10:27:46 +01:00
Marian Buschsieweke
9356a7d561
sys/net/fib: fix compilation with -Wcast-align
2021-11-30 10:16:39 +01:00
Sören Tempel
dc1b6d0436
sock_dns: include string.h for strlen(3) function prototype
...
Needed by the following code in `dns.c`:
e8cbc6da85/sys/net/application_layer/sock_dns/dns.c (L39-L41)
The include was probably wrongfully removed by accident in
e8cbc6da85
(CC: @miri64 ).
2021-11-30 01:12:40 +01:00
benpicco
c84a40abc4
Merge pull request #17275 from gschorcht/drivers/periph_i2c_acquire_void
...
drivers/periph_i2c: let i2c_acquire return void
2021-11-29 11:44:59 +01:00
Leandro Lanzieri
368ccdf3f8
sys/vfs: model Kconfig
2021-11-29 10:30:49 +01:00
Gunar Schorcht
818c127513
sys/shell: update sc_i2c_scan to new I2C API
2021-11-29 06:35:25 +01:00
Gunar Schorcht
d00141b1d4
sys/arduino: update TwoWire class to new I2C API
2021-11-29 06:35:25 +01:00
Leandro Lanzieri
398df91a99
sys/usb/usbus: model cdc acm stdio in Kconfig
2021-11-26 11:06:47 +01:00
bab0514af7
Merge pull request #17272 from fjmolinas/pr_ztimer_auto_init
...
sys/ztimer: remove double ztimer indirection
2021-11-26 08:51:32 +01:00
Francisco
16b881dcff
Merge pull request #17266 from fjmolinas/pr_tsrb_peek
...
sys/tsrb: add peek functions
2021-11-26 08:20:34 +01:00
Francisco Molina
d0758b5a7e
sys/ztimer: remove double ztimer indirection
...
To avoid confusions between `auto_init_ztimer` and `ztimer_auto_init`
rename `ztimer_auto_init` to `ztimer_init`.
This allows for similar handling as `saul_init_devs` and
`auto_init_devs`. Dependencies are therefore done against the USEMODULE
and not DEFAULT_MODULE or checking DISABLE_MODULE. For this, both
`ztimer_init` and `auto_init_ztimer` are added to DEFAULT_MODULE and
both need disabling if the user does not want that module in.
With this, the comment in Kconfig no longer applies.
2021-11-25 11:26:34 +01:00
Francisco Molina
dd47953178
sys/test_utils/result_output: add sort to multiple output check
2021-11-25 10:44:55 +01:00
Francisco Molina
857f3c3c51
sys/tsrb: add peek functions
2021-11-24 17:54:44 +01:00
Benjamin Valentin
be8a364bb4
shell/gnrc_icmpv6_echo: fix duplicate datalen check
2021-11-24 12:07:14 +01:00
Benjamin Valentin
7d1dd27756
shell/gnrc_icmpv6_echo: Fix hang with no msg queue
...
`msg_avail()` will return -1 if the thread has no message queue.
Casting this to unsigned will result in the `ping` command to try
receiving 4294967295 messages, which hangs the shell.
Drop the cast to `unsigned` and the loop behaves as intended.
But then it's still wrong: If new messages become available, they
would be ignored.
So change the `for` loop to a `while` loop. The index variable is
not used at all.
2021-11-24 12:00:14 +01:00
Marian Buschsieweke
78ded2dd08
sys/atomic_utils: add atomic_{load,store}_ptr()
2021-11-23 14:23:50 +01:00
Kevin "Tristate Tom" Weiss
e0b8238e79
Merge pull request #17106 from kaspar030/fmt_s32_dfp_tenmap_independance
...
sys/fmt: make fmt_s32_dfp() string based
2021-11-23 12:51:17 +01:00
62772ab3f9
sys/fmt: add some documentation about out
2021-11-22 14:11:02 +01:00
61c62c2ed6
sys/fmt: make fmt_s32_dfp() string based
2021-11-22 14:11:01 +01:00
Leandro Lanzieri
43c567ab53
sys/shell/commands/sc_dfplayer: make cppcheck happy
2021-11-22 12:25:58 +01:00
Leandro Lanzieri
27a62efb63
sys/arduino/kconfig: do not imply arduino_pwm
2021-11-22 12:25:58 +01:00
Leandro Lanzieri
6769101c34
sys/arduino: add pseudomodule for the arduino_pwm feature
2021-11-22 12:25:58 +01:00
Leandro Lanzieri
e525e23143
drivers/dfplayer: add no_strerror option to Kconfig
2021-11-22 12:25:57 +01:00
Leandro Lanzieri
3854db364a
sys/stdio/kconfig: associate symbol to implementation
2021-11-22 12:25:30 +01:00
Leandro Lanzieri
45b6116c4c
sys/cxx_ctor_guards: model Kconfig
2021-11-22 12:25:30 +01:00
638b86e749
Merge pull request #17243 from benpicco/random_cmd
...
sys/shell: hide random commands behind random_cmd pseudo-module
2021-11-22 10:24:25 +01:00
Benjamin Valentin
e6a06501b8
sys/riotboot: serial: add bootloader LED
2021-11-21 23:09:24 +01:00
Benjamin Valentin
f53a398bfb
riotboot: serial: enter bootloader mode by pin
2021-11-21 23:09:22 +01:00
Benjamin Valentin
e17cce41b4
bootloaders/riotboot_dfu: move bootloader_selection.h to common place
2021-11-21 23:08:31 +01:00
benpicco
2d882c3521
Merge pull request #16737 from JKRhb/uncrustify
...
treewide: Address uncrustify suggestions
2021-11-21 15:42:05 +01:00
Ollrogge
6f9a21503b
usbus/hid: fix ep_out readyness
2021-11-19 22:20:12 +01:00
Benjamin Valentin
f362a19eed
sys/shell: hide random commands behind random_cmd pseudo-module
...
These commands cost 248 bytes of memory, we don't want to always
include them when the `random` module is selected.
2021-11-19 16:53:46 +01:00
4c03d10f7b
Merge pull request #17234 from fjmolinas/pr_cocci_ztimer_fixes
...
sys/ztimer/xtimer2ztimer.cocci: extend and fix api replacements
2021-11-19 15:18:07 +01:00
Jan Romann
9f4e839ceb
sys/riotboot: uncrustify
2021-11-19 09:54:17 +01:00
Francisco Molina
e6a79c8729
sys/ztimer/xtimer2ztimer.cocci: extend and fix api replacements
2021-11-18 18:27:23 +01:00
Karl Fessel
eb11e463df
sys/ztimer: make internal head update static
2021-11-18 13:45:49 +01:00
Benjamin Valentin
17fdf61cbe
ieee802154/submac: handle write of NULL buffer
...
tests/socket_zep tests for this condition, so we better handle it
gracefully instead of crashing.
2021-11-18 11:51:14 +01:00
Benjamin Valentin
fa2d9bde56
socket_zep: port to radio HAL
2021-11-18 11:51:14 +01:00
dylad
f0a8bf9239
usbus/hid: fix ep_out readyness
2021-11-17 20:46:41 +01:00
Martine Lenders
d4f7f9182b
gnrc_pktbuf_cmd: add od
dependency with gnrc_pktbuf_static
2021-11-17 15:52:44 +01:00
Francisco Molina
81c5d5dbcc
sys/event/timeout: split xtimer, ztimer backends, don't force usec
...
This PR makes `event_timeout` and `event_timeout_ztimer` two distinct
pseudomodules, where the only api difference is in the init function.
If only `event_timeout_ztimer` is selected then no default ZTIMER
backend is selected and the old init function is not implemented.
If only `event_timeout` is selected then `xtimer` is used unless
`ztimer_usec` is included. In which case the `xtimer` wrapper on top
of `ztimer` is used and `xtimer` is not directly selected. This
allows for the legacy api to be supported with `ztimer_usec` as
a drop-in replacement.
If `event_timeout` and `event_timeut_ztimer` are selected then
`event_timeout` SRC file is excluded from compilation.
2021-11-17 10:15:11 +01:00
Dylan Laduranty
aa8608eff5
Merge pull request #17064 from bergzand/pr/usbdev/xmit
...
USB: refactor to xmit-based API
2021-11-17 09:07:00 +01:00
Francisco
74cdb11bd1
Merge pull request #17203 from bergzand/pr/usbus/check_setup_length
...
usbus: check received setup request data amount
2021-11-17 08:59:07 +01:00
587d25a38e
USBUS/hid: Adapt to xmit API
2021-11-16 20:17:05 +01:00
5455c40c7a
USBUS/cdc_ecm: Adapt to xmit API
2021-11-16 20:17:04 +01:00
1a0bc3d8bc
USBUS/cdc_acm: Adapt to xmit API
2021-11-16 20:17:04 +01:00
7d9a177f25
USBUS: Adapt to xmit API
...
Converts the control endpoint to xmit API
2021-11-16 20:17:04 +01:00
Leandro Lanzieri
b0c380a9a9
Merge pull request #17039 from MrKevinWeiss/pr/turodefault
...
sys/turo: Allow default selection of json
2021-11-16 18:22:55 +01:00
chrysn
69dadf61e9
Merge pull request #17152 from maribu/sys/posix/sockets
...
sys/posix/socket: align struct sockaddr{,_storage}
2021-11-16 13:55:27 +01:00
59e85cf921
usbdev: Refactor to xmit API
...
This API change refactors the usbdev API to supply buffers via the
usbdev_ep_xmit function. This changes from the usbdev_ep_ready call to allow
separate buffers per call. An usbdev_ep_buf_t pseudotype is available and must
be used when defining buffers used for endpoints to adhere to the DMA alignment
restrictions often required with usb peripherals.
Main advantage is that the usbdev peripherals no longer have to allocate
oversized buffers for the endpoint data, potentially saving multiple KiB
of unused buffer space. These allocations are now the responsibility of
the individual USB interfaces in the firmware
2021-11-16 11:21:00 +01:00
MrKevinWeiss
5a66307314
sys/turo: Allow default selection of json
2021-11-16 08:37:45 +01:00
Francisco
5f119e3b6c
Merge pull request #17200 from bergzand/pr/usbus_cdc_ecm/check_max_frame_len
...
cdc_ecm: Truncate frames at max ethernet size
2021-11-16 07:54:01 +01:00
4573d5f9dc
usbus_control: check received setup request data amount
...
This adds a check to the usbus control stack to ensure that the amount
of data received with a setup request does not exceed the amount
indicated within the setup request
2021-11-15 19:38:16 +01:00
2ba022221b
cdc_acm: Abort line coding request on incorrect size
...
This adds a sanity check to the line coding request of the CDC ACM code
to chcek the length parameter in the setup request with the size of the
expected payload struct
2021-11-15 19:36:03 +01:00
3871948015
Merge pull request #17126 from bergzand/pr/benchmark/ztimer
...
sys/benchmark: Convert to ztimer
2021-11-15 18:56:18 +01:00
cd489cebd1
cdc_ecm: Truncate frames at max ethernet size
...
This truncates the incomming frames to ETHERNET_FRAME_LEN and silently
discards the rest of the frame until the end of the frame. This should
be modified to an endpoint halt condition after #17090 is merged, but
for now this should be good enough.
Stalling the endpoint with the current stall implementation could cause
a ping of death scenario, so for now the data is truncated until the
above solution can be implemented.
2021-11-15 16:04:13 +01:00
556160b9a3
Merge pull request #17182 from ML-PA-Consulting-GmbH/fix/20211111__sys-suit__deps
...
sys/suit: adjust dependencies for CoAP transport
2021-11-15 15:27:47 +01:00
8c2f0dd2af
sys/benchmark: Convert to ztimer
2021-11-15 14:14:23 +01:00
Marian Buschsieweke
8a178f49e7
sys/fido2: fix CBOR parsing
...
The TinyCBOR library takes a `size_t *` length argument in many
functions which at function call contains the length of a buffer, and
at exit the actual size of the data. The FIDO-2 code however uses
`uint8_t` fields in `struct`s to store the data. Previously, a pointer
to that `uint8_t` filed was just casted to `size_t *`, resulting in
three neighboring bytes also being interpreted as being part of the
buffer size - which could result in undetected buffer overflows.
Similar, upon exit of the function not only the `uint8_t` sized length
`struct` member but also three neighboring bytes were written to.
I didn't care to investigate, but this really looks like crafted CBOR
payloads send to the FIDO2 implementation could result in arbitrary
code execution on the device.
2021-11-13 20:32:02 +01:00
Benjamin Valentin
39b8cdf760
sys/random: default to musl LCG
...
In [0] the paper concludes with
> The Knuth LCG is the most efficient general purpose generator that
> provides decent statistical quality.
> It is simple and lean enough to run on very constrained devices.
So let's select `prng_musl_lcg` to be the default PRNG instead of
`prng_tinymt32`.
This gives a good chunk of memory on e.g. `samr21-xpro`:
prng_tinymt32
-------------
text data bss dec hex filename
26452 136 2824 29412 72e4 tests/rng/bin/samr21-xpro/tests_rng.elf
prng_musl_lcg
-------------
text data bss dec hex filename
26208 136 2808 29152 71e0 tests/rng/bin/samr21-xpro/tests_rng.elf
[0] https://sci-hub.se/10.1145/3453159
2021-11-11 19:59:26 +01:00
Daniel Lockau
9e1e7be77e
sys/suit: adjust dependencies for CoAP transport
2021-11-11 13:58:32 +01:00
Karl Fessel
8c3aad1c25
sys/sched_round_robin: Add a round robin scheduler module
2021-11-11 13:18:52 +01:00
Marian Buschsieweke
7b06e665ee
sys/architecture: add HAS_ALIGNMENT_OF() helper
2021-11-11 10:57:26 +01:00
Marian Buschsieweke
7703b37c6f
sys/posix/socket: align struct sockaddr{,_storage}
...
Align the first member of `struct sockaddr` and
`struct sockaddr_storage` as `uint32_t` to elevate the alignment of the
structure to level of `uint32_t`. This is needed as
`struct sockaddr_in` uses an `uint32_t` to store the IPv4 address,
previously resulting in `struct sockaddr_in` currently having a greater
alignment requirement that `struct sockaddr_storage`.
2021-11-11 09:55:24 +01:00
Kevin "Tristate Tom" Weiss
da60ba5fff
Merge pull request #17165 from leandrolanzieri/pr/sys/ztimer_kconfig_entry
...
sys/ztimer: rework Kconfig
To eliminate circular dependencies based in periph_rtc and xtimer_ztimer_compatibility the following changes are applied:
- Change entrypoint of ztimer as a specific backend is always required
- Add a non-module symbol for ztimer_usec that bring in the ztimer and ztimer_usec module which allows the xtimer ztimer compatibility layer to only select the ztimer_usec module preventing circular dependency issues
2021-11-11 09:21:33 +01:00
dba51edc69
net/uhcp[cd]: use modules to select client/server code
2021-11-09 21:42:45 +01:00
Leandro Lanzieri
703e66b4c1
sys/ztimer/kconfig: change entry point
2021-11-09 15:32:34 +01:00
Leandro Lanzieri
3837286750
sys/{x,z}timer/Kconfig: fix compatibility modules
2021-11-09 15:32:33 +01:00
Martine Lenders
4b2ca7a702
Merge pull request #16986 from benpicco/uhcp-debug
...
sys/net/uhcp: use LOG_DEBUG instead of LOG_INFO
2021-11-09 12:58:16 +01:00
Marian Buschsieweke
f7bed004ff
Merge pull request #17153 from maribu/sys/net/dns
...
sys/net/dns: mark dns_hdr_t as packed
2021-11-07 07:52:16 +01:00
Marian Buschsieweke
2e6eca1918
sys/net/dns: mark dns_hdr_t as packed
...
This structure is used to parse data from unaligned buffers, so make
sure the compiler issues instructions suitable for unaligned memory
access.
2021-11-06 20:16:56 +01:00
benpicco
1f11780c02
Merge pull request #17119 from spectraphilic/sdi12-remote
...
pkg/arduino_sdi_12: support the remote-revb board
2021-11-06 11:32:54 +01:00
J. David Ibáñez
77df3eedbd
sys/arduino: millis() expected to have C linkage
...
This fixes building tests/pkg_arduino_sdi_12 for the hifive1b board.
The problem is, in build/pkg/arduino_api/api/Common.h millis is defined
within an extern "C" block. While in sys/arduino/include/arduino.hpp it
was not.
2021-11-05 10:21:26 +01:00
eaa007d412
Merge pull request #17135 from bergzand/pr/usbdev/fix_cppcheck_vera
...
usb(dev|bus): Fix static-check issues
2021-11-05 08:36:53 +01:00
9f510fb1ab
usbus/cdc_acm: resolve vera++ issues
2021-11-04 13:49:35 +01:00
df39337ebf
usbopt: resolve vera++ issues
2021-11-04 13:49:34 +01:00
86aa665cbc
usbus_hid: Fix possible null pointer dereference
2021-11-04 13:45:19 +01:00
b0d5e9a027
Merge pull request #17128 from dylad/pr/usbus/dfu/fix_underflow_condition
...
usbus/dfu: fix underflow condition while updating firmware
2021-11-04 09:50:18 +01:00
Dylan Laduranty
64a82c9a78
usbus/dfu: fix underflow condition while updating firmware
...
Reports dfuERROR if underflow is detected or if flash write failed
Implement DFU control CLRSTATUS while at it to clear dfuERROR by the host
2021-11-03 17:06:27 +01:00
1fa8bcc9d2
Merge pull request #17123 from bergzand/pr/stdio_semihosting/ztimer
...
stdio_semihosting: Convert to ztimer
2021-11-03 16:22:45 +01:00
benpicco
47029055a6
Merge pull request #8954 from zhuoshuguo/gnrc_gomach/adapt_duty_recode_para_name
...
gnrc_gomach: adapt duty recording parameters' namings.
2021-11-03 12:56:39 +01:00
4cfb155397
stdio_semihosting: Add unit clarification to poll define
2021-11-03 11:39:26 +01:00
2b696fd770
stdio_semihosting: Convert to ztimer
2021-11-03 11:39:26 +01:00
Martine Lenders
67f67bfe62
Merge pull request #17076 from jenswet/feature/add-fff-package
...
pkg/fff: Add fake functions framework package
2021-11-03 11:00:56 +01:00
Francisco
8e0d5efaa2
Merge pull request #17113 from fjmolinas/pr_ztimer_sec_no_rtc
...
sys/ztimer: don't default to rtc for ztimer_sec
2021-11-02 22:08:37 +01:00
Marian Buschsieweke
ed9bf358c5
sys/shell: Add nice shell command via module nice
2021-11-02 20:44:32 +01:00
Jens Wetterich
14f90f3c5e
pkg/fff: Add fake functions framework package
2021-11-02 18:01:21 +01:00
Francisco
0bbcf4863f
Merge pull request #17006 from yarrick/ifconfig_help
...
sys/shell/gnrc_netif: Allow 'ifconfig help'
2021-11-02 16:32:59 +01:00
Francisco Molina
2e4dfa0aac
sys/ztimer: don't default to rtc for ztimer_sec
2021-11-02 15:31:04 +01:00
Francisco
1ef44844e0
Merge pull request #17085 from bergzand/pr/cdcacm/stall_on_no_line_coding
...
usbus/cdc_acm: Return stall on line coding not supported
2021-11-02 13:04:26 +01:00
Leandro Lanzieri
f64b166319
Merge pull request #16845 from MrKevinWeiss/pr/kconfig/supportstms
...
.murdock: Add nucleo boards to kconfig test
2021-11-01 09:55:22 +01:00
Leandro Lanzieri
4011bd9edf
Merge pull request #16780 from fjmolinas/pr_kconfig_uwb
...
pkg/uwb*: add Kconfig dependency modelling
2021-11-01 09:35:29 +01:00
6a509308fe
usbus/cdc_acm: Return stall on line coding not supported
...
The SetLineCoding request is optional to support (CDC PSTN subclass). No
need to claim to support it to the host and actually discard the data if
it is not supported by the implementation.
2021-10-30 11:56:42 +02:00
Benjamin Valentin
358aa11d48
ztimer/xtimer_compat: implement trivial functions
...
xtimer_ticks64_t / xtimer_ticks32_t is no longer a struct, so these are
even more trivial than on xtimer.
2021-10-29 00:45:01 +02:00
J. David Ibáñez
a651315fbe
sys/arduino: add interrupts/noInterrupts
...
This fixes the error:
$ BOARD=arduino-mega2560 make -C tests/pkg_arduino_sdi_12/
[...]
[...]/RIOT/build/pkg/arduino_sdi_12/src/SDI12.cpp:379:7: error: ‘interrupts’ was not declared in this scope
2021-10-28 15:59:48 +02:00
chrysn
a92cdb535e
Merge pull request #16378 from chrysn-pull-requests/gcoap-handle-truncation
...
sys/net/gcoap: Use socket _buf API to recognize truncated requests
2021-10-27 08:55:52 +02:00
Dylan Laduranty
aa4383104f
Merge pull request #17051 from bergzand/pr/riotboot_dfu/ztimer
...
riotboot_dfu: use ztimer instead of xtimer
2021-10-26 20:49:26 +02:00
5dfc4725c8
usbus_dfu: Use ztimer for reboot timeout
2021-10-26 14:14:46 +02:00
5c01e14b7a
riotboot_dfu: Add ztimer_msec dependency
2021-10-26 14:14:45 +02:00
261a615439
ztimer: Use auto_init for manual init in bootloaders
2021-10-25 22:24:07 +02:00
4bec2f0723
Merge pull request #17034 from fjmolinas/pr_turo_optional_space_after_symbol
...
sys/test_utils/result_output/json: optional space after symbol
2021-10-25 22:31:16 +03:00
benpicco
2aab2b83bc
Merge pull request #17046 from bergzand/pr/usb/deprecate_fail_report
...
usbdev/USBUS: deprecate transfer failure reporting report
2021-10-25 16:27:01 +02:00
0ce6bfc1a2
usbus: Deprecate USBUS_HANDLER_FLAG_TR_FAIL event
2021-10-24 19:33:29 +02:00
Erik Ekman
ccfe80c844
sys/shell/gnrc_netif: Allow 'ifconfig help'
...
Currently a valid netif name must be passed to show the usage
instructions:
```
> ifconfig help
error: invalid interface given
> ifconfig 6 help
usage: ifconfig
usage: ifconfig <if_id> [up|down]
[...]
```
`ifconfig --help` is also accepted.
2021-10-22 14:14:58 +02:00
4bee52a693
sys/test_utils/result_output: fix turo_float() precision value
...
`print_float()` only allows values from 0-7.
2021-10-22 12:49:16 +02:00
Francisco Molina
720338b304
sys/test_utils/result_output/json: optional space after symbol
2021-10-22 12:31:03 +02:00
Francisco
abbf798e8e
Merge pull request #17027 from kaspar030/turo_json_fixes
...
turo: some json fixes
2021-10-22 10:48:29 +02:00
99dbed9ce7
turo: fix json toru_float() precision value
2021-10-21 13:02:48 +02:00
1c8a8bf6c4
turo: add space after JSON comma
2021-10-21 13:02:21 +02:00
Karl Fessel
c9f4d11c52
Merge pull request #16966 from yarrick/net_v6
...
sys/net: Add ipv4/ipv6 pseudomodules
to ease code unification
2021-10-20 11:58:26 +02:00
b651b29751
sys/picolibc_syscalls_default: make stdin and stderr strong refs
2021-10-20 11:21:57 +02:00
0486c0dba7
Merge pull request #17001 from kaspar030/support_picolibc_stdio_globals
...
sys/picolibc_syscalls_default: support new picolibc stdio globals
2021-10-20 12:17:14 +03:00
Martine Lenders
44927b493f
Merge pull request #16967 from miri64/dsm/enh/peer-sync
...
dsm: rename DTLS_PEER_MAX and make it dependent on CONFIG_DTLS_PEER_MAX
2021-10-18 16:27:26 +02:00
27b9c6da06
sys/picolibc_syscalls_default: support new picolibc stdio globals
2021-10-18 12:02:33 +02:00
benpicco
525fe24576
Merge pull request #16992 from miri64/dhcpv6_client/bug/fix-retrans-calc
...
dhcpv6_client: keep integers in retransmission calculations signed
2021-10-16 17:47:34 +02:00
Martine Lenders
b1b0a9b4f5
dhcpv6_client: add comment on why the division is needed
2021-10-15 17:36:13 +02:00
Martine Lenders
d844de2263
dhcpv6_client: keep integers in retransmission calculations signed
2021-10-15 17:35:46 +02:00
Benjamin Valentin
9d5808d756
gnrc/ipv6_auto_subnets: set RIO priority to ZERO
...
This is required for Linux to accept the RIO
with this patch:
2001:db8:8000::/33 via fe80::d0e7:ffff:fe46:6b52 dev tap0 proto ra metric 1024 expires 86338sec pref medium
2001:db8::/32 dev tap0 proto kernel metric 256 pref medium
before:
2001:db8::/32 dev tap0 proto kernel metric 256 pref medium
2021-10-15 15:57:59 +02:00
Benjamin Valentin
0e7b8d09d5
gnrc_ipv6_nib: fix setting RIO flags
...
We have to use NDP_OPT_RI_FLAGS_MASK, not NDP_OPT_PI_FLAGS_MASK.
This fixes flags always being 0.
2021-10-15 15:49:13 +02:00
Benjamin Valentin
35b727c7be
sys/net/uhcp: cleanup
2021-10-14 14:20:46 +02:00
Benjamin Valentin
f74c795033
sys/net/uhcp: use LOG_DEBUG instead of LOG_INFO
...
uhcp is pretty noisy compared to DHCPv6 as INFO log level is enabled
by default.
Tone it down to LOG_DEBUG to keep the output clean.
2021-10-14 14:09:17 +02:00
MrKevinWeiss
9b6a63a951
drivers/kconfig: simplify shared rtt/rtc hardware in kconfig
2021-10-14 11:28:46 +02:00
MrKevinWeiss
c7820cf7e5
*/rtt|rtc: Fix Kconfig modeling
2021-10-14 11:28:44 +02:00
MrKevinWeiss
8140037e04
sys/arduino: Fix arduino_pwm Kconfig
2021-10-14 11:28:39 +02:00
benpicco
f8c8abf75d
Merge branch 'master' into gnrc_gomach/adapt_duty_recode_para_name
2021-10-13 17:36:21 +02:00
benpicco
94c852cfa7
Merge pull request #16963 from miri64/gcoap_dtls/fix/session-destroy-only-on-conn-errors
...
gcoap_dtls: destroy session in _tl_send only on connection errors
2021-10-12 13:35:16 +02:00
Erik Ekman
ff7bf09313
sys/net/sock: Set SOCK_HAS_IPV6 in one place
...
Based on ipv6 pseudomodule
2021-10-11 21:37:39 +02:00
Martine Lenders
e74b54d3ae
gcoap_dtls: destroy session in _tl_send only on connection errors
2021-10-08 12:24:57 +02:00
Martine Lenders
65ff161b3a
dsm: make CONFIG_DSM_PEER_MAX depend on CONFIG_DTLS_PEER_MAX
2021-10-08 12:15:53 +02:00
Martine Lenders
945b05886b
dsm: rename DTLS_PEER_MAX to CONFIG_DSM_PEER_MAX
...
To make avoid confusion with tinydtls's `DTLS_PEER_MAX` and
`CONFIG_DTLS_PEER_MAX`
2021-10-08 12:15:16 +02:00
Martine Lenders
a2cd5ed903
dtls: set CONFIG_DTLS_PEER_MAX in dtls.h header
2021-10-08 12:10:28 +02:00
Erik Ekman
3df56d576f
sys/net: Add ipv6 pseudomodule
...
Enabled when GNRC, lwIP or OpenWSN uses IPv6
2021-10-08 10:27:22 +02:00
Jose Alamos
d7f4d5b0bd
ieee802154/submac: avoid race condition between RX_DONE and ACK_TIMEOUT
2021-10-07 14:34:34 +02:00
Francisco Molina
9cb27b910a
sys/sema/Kconfig: fix inclusion of xtimer
...
sema currently does not depend on xtimer, but on xtimer or ztimer
2021-10-06 17:59:49 +02:00
Hauke Petersen
b985ad2330
sys/shell/sc_nimble_netif: add ping subcommand
2021-10-06 16:47:34 +02:00
Karl Fessel
fa1456ac99
Merge pull request #16951 from kfessel/p-fix-autoinit-indent
...
sys/auto_init: fix indention
2021-10-05 17:05:27 +02:00
Francisco
93bff48538
Merge pull request #16909 from leandrolanzieri/pr/cpu/riscv/model_kconfig
...
cpu/riscv: model Kconfig
2021-10-05 16:51:17 +02:00
Karl Fessel
47e83917c3
sys/auto_init: fix indention
2021-10-05 14:15:57 +02:00
Martine Lenders
e804a738de
Merge pull request #16947 from miri64/gnrc_ipv6_nib/fix/queue-pkts-on-6lbr
...
gnrc_ipv6_nib: queue packets that trigger probing on border router
2021-10-05 14:01:17 +02:00
Martine Lenders
96eb2c5050
Merge pull request #16731 from JKRhb/dhcp-stateless
...
sys/net/dhcpv6: Add stateless DHCPv6
2021-10-05 10:13:22 +02:00
benpicco
88b495906b
Merge pull request #16936 from mtausig/update_tinyasn1
...
Update tiny-asn1 package
2021-10-05 00:04:23 +02:00
Mathias Tausig
279c584335
module/credman: Adapt to tiny-asn1 changes
2021-10-04 21:43:13 +02:00
Jan Romann
ff42d6749b
sys/net/gnrc/dhcpv6: Set stateful configuration mode
2021-10-04 21:41:50 +02:00
Jan Romann
c62d6eb834
sys/net/dhcpv6: Implement stateless DHCPv6
2021-10-04 17:40:56 +02:00
Martine Lenders
b8691842fb
gnrc_ipv6_nib: queue packets that trigger probing on border router
2021-10-04 17:25:36 +02:00
Francisco
193ebb51e7
Merge pull request #16913 from jia200x/pr/test/hal/l2util
...
test/ieee802154_hal: general cleanup and cosmetic fixes
2021-10-04 10:06:15 +02:00
Leandro Lanzieri
9557a9dfc4
sys/libc: model Kconfig
2021-10-01 11:26:15 +02:00
Leandro Lanzieri
34259e1e29
sys/ztimer: add dependencies for ztimer_sec
2021-10-01 11:26:12 +02:00
Jose Alamos
d64f073df7
net/link_layer/l2util: initial Kconfig modeling
2021-09-30 17:30:16 +02:00
benpicco
df52b076d3
Merge pull request #16914 from miri64/dns_msg/fix/id-byteorder
...
dns_msg: Use correct byteorder for ID
2021-09-29 17:13:09 +02:00
José Alamos
280c756c7a
Merge pull request #16826 from jia200x/pr/submac/test/remove_netdev
...
tests/ieee802154_submac: remove netdev dependency
2021-09-29 15:05:43 +02:00
Martine Lenders
e0ac9d3f45
dns_msg: Use correct byteorder for ID
2021-09-29 13:32:12 +02:00
benpicco
a39c0e1010
Merge pull request #16750 from benpicco/gnrc_ipv6_auto_subnets
...
gnrc/ipv6_auto_subnets: relax topology requirements
2021-09-28 19:07:21 +02:00
Benjamin Valentin
6742fb8076
gnrc/ipv6_auto_subnets: relax topology requirements
2021-09-28 16:57:10 +02:00
Leandro Lanzieri
0129cbe954
Merge pull request #16594 from fjmolinas/pr_sys_fortuna_reseed_ms
...
sys/random/fortuna: change interval ressed to ms
2021-09-27 20:46:06 +02:00
Francisco Molina
1af2462404
sys/fortuna: remove need for now64
...
Use a timer to required a reseed, enable use of plain ztimer (no now64)
2021-09-27 17:30:05 +02:00
José Alamos
1ee57f80a0
Merge pull request #15030 from jia200x/pr/lora/remove_xtimer
...
drivers/sx127x: remove ZTIMER_USEC dependency
2021-09-27 11:41:22 +02:00
benpicco
01b255ee7d
Merge pull request #16888 from fjmolinas/pr_event_thread_stacktest
...
sys/event/thread: add STACKSTEST flag
2021-09-25 01:23:55 +02:00
Francisco Molina
ae5e10bc26
sys/event/thread: add STACKSTEST flag
2021-09-24 16:20:35 +02:00
benpicco
01dacc1fe5
Merge pull request #16883 from kaspar030/riotboot_inttypes_include
...
sys/riotboot: add missing "inttypes.h" include
2021-09-23 00:19:51 +02:00
benpicco
b1af25d4c6
Merge pull request #16743 from benpicco/net/sock/tcp-doc_fix
...
sock: tcp: fix sock_tcp_read() example
2021-09-22 20:58:49 +02:00
136f59bc2c
sys/riotboot: add missing "inttypes.h" include
2021-09-22 20:47:12 +02:00
mariem
9b9048af86
sys/auto_init: change gnrc ipv6 and tcp types.
2021-09-22 14:01:41 +02:00
Leandro Lanzieri
9980aa35b3
sys/net/credman: add key loading functions
...
This allows to load private and public keys encoded in DER format.
2021-09-20 08:10:59 +02:00
chrysn
b6dee72161
Merge pull request #16869 from chrysn-pull-requests/802154_submac-docs-syntax
...
ieee802154_submac doc: Make readable in doxygen builds
2021-09-19 11:11:22 +02:00
chrysn
eaf6219af3
ieee802154_submac doc: Make readable in doxygen builds
2021-09-18 21:32:26 +02:00
Hauke Petersen
8ac2ad8531
shell/sc_nimble_netif: adapt to scanner API change
2021-09-17 14:46:05 +02:00
benpicco
ea80df1780
Merge pull request #16824 from benpicco/gnrc_netif_ipv6_wait_for_prefix
...
gnrc/netif: add gnrc_netif_ipv6_wait_for_global_address()
2021-09-17 14:32:53 +02:00
Martine Lenders
75c9aaceb4
Merge pull request #15946 from jia200x/pr/gnrc_lorawan_redundancy
...
net/gnrc_lorawan: implement unconfirmed uplink redundancy
2021-09-17 13:38:10 +02:00
Benjamin Valentin
9c783ac7c4
gnrc/netif: accept const addr in gnrc_netif_ipv6_addr_add/remove()
2021-09-17 13:00:15 +02:00
Benjamin Valentin
4bd53e70fa
gnrc/netif: add gnrc_netif_ipv6_wait_for_global_address()
...
This adds a function to wait until a global address becomes available.
2021-09-17 13:00:14 +02:00
Martine Lenders
913573a200
Merge pull request #16702 from miri64/ut_process/feat/initial
...
ut_process: initial import of a URI template processor
2021-09-17 09:43:20 +02:00
Martine Lenders
7c60f6031c
ut_process: initial import of a URI template processor
2021-09-16 18:18:48 +02:00
Martine Lenders
e16925aab3
Merge pull request #16838 from haukepetersen/opt_nimblenetif_errno
...
pkg/nimble/netif: migrate to use errno return values
2021-09-16 16:53:43 +02:00
6c739935d8
Merge pull request #16818 from kaspar030/core_ps_interface
...
core/thread: add getters for thread_t
2021-09-15 14:52:32 +03:00
f0d8f1295f
sys/ps: use getters for thread_t fields
2021-09-15 10:16:45 +02:00
benpicco
abeb9c871d
Merge pull request #16745 from jia200x/pr/gnrc_netif_pktq/fix_deschedule
...
gnrc_netif_pktq: schedule immediately if timer us is equal to zero
2021-09-15 00:16:42 +02:00
benpicco
bfe64fe66a
Merge pull request #16849 from HendrikVE/pr/wolfmqtt_split_1
...
sys/posix/socket: fix wrong member access
2021-09-14 17:50:08 +02:00
Hendrik van Essen
e4bd2c5ffe
sys/posix/socket: use explicit bind
...
implicit bind would lead to StoreProhibitedCause on esp32
2021-09-14 13:30:37 +02:00