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

8341 Commits

Author SHA1 Message Date
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
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
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
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