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

41020 Commits

Author SHA1 Message Date
Karl Fessel
da51932737 boards: add some missing whitespaces for static tests 2022-09-14 15:11:14 +02:00
Karl Fessel
05f114d0af doc: fix unbalaced grouping
- most were trivial
    - missing group close or open
    - extra space
    - no doxygen comment
- name commad might open an implicit group
    this hould also be implicit cosed but does not happen somtimes
- crazy: internal declared groups have to be closed internal
2022-09-14 15:05:25 +02:00
benpicco
4e5931b56a
Merge pull request #18584 from maribu/core/mutex.c
core/mutex: fix priority inheritance on AVR
2022-09-13 16:39:23 +02:00
Marian Buschsieweke
a594e90228
Merge pull request #18568 from maribu/boards/common/stm32
boards/common/stm32: Fix LED configuration
2022-09-13 15:19:37 +02:00
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
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
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
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