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

6820 Commits

Author SHA1 Message Date
Marian Buschsieweke
2ee949e676
tests/periph/gpio_ll: fix output on LOW_ROM_BOARDS
Printing the newline after the state was printed is not optional.

This also moves the call to `gpio_ll_print_conf()` and `puts("")` to
a static function to safe enough ROM so that this still can be flashed
on `nucleo-l011k4`.
2024-01-21 08:38:47 +01:00
Marian Buschsieweke
2a00ec13e5
drivers/periph/gpio_ll: shrink gpio_conf_t
This commit optimizes the `gpio_conf_t` type in the following
regards:

- The "base" `gpio_conf_t` is stripped from members that only some
  platforms support, e.g. drive strength, slew rate, and disabling of
  the Schmitt Trigger are no longer universally available but
  platform-specific extensions
- The `gpio_conf_t` is now crammed into a bit-field that is 8 bit or
  16 bit wide. This allows for storing lots of them e.g. in
  `driver_foo_params_t` or `uart_conf_t` etc.
- A `union` of the `struct` with bit-field members and a `bits` is used
  to allow accessing all bits in a simple C statement and to ensure
  alignment for efficient handling of the type

Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2024-01-21 08:38:40 +01:00
Marian Buschsieweke
504c169346
Merge pull request #20270 from maribu/boards/gd32vf103c-start
boards/gd32vf103c-start: new board
2024-01-20 16:11:31 +00:00
Marian Buschsieweke
66abbd22d6
examples,tests: add gd32vr103c-start to Makefile.ci 2024-01-20 17:00:04 +01:00
benpicco
8dbe2ef7e4
Merge pull request #20273 from benpicco/coap_find_uri_query
nanocoap: implement coap_find_uri_query()
2024-01-20 11:27:15 +00:00
Benjamin Valentin
f9d5328242 tests: don't explicitly set RIOT_TERMINAL=native 2024-01-19 18:11:09 +01:00
Benjamin Valentin
4c7fc012c5 tests/unittests: nanocoap: add test for coap_find_uri_query() 2024-01-19 10:53:03 +01:00
Marian Buschsieweke
f9aab53e16
tests/periph/uart_locate_pins: new test/utility app
This application uses `soft_uart` to bit-bang the name of a number of
configured GPIO pins via said pins at 9600 Bd. This way attaching an
USB UART bridge to one pin at a time easily reveals which MCU GPIO
pin a given pin on a board corresponds to. This is useful when no
schematic and no silkscreen labeling is available, or when the
information is misleading or outright incorrect (looking at the
E180-ZG120B-TB).
2024-01-18 10:42:13 +01:00
Frederik Haxel
64c551a714 unittests/tests-fib: Fix array size types
Reverts the type changes for the array size variables, as `size_t` is needed
in the function calls `fib_get_next_hop` and `fib_get_destination_set`.

Fixes 475a55136a
2024-01-15 11:26:36 +01:00
Frederik Haxel
a6a6e31699 tests/unittests/tests-uri_parser: Added PRIuSIZE 2024-01-12 17:17:33 +01:00
benpicco
714958ad3c
Merge pull request #20241 from benpicco/busy_wait
sys/busy_wait: add busy wait helper
2024-01-11 12:19:31 +00:00
Benjamin Valentin
9cf1c47e86 tests/sys/busy_wait: add test for busy wait 2024-01-11 13:02:56 +01:00
benpicco
bbf5e23cf9
Merge pull request #19786 from gschorcht/cpu/esp32/periph/sdmmc
cpu/esp32/periph: add low-level SDMMC peripheral driver for ESP32 and ESP32-S3
2024-01-07 16:51:16 +00:00
Gunar Schorcht
60ab86b273 tests/pkg/fatfs_vfs: add SDMMC support 2024-01-07 17:02:10 +01:00
Kevin "Tristate Tom" Weiss
32af5758ee
Merge pull request #20229 from benpicco/tests/build_system-drop_kconfig
tests/build_system: drop Kconfig tests
2024-01-05 08:03:21 +00:00
Gunar Schorcht
00c9bb73d8 tests/pkg/fatfs: add SDMMC support 2024-01-05 07:22:27 +01:00
Marian Buschsieweke
866f2a00c0
Merge pull request #20226 from maribu/boards/generic-cc2538-cc2592-dk
boards/generic-cc2538-cc2592-dk: add board support
2024-01-05 00:35:11 +00:00
Marian Buschsieweke
947d05ed77
boards/generic-cc2538-cc2592-dk: add board support
The CC2538-CC2592-DK is one of the few readily available and
affordable boards featuring a legacy CC2538 MCU. This should make
maintaining RIOT support for that legacy MCU more affordable :-)
2024-01-05 00:00:48 +01:00
Benjamin Valentin
bca6d2721b tests/build_system/kconfig_features: drop test
We are removing Kconfig dependency modeling, so the test is obsolete.
2024-01-04 15:37:27 +01:00
Marian Buschsieweke
f860d96a25
Merge pull request #19891 from chrysn-pull-requests/ws2181x_timer
drivers/ws281x: Add gpio_ll and timer based driver
2024-01-03 09:22:26 +00:00
benpicco
59eb017448
Merge pull request #20198 from Teufelchen1/chore/fmt_test
tests: Slightly increase coverage of fmt unittests
2024-01-02 14:02:59 +00:00
Benjamin Valentin
d8cc2ac24f tests: don't manually select native term 2023-12-23 20:27:47 +01:00
Benjamin Valentin
90dad75751 tests/build_system/test_tools: use native terminal 2023-12-22 18:01:21 +01:00
Oleg Hahm
c0e71b0592
Merge pull request #20172 from OlegHahm/pr/pyterm_native_pipe
pyterm: add native support
2023-12-21 23:08:22 +00:00
Frederik Haxel
475a55136a unittests/tests-fib: test cleanup
- Added helper function to avoid 'format-truncation' warning
- Changed all `size_t` types to `unsigned`
- Changed function names from `_FIB_` to `_fib_`
2023-12-21 12:06:51 +01:00
Frederik Haxel
fa0cf05d0a tests: Use size_t print format specifier
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-12-21 12:02:37 +01:00
Teufelchen1
4a62b9ff31 tests: Slightly increase coverage of fmt unittests 2023-12-19 18:11:28 +01:00
benpicco
30f89714f2
Merge pull request #20195 from benpicco/coap_get_uri_query-defuse
nanocoap: defuse footgun in coap_get_uri_query()
2023-12-19 13:30:14 +00:00
Benjamin Valentin
d6ca03aaa9 tests/unittests: coap_get_uri_query() -> coap_get_uri_query_string() 2023-12-19 14:02:28 +01:00
chrysn
d86405cef4
drivers/ws281x: Add timer and gpio_ll based driver 2023-12-19 11:13:43 +01:00
Oleg Hahm
273486be78 examples: tests: unify native arguments for ZEP 2023-12-18 20:00:44 +01:00
Kevin "Tristate Tom" Weiss
5ba18df6fb
Merge pull request #20129 from bergzand/pr/mjson/initial
mjson: Initial include of package
2023-12-18 13:07:41 +00:00
MrKevinWeiss
18c1548077
tests/pkg/mjson: Add BOARD_INSUFFICIENT_MEMORY list 2023-12-18 13:56:25 +01:00
Oleg Hahm
99ff9bad03 examples: tests: update native TERMFLAGS
Updating the Makefiles for example and test applications to set the
TERMFLAGS correctly for native.
2023-12-18 13:44:20 +01:00
Oleg Hahm
2b779fc5a9 native: only set TERMFLAGS for pyterm
If TERMPROG is unset the default is pyterm. If TERMPROG is pyterm we
need to set the native flag.
2023-12-18 13:44:20 +01:00
Marian Buschsieweke
59573a8678
Merge pull request #20178 from Einhornhool/pr/fix-psa-build-config-tests
tests/sys/psa_crypto*: Fix failing tests
2023-12-16 22:27:55 +00:00
Lena Boeckmann
359cacd62c
tests/sys/psa_crypto_*: increase stack size for sw ecc tests 2023-12-16 22:08:16 +01:00
Lena Boeckmann
38db021456 tests/sys/psa_crypto_se*: remove test folders from se tests 2023-12-14 13:13:33 +01:00
benpicco
690efb2655
Merge pull request #20128 from benpicco/tests/periph/uart-nl
tests/periph/uart: allow to set line ending
2023-12-13 22:11:54 +00:00
benpicco
6eac1e1761
Merge pull request #15380 from benpicco/mtd_drop_write
mtd/*: drop .write() if .write_page() is implemented
2023-12-13 20:35:53 +00:00
Benjamin Valentin
3b489cf2f5 tests/mtd_mapper: drop .write() function 2023-12-13 16:56:51 +01:00
Benjamin Valentin
d525807598 unittests/tests-mtd: expect mtd_write() to always succeed
The MTD layer now takes care of splitting up writes, so it
should always work (as long as the destination address is
within the memory region)
2023-12-13 16:50:41 +01:00
Oleg Hahm
cb7a66d66b tests: build_system: replace broken wiki link with link to docs 2023-12-13 12:24:58 +01:00
Frederik Haxel
4a1d07ab64 tests/unittests/tests-hashes: fixes wrong string length 2023-12-11 14:15:50 +01:00
385f6ad488
tests/pkg/mjson: Add test for mjson package 2023-12-11 13:30:58 +01:00
Marian Buschsieweke
bb07bb6613
Merge pull request #20160 from maribu/cpu/msp430/timer
cpu/msp430: improve periph_timer
2023-12-10 13:02:30 +00:00
Marian Buschsieweke
eca0bdd5aa
examples,tests: Update Makefile.cis 2023-12-10 13:51:04 +01:00
benpicco
67df59b0be
Merge pull request #20104 from gschorcht/drivers/mtd/mtddev_declarations
boards: remove `extern mtd_dev_t *mtd<n>` declarations from board definitions
2023-12-07 15:25:37 +00:00
Marian Buschsieweke
aa045d540f
tests/periph/timer: fix timeout computation and overflow handling
- the timeout computation for the spurious IRQ test confused numerator
  and denominator in a fraction
- the timeout offset between timer channels was hardcoded to 5000 from
  when the timer was only tested with 1 MHz as frequency
    - This resulted in slooooow test runs when running at slow
      frequencies
- fix overflow handling in the spinning wait
    - likely this would never overflow anyway assuming that
      `timer_init()` resets the counter value, but let's not rely on
      this and just fix the bug for good
2023-12-07 16:07:24 +01:00
Gunar Schorcht
c93f0a70d4 tests/pkg/fatfs_vfs: replace external mtd0 declaration
Since the `extern mtd_dev_t *` declarations were removed from board definitions, `mtd_dev_get` has to be used instead.
2023-12-07 15:32:49 +01:00