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

40994 Commits

Author SHA1 Message Date
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
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
tvanfossen
4831fd68ab lvgl/contrib: allow for SDL display driver height/width to be adjusted
Enables the SDL driver for LVGL to utilize a user prescribed width/height for display resolution when utilizing SDL, or rely on the SDL_HOR/VER_RES provided by lv_drv_conf.h in lv_drivers
2022-09-02 08:51:34 -04:00
7d1ba0c0ae
Merge pull request #18546 from kaspar030/murdock_dont_overwrite_run_tests
murdock: honour RUN_TESTS setting
2022-09-02 13:48:02 +02:00
Gunar Schorcht
f1830294c0 cpu/esp8266: adjust THREAD_STACKSIZE_{SMALL/TINY} 2022-09-02 08:57:09 +02:00
Gunar Schorcht
6386580b8f cpu/esp_common/freertos: lock/unlock mutex if scheduling is not active
If module `core_mutex_priority_inheritance` is enabled, the scheduling has to be active to lock/unlock the mutex/rmutex used by FreeRTOS semaphores. If scheduling is not active FreeRTOS semaphore function always succeed.
2022-09-02 08:54:31 +02:00
Gunar Schorcht
e1a613ac5c cpu/esp_common: improve thread safety for locking functions
For ESP32x, the operations on recursive locking variables have to be guarded by disabling interrupts to prevent unintended context switches. For ESP8266, interrupts must not be disabled, otherwise the intended context switch doesn't work when trying to lock a rmutex that is already locked by another thread.
2022-09-02 08:54:31 +02:00
943a87cfde murdock: allow to fully disable RUN_TESTS from passed env 2022-09-01 23:04:02 +02:00
fcf3e01eb7
Merge pull request #18315 from miri64/fmt/doc/wording
fmt: unify and align wording regarding characters, digits, and bytes
2022-09-01 21:46:22 +02:00
Gunar Schorcht
1eb18c2949 cpu/esp_common: improve thread safety for locking functions
Dynamic allocation and initialization of the mutex used by a newlib locking variable must not be interrupted. Since a thread context switch can occur on exit from an ISR, the allocation and initialization of the mutex must be guarded by disabling interrupts. The same must be done for the release of such a locking variable.
2022-09-01 15:50:26 +02:00
Gunar Schorcht
270001a42e cpu/esp_common: move ESP32 specific locking variables to cpu/esp32 2022-09-01 15:09:58 +02:00
Gunar Schorcht
1ab0b77543 tests/thread_priority_inversion: revert blacklisting ESP32
This reverts commit 2210721d5c.
2022-09-01 15:08:16 +02:00
Gunar Schorcht
2092c35ef6 cpu/esp32: module malloc_thread_safe not needed any longer
With the improvements of the locking mechanism, thread safety of malloc/realloc/calloc/free is guaranteed. Module malloc_thread_safe is not needed any longer.
2022-09-01 15:08:09 +02:00
benpicco
3e2dc46d4e
Merge pull request #18476 from benpicco/drivers/atwinc15x0-hang
drivers/atwinc15x0: reset device if m2m_wifi_handle_events() fails
2022-09-01 14:45:32 +02:00
benpicco
bcdf539c6e
Merge pull request #18541 from maribu/core_dumps
tests/periph_gpio_ll: drop core dump merged by accident
2022-09-01 10:18:29 +02:00
chrysn
7f64521c10
Merge pull request #18424 from benpicco/ncget-convenience
sys/shell: ncget: convenience improvements
2022-08-31 23:40:35 +02:00
Marian Buschsieweke
754ad23de5
Merge pull request #18539 from miri64/hashes_cmac/cleanup/rename
hashes_cmac: rename to hashes_aes128_cmac
2022-08-31 19:06:21 +02:00
Benjamin Valentin
51804679e6 sys/shell: ncget: make use of vfs_is_dir() 2022-08-31 17:23:20 +02:00
Benjamin Valentin
2f62a35e96 pkg/nanocbor: bump version 2022-08-31 16:29:03 +02:00
Marian Buschsieweke
089d8aba43
examples,tests: ignore core dumps via .gitignore
This will ignore files named `core` and `core.*` (except `core.c`,
`core.h`, `core.md`, `core.txt`) placed directly in the application
folder. This is where `make` is typically called and core dump due to
a crashing native application, flashing tool, or GDB would be placed.
The pattern is intentionally quite narrow, as there is e.g. a core
source folder that should still be monitored.
2022-08-31 15:05:14 +02:00
benpicco
b024458b43
Merge pull request #18507 from gschorcht/tests/external_board_dirs/add_esp32s2_ci_board
tests/external_boards: add esp32s2-ci board for optional modules
2022-08-31 14:33:55 +02:00
Marian Buschsieweke
f59e1c63e9
tests/periph_gpio_ll: drop core dump merged by accident 2022-08-31 13:16:58 +02:00
Martine Lenders
803ff1f69e
Merge pull request #18516 from Teufelchen1/feat/crc_fixup
sys/checksum: Adding three new crc16 variations
2022-08-31 12:58:04 +02:00
Gunar Schorcht
b94931191e cpu/esp32: small cleanups in periph/gpio 2022-08-31 12:21:46 +02:00
Gunar Schorcht
af719f9c3b cpu/esp32: fix doc for gpio_flank_t 2022-08-31 12:21:46 +02:00
Martine Lenders
84e3ace6e3
gnrc_lorawan_crypto: fix Vera++ errors 2022-08-31 10:43:25 +02:00
Martine Lenders
27e68787c5
tests: rename cmac to aes128_cmac 2022-08-31 10:43:25 +02:00
Martine Lenders
aead6d2010
gnrc_lorawan: use aes128_cmac_.* instead of cmac_.* 2022-08-31 10:43:25 +02:00