a1250963d4
Merge pull request #15780 from haukepetersen/opt_ztimer_isset
...
ztimer: add ztimer_is_set() to user API
2021-01-20 12:42:21 +01:00
Marian Buschsieweke
51db33375a
sys/bit: provide CPU_HAS_SRAM_BITBAND
...
CPU_HAS_SRAM_BITBAND can be used to check whether bit-banding is supported for
all of SRAM. With partially supported bit-banding, this feature is more of a
foot gun that a valuable tool.
2021-01-20 09:18:09 +01:00
Martine Lenders
eb30b0b2e2
Merge pull request #15792 from haukepetersen/fix_evtimer_moddep
...
sys/evtimer: fix module dependencies
2021-01-19 12:45:09 +01:00
Francisco
0e5ba63384
Merge pull request #15641 from bergzand/pr/schedstatistics/remove_idle_runtime
...
schedstatistics: Log sleep tick statistics
2021-01-19 11:19:05 +01:00
Francisco
e046e01254
Merge pull request #15683 from bergzand/pr/memarray/extender
...
memarray: Add functions to extend and reduce the pool with new memory areas
2021-01-19 11:18:47 +01:00
Hauke Petersen
8f5d366fe9
sys/evtimer: fix module dependencies
2021-01-19 11:07:20 +01:00
Bas Stottelaar
9bc7dd04e6
sys/saul_reg: add saul_reg_find_type_and_name
2021-01-18 22:28:28 +01:00
Hauke Petersen
f5de257d58
ztimer: expose ztimer_is_set() to public API
2021-01-18 17:50:50 +01:00
benpicco
5fe6483403
Merge pull request #15762 from benpicco/sys/sema_inv
...
sys/sema_inv: add inverse Semaphore
2021-01-18 15:57:01 +01:00
Leandro Lanzieri
61a10db288
sys/xtimer/kconfig: fix dependencies
2021-01-18 14:14:13 +01:00
Leandro Lanzieri
6625a15bf6
sys/ztimer: add modules to Kconfig
2021-01-18 14:14:13 +01:00
Leandro Lanzieri
abe90f6aeb
sys/frac: add module to Kconfig
2021-01-18 14:14:13 +01:00
c579dbe953
schedstatistics: Log sleep tick statistics
2021-01-18 11:14:23 +01:00
Benjamin Valentin
5602587dd7
sys/sema_inv: add inverse Semaphore
...
It is often desiderable to sync on multiple threads, e.g. there can be a controller
thread that waits for `n` worker threads to finish their job.
An inverse semaphore provides an easy primitive to implement this pattern.
After being initialized with a value `n` (in counter mode), a call to `sema_inv_wait()`
will block until each of the `n` threads has called `sema_inv_post()` exactly once.
There are situations where workers might post an event more than once
(unless additional state is introduced).
For this case, the alternative mask mode is provided.
Here the inverse semaphore is initialized with a bit mask, each worker can clear one
or multiple bits with `sema_inv_post_mask()`. A worker can clear it's bit multiple times.
2021-01-17 00:17:58 +01:00
Hauke Petersen
ed2e40df63
Merge pull request #15781 from haukepetersen/add_sema_getvalue
...
sys/sema: add sema_get_value()
2021-01-16 13:03:03 +01:00
Hauke Petersen
606bcd66da
posis/semaphore: use sema_get_value()
2021-01-15 16:17:25 +01:00
Hauke Petersen
7b0c5f9d5d
sys/sema: add same_get_value()
2021-01-15 15:22:31 +01:00
cb221aaaf0
memarray: Add extend and reduce functions
2021-01-15 11:39:08 +01:00
a2ce2e9cfb
memarray: Add memarray_available function
2021-01-15 11:39:07 +01:00
5495da5840
memarray: use memarray_free to init elements
2021-01-15 11:20:29 +01:00
Jose Alamos
0bee606bd4
gcoap: remove gcoap_add_qstring
...
This feature was marked to be deprecated after the release 2020.10.
Therefore this commit removes that feature.
2021-01-14 16:03:00 +01:00
Francisco Molina
960e0c5f43
sys/ieee802154/submac: add handling of invalid CRC frames
2021-01-13 23:42:45 +01:00
Francisco Molina
fe1e16cdc7
sys/net/iee802154/radio: add IEEE802154_RADIO_INDICATION_CRC_ERROR
2021-01-13 23:42:41 +01:00
Jose Alamos
49f4ecc595
ieee802154: add helpers for RSSI and dBm conversion
2021-01-13 14:14:45 +01:00
Marian Buschsieweke
c0765d9e07
sys/net/grnc: implement sock_aux_rssi
2021-01-13 13:29:13 +01:00
Marian Buschsieweke
f0ba796e5d
sys/net/sock: add sock_aux_rssi
...
Allow accessing the RSSI value of received UDP datagrams / IP packets with the
sock API.
2021-01-13 13:29:13 +01:00
Marian Buschsieweke
582f8d8430
Merge pull request #15754 from maribu/rssi
...
sys/net/gnrc: fix in-band signaling of no RSSI
2021-01-13 13:28:06 +01:00
Marian Buschsieweke
b50964f6fc
sys/net/gnrc: fix in-band signaling of no RSSI
...
Previously a value of 0 was used for the RSSI to signal that this value is not
present in `gnrc_netif_hdr_t`. However, an RSSI of 0 dBm is legal and even very
plausible data.
This commit defines `GNRC_NETIF_HDR_NO_RSSI` as `INT16_MIN`, which is below the
noise floor in the vacuum of outer space and hence impossible to receive.
For consistency, also GNRC_NETIF_HDR_NO_LQI is defined.
2021-01-13 08:53:33 +01:00
Marian Buschsieweke
8f24cc840c
sys/net/gnrc/sock: cleanup & fix aux handling
...
The logic used to check whether the RX timestamp was provided in the GNRC
implementation of `sock_ip_recv_buf_aux()` is incorrect: It still uses in-band
signalling via a timestamp of zero, but a dedicated flag was added to allow for
timestamps of zero.
Additionally, it is not necessary to check if a bit is set only to clear it -
clearing it unconditionally is faster and smaller.
2021-01-12 21:31:24 +01:00
dylad
25d0dffa61
Kconfig: add Kconfig support for DFU
2021-01-12 11:34:22 +01:00
dylad
beb0fb752c
sys/riotboot: add DFU support to riotboot
2021-01-12 11:34:22 +01:00
dylad
f3908bed9f
sys/auto_init: add support for USB DFU
2021-01-12 11:34:22 +01:00
dylad
669a8ec7b3
usbus/dfu: introduce initial Device Firmware Upgrade support for USBUS
2021-01-12 11:34:22 +01:00
1be0a29f62
Merge pull request #15742 from aabadie/pr/sys/posix_fcntl_headerguard_fix
...
[RFC] sys/posix/fcntl: fix headerguard
2021-01-12 10:12:19 +01:00
Dylan Laduranty
916f554d2a
Merge pull request #14629 from Ollrogge/usb_hid_pr
...
USB HID minimal implementation
2021-01-11 20:17:52 +01:00
Benjamin Valentin
89c97ae59a
sys/od: allow to specify address offset with od_hex_dump_ext()
...
When dumping memory the printed addresses always start with `00000000`.
This can be very confusing and lead to errors.
Allow the user to specify a starting address of the printed memory that
will be used instead.
By introducing a wrapper function, existing users are unaffected.
2021-01-11 14:35:40 +01:00
f496aef7cc
sys/posix/fcntl: fix headerguard
2021-01-11 13:48:09 +01:00
Build Bot
122d7a0f35
usbus/hid: add minimal implementation
2021-01-11 00:24:30 +01:00
a57b88d6cc
usbus: Use atomic_utils for endpoint flag operations
2021-01-10 11:40:23 +01:00
04aaed6f86
sys/shell/nimble_netif: don't cast result of atoi
2021-01-08 14:37:33 +01:00
4c4a396120
sys/shell/sht1x: fix typo (PARMS => PARAMS)
2021-01-08 10:15:33 +01:00
9a9530b4b5
sys/entropy_source: fix typo (sates => states)
2021-01-08 10:15:33 +01:00
Martine Lenders
640ff4f5d8
Merge pull request #15609 from maribu/ethernet-rx-timestamp
...
sys/net/gnrc/netif/ethernet: Support RX timestamp
2021-01-07 19:53:52 +01:00
Marian Buschsieweke
f6bca70d11
sys/net/gnrc/netif/ethernet: Support RX timestamp
2021-01-06 20:30:14 +01:00
Martine Lenders
ce0a363f62
Merge pull request #15690 from janosbrodbeck/pr/dtls/session_get_set_udp_ep
...
sock/dtls: add getter/setter for the remote UDP endpoint of sock_dtls_session_t
2021-01-05 14:23:51 +01:00
Marian Buschsieweke
8309f42f9b
Merge pull request #15643 from maribu/atomic_utils
...
sys/atomic_utils: change API to also return previous value
2021-01-05 12:04:31 +01:00
János Brodbeck
a72e053d32
sock/dtls: add example of a blocking handshake to the doc
2021-01-04 20:22:58 +01:00
János Brodbeck
a303081101
sock/dtls: introduce function to set the udp endpoint from a session
2021-01-04 20:22:57 +01:00
b277a6bad5
sys/shell: fix use of suit shell command
2020-12-30 19:06:41 +01:00
Dylan Laduranty
dd557a1328
Merge pull request #15651 from bergzand/pr/usbus/gen_serial
...
usbus: Add USB peripheral serial string support
2020-12-22 21:38:27 +01:00
János Brodbeck
0e12a5d1c3
sock/dtls: introduce function to get the udp endpoint from a session
2020-12-21 18:24:22 +01:00
Marian Buschsieweke
aca895f165
Merge pull request #15688 from bergzand/pr/memarray/inline_short_functions
...
memarray: Inline short alloc and free functions
2020-12-21 11:25:23 +01:00
bdf2bf537a
memarray: Inline short alloc and free functions
...
These functions are short enough that inlining them actually reduces the
flash footprint of the test on the samr21-xpro
2020-12-20 17:24:56 +01:00
Hauke Petersen
44c4f1e307
Merge pull request #15652 from haukepetersen/opt_asymcute_asyncsock
...
net/asymcute: use sock async
2020-12-18 15:09:20 +01:00
Martine Lenders
6646682873
Merge pull request #15611 from benpicco/boards/eui_provider.h
...
net/eui_provider: API cleanup
2020-12-18 15:02:57 +01:00
Hauke Petersen
ee01950ed7
net/asymcute: switch to sock_asnyc_event
2020-12-18 13:58:20 +01:00
Martine Lenders
b5a36e9af7
Merge pull request #15653 from haukepetersen/fix_asymcute_subflags
...
net/asymcute: fix handling of short and pre-defined topics
2020-12-18 13:52:52 +01:00
Hauke Petersen
1e7b95cd70
Merge pull request #15661 from haukepetersen/fix_emcute_msgidqos0
...
net/emcute: fix MsgId for PUBLISH with QOS0
2020-12-18 13:45:10 +01:00
Hauke Petersen
289688169e
net/asymcute: fix short and pre-defined topics
2020-12-18 12:27:46 +01:00
Hauke Petersen
d5aa6c1311
Merge pull request #15675 from haukepetersen/opt_asymcute_rmstaticcasts
...
net/asymcute: rm explicit casts where applicable
2020-12-18 12:12:05 +01:00
Hauke Petersen
610ae4925e
net/emcute: fix MsgId for PUBLISH with QOS0
2020-12-18 10:41:52 +01:00
Hauke Petersen
0e4c31ae64
net/emcute: add doc that QoS -1 is not supported
2020-12-18 10:41:52 +01:00
Hauke Petersen
285681a4e0
net/asymcute: rm explicit casts where applicable
2020-12-18 10:36:55 +01:00
Hauke Petersen
5ff526f928
net/asymcute: fix msgId when publishing QOS0
2020-12-18 10:26:02 +01:00
Hauke Petersen
f8ceccbca4
net/asymcute: add doc that QoS -1 is not supported
2020-12-18 10:22:25 +01:00
Hauke Petersen
d07d941867
net/mqttsn: add flag definition for QoS -1
2020-12-18 10:22:25 +01:00
Marian Buschsieweke
c8d16d21f7
Merge pull request #15606 from maribu/malloc-newlib-picolibc
...
sys/malloc_thread_safe: new module
2020-12-17 19:55:32 +01:00
Marian Buschsieweke
c790e2eb6d
sys/malloc_thread_safety: use mutex
...
Disabling IRQs during malloc() provides mutually exclusive access and even is
safe from IRQ context, but is suboptimal for real time scenarios. Instead, the
implementation is changed to use a mutex to provide mutually exclusive access.
As a result, calls to malloc() and free() from IRQ context no longer is
possible. But this this is a really horrible idea to begin with, the impact
should be minimal and the improved real time properties of the system should
make it a good trade-off. An assert() is added to allow easy detection of
regressions and, hence, aid users to fix their code.
2020-12-17 15:39:05 +01:00
Marian Buschsieweke
902aa29b62
sys/malloc_thread_safe: split out of cpu/atmega_common
...
Split out Gunar Schorcht's clever approach to provide thread safe malloc for
AVR into a system module and make AVR depend on this. This allows other
platforms to also use this.
2020-12-17 15:39:05 +01:00
9cd753228c
usbus: Add USB peripheral serial string support
2020-12-17 11:37:05 +01:00
185bf28c21
usb: Add configuration options for USB peripheral serial
...
This adds compile-time options to configure the serial of an USB
peripheral. The serial be autogenerated with a configured number of
bytes. It is also possible to configure a fixed serial string for a
device and disable the autogeneration of the serial.
2020-12-17 11:37:04 +01:00
Marian Buschsieweke
8b0007f33a
sys/atomic_utils: return previous value
...
Update the `atomic_fetch_<OPERATION>_u<WIDTH>()` functions to return the old
value the target contained prior to applying the operation. This makes this
API much more versatile and closer to C11 atomics.
2020-12-16 18:09:35 +01:00
Marian Buschsieweke
76630ee3cb
Merge pull request #15633 from benpicco/sys/base64-urlsafe_fix
...
sys/base64: drop padding for base64url encoding
2020-12-15 19:36:09 +01:00
Martine Lenders
b0b1c251c0
Merge pull request #15603 from miri64/uhcp/fix/prefix-len
...
uhcp: check maximum for prefix length
2020-12-15 13:06:08 +01:00
Benjamin Valentin
48c33ae0a2
sys/base64: drop padding for base64url encoding
...
The URLsafe base64 encoding variant does not require padding, using
'=' as padding is in fact an error as it is not a URL-safe character.
2020-12-15 12:18:45 +01:00
Martine Lenders
44a94dd91e
uhcp: check maximum for prefix length
2020-12-15 10:42:40 +01:00
Marian Buschsieweke
80b43605d4
sys/architecture: add comment on pronunciation
2020-12-15 10:29:58 +01:00
Marian Buschsieweke
3d9e7ca4d4
sys/architecture: Add UWORD_MIN, UWORD_MAX, ...
...
Allow accessing the highest and lowest number an uword_t and an sword_t can hold
via a preprocessor macro with a speaking name.
2020-12-15 10:13:47 +01:00
Martine Lenders
41a844f323
Merge pull request #12648 from miri64/gnrc_sixlowpan_frag_sfr/feat/initial
...
gnrc_sixlowpan_frag: initial import of Selective Fragment Recovery
2020-12-14 14:32:04 +01:00
Martine Lenders
dae714ce81
Merge pull request #15627 from maribu/ztimer_xtimer_compat
...
sys/ztimer: fix xtimer_compat
2020-12-14 13:16:15 +01:00
Martine S. Lenders
e980405cbc
gnrc_sixlowpan_frag_sfr: provide statistics sub-module
2020-12-14 13:00:37 +01:00
Martine S. Lenders
1cd1716280
gnrc_sixlowpan_frag: initial import of Selective Fragment Recovery
2020-12-14 13:00:36 +01:00
benpicco
145c863ed1
Merge pull request #15511 from firas-hamdi/feat/Add_flashwrite_revert
...
sys/riotboot/flashwrite: add functions to invalid slots
2020-12-14 11:08:49 +01:00
Marian Buschsieweke
2f7470b3fe
sys/ztimer: fix xtimer_compat
2020-12-14 10:46:51 +01:00
Martine S. Lenders
ec436e99d9
gnrc_sixlowpan_frag_rb: add handling for RFRAG packets
2020-12-14 10:17:57 +01:00
Firas Hamdi
d4c32caaaa
sys/riotboot: add revert and invalidate slot functions
...
Update the function description
update write function
refactor riotboot_flashwrite_invalidate function
minor changes
minor nitpicks
2020-12-14 09:33:56 +01:00
Martine S. Lenders
d393008b9f
gnrc_sixlowpan_frag_rb: externalize get_by_tag function
2020-12-14 09:30:04 +01:00
Martine S. Lenders
bd300a3cc0
gnrc_sixlowpan_frag_rb: add check function for empty interval pool
2020-12-14 09:30:04 +01:00
Martine S. Lenders
80ff517eba
gnrc_netif: 6lo.h: add flags to indicate SRF capability
2020-12-14 09:30:03 +01:00
Martine S. Lenders
82c4d263e8
gnrc_sixlowpan_config: rename SRF parameters for Kconfig
2020-12-14 09:30:03 +01:00
Martine S. Lenders
0af8a1600a
sixlowpan|gnrc_sixlowpan: change SFR draft to RFC in doc
2020-12-14 09:00:26 +01:00
Martine S. Lenders
27f4939211
gnrc_sixlowpan_frag_vrb: add reverse look-up
...
To label switch ACKs for fragments back to the originator, a reverse
look-up in the VRB is required.
2020-12-14 09:00:25 +01:00
benpicco
5f7a7bc6f1
Merge pull request #15572 from dylad/pr/cpu/sam0/ethernet
...
cpu/sam0: add initial ethernet support
2020-12-14 08:17:01 +01:00
benpicco
cc55d4c0a6
Merge pull request #15605 from maribu/ztimer_xtimer_compat
...
sys/ztimer: increase xtimer_compat coverage
2020-12-14 00:24:34 +01:00
Benjamin Valentin
d4acf95a27
net/eui_provider: drop useless EUI provider arg parameter
...
This has never been used and we might as well define a second
callback function instead of using a generic one with an arg.
2020-12-14 00:22:43 +01:00
Benjamin Valentin
d616995d7b
net/eui_provider: define board EUI providers in eui_provider_params.h
2020-12-14 00:22:19 +01:00
Benjamin Valentin
fe9ae5bc80
net/eui_provider: provide index to the callback function
...
If the same callback function is used for multiple interfaces
(`NETDEV_INDEX_ANY`), it is necessary to also provide the index of
the interface to hand out and address.
2020-12-14 00:22:18 +01:00
dylad
5b7961b747
sys/net: add sam0 eth auto init
2020-12-13 22:01:50 +01:00
Martine Lenders
b6bf67114b
Merge pull request #15536 from fjmolinas/pr_openwsn_sock_selfhosted
...
pkg/openwsn: add sock_udp
2020-12-11 11:22:50 +01:00
Francisco Molina
1d1e4b6e7b
sys/Makefile.dep: add openwsn shell_commands missing dependency
2020-12-11 09:07:52 +01:00
Francisco Molina
c97f025333
Makefile.dep: fix sock_async deps
2020-12-11 09:07:51 +01:00
Francisco Molina
2761bba370
sys/shell/commands/sc_openwsn: update components
2020-12-11 09:07:49 +01:00
Francisco Molina
5c26f53828
pkg/openwsn: add openwsn_sock_udp module
...
Co-authored-by: Timothy Claeys <timothy.claeys@inria.fr>
2020-12-11 09:07:48 +01:00
benpicco
8dc0b01e21
Merge pull request #15577 from Hxinrong/cord_common_add_qstringBranch
...
add error check of cord_common_add_qstring()
2020-12-11 08:38:43 +01:00
benpicco
c5b5788eb7
Merge pull request #15570 from benpicco/sys/bit.h
...
sys/bit: move bit.h header to sys/
2020-12-11 08:36:36 +01:00
Martine Lenders
08d86295d2
Merge pull request #15560 from maribu/gnrc-aux-rx-timestamps
...
net/gnrc/sock: Implement sock_aux_timestamp for RX
2020-12-10 19:20:16 +01:00
Marian Buschsieweke
d95192e97b
sys/net/gnrc/sock: Add support for RX timestamp
2020-12-10 17:43:11 +01:00
Francisco
7bbe36ff6b
Merge pull request #15588 from benpicco/native/pm_layered
...
cpu/native: pm: fix build with pm_layered
2020-12-10 13:05:45 +01:00
Marian Buschsieweke
76cc81880e
sys/ztimer: increase xtimer_compat coverage
...
- add some xtimer specific defines some tests rely on
- provide the following missing functions:
- xtimer_ticks()
- xtimer_set_timeout_flag()
- xtimer_set_timeout_flag64()
- xtimer_spin()
2020-12-09 20:59:30 +01:00
Martine Lenders
eafa026db2
Merge pull request #15599 from benpicco/byteorder_htoll
...
follow-up: use byteorder_htoll()
2020-12-09 18:24:18 +01:00
Marian Buschsieweke
e3ecb74765
Merge pull request #15592 from maribu/ztimer_mutex_lock_timeout
...
sys/ztimer: add ztimer_mutex_lock_timeout()
2020-12-09 17:48:51 +01:00
1eb30f1cd7
Merge pull request #15566 from dylad/pr/usbus/string_descr_for_alt_if
...
usbus: add optional string descriptor for alt interface
2020-12-09 14:52:40 +01:00
f9c40e31bc
Merge pull request #15565 from dylad/pr/usbus/add_interface_alt_helper
...
usbus: add usbus_add_interface_alt() helper function
2020-12-09 14:52:21 +01:00
Benjamin Valentin
2ddfc46234
gnrc/lorawan: use byteorder_htoll()
2020-12-09 14:21:56 +01:00
Benjamin Valentin
b0c626a2a7
ieee802154/security: use byteorder_htoll()
2020-12-09 14:17:46 +01:00
benpicco
1477a340fe
Merge pull request #15150 from fabian18/ieee802154_security
...
Initial implementation of IEEE 802.15.4 security
2020-12-09 14:14:27 +01:00
Marian Buschsieweke
7364f1b451
sys/ztimer: compat for xtimer_mutex_lock_timeout
2020-12-09 13:26:37 +01:00
Marian Buschsieweke
599252652d
Merge pull request #15590 from maribu/xtimer_mutex_lock_timeout
...
sys/xtimer: clean up xtimer_mutex_lock_timeout
2020-12-09 13:23:55 +01:00
dylad
4b438c2cc0
usb/cdc_ecm: use add_interface_alt helper function
2020-12-09 09:38:15 +01:00
dylad
7b8feef326
usbus: add usbus_add_interface_alt helper function
2020-12-09 09:38:15 +01:00
Marian Buschsieweke
d48fac278b
sys/ztimer: drop unused internal typedef
2020-12-08 22:54:39 +01:00
Marian Buschsieweke
71a0c53df2
sys/ztimer: Add ztimer_mutex_lock_timeout()
2020-12-08 22:54:39 +01:00
Marian Buschsieweke
4f36d21957
sys/xtimer: clean up xtimer_mutex_lock_timeout
...
Use `mutex_lock_cancelable()` and `mutex_cancel()` to implement
`xtimer_mutex_lock_timeout()`.
2020-12-08 22:03:57 +01:00
Martine Lenders
81dd58c7af
Merge pull request #15589 from benpicco/gnrc_ipv6_nib-nce_exhaustion
...
gnrc_ipv6_nib: prevent NULL pointer dereference on nib exhaustion
2020-12-08 22:03:33 +01:00
Benjamin Valentin
120b1485e0
gnrc_ipv6_nib: prevent NULL pointer dereference on nib exhaustion
...
If the NIB is full, `_nib_onl_get()` returns NULL.
`_reg_addr_upstream()` will then dereference the result without if
it is valid.
2020-12-08 20:41:06 +01:00
Martine Lenders
1feacd1b88
Merge pull request #15583 from benpicco/byteorder_htols
...
drivers, sys: use byteorder_htols()
2020-12-08 20:15:19 +01:00
Martine Lenders
23eb4d4e18
Merge pull request #15581 from janosbrodbeck/pr/dtls/remove_session_create
...
sock/dtls: remove sock_dtls_session_create due to deprecation
2020-12-08 20:08:20 +01:00
Benjamin Valentin
d7ed3418b5
cpu/native: pm: fix build with pm_layered
2020-12-08 18:24:02 +01:00
Benjamin Valentin
e300dfe47e
sys/bit: move bit.h from cortexm_common/ to sys/
...
The bit access functions are not tied to Cortex-M CPUs, here they only
provide optimisations via bit-banding.
But the functions are generally useful - so move them to an arch independent
location.
2020-12-08 17:07:41 +01:00
benpicco
c15001d33a
Merge pull request #15584 from fjmolinas/pr_submac_state_type
...
sys/net/link_layer/ieee802154/submac: fix type
2020-12-08 16:42:46 +01:00
Benjamin Valentin
518c95e0ee
gnrc_netif_ieee802154_create: use byteorder_htols()
2020-12-08 16:31:20 +01:00
Benjamin Valentin
ec5e45defb
gnrc/lwmac: use byteorder_htols()
2020-12-08 16:30:43 +01:00
Benjamin Valentin
dd87737ca0
gnrc/gomach: use byteorder_htols()
2020-12-08 16:30:17 +01:00
Benjamin Valentin
129e9ae8a3
sys/gnrc_lorawan: use byteorder_htols()/byteorder_htoll()
2020-12-08 16:29:10 +01:00
dylad
dde5e94233
usbus: add optional string descriptor for alt interface
2020-12-08 15:39:14 +01:00
Leandro Lanzieri
06a06c32e3
Merge pull request #15573 from akshaim/Kconfig_rn2xx3_update
...
drivers/rn2xx3 : Kconfig updates.
2020-12-08 15:20:25 +01:00
Francisco Molina
7bf2263507
sys/net/link_layer/ieee802154/submac: fix type
2020-12-08 14:22:09 +01:00
Han Xinrong
44762971c2
sys/net/application_layer/cord: add error check to cord_ep_register()
2020-12-08 20:37:15 +08:00
71f6b73251
Merge pull request #15519 from benpicco/byteorder_letoh
...
sys/byteorder: add helpers to convert from little endian to host byte order
2020-12-08 12:52:32 +01:00
János Brodbeck
126d363cea
sock/dtls: remove sock_dtls_session_create
...
due to deprecation
2020-12-08 12:04:14 +01:00
János Brodbeck
c191f3b1a7
sock/dtls: doc: fix wrong numbering in client operations
2020-12-08 12:04:14 +01:00
Akshai M
bfd3a903fb
drivers/rn2xx3 : r/LORAMAC_DEFAULT_AR/CONFIG_RN2XX3_DEFAULT_AR
...
Move 'LORAMAC_DEFAULT_AR' to drivers/rn2xx3 i.e
'RN2XX3_DEFAULT_AR'
Move 'RN2XX3_DEFAULT_AR' to 'CONFIG_' namespace
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-12-08 11:33:44 +01:00
Francisco
1d8c541b32
Merge pull request #15548 from benpicco/suit/transport/coap_blocksize
...
suit/transport/coap: make blocksize configurable
2020-12-08 10:14:34 +01:00
Martine Lenders
ba89d8641e
Merge pull request #14704 from maribu/sock-aux-gnrc
...
net/gnrc/sock: Implement sock_aux_local
2020-12-04 13:55:27 +01:00
Marian Buschsieweke
1d69f067d1
sys/net/gnrc: Implement sock_aux_local
...
Provide address the IP packet / UDP datagram was received on in the auxiliary
data, if module sock_aux_local is used.
2020-12-04 12:47:59 +01:00
Fabian Hüßler
7b5391b7ce
sys/net/gnrc/netif/init_devs: IEEE802154_STACKSIZE_DEFAULT
2020-12-04 09:40:55 +01:00
Fabian Hüßler
6123e87e64
sys/include/net/ieee802154: Add sec ops to radio HAL
2020-12-04 09:40:55 +01:00
Fabian Hüßler
dc16c14b3d
sys: Add IEEE 802.15.4 security
2020-12-04 09:40:55 +01:00
benpicco
1a25df9d34
Merge pull request #15471 from maribu/event-threads-multi
...
sys/event: Allow single event_thread handling all queues
2020-12-03 21:04:36 +01:00
Marian Buschsieweke
c6211cc6c2
sys/event: Allow shared thread for multiple queues
...
Allow using `event_loop_multi()` to handle event queues of multiple priorities
in an single thread. In the extreme case, all three event queues are handled
by a single thread (thus saving two stacks). This comes for the price of
increased worst case latency, as already running event handlers will no longer
be preempted by higher priority events.
With this, all three event queue priorities are always provided. Using modules,
the old behavior of one thread per event queue can be restored for better worst
case latency at the expense of additional thread size.
2020-12-03 15:28:35 +01:00
János Brodbeck
18fb081d50
sock/dtls: remove usage of sock_dtls_session_create in documentation
2020-12-03 14:45:38 +01:00
Marian Buschsieweke
9d46bc7d7f
Merge pull request #14703 from maribu/sock-aux-api
...
net/sock: Add access to auxiliary data (API only)
2020-12-03 12:08:49 +01:00
Benjamin Valentin
191c91ce18
suit/transport/coap: make blocksize configurable
...
When using SUIT over a link-layer that supports larger PDU, a larger
CoAP blocksize is desirable to speed up firmware downloads.
To support this, make the CoAP blocksize used by SUIT configurable.
2020-12-03 10:51:42 +01:00
benpicco
a80631a297
Merge pull request #15074 from maribu/ptp-clock
...
drivers/periph/ptp_clock
2020-12-03 09:59:07 +01:00
benpicco
72621bcfcf
Merge pull request #15525 from firas-hamdi/fix/suit_coap_wo_progressbar
...
sys/suit: fix use w/o progress bar
2020-12-03 09:34:38 +01:00
Marian Buschsieweke
152ffe6db9
net/sock_dtls: Extend API for auxiliary data
2020-12-02 17:56:14 +01:00
Marian Buschsieweke
893bfd13d0
net/sock_udp: Extend API for auxiliary data
2020-12-02 17:56:13 +01:00
Marian Buschsieweke
ebcf1c0ab4
net/sock_ip: Extend API for auxiliary data
2020-12-02 17:56:13 +01:00
Marian Buschsieweke
d59607ddb7
sys/timex: change type of NS_PER_SEC
...
Having NS_PER_SEC defined as `1000000000U` is quite a foot gun, as
multiplication even with small numbers in 32 bit quickly overflows. Using the
`1000000000LLU` instead forces 64 bit math.
2020-12-02 17:53:00 +01:00
benpicco
665c07eb53
Merge pull request #15120 from benpicco/driver/at86rf215-trim
...
driver/at86rf215: add functions to configure trim & clock output at run-time
2020-12-02 16:53:02 +01:00
Benjamin Valentin
b866b5ef2b
sys/net/gnrc/netif: add gnrc_netif_get_netdev()
...
Add a function to retrieve a netdev from the list of interfaces.
2020-12-02 14:59:17 +01:00
Firas Hamdi
398889cafa
sys/suit: fix use w/o progress bar
...
apply change
2020-12-02 10:51:36 +01:00
Leandro Lanzieri
25917b1986
sys/fmt/Kconfig: make module available only for testing
2020-12-02 10:14:43 +01:00
Leandro Lanzieri
5ab04a28b9
sys/embunit/Kconfig: make module available only for testing
2020-12-02 10:14:43 +01:00
Leandro Lanzieri
14ea7a676d
sys/Kconfig.stdio: add printf_float module
2020-12-02 10:13:10 +01:00
Leandro Lanzieri
3741fc8b92
sys/auto_init/multimedia: add module to Kconfig
2020-12-02 10:12:17 +01:00
Francisco
c9720d16ca
Merge pull request #15515 from leandrolanzieri/pr/kconfig/drivers_ghij
...
drivers/{g,h,i,j}*: add Kconfig modules
2020-12-02 10:03:02 +01:00
Francisco
0a064806e3
Merge pull request #15443 from benpicco/l2util_addr
...
replace netif_addr_to/from_str() with l2util_addr_to/from_str()
2020-12-02 09:21:16 +01:00
Marian Buschsieweke
5c70345aa6
Merge pull request #15537 from fabian18/sx127x_netdev_register
...
drivers/sx127x: use netdev_register()
2020-12-01 21:38:38 +01:00
benpicco
b18cbd8c2a
Merge pull request #11068 from miri64/gnrc_sixlowpan_frag/new/minfwd
...
gnrc_sixlowpan_frag: initial import of minimal forwarding
2020-12-01 18:55:51 +01:00
benpicco
c22bba5cac
Merge pull request #15526 from miri64/gnrc_ipv6_ext_frag/fix/i15521
...
gnrc_ipv6_ext_frag: check return value of msg_try_send()
2020-12-01 17:58:17 +01:00
Leandro Lanzieri
2fc12c8252
Merge pull request #14324 from PeterKietzmann/pr_add_entropy_source
...
sys/entropy_source: add new module for entropy sources
2020-12-01 16:58:42 +01:00
Fabian Hüßler
c526a34770
sx127x: make use of netdev_register()
...
Call netdev_register() in sx127x_setup()
and pass the index in auto_init_sx127x()
and semtech_loramac_init()
2020-12-01 16:34:11 +01:00
Martine Lenders
27e123608f
gnrc_sixlowpan_iphc: forward received fragments
2020-12-01 16:25:30 +01:00
Martine Lenders
d9be79b266
gnrc_sixlowpan_iphc/minfwd: put only IPHC dispatch in first fragment
...
This is only the case when minfwd is compiled in.
2020-12-01 16:25:29 +01:00
Martine Lenders
7fe07e35a3
gnrc_sixlowpan_frag_rb: add VRB and use minfwd handling
...
When a VRB entry exists use minfwd to forward.
When a route exist for the first fragment received in reassembly create
a virtual reassembly buffer entry.
2020-12-01 16:25:29 +01:00
Martine Lenders
df1171a069
gnrc_sixlowpan_frag_rb: make rbuf pointer generic
2020-12-01 16:25:29 +01:00
Marian Buschsieweke
56cf30172f
Merge pull request #15532 from fabian18/cc110x_netdev_register
...
drivers/cc110x: use netdev_register
2020-12-01 16:17:37 +01:00
PeterKietzmann
aec75b55fe
sys/entropy_source: add new module for entropy sources
2020-12-01 15:51:40 +01:00
Martine Lenders
4ce2d01cb9
gnrc_sixlowpan_frag: initial import of minimal forwarding
...
See https://tools.ietf.org/html/draft-ietf-6lo-minimal-fragment-04
2020-12-01 15:08:08 +01:00
Fabian Hüßler
39adf908ce
cc110x: make use of netdev_register()
...
Call netdev_register() in cc110x_setup()
and pass the index in auto_init_cc110x()
2020-12-01 12:11:20 +01:00
Benjamin Valentin
eb199d4c78
netdev: move definition of NETDEV_INDEX_ANY to netdev
2020-12-01 11:55:06 +01:00
benpicco
333fce44b4
Merge pull request #14973 from benpicco/driver/at86rf215-batmon
...
drivers/at86rf215: implement battery monitor, add power bus
2020-12-01 11:52:46 +01:00
Martine Lenders
3295c833ca
gnrc_ipv6_ext_frag: propagate error up the stack on _snd_buf_free()
2020-12-01 11:32:18 +01:00
Francisco
f23c616eb1
Merge pull request #15422 from benpicco/pkg/fatfs-r0.14
...
pkg/fatfs: bump version to r0.14
2020-12-01 10:46:54 +01:00
Martine Lenders
c44d77e528
Merge pull request #15508 from namib-project/dhcp-mud-support
...
Add MUD URL option to DHCPv6 client
2020-12-01 10:33:51 +01:00
Leandro Lanzieri
4b7bb8719f
Merge pull request #15240 from akshaim/Kconfig_EMCute_1
...
MQTT-SN Clients ( Emcute/ Asymcute) : Kconfig Updates
2020-12-01 09:47:09 +01:00
Jan Romann
9823e45a93
net/dhcpv6: Introduce buffer size check
2020-11-30 22:46:33 +01:00
Jan Romann
2a570cb957
net/dhcpv6: Add DHCPv6 option for MUD URL (RFC 8520)
...
Co-Authored-By: Jens Bücker <48720000+jbueck@users.noreply.github.com>
Co-Authored-By: mauspr <75017188+mauspr@users.noreply.github.com>
Co-Authored-By: schulztr <75017039+schulztr@users.noreply.github.com>
2020-11-30 22:46:33 +01:00
Martine Lenders
6303d962a3
gnrc_ipv6_ext_frag: check return value of msg_try_send()
2020-11-30 15:31:59 +01:00
Benjamin Valentin
04d86dbcae
core/byteorder: add helpers to convert from little endian to host byte order
...
This is usually a NOP, but a helper functions to allow for writing code
that would also work on mythical Big Endian machines.
2020-11-29 21:41:14 +01:00
Leandro Lanzieri
6bcb2f1b3d
sys/checksum: add module to Kconfig
2020-11-27 09:20:05 +01:00
ae053469d5
sys/xtimer: add missing msg.h include
2020-11-26 13:43:13 +01:00
7fe0d5cba8
sys/ztimer: add missing inttypes.h includes
2020-11-26 13:43:13 +01:00
benpicco
aabd5eaca5
Merge pull request #15506 from kaspar030/refactor_thread_info
...
core: refactor thread info
2020-11-26 13:01:09 +01:00
Francisco
47ed64fcfd
Merge pull request #15466 from leandrolanzieri/pr/kconfig_drivers_bc
...
drivers/{b,c}*: model modules in Kconfig
2020-11-26 10:44:28 +01:00
7e94050bbe
sys/ps: make use of thread_is_active()
2020-11-25 20:49:00 +01:00
57e79d6c24
all: add missing sys/types.h includes
2020-11-25 17:52:34 +01:00
c1874c8d89
all: add missing limits.h includes
...
Removal of kernel_types.h make these necessary.
2020-11-25 17:52:34 +01:00
1d5e2e9cd9
all: remove traces of kernel_types.h
...
Automatically removed using:
$ git grep -l kernel_types | xargs sed -i '/^#include .kernel_types/d'
2020-11-25 17:52:34 +01:00
848a5a4e7a
sys/ps: make use of thread_get_status()
2020-11-25 14:39:47 +01:00
5321bcde89
core: thread: move thread_state_to_string() from ps.c
2020-11-25 14:35:00 +01:00
Leandro Lanzieri
fdabcf150f
sys/saul_reg: add module to Kconfig
2020-11-25 12:00:14 +01:00
Leandro Lanzieri
dd3ef01ed6
sys/phydat: add module to Kconfig
2020-11-25 12:00:13 +01:00
benpicco
6a4ece5246
Merge pull request #15359 from miri64/uhcp/fix/i15353
...
uhcp: fix handling of pushed prefix
2020-11-25 00:17:30 +01:00
575189510d
Merge pull request #15465 from maribu/atomic-utils-volatile
...
sys/atomic_utils: Use volatile qualifier
2020-11-24 22:05:33 +01:00
Marian Buschsieweke
5a2efe061d
sys: Moved volatile_utils from test
...
The volatile utils might be useful elsewhere - at least in a second unit test.
Move them to sys to allow using them, but with appropriate warnings added.
2020-11-24 14:34:51 +01:00
Marian Buschsieweke
a594b8adc1
sys/atomic_utils: Use volatile pointers
...
Mark all pointers in the atomic utils API as `volatile` for the following
reasons:
1. The guarantees provided by `volatile` is a subset of the guarantees
provided by the atomic utils. This makes this fact more obvious.
2. Casting `volatile` off is undefined behavior. In order to be able to use
the atomic utils on memory mapped IO (which needs the `volatile` qualifier)
without resorting to undefined behavior, this API change is needed.
2020-11-24 14:00:51 +01:00
Martine Lenders
2d54968881
uhcp: fix handling of pushed prefix
2020-11-24 11:44:30 +01:00
benpicco
b3b07e4e33
Merge pull request #15481 from kaspar030/refactor_thread_defines
...
core: move scheduler defines
2020-11-23 17:56:09 +01:00
d6b6c0e98f
sys/sema: add missing limits.h
2020-11-23 16:56:34 +01:00
0b801c4de0
all: adapt to moved sched defines
2020-11-23 16:56:34 +01:00
3a643246c8
sys/vfs: adapt to changed thread define location
2020-11-23 16:56:34 +01:00
benpicco
a80f0d966a
Merge pull request #15448 from leandrolanzieri/pr/kconfig/drivers_a
...
drivers/a*: model modules in Kconfig
2020-11-23 16:52:50 +01:00
benpicco
ee5f2f76fb
Merge pull request #15469 from benpicco/sys/riotboot_finish_raw
...
riotboot: don't always return error in riotboot_flashwrite_finish_raw()
2020-11-23 16:40:17 +01:00
jenswet
0d0ec11753
sys/net/lorawan: fix cpp namespace
2020-11-23 11:36:05 +01:00
benpicco
979eeed81a
Merge pull request #15492 from fjmolinas/pr_xtimer_msleep_var
...
sys/include/ztimer/xtimer_compat: fix wrong variable name
2020-11-22 14:41:41 +01:00
Francisco Molina
1d9994b9ec
sys/include/ztimer/xtimer_compat: fix wrong variable name
2020-11-22 13:05:36 +01:00
benpicco
dd1de91c63
Merge pull request #15480 from kaspar030/frac_inttypes
...
sys/frac/frac.c: add missing inttypes.h include
2020-11-20 12:05:22 +01:00
6fdcecc648
sys/frac/frac.c: add missing inttypes.h include
2020-11-20 10:49:48 +01:00
80a628f76d
sys/gnrc/sock: make use of mbox_size() and mbox_avail()
2020-11-20 10:38:17 +01:00
Akshai M
4fea815d0f
net/mqttsn : Remove 'MQTTSN_DEFAULT_PORT'
...
Remove unused macro 'MQTTSN_DEFAULT_PORT'
2020-11-19 23:11:21 +01:00
Akshai M
398c0d2711
net/asymcute : Update documentation
...
Add document to 'net_mqtt_conf', add brief, align macros.
deprecate 'CONFIG_ASYMCUTE_BUFSIZE_EXP'
2020-11-19 23:11:21 +01:00
Akshai M
1559aa1dc6
net/asymcute : Move 'ASYMCUTE_BUFSIZE' to 'CONFIG_'
...
Move ASYMCUTE_BUFSIZE to CONFIG_ namespace, update entry in Kconfig
2020-11-19 23:11:21 +01:00
Akshai M
8f36c817eb
net/asymcute : Add 'CONFIG_ASYMCUTE_DEFAULT_PORT'
...
examples/asymcute : Update macro definition
Update macro definition for UDP port.
Kconfig/asymcute : Add 'ASYMCUTE_DEFAULT_PORT'
2020-11-19 23:11:21 +01:00
Akshai M
2c7dfac7d1
net/emcute : Update documentation
...
Update documentation and add new group 'net_mqtt_conf'
2020-11-19 23:11:21 +01:00
Akshai M
2c710b1b3f
net/emcute : Expose to Kconfig
2020-11-19 23:11:21 +01:00
Akshai M
fb465db26f
net/emcute : Move 'EMCUTE_DEFAULT_PORT' to 'CONFIG_'
...
tests/emcute : Change the macro for default port
r/MQTTSN_DEFAULT_PORT/CONFIG_EMCUTE_DEFAULT_PORT
examples/emcute : Update UDP port definition
r/MQTTSN_DEFAULT_PORT/CONFIG_EMCUTE_DEFAULT_PORT
2020-11-19 23:11:21 +01:00
Akshai M
348a8cb45a
net/emcute : Move 'EMCUTE_N_RETRY' to 'CONFIG_'
2020-11-19 23:11:21 +01:00
Akshai M
1840310459
net/emcute : Move 'EMCUTE_T_RETRY' to 'CONFIG_'
2020-11-19 23:11:21 +01:00
Akshai M
752f76248b
net/emcute : Move 'EMCUTE_KEEPALIVE' to 'CONFIG_'
2020-11-19 23:11:21 +01:00
Akshai M
4bb866c59e
net/emcute : Move 'EMCUTE_TOPIC_MAXLEN' to 'CONFIG_'
2020-11-19 23:11:20 +01:00
Akshai M
17e2b20f50
net/emcute : Move 'EMCUTE_BUFSIZE' to 'CONFIG_'
2020-11-19 23:11:20 +01:00
benpicco
487f2ae91e
Merge pull request #15435 from jia200x/pr/fix_gnrc_pktq
...
gnrc_netif_pkq: fix pktbuf leak
2020-11-19 11:54:53 +01:00
Jose Alamos
dfb214ab98
gnrc_netif: add missing pktbuf release
2020-11-19 11:13:58 +01:00
e44fa2ba3e
sys/oneway-malloc: check calloc args
2020-11-19 10:02:50 +01:00
Leandro Lanzieri
024b70cbe1
drivers/at: add modules to Kconfig
2020-11-18 18:38:48 +01:00
Leandro Lanzieri
9a5ed7c085
sys/ps: add module to Kconfig
2020-11-18 18:38:45 +01:00
Leandro Lanzieri
a7d1ebc0fd
sys/event: add modules to Kconfig
2020-11-18 18:38:45 +01:00
Leandro Lanzieri
f8e4085899
sys/embunit: add module to Kconfig
2020-11-18 18:38:44 +01:00
Leandro Lanzieri
8898e21f08
sys/color: add module to Kconfig
2020-11-18 18:38:44 +01:00
Benjamin Valentin
4bcccb1c68
riotboot: use log level ERROR if riotboot_flashwrite_finish_raw() fails
2020-11-18 18:04:59 +01:00
Benjamin Valentin
e697d93e02
riotboot: don't always return error in riotboot_flashwrite_finish_raw()
...
If `CONFIG_RIOTBOOT_FLASHWRITE_RAW` is not set, `riotboot_flashwrite_finish_raw()`
will always return `-1` as `res` is not set anywhere else.
Fix this by only returning -1 in the error case.
2020-11-18 16:13:47 +01:00
Leandro Lanzieri
5a87053fa4
sys/stdio: add stdio_native module to Kconfig
2020-11-18 10:07:54 +01:00
Marian Buschsieweke
45b8902659
Merge pull request #15314 from aabadie/pr/sys/arduino_print_float
...
sys/arduino: fix print float
2020-11-17 16:15:39 +01:00
benpicco
afbf507a74
Merge pull request #15440 from maribu/pointer-tagging
...
sys: Add helpers for pointer tagging
2020-11-17 14:21:46 +01:00
Benjamin Valentin
33449a4409
pkg/fatfs: bump version to r0.14
2020-11-17 11:29:28 +01:00
Benjamin Valentin
83a4248fbb
net/netif: remove netif_addr_to/from_str()
2020-11-17 10:51:22 +01:00
Benjamin Valentin
dbf6b1e25c
sys/net: replace netif_addr_to/from_str with l2util_addr…
2020-11-17 10:51:22 +01:00
Marian Buschsieweke
ffbb1c1035
sys: Add helpers for pointer tagging
2020-11-17 10:10:28 +01:00
Benjamin Valentin
5d6754e7a9
l2util: add l2util_addr_to_str()/l2util_addr_from_str()
2020-11-14 17:29:26 +01:00
Benjamin Valentin
f9c36f9738
netopt: add NETOPT_BATMON
...
Many radios have a built-in battery monitor.
Add a netopt to configure it.
2020-11-13 22:59:09 +01:00
benpicco
9621855125
Merge pull request #15436 from jia200x/pr/fix_submac_hal_access
...
ieee802154_submac: set TRX state only if SubMAC is idle
2020-11-13 16:47:56 +01:00
Jose Alamos
bfcfa29aa6
ieee802154_submac: set TRX state only if SubMAC is idle
2020-11-13 13:36:48 +01:00
Benjamin Valentin
7e069290a0
sys/bus: add system buses
2020-11-12 22:50:53 +01:00
benpicco
d9598a0f54
Merge pull request #15412 from bergzand/pr/flashpage/merge_raw
...
periph_flashpage: Make pagewise API optional
2020-11-12 22:32:21 +01:00
792e031a95
Merge pull request #14331 from maribu/atomic_utils
...
sys/atomic_utils: Functions for atomic access
2020-11-12 21:44:53 +01:00
Jose Alamos
53348e3a8c
gnrc_netif: add missing netdev events
2020-11-12 16:12:22 +01:00
153c52754d
Merge pull request #15070 from fjmolinas/pr_uwb_core
...
pkg/uwb_core: initial support
2020-11-12 14:04:51 +01:00
Francisco Molina
3622c2da07
pkg/uwb-core: initial import
2020-11-12 12:54:54 +01:00
Martine Lenders
37dd848c37
Merge pull request #15337 from cgundogan/pr/uri_parser_interfaces
...
uri_parser: extend for parsing interfaces in IPv6 addresses
2020-11-12 11:16:52 +01:00
722223902a
riotboot: only depend on periph_flashpage
2020-11-11 23:16:43 +01:00
Cenk Gündoğan
9eb6a38a5a
uri_parser: parse interface in IPv6 addresses
2020-11-11 22:47:30 +01:00
Benjamin Valentin
b9e61fd102
sys/od: add Kconfig
2020-11-10 14:21:47 +01:00
Martine Lenders
5ef8ca476f
uhcp: improve documentation
2020-11-09 11:45:28 +01:00
Leandro Lanzieri
3ce7dc8f1d
sys/fmt: Add module to Kconfig
2020-11-06 15:57:58 +01:00
Leandro Lanzieri
b2b704160e
sys/arduino: add module to Kconfig
2020-11-06 15:57:57 +01:00
Leandro Lanzieri
f3b26c8b11
sys/schedstatistics: add module to Kconfig
2020-11-06 15:57:55 +01:00
Leandro Lanzieri
2101161eab
sys/benchmark: add module to Kconfig
2020-11-06 15:57:55 +01:00
Leandro Lanzieri
fb282c37e1
sys/shell: Add module to Kconfig
2020-11-06 15:57:54 +01:00
Leandro Lanzieri
a66f7fd61f
sys/stdio: add stdin and stdio_uart_rx modules to Kconfig
2020-11-06 15:57:54 +01:00
Leandro Lanzieri
fec7cd37e3
sys/tsrb: Add module to Kconfig
2020-11-06 15:57:53 +01:00
Leandro Lanzieri
4bb0edbbfc
sys/xtimer: Add module to Kconfig
2020-11-06 15:57:53 +01:00
Leandro Lanzieri
a7ef35d318
sys/isrpipe: Add module to Kconfig
2020-11-06 15:57:52 +01:00
Leandro Lanzieri
34715621cf
sys/div: Add module to Kconfig
2020-11-06 15:57:52 +01:00
Leandro Lanzieri
c1edcd9fd2
sys/test_utils: add modules to Kconfig
2020-11-06 15:57:49 +01:00
Bas Stottelaar
152c2f5786
sys/riotboot: add stddef.h for size_t
2020-11-05 23:50:38 +01:00
János Brodbeck
16c5fd6fbd
net/gcoap: relabel _sock to _sock_udp
2020-11-05 17:19:42 +01:00
János Brodbeck
c4e646037d
net/gcoap: split out the coap processing part of _on_sock_evt
2020-11-05 17:19:41 +01:00
Martine Lenders
cc10d31391
Merge pull request #15305 from aabadie/pr/sys/posix_sleep
...
sys/posix: rename posix_time to posix_sleep
2020-11-05 16:36:25 +01:00
Marian Buschsieweke
4e8b0d541f
Merge pull request #15386 from maribu/drop_irq_handler
...
sys/irq_handler: Drop module
2020-11-05 10:55:29 +01:00
Marian Buschsieweke
0e8b8ffa64
sys/atomic_utils: Functions for atomic access
...
A set of functions competing with C11 atomics feature-wise, but are implemented
more efficient.
2020-11-05 10:23:32 +01:00
Marian Buschsieweke
a2dd6f90e5
sys/irq_handler: Remove deprecated module
2020-11-05 09:12:32 +01:00
benpicco
568e1e3635
Merge pull request #15199 from fjmolinas/pbkdf2-sha256
...
sys/hashes/pbkdf2: Add PBKDF2-sha256 implementation. [TAKEOVER]
2020-11-04 14:45:12 +01:00
benpicco
010925d77d
Merge pull request #15076 from benpicco/xtimer_msleep
...
xtimer: introduce xtimer_msleep()
2020-11-04 11:09:03 +01:00
Juan Carrano
bc8ce928d4
sys/hashes/pbkdf2: wipe local variables, prevents leaks.
...
Wipe temporary buffers and sha256 contexts so that no remnants of the
password is left on the stack
This ensures that the password is not leaked if some function reads
the stack afterwards.
2020-11-04 09:57:32 +01:00
Juan Carrano
62667848c4
sys/hashes/pbkdf2: Add PBKDF2-sha256 implementation.
...
This add an implementation of PBKDF2 using sha256 hmac. Only one derived
key length is supported (32) though it should not be hard to extend it.
The testing is done with both random (with fixed seed) vectors amd vectors
from rfc7914.
2020-11-04 09:57:32 +01:00
Martine Lenders
1070e287f4
Merge pull request #15342 from miri64/gnrc_pkt/enh/tests
...
gnrc_pkt: port to list.h
2020-11-03 17:49:40 +01:00
Francisco
3e3da1217d
Merge pull request #15249 from aabadie/pr/tools/typo
...
tools/codespell: fix new typos and make it fail when typos are found
2020-11-03 15:01:20 +01:00
Martine Lenders
bbe4f3074b
gnrc_pkt: port to list.h
2020-11-03 13:15:29 +01:00
benpicco
9681c204d6
Merge pull request #14959 from benpicco/at86rf215-mr-fsk
...
drivers/at86rf215: implement MR-FSK
2020-11-03 11:26:24 +01:00
Benjamin Valentin
a6db7d56ba
drivers/at86rf215: fix CCA duration
...
The standard CCA backoff period is 8 symbols and only differs for
MR-O-QPSK where it is dependent on the chip rate.
2020-11-03 10:51:21 +01:00
Bas Stottelaar
a76cb4ea2f
sys/*: ENABLE_DEBUG not needed for inttypes.h
2020-11-02 21:49:39 +01:00
Bas Stottelaar
28ae0c97cd
sys/*: use DEBUG_EXTRA_STACKSIZE for debug stacks
2020-11-02 21:49:39 +01:00
Bas Stottelaar
922e2ac1c9
sys/*: replace #if ENABLE_DEBUG with IS_ACTIVE
2020-11-02 21:49:39 +01:00
Bas Stottelaar
27a684aa60
sys/*: remove unneeded ENABLE_DEBUG
2020-11-02 21:34:12 +01:00
Martine Lenders
ea84953d8b
uhcp: fix line length
2020-11-02 15:03:49 +01:00
benpicco
e77d12da26
Merge pull request #15188 from benpicco/drivers/kw41zrf-register
...
drivers/kw41zrf: register with netdev
2020-10-31 14:30:00 +01:00
Martine Lenders
44741ff99f
Merge pull request #15345 from nmeum/pr/sock_dns_overflow
...
sock_dns: Fix incorrect buffer bounds check
2020-10-31 12:57:17 +01:00
Marian Buschsieweke
d046772e7f
Merge pull request #15348 from maribu/periph_timer_type
...
drivers/periph_timer: Use uint32_t over unsigned long for frequency
2020-10-30 23:22:51 +01:00
Marian Buschsieweke
b48679e497
sys/ztimer: Use uint32_t for freq in periph_timer
...
Now that timer_init() of periph_timer uses uint32_t for the frequency, ztimer
should do the same.
2020-10-30 22:02:12 +01:00
Sören Tempel
85296ce6cc
sock_dns: Fix incorrect buffer bounds check
...
Apart from advancing the buffer by RR_TYPE_LENGTH, RR_CLASS_LENGTH,
and RR_TTL_LENGTH the code also attempts to read a two byte unsigned
integer using _get_short(bufpos):
unsigned addrlen = ntohs(_get_short(bufpos));
The bounds check must therefore ensure that the given buffer is large
enough to contain two more bytes after advancing the buffer.
2020-10-30 21:41:39 +01:00
Martine S. Lenders
f1af602952
gnrc_sixlowpan_frag_fb: add missing frag/hint.h
include
2020-10-30 14:54:25 +01:00
b1146c0f42
Merge pull request #15308 from fjmolinas/pr_missing_suit_deps
...
sys/suit: dependencies fixes
2020-10-30 13:32:06 +01:00
Leandro Lanzieri
f14c898dd0
sys/net/ipv6: add ipv6_addr_from_buf function
...
This allows to parse IPv6 address from strings that not end with '\0'.
2020-10-30 11:20:25 +01:00
Leandro Lanzieri
4305fcc010
sys/net/ipv4: add ipv4_addr_from_buf function
...
This allows to parse IPv4 address from strings that not end with '\0'.
2020-10-30 11:20:25 +01:00
Martine Lenders
72821a502f
gnrc_pktbuf: drop gnrc_pktbuf_replace_snip()
...
The function was deprecated in e94aa40bf5
and is unused and untested in the current code base.
2020-10-29 17:20:12 +01:00
benpicco
9e4dd8e451
Merge pull request #15287 from miri64/ethernet/enh/join-leave-mcast-group
...
gnrc_netif: add capability to join or leave link layer multicast groups
2020-10-29 16:03:32 +01:00
Martine Lenders
ad3c8ba5a4
gnrc_netif_ethernet: use new helper function to generate MC address
2020-10-29 14:38:52 +01:00
Martine Lenders
55ed65650d
tests/l2util: provide tests for l2util_ipv6_group_to_l2_group()
2020-10-29 14:38:51 +01:00
Martine Lenders
d8c78a9910
gnrc_netif: add capability to join or leave link-layer multicast groups
...
The request is forwarded to the device.
2020-10-29 14:38:51 +01:00
Martine Lenders
68d25e217a
l2util: add function to convert IPv6 multicast group to an L2 group
2020-10-29 14:38:51 +01:00
Martine Lenders
a6ebe3624d
netopt: add options to read/join/leave link layer multicast groups
2020-10-29 14:38:51 +01:00
68d3f2ee6c
sys/net: remove nordic softdevice specific handling
2020-10-29 09:02:12 +01:00
Martine Lenders
ed64c603ab
Merge pull request #15323 from miri64/gnrc_nettype/cleanup/rm-IOVEC
...
gnrc_nettype: remove GNRC_NETTYPE_IOVEC
2020-10-28 23:50:09 +01:00
Martine Lenders
c2e7648ab5
Merge pull request #15324 from miri64/gnrc_sixlowpan/enh/AGGRESSIVE_OVERRIDE
...
gnrc_sixlowpan_rb: remove GNRC_SIXLOWPAN_FRAG_RBUF_AGGRESSIVE_OVERRIDE
2020-10-28 23:49:36 +01:00
chrysn
912d82dc40
Merge pull request #14029 from cgundogan/pr/gcoap/request_matcher
...
gcoap: add a handler for request matching
2020-10-28 16:51:35 +01:00
Cenk Gündoğan
7d820f7ada
nanocoap: gcoap: use const parameter for coap_method2flag
2020-10-28 15:40:35 +01:00
Cenk Gündoğan
d4370e690e
gcoap: add a handler for request matching
2020-10-28 15:40:35 +01:00
Marian Buschsieweke
9105c60728
Merge pull request #15071 from maribu/untagle_xtimer_mutex
...
sys/xtimer: untangle from core/mutex
2020-10-28 14:42:11 +01:00
Martine Lenders
d135721ad9
gnrc_sixlowpan_rb: remove GNRC_SIXLOWPAN_FRAG_RBUF_AGGRESSIVE_OVERRIDE
...
Deprecated in c7b6dc587c
.
2020-10-28 11:03:15 +01:00
Martine Lenders
3cac6e0979
gnrc_nettype: remove GNRC_NETTYPE_IOVEC
...
NETTYPE is unused in the code base since
9fb2f541ba
and deprecated since
744f078b3a
2020-10-28 10:37:31 +01:00
benpicco
76ddfdbbde
Merge pull request #15316 from jia200x/pr/submac/fix_wait_for_ack
...
ieee802154/submac: fix inconsistent state on NO_ACK
2020-10-27 19:46:34 +01:00
Jose Alamos
c663ca0b36
ieee802154/submac: fix inconsistent state on NO_ACK
2020-10-27 17:41:43 +01:00
1be6bd7567
sys/arduino: use fmt_float to print float values
2020-10-27 15:31:42 +01:00
abcdc7968a
sys/posix/sleep: use ztimer instead of xtimer
2020-10-27 15:20:33 +01:00
68a2a5dab0
sys: tests: rename posix_time to posix_sleep
2020-10-27 15:20:33 +01:00
Francisco Molina
f8e6f77657
sys/Makefile.dep: add missing nanocoap_sock dependency
2020-10-27 10:54:45 +01:00
Francisco Molina
304cbdf89f
sys/suit: allow easy selection of libcose_crypt module
2020-10-27 10:54:27 +01:00
ce5b8a83b1
sys/gnrc_lorawan: fix typo 'witout' => 'without'
2020-10-27 10:33:48 +01:00
ec4803728d
suit/storage/flashwrite: use riotboot_slot_offset
...
Fixes an issue with riotboot on the stm32f1 and other MCUs where the
flash is remapped to a different region
2020-10-27 09:27:28 +01:00
benpicco
e4164e3924
Merge pull request #15275 from jia200x/pr/radio/config_phy_amendment
...
ieee802154/radio: add TRX_OFF pre condition to config_phy
2020-10-26 23:28:45 +01:00
Jose Alamos
4e2a1cfa9c
ieee802154/submac: adapt config_phy call to TRX_OFF precondition
2020-10-26 17:04:48 +01:00
Jose Alamos
1b87588971
ieee802154/radio: add TRX_OFF pre condition to config_phy
2020-10-26 17:04:48 +01:00
e1f390256a
sys/ztimer: add some doc on the data structure choice
2020-10-26 12:09:06 +01:00
benpicco
ddc4dad456
Merge pull request #15288 from chrysn-pull-requests/gcoap_register_listener-document-single
...
net/goap: State and check that listeners are added individually
2020-10-26 00:07:58 +01:00
chrysn
b6392d63ef
vfs: Provide generic stat implementation (and use in fatfs)
...
When a file system has `fstat` and `open` implemented, `stat` can still
be missing. The new function is a generic implementation, and used in
fatfs to provide a `stat`.
2020-10-25 17:39:57 +01:00
Benjamin Valentin
ca193cf515
xtimer: introduce xtimer_msleep()
...
Add a function that sleeps for ms instead of µs.
This will make the conversion to ztimer easier for users as now there is
a direct mapping to ZTIMER_MSEC.
2020-10-24 21:38:25 +02:00
chrysn
c0bc0c41b1
net/goap: State and check that listeners are added individually
...
Add a an assertion on the added listener not having a trailing chain
instead of silently overwriting it, point out the precondition in the
documentation, and guide users who want to add more than one listener
towards a more efficient way.
2020-10-23 22:33:43 +02:00
José Alamos
e8721ce415
Merge pull request #15145 from fjmolinas/pr_openwsn_radio_hal
...
pkg/openwsn: add ieee802154_hal based radio
2020-10-23 21:26:21 +02:00
José Alamos
60b5a6b35e
Merge pull request #15268 from benpicco/gnrc_netif_ieee802154_create-const
...
drivers/at86rf215: give driver threads different names
2020-10-23 17:14:19 +02:00
Francisco Molina
82e06ef8f4
pkg/openwsn: add ieee802154 hal based radio
2020-10-23 15:31:55 +02:00
benpicco
b5cd19e73e
Merge pull request #14178 from chrysn-pull-requests/gcoap-handle-con-response
...
gcoap: Process CON responses
2020-10-23 14:21:33 +02:00
Martine Lenders
316332476a
Merge pull request #15274 from basilfx/feature/enable_debug
...
treewide: cleanup ENABLE_DEBUG
2020-10-23 13:19:36 +02:00
Marian Buschsieweke
19e45f6189
Merge pull request #15280 from jia200x/pr/radio_/read_doc
...
ieee802154/radio: indicate that FCS is ignored when reading buffer
2020-10-23 12:30:21 +02:00
Jose Alamos
615bd83963
ieee802154/radio: indicate that FCS is ignored when reading buffer
2020-10-23 11:31:25 +02:00
Bas Stottelaar
a0979b10e7
sys/*: remove unneeded ENABLE_DEBUG
2020-10-23 11:29:57 +02:00
Bas Stottelaar
1b35d06a51
sys/*: realign ENABLE_DEBUG
2020-10-23 11:27:48 +02:00
Bas Stottelaar
b23d0dafb2
sys/*: reorder ENABLE_DEBUG after last include
2020-10-23 00:45:56 +02:00
chrysn
462f8861f4
gcoap: Suppress retransmissions when ACK was received
...
This introduces an additional state to the COAP_MEMO_* series to avoid
enlarging the memo struct needlessly. While they are documented
publicly, practically only the COAP_MEMO_TIMEOUT and COAP_MEMO_RESPONSE
are used in communication with the application, as a
gcoap_request_memo_t is only handed out in that state.
2020-10-22 19:08:39 +02:00