1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

118 Commits

Author SHA1 Message Date
Marian Buschsieweke
ca781c2f12
Merge pull request #21242 from mguetschow/native-alias
boards: introduce board alias and make native default to host target
2025-04-02 09:14:12 +00:00
Mikolai Gütschow
69c15e1754
boards: make BOARD=native an alias for BOARD=native32 2025-04-01 12:39:06 +02:00
mguetschow
d2fbe23e78
Merge pull request #21112 from KSKNico/tm1637
drivers/tm1637: add driver and tests for tm1637 7-segment display
2025-03-25 13:49:02 +00:00
KSKNico
c27420418f drivers/tm1637: tests for the tm1637 7-segment display 2025-03-25 14:03:44 +01:00
Marian Buschsieweke
a9ff36d68e
tests/drivers/candev: Drop SAME54-XPRO hack
Now that power management of the CAN transceiver is done by the driver,
we do no longer need a per-board hack in the app.
2025-03-12 16:05:40 +01:00
krzysztof-cabaj
a2dfd78b27 treewide: fix double the in doc and comments 2025-02-18 13:25:02 +01:00
Gilles DOFFE
27fca7748a tests/drivers/candev: rework blacklisted boards
Update BOARD_INSUFFICIENT_MEMORY, stm32f030f4-demo is now usable with
candev example.

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-02-10 17:20:58 +01:00
Gilles DOFFE
0bf08aa89b tests/conn_can: make test support CAN FD
Increase Shell buffer size for 64 bytes payload length of CAN FD frame.
This also implies to increase main thread stack size and especially for
native architectures.
Add two new sub-commands to test_can command:
* fdsend: to send a CAN FD frame
* fdsendrtr: to send a CAN FD RTR frame (payload length = 0).

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:23 +01:00
Gilles DOFFE
f6f6f6973c can: introduce typedef can_frame_t
Whole CAN code in RIOT is using 'struct can_frame' to represent a CAN
frame.
However incoming CAN FD support will bring 'struct canfd_frame' to
represent CAN FD frames.
Even if the 'struct canfd_frame' has additional flags and a bigger
payload, it is aligned on 'struct can_frame' and thus they can be
referenced by the same pointers in the code.

As it is impossible to predict which one will be used in RIOT, just
define a new type 'can_frame_t' which will map to the right struct
according to the MCU CAN supported format.

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:22 +01:00
Gilles DOFFE
ae51a22fbb can: use frame len instead of can_dlc
RIOT implementation of CAN bus relies on SocketCAN model.
Since commit c398e56 (can: add optional DLC element to Classical CAN
frame structure), '__u8 can_dlc' attribute of struct can_frame is
considered as deprecated in SocketCAN and kept for legacy support.
Attribute '__u8 len' should be used instead.

	union {
		/* CAN frame payload length in byte (0 .. CAN_MAX_DLEN)
		 * was previously named can_dlc so we need to carry that
		 * name for legacy support
		 */
		__u8 len;
		__u8 can_dlc; /* deprecated */
	};

Moreover, CAN FD frame structure does not support legacy attribute
'can_dlc', making 'len' mandatory for incoming CAN FD support in RIOT.

	struct canfd_frame {
		canid_t can_id;  /* 32 bit CAN_ID + EFF/RTR/ERR flags */
		__u8    len;     /* frame payload length in byte */
		__u8    flags;   /* additional flags for CAN FD */
		__u8    __res0;  /* reserved / padding */
		__u8    __res1;  /* reserved / padding */
		__u8    data[CANFD_MAX_DLEN]
__attribute__((aligned(8)));
	};

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:22 +01:00
mguetschow
4321173610
Merge pull request #20982 from Lukas-Luger/pr/nrf802154-beacon
cpu/nrf52/radio/nrf802154: fix beacon acceptance
2025-01-28 18:37:28 +00:00
lulu254b
bef67c8a51 tests/drivers/nrf802154: test if Beacons can be received 2025-01-28 19:28:34 +01:00
Kevin "Tristate Tom" Weiss
9fc5a92587
Merge pull request #21146 from MrKevinWeiss/pr/remotewaspmote
boards/waspmote-pro: Remove after the deprecation period
2025-01-20 21:38:54 +00:00
MrKevinWeiss
b5dadde19b
boards/waspmote-pro: Remove after the deprecation period 2025-01-20 20:55:21 +01:00
Marian Buschsieweke
e68d69f85e
tests/drivers/candev: prefer periph_can when available
This changes the app config to prefer periph_can whenever that feature
is provided, and fall back to mcp2515 as default if not.
2025-01-20 15:55:53 +01:00
benpicco
77c4a24bcf
Merge pull request #20938 from derMihai/mir/fix_runqueue_pop
core/sched.c: fix _runqueue_pop() removing wrong thread
2024-11-14 12:05:45 +00:00
Mihai Renea
ba71ba72a3 core/sched.c: fix _runqueue_pop() removing wrong thread 2024-11-14 11:05:40 +01:00
Virgile Robles
7c68f00cd1 drivers/dht: test and doc 2024-10-21 15:13:23 +02:00
Benjamin Valentin
312a550f1a treewide: remove THREAD_CREATE_STACKTEST from thread creation 2024-07-29 11:45:58 +02:00
benpicco
5096c2419e
Merge pull request #20750 from mguetschow/tests-pn532
tests/drivers/pn532: fix init error handling and increase verbosity
2024-06-14 10:49:22 +00:00
Mikolai Gütschow
81494bac9f
tests/drivers/pn532: fix init error handling and increase verbosity 2024-06-13 14:52:08 +02:00
Leandro Lanzieri
b092f954bb
tests/drivers: add max31855 test application 2024-06-12 15:09:16 +02:00
LP-HAW
134d84401d drivers/w5500: remove Kconfig 2024-06-05 16:30:59 +02:00
Mihai Renea
5a7d553b8e drivers/at: expose some internal API 2024-05-28 12:20:54 +02:00
Marian Buschsieweke
4131abd2ae
Merge pull request #20685 from maribu/tests/drop-kconfig-workaround
tests: drop temporary KConfig workaround
2024-05-24 18:46:36 +00:00
Marian Buschsieweke
cbcf568263
tests: drop temporary KConfig workaround
The board white list was needed as temporary workaround during the
KConfig migration. As the migration was aborted, the workaround should
no longer be needed.

Partially fixes https://github.com/RIOT-OS/RIOT/issues/20680
2024-05-24 18:07:28 +02:00
Firas Hamdi
31003bf323 tests/drivers/candev: add debug output concerning errors 2024-05-16 15:00:28 +02:00
Marian Buschsieweke
59956fd371
Merge pull request #20613 from maribu/cpu/msp430/pm
cpu/msp430: implement power management
2024-05-07 06:13:50 +00:00
Marian Buschsieweke
d5839ca190
examples,tests: Bump Makefile.ci for MSP430 boards 2024-05-07 07:57:41 +02:00
Stefan Schmidt
9d62ad4c5c driver/w5500: driver for the W5500 ethernet chip
- driver can be used with interrupt or in polling mode (default)
2024-05-02 22:07:17 +02:00
krzysztof-cabaj
59d5af7f45 tests/drivers/at: add static variable initializer 2024-04-15 20:59:44 +02:00
krzysztof-cabaj
16180a3503 tests/drivers/at: add check if device is initialized before sending command 2024-04-15 20:58:47 +02:00
MrKevinWeiss
06c4cbbe9c */Makefile.ci: Add gba_cartridge 2024-04-10 17:06:18 +02:00
Mihai Renea
627926869f tests/drivers/at_unit: fix unit tests on native 2024-04-08 09:40:52 +02:00
chrysn
ac40354f19 tests/drivers/at_unit: Add Makefile.ci 2024-04-05 14:07:12 +02:00
Teufelchen1
0ddbba3bef unittests: Move at test to driver tests 2024-04-05 13:17:04 +02:00
Karl Fessel
9d2dda27ce
Merge branch 'master' into cpu/samd5x-write-CAN-driver 2024-03-28 09:52:26 +01:00
Marian Buschsieweke
4b3308cdef
Merge pull request #20357 from maribu/cpu/msp430/usci
cpu/msp430/f2xx: clean up periph_uart,periph_spi
2024-03-27 19:57:47 +00:00
Marian Buschsieweke
10ee192afc
examples,tests: bump Makefile.cis
Ran `dist/tools/insufficient_memory/update_insufficient_memory_board.sh`
for both `z1` and `olimex-msp430-h2618`.
2024-03-27 18:54:07 +01:00
Marian Buschsieweke
04620d471c
Merge pull request #20438 from MrKevinWeiss/pr/kconfig/dep/removal
Remove Kconfig dependency modelling
2024-03-27 16:39:56 +00:00
MrKevinWeiss
20fcb1d99d
tests/*: Remove TEST_KCONFIG symbols 2024-03-27 10:28:14 +01:00
MrKevinWeiss
9f9da87306
tests/drivers/lsm6dsxx: use generic driver with test 2024-03-26 18:13:20 +01:00
Firas Hamdi
491a1cdf2b tests/drivers/candev: add test commands 2024-03-26 15:17:48 +01:00
MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
MrKevinWeiss
db965c9491
*app.config.test*: Remove kconfig dep files 2024-03-26 14:53:35 +01:00
Mihai Renea
63e057cb50 drivers/at: Fix sync URC handling. at_send_cmd_get_lines() keeps EOL. 2024-03-20 14:32:09 +01:00
Benjamin Valentin
634b186d1d tests/mtd_flashpage: add test for AUX slot 2024-02-28 13:17:59 +01:00
Mihai Renea
c58b71b899 drivers/at: parse +CME/+CMS responses and save error value 2024-02-22 12:21:25 +01:00
benpicco
4d9e8a8dde
Merge pull request #20335 from fzi-haxel/pr/native64-board
native64: Separate board for 64-bit native
2024-02-05 22:58:02 +00:00
Frederik Haxel
5ed0bafc92 examples, tests: Changes for the native64 board
- Adapted build system and test checks for the native boards to include native64
- Added `native64` to the same tests as `native`
2024-02-05 22:02:14 +01:00