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

41643 Commits

Author SHA1 Message Date
benpicco
0022e0d3cb
Merge pull request #18585 from maribu/tests/thread_priority_inversion
tests/thread_priority_inversion: improve output for debugging
2022-09-13 13:49:34 +02:00
Marian Buschsieweke
77270e241a
boards/common/stm32: Fix LED configuration
The inverted and non-inverted `LED<num>_ON` and `LED<num>_OFF` macros
are swapped. This didn't reveal in testing as the
`LED<num>_IS_INVERTED` macros where not properly evaluated, due to a
typo in the check. This fixes both.
2022-09-13 08:34:31 +02:00
benpicco
36eac13ae2
Merge pull request #18570 from maribu/dist/tools/bossa
dist/tools/bossa*: add missing include
2022-09-12 21:58:59 +02:00
Marian Buschsieweke
e6cc508d8d
tests/thread_priority_inversion: improve output for debugging 2022-09-12 21:42:29 +02:00
Marian Buschsieweke
c07181c1c4
core/mutex: fix priority inheritance on AVR
This fixes https://github.com/RIOT-OS/RIOT/issues/18545 as the code
previously relied on `sched_change_priority()` not directly scheduling
a new thread while IRQs are disabled, but rather later when IRQs are
restored. This is true for Cortex-M MCUs (where the PendSV IRQ is used
to trigger the scheduler), but not e.g. for AVR.
2022-09-12 21:40:54 +02:00
benpicco
b117171fcf
Merge pull request #18519 from benpicco/coap_request_ctx_get_remote
gcoap: add remote sock_udp_ep_t to coap_request_ctx_t
2022-09-12 20:30:19 +02:00
Benjamin Valentin
5070ca98d5 tests: don't directly select gnrc_sock_udp 2022-09-12 17:53:16 +02:00
Benjamin Valentin
02aeab750a gcoap_forward_proxy: const arg to gcoap_forward_proxy_request_process() 2022-09-12 17:52:54 +02:00
Benjamin Valentin
1552267d19 gcoap: drop duplicate context field from coap_request_ctx_t 2022-09-12 17:51:26 +02:00
Benjamin Valentin
f068fbccb6 gcoap_forward_proxy: make use of coap_request_ctx_get_remote_udp() 2022-09-12 17:51:26 +02:00
Benjamin Valentin
2376343547 gcoap: add remote sock_udp_ep_t to coap_request_ctx_t 2022-09-12 17:51:26 +02:00
Marian Buschsieweke
aa940a4f7b
Merge pull request #18577 from maribu/doc/doxygen/src/flashing.md
doc: improve flashing documentation
2022-09-12 11:10:29 +02:00
Marian Buschsieweke
0c58b6b037
doc: improve flashing documentation
- The tool compatibility matrix got super large
    - split out all "single-purpose" tools and list them per platform
- Highlighting code via backticks in titles doesn't render well with
  Doxygen
2022-09-12 09:19:15 +02:00
chrysn
dfcd2e519b
Merge pull request #18574 from chrysn-pull-requests/cpe-reference
security: Reference CPE used for RIOT
2022-09-11 21:07:12 +02:00
Marian Buschsieweke
4c5ff03029
Merge pull request #18572 from maribu/drivers/sdcard_spi
drivers/sdcard_spi: make 8-bit safe
2022-09-11 12:50:08 +02:00
Marian Buschsieweke
0991702707
tests/vfs_default: increase stack size for AVR
This avoids an stack overflow when using `vfs ls`.
2022-09-11 10:27:40 +02:00
Marian Buschsieweke
b15af47f34
drivers/sdcard_spi: make 8-bit safe
- replace all `int`s and `unsigned`s with integers with fixed width
- replaced all signed integers of sizes with unsigned ones (sizes
  cannot be negative)
- made bitshifts 8-bit safe (e.g. `1 << 24` is valid on 32-bit, but
  undefined behavior on 8-bit, as a 16 bit wide `int` would be shifted
  by more than the type width)
- use `void *` / `const void *` for data buffers to ease use
2022-09-11 10:27:40 +02:00
chrysn
8cb77c1091 security: Reference CPE used for RIOT 2022-09-10 16:57:55 +02:00
7fce01303b
Merge pull request #18573 from maribu/core/sched.c
core/sched.c: fix undefined behavior on 8-bit/16-bit
2022-09-10 11:48:52 +02:00
Marian Buschsieweke
d53cd19142
core/sched.c: fix undefined behavior on 8-bit/16-bit
An `1 << x` with `x >= 15` is undefined behavior on 8-bit / 16-bit
machines (which typically have `sizeof(int) == 2`).

Using `1UL << x` is safe for `x <= 31`, which is large enough to make
use of the full 32 bits in `runqueue_bitcache`.

In addition, a `static_assert()` is added to enforce that
`SCHED_PRIO_LEVELS` is never set to anything larger than 32.
2022-09-09 21:55:17 +02:00
Marian Buschsieweke
743a23995b
dist/tools/bossa-nrf52: add missing include 2022-09-08 20:41:40 +02:00
Marian Buschsieweke
1c18978e52
dist/tools/bossa-1.9: add missing include 2022-09-08 20:41:26 +02:00
Marian Buschsieweke
1b717ac957
dist/tools/bossa-1.8: add missing include 2022-09-08 20:41:07 +02:00
Marian Buschsieweke
1066195fe9
Merge pull request #18550 from benpicco/sc_vfs-human
sys/shell/vfs: make output of vfs df human readable
2022-09-08 20:13:08 +02:00
Benjamin Valentin
2d45fcaf76 sys/shell/vfs: make output of vfs df human readable 2022-09-08 12:35:27 +02:00
Teufelchen1
df8fe4476d sys/uri_parser: Adding the port as uint16 2022-09-08 11:32:49 +02:00
Marian Buschsieweke
2eb440b05c
Merge pull request #18556 from benpicco/shell_suit_revert
sys/shell/commands: add suit revert sub-command
2022-09-07 19:08:22 +02:00
Benjamin Valentin
0262715c03 boards/samr21-xpro: add a note about EDBG UART limitation 2022-09-07 13:29:51 +02:00
benpicco
82056d8d2f
Merge pull request #18543 from benpicco/pkg/nanocbor-bump
pkg/nanocbor: bump version
2022-09-06 16:09:10 +02:00
bcf129fcbc
Merge pull request #18564 from benpicco/pkg/libhydrogen-bump
pkg/libhydrogen: bump version
2022-09-06 15:55:37 +02:00
benpicco
d43318f90d
Merge pull request #18558 from benpicco/_sbrk_r-comment
sys/syscalls: drop outdated comment on _sbrk_r()
2022-09-06 14:23:02 +02:00
Benjamin Valentin
ac56a439b5 pkg/libhydrogen: bump version 2022-09-06 12:28:38 +02:00
Benjamin Valentin
d635004a62 sys/syscalls: fix coding style 2022-09-05 14:56:51 +02:00
Benjamin Valentin
fb387ca83a sys/syscalls: drop outdated comment on _sbrk_r() 2022-09-05 14:23:10 +02:00
benpicco
81a01df5d9
Merge pull request #18557 from benpicco/nanocoap_get_blockwise_url_to_buf-errno
nanocoap_sock: use correct error code in nanocoap_get_blockwise_url_to_buf()
2022-09-05 14:10:49 +02:00
Gunar Schorcht
a0a0b64f40
Merge pull request #18544 from gschorcht/cpu/esp/improve_thread_safety_of_malloc
cpu/esp: improve thread safety in newlib locking functions
2022-09-05 13:29:03 +02:00
Benjamin Valentin
37dceb6c80 nanocoap_sock: use correct error code in nanocoap_get_blockwise_url_to_buf()
It should return -ENOBUFS like the other nanocoap_…() functions, not -1
2022-09-05 07:40:59 +02:00
Benjamin Valentin
6ed2394dde sys/shell/commands: add suit revert sub-command 2022-09-05 07:36:28 +02:00
benpicco
711f4df101
Merge pull request #18549 from benpicco/suit_worker_trigger
suit: rename worker thread functions
2022-09-04 15:16:02 +02:00
Benjamin Valentin
f95d577245 suit: make use of worker functions 2022-09-03 23:25:01 +02:00
Benjamin Valentin
0b6e344d4f suit: rename worker thread functions (they are not CoAP only) 2022-09-03 23:25:01 +02:00
Erik Ekman
d568a6dba1 Revert "esp32/eth: Don't overwrite queued event with RX packet"
This reverts commit 95196fb7e4.

Not needed since the initial event is now processed properly.
2022-09-03 14:11:06 +02:00
Erik Ekman
04a2070faa pkg/lwip: Set netdev callback before driver init
Otherwise if the cable is connected at boot the immediate NETDEV_EVENT_ISR
event signaling connection will not trigger the isr, and the netdev will not
clear its pending event.

This explains why the connect/rx event clash seen in "esp32/eth: Don't
overwrite queued event with RX packet" (95196fb7e4) only happened
with lwIP.

Now on my ESP32 board with Ethernet the issue was the opposite (since IDF
upgrade), the stuck connected event blocked receive from working. After
this change 95196fb7e4 can be reverted since even early events are
consumed properly.
2022-09-03 14:07:02 +02:00
Marian Buschsieweke
44440caf68
Merge pull request #17442 from gschorcht/cpu/esp32/periph_gpio_ll
cpu/esp32: implement periph/gpio_ll and periph/gpio_ll_irq
2022-09-02 20:41:02 +02:00
Marian Buschsieweke
04df37c2d8
Merge pull request #18463 from bissell-homecare-inc/sdl_allow_resizing_of_lvgl_disp
lvgl/contrib: allow for SDL display driver height/width to be adjusted
2022-09-02 18:24:31 +02:00
Gunar Schorcht
b37338ba0b cpu/esp32: changes for periph/gpio_ll in ESP-IDF interface API 2022-09-02 15:03:45 +02:00
Gunar Schorcht
b570173110 pkg/esp32_sdk: changes needed for gpio_ll driver 2022-09-02 15:03:45 +02:00
Gunar Schorcht
94b4f03b47 cpu/esp32: implement periph/gpio_ll_irq 2022-09-02 15:03:45 +02:00
Gunar Schorcht
581c2dd9be cpu/esp32: implement periph/gpio_ll 2022-09-02 15:03:45 +02:00
Gunar Schorcht
48d59e97a2 cpu/esp32: replace macros for GPIO access by inline functions 2022-09-02 15:03:45 +02:00