Benjamin Valentin
118cf0e9e6
riotboot_usb_dfu: depend on periph_pm
2021-02-02 23:40:21 +01:00
Benjamin Valentin
32c30aaeaa
pm_layered: depend on periph_pm
2021-02-02 23:40:21 +01:00
Martine Lenders
7e3846b6a4
ztimer: apply uncrustify patches
2021-02-02 22:21:15 +01:00
Marian Buschsieweke
e0f457663c
Merge pull request #15901 from OTAkeys/pr/ztimer_rmutex_lock_timeout
...
ztimer: add ztimer_rmutex_lock_timeout()
2021-02-02 20:47:53 +01:00
Vincent Dupont
751a366931
ztimer: fix uncrustify issue in util.c
2021-02-02 10:52:10 +01:00
Vincent Dupont
fb4d2e509a
ztimer: add ztimer_rmutex_lock_timeout()
...
Similar to xtimer_rmutex_lock_timeout()
2021-02-02 10:51:50 +01:00
Marian Buschsieweke
45ed8bc330
sys/arduino: Bug and style fixes in SPI
...
- set is_transaction before releasing the SPI bus (and the mutex) to avoid
data races
- adapt switch indent to coding convention
2021-02-02 09:45:46 +01:00
Leandro Lanzieri
2f28a91c4f
net/ieee802154/security: make default cipher_ops implementations private
2021-02-02 09:16:50 +01:00
Leandro Lanzieri
e31daf1583
net/ieee802154: remove dependency of radio HAL in security
2021-02-02 09:16:50 +01:00
5b0eaf7cd8
riotboot/flashwrite: Remove last dependencies on flashpage size
2021-02-01 16:14:07 +01:00
1bde5296fd
Merge pull request #14987 from bergzand/pr/riscv/semihosting
...
stdio_semihosting: Extend with RISC-V support
2021-01-27 18:49:35 +01:00
0a6c9c4ec0
stdio_semihosting: Extend with RISC-V support
...
RISC-V support semihosting in very similar way as the cortex-m
microcontrollers. The code calls a breakpoint instruction and the
attached debugger reads/writes registers and memory for stdio.
The RISC-V architecture doesn't support a call number with the EBREAK
instruction, to allow the debugger to detect a semihosting break point,
the EBREAK instruction is wrapped in a SLLI and SRAI instruction. These
use x0 as output register, making them NOP instructions.
One caveat when using this is that the RISC-V core traps the EBREAK
instruction with trap code 3 when no debugger is attached. Restarting
the application with the debugger attached avoids this.
2021-01-27 17:52:19 +01:00
Benjamin Valentin
9c1455d55f
cpu: make pm_layered a DEFAULT_MODULE
...
Allow to disable pm_layered in the bootloader to save some ROM.
2021-01-27 13:21:20 +01:00
benpicco
4509dc6812
Merge pull request #15863 from btcven/2020_01_26-ieee-sfd-phr
...
ieee802154: add SFD and length of PHR for MR-FSK.
2021-01-27 12:31:12 +01:00
Jean Pierre Dudey
38ade8d2e9
ieee802154: add MR-FSK SFD values for 2FSK
...
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2021-01-27 11:52:53 +01:00
Jean Pierre Dudey
9fe6b9ac99
ieee802154: add MR-FSK PHR length definition
...
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2021-01-27 11:52:53 +01:00
Francisco
dc801b9dde
Merge pull request #15817 from leandrolanzieri/pr/kconfig/sys_crypto
...
sys/{crypto, hashes, random}: add modules to Kconfig
2021-01-27 10:20:11 +01:00
ce97e9d8ce
Merge pull request #15859 from fjmolinas/pr_newlib_feature
...
treewide: model newlib as a FEATURE
2021-01-27 10:06:08 +01:00
Francisco Molina
63a2a6ce1b
treewide: model newlib as a FEATURE
2021-01-27 09:24:25 +01:00
Leandro Lanzieri
434b6b68d5
Merge pull request #15790 from akshaim/Kconfig_skald_update
...
net/skald: Update Kconfig implementation
2021-01-26 20:46:27 +01:00
Leandro Lanzieri
5c4df6078e
sys/random: add modules to Kconfig
2021-01-26 17:40:53 +01:00
Leandro Lanzieri
34594ae1dc
sys/luid: add module to Kconfig
2021-01-26 17:40:30 +01:00
Leandro Lanzieri
0fb2711a15
sys/hashes: add module to Kconfig
2021-01-26 17:40:29 +01:00
Leandro Lanzieri
d90ac484a3
sys/crypto: add modules to Kconfig
2021-01-26 17:39:44 +01:00
Akshai M
42eb6c4097
net/lorawan : Update documentation
...
Marked as non-supported:
LORAMAC_DEFAULT_ADR_ACK_LIMIT
LORAMAC_DEFAULT_ADR_ACK_DELAY
LORAMAC_DEFAULT_ADR_TIMEOUT
2021-01-26 16:56:05 +01:00
Akshai M
9600ebf536
net/lorawan : Expose to Kconfig
2021-01-26 16:56:02 +01:00
Akshai M
a2f505f116
net/lorawan : Move 'LORAMAC_DEFAULT_MIN_RX_SYMBOLS' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
216956d7b0
net/lorawan : Move 'LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
ed269a7fd7
net/lorawan : Move 'LORAMAC_DEFAULT_MAX_FCNT_GAP' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
85c4b5eb3b
net/lorawan : Move 'LORAMAC_DEFAULT_JOIN_DELAY2' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
b6e4e74a87
net/lorawan : Move 'LORAMAC_DEFAULT_JOIN_DELAY1' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
ed1b86492f
net/lorawan : Move 'LORAMAC_DEFAULT_JOIN_PROCEDURE' to 'CONFIG_'
...
Added symbols 'CONFIG_LORAMAC_DEFAULT_JOIN_PROCEDURE_XXX'
for Kconfig exposure
2021-01-26 16:52:59 +01:00
Akshai M
81dac00d5c
net/lorawan : Move 'LORAMAC_DEFAULT_RX2_FREQ' to 'CONFIG_'
2021-01-26 16:52:59 +01:00
Akshai M
d5086ecf60
net/lorawan : Move 'LORAMAC_DEFAULT_RX2_DR' to 'CONFIG_'
...
Added symbols 'CONFIG_LORAMAC_DEFAULT_RX2_DR_XX' to define
choice in Kconfig
2021-01-26 16:52:58 +01:00
Akshai M
d48cee7c2a
net/lorawan : Move 'LORAMAC_DEFAULT_RX1_DELAY' to 'CONFIG_'
2021-01-26 16:52:58 +01:00
Akshai M
ca4acbff12
net/lorawan : Move 'LORAMAC_DEFAULT_LINKCHK' to 'CONFIG_'
2021-01-26 16:52:58 +01:00
Akshai M
e93c362df2
net/lorawan : Move 'LORAMAC_DEFAULT_RETX' to 'CONFIG_'
2021-01-26 16:52:58 +01:00
Akshai M
97d873a5bd
net/lorawan : Move 'LORAMAC_DEFAULT_ADR' to 'CONFIG_'
...
Move 'LORAMAC_DEFAULT_ADR' to 'CONFIG_' namespace and model
'CONFIG_LORAMAC_DEFAULT_ADR' as BOOL for Kconfig
2021-01-26 16:52:58 +01:00
Akshai M
d2d90fbce5
net/lorawan : Move 'LORAMAC_DEFAULT_TX_MODE' to 'CONFIG_'
...
Move 'LORAMAC_DEFAULT_TX_MODE' to 'CONFIG_' and added symbols
for Kconfig exposure
2021-01-26 16:52:58 +01:00
Akshai M
aa3b1da0c4
net/lorawan : Move 'LORAMAC_DEFAULT_TX_PORT' to 'CONFIG_'
2021-01-26 16:52:58 +01:00
Akshai M
3a6c4f2f71
net/lorawan : Move 'LORAMAC_DEFAULT_TX_POWER' to 'CONFIG_'
...
Move 'LORAMAC_DEFAULT_TX_POWER' to 'CONFIG_' namespace and
assign choices for Kconfig exposure
2021-01-26 16:52:58 +01:00
Akshai M
55f196095d
net/lorawan : Move 'LORAMAC_DEFAULT_DR' to 'CONFIG_'
...
Move 'LORAMAC_DEFAULT_DR' to 'CONFIG_' and enable options for
Kconfig
2021-01-26 16:52:58 +01:00
Akshai M
1befae9022
net/lorawan : Invert 'LORAMAC_DEFAULT_PUBLIC_NETWORK'
...
Introduced a bool 'LORAMAC_DEFAULT_PRIVATE_NETWORK' to invert
the semantics of 'LORAMAC_DEFAULT_PUBLIC_NETWORK'. Move
'LORAMAC_DEFAULT_PRIVATE_NETWORK' to 'CONFIG_' namespace.
2021-01-26 16:52:58 +01:00
Akshai M
3c5c429541
net/lorawan : Move 'LORAMAC_DEFAULT_NETID' to 'CONFIG_'
2021-01-26 16:52:58 +01:00
Akshai M
e46c4401a9
net/lorawan : Move 'LORAMAC_DEFAULT_DEVICE_CLASS' to 'CONFIG_'
...
Move 'LORAMAC_DEFAULT_DEVICE_CLASS' to 'CONFIG_' and added
additional symbols for Kconfig exposure.
2021-01-26 16:52:57 +01:00
Akshai M
9e626f471a
net/lorawan : Move 'LORAMAC_DEV_ADDR_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
50e979c600
net/lorawan : Move 'LORAMAC_NWK_SKEY_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
43d7f28e63
net/lorawan : Move 'LORAMAC_APP_SKEY_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
d138fa9aad
net/lorawan : Move 'LORAMAC_APP_KEY_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
bcb0ed38ff
net/lorawan : Move 'LORAMAC_APP_EUI_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
5b4a873de5
net/lorawan : Move 'LORAMAC_DEV_EUI_DEFAULT' to 'CONFIG_'
2021-01-26 16:52:57 +01:00
Akshai M
3ecd304354
net/gnrc_lorawan : String keywords for keys
...
Swapped hex input for keys with string keywords.
2021-01-26 16:52:57 +01:00
Akshai M
a23dfb7ab9
net/skald : Update kconfig
...
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2021-01-26 16:17:18 +01:00
Akshai M
f7aff3c0aa
net/skald : Add CONFIG_SKALD_ADV_CHANNELS
to allow ordered list
...
Added `CONFIG_SKALD_ADV_CHANNELS` which is then parsed to
and ordered list `SKALD_ADV_CHAN`
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2021-01-26 16:17:17 +01:00
Martine Lenders
8e47621e7c
Merge pull request #15839 from maribu/gnrc_pktbuf_release_error
...
sys/net/gnrc_pktbuf: deduplicate code
2021-01-26 15:23:50 +01:00
Marian Buschsieweke
3970b667aa
sys/net/gnrc_pktbuf: deduplicate code
...
Implement gnrc_pktbuf_release_error() in gnrc_pktbuf once, rather than providing
two implementations in gnrc_pktbuf_static and gnrc_pktbuf_malloc
2021-01-26 10:50:19 +01:00
Hauke Petersen
4540b6273b
ble/skald: switch from xtimer to ZTIMER_MSEC
2021-01-26 09:34:09 +01:00
Benjamin Valentin
d8918c24fa
socket_zep: register with netdev
2021-01-25 22:59:01 +01:00
Francisco
de9f29cf42
Merge pull request #15835 from leandrolanzieri/pr/makefile/fix_default_modules_in_usemodules
...
Makefile.include: avoid recursive expansion of USEMODULE
2021-01-25 21:50:03 +01:00
benpicco
83201ddb00
Merge pull request #15760 from maribu/sock-aux-rssi
...
sys/net/sock: add sock_aux_rssi
2021-01-25 18:51:11 +01:00
benpicco
1862a73d41
Merge pull request #15844 from benpicco/sys/oneway-malloc_align
...
sys/oneway-malloc: only allocate word-aligned chunks
2021-01-25 14:31:37 +01:00
Benjamin Valentin
65ab38a894
sys/oneway-malloc: only allocate word-aligned chunks
...
If an unevenly sized allocation is requested, the next buffer handed
out would start at an unaligned address.
Fix this by rounding up to the next word-sized allocation size.
2021-01-25 12:05:05 +01:00
Leandro Lanzieri
91ff4e5ce5
sys/Makefile.dep: default saul_init_devs to y when saul_default is used
2021-01-25 09:17:00 +01:00
Fabian Hüßler
7d618afa17
nrf24l01p_ng: make use of netdev_register()
2021-01-24 20:49:39 +01:00
fabian18
f7a77ebb04
drivers/nrf24l01p_ng: netdev driver for nrf24l01+
...
The driver uses the netdev interface. Due to the limited
capabilities of the transceiver (32 byte FIFO and no source address in the layer2 frame),
it relies on 6LowPAN compression and adds the source address to the frame for that.
2021-01-24 20:49:39 +01:00
Martine Lenders
879fbc179e
Merge pull request #15755 from janosbrodbeck/pr/dtls/get_event_session
...
sock/async: add function to retrieve session object of current DTLS event
2021-01-22 10:51:51 +01:00
János Brodbeck
050b268705
sock/async: fix typo in doc of sock_dtls_set_cb
2021-01-21 19:03:41 +01:00
János Brodbeck
80d592b1b8
sock/async: introduce function to retrieve session of current DTLS event
2021-01-21 18:58:12 +01:00
Francisco
1d9b898e9f
Merge pull request #15717 from leandrolanzieri/pr/kconfig/drivers_s
...
drivers/s*: add modules to Kconfig
2021-01-21 16:49:21 +01:00
Benjamin Valentin
b24480538a
nanocoap: add coap_opt_put_string_with_len()
2021-01-21 15:17:28 +01:00
Marian Buschsieweke
90700f1cec
Merge pull request #15823 from maribu/fmt-table-bugfix
...
sys/fmt_table: fix infinite loop
2021-01-21 13:15:52 +01:00
Leandro Lanzieri
52b8bca84e
net/lora: add module to Kconfig
2021-01-21 11:22:33 +01:00
Leandro Lanzieri
0ed66123d9
sys/iolist: add module to Kconfig
2021-01-21 11:22:32 +01:00
Leandro Lanzieri
a492400cee
drivers/slipdev: add modules to Kconfig
2021-01-21 11:22:31 +01:00
Leandro Lanzieri
95206d0346
kconfig/saul: select phydat and enable saul_registry by default
2021-01-21 11:22:30 +01:00
Marian Buschsieweke
00a8a8bd83
sys/fmt_table: fix infinite loop
2021-01-21 10:03:44 +01:00
Francisco
5c5ec632a5
Merge pull request #15716 from leandrolanzieri/pr/kconfig/ztimer
...
sys/ztimer: add modules to Kconfig
2021-01-20 15:31:20 +01:00
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