1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-18 19:13:51 +01:00

994 Commits

Author SHA1 Message Date
crasbe
165cc75a39
Merge pull request #21489 from fabian18/pr/shell_cmd_mtd
sys/shell/cmds: add MTD command from `mtd_raw` test
2025-08-14 12:18:43 +00:00
Fabian Hüßler
1d1b3547aa sys/shell/cmds: add mtd.doc.md 2025-08-14 13:52:46 +02:00
Fabian Hüßler
60e53ad074 sys/shell/cmds: add possibility to write raw bytes to MTD 2025-08-14 13:52:46 +02:00
Fabian Hüßler
4f8ea2c77e sys/shell/cmds: move mtd command from test to reusable shell commands 2025-08-14 13:52:46 +02:00
Gregory Guche
8dc500703b pkg/xipfs: add XIPFS as vfs module 2025-07-23 12:44:38 +02:00
Fabian Hüßler
82c3ccbb04 sys/shell/cmds/gnrc_netif: fix compilation without IPv6 2025-06-03 10:48:05 +02:00
Teufelchen1
e98426e5c5 sys/shell: rename shell_readline() 2025-05-24 18:28:23 +02:00
Mihai Renea
b149bfb9cb sys/shell: expose readline() 2025-05-23 10:39:36 +02:00
Marian Buschsieweke
cac44edec7
tree-wide: replace multiple empty lines with one
For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
2025-05-21 22:51:04 +02:00
jon
0c6b3f63ba typo \'transition\' fixed as \'transmission\' 2025-05-08 12:21:33 +02:00
Benjamin Valentin
b66155e631 shell/vfs: set proper file permissions 2025-04-23 16:28:53 +02:00
Teufelchen1
38b0287164 shell/saul: Rename internal functions 2025-04-16 16:49:19 +02:00
Fabian Hüßler
7e4afa4436 nanocoap: supply response buffer for nanocoap_link_format_get 2025-03-31 19:12:19 +02: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
Oleg Hahm
d330040b0f sys: shell: posix_inet as dependency for LWIP
The LWIP netif shell commands make use of POSIX functions like
inet_pton(). Hence, the module needs to be a dependency.
2024-12-21 01:41:25 +01:00
Marian Buschsieweke
a7e251509d
sys/shell: reduce overhead of XFA shell commands
We do not need to add an array of pointers to the shell commands, just
an array of shell commands is sufficient. This reduced the overhead of
XFA by `sizeof(void *)` per command.
2024-11-22 11:14:34 +01:00
Marian Buschsieweke
f0a88dcf56
sys/shell: add help_json builtin command
This command does the same as `help`, but provides a machine readable
JSON rather than a human readable table. It is only provided when the
(pseudo-)module `shell_builtin_cmd_help_json` is used.
2024-11-11 22:05:04 +01:00
chrysn
69a89b80ca treewide/rust: cargo fmt 2024-10-02 22:17:08 +02:00
chrysn
c0288f7d40 rust: Update to riot-wrappers 0.9 2024-08-22 17:33:40 +02:00
mguetschow
3e712a54ca
Merge pull request #20673 from Einhornhool/pr/update-cryptoauth-shell-command
sys/shell: Update cryptoauthlib shell commands
2024-07-11 06:54:52 +00:00
Lena Boeckmann
1ce304cee0 sys/shell/cmds/cryptoauthlib: Fix key slot number 2024-07-10 13:53:01 +02:00
Lena Boeckmann
1c062d8d6a sys/shell: add atca write config 2024-05-31 16:49:20 +02:00
Benjamin Valentin
df477f4e1a shell/vfs: don't print size if it's not available 2024-05-22 18:53:37 +02:00
Lena Boeckmann
b9ec5ad60f sys/shell/cmds/cryptoauthlib: fix typos 2024-05-21 09:13:20 +02:00
Lena Boeckmann
16f9c51014 sys/shell: Update read command to also support ATECC608 devices 2024-05-17 17:00:15 +02:00
Lena Boeckmann
2d4a597fa1 sys/shell: fix some output issues 2024-05-16 09:06:13 +02:00
Lena Boeckmann
20cdbac5fc sys/shell: Update cryptoauthlib shell commands 2024-05-15 18:30:51 +02:00
benpicco
22795248eb
Merge pull request #20651 from benpicco/shell_scripting
sys/shell: add support for running a batch of commands from a file
2024-05-15 09:35:04 +00:00
Benjamin Valentin
471e257c7c sys/shell: add shell_parse_file() 2024-05-15 11:20:38 +02:00
Benjamin Valentin
138a94bae4 sys/shell: make shell_handle_input_line() public 2024-05-15 11:20:38 +02:00
Benjamin Valentin
aad438117e sys/shell: nanoCoAP: properly print long directory entries 2024-05-07 22:45:37 +02:00
Teufelchen1
8bd1de8259 shell/vfs: Handle print failure in genfile cmd gracefully 2024-04-25 15:16:42 +02:00
benpicco
e3c02f5601
Merge pull request #19849 from krzysztof-cabaj/LWIP-ifconfig-IPv4-configuration
sys/shell/lwip: add IPv4 configuration to lwip ifconfig command
2024-04-10 16:48:36 +00:00
MrKevinWeiss
b8c4617768
sys/*: expose periph/pm.h
I guess to reduce clutter we can always have the headers exposed since they are always included
even when we are not using them.
2024-04-08 11:20:14 +02:00
krzysztof-cabaj
71d47cd0cf sys/shell/lwip: merge ifconfig add4 and add6 options to one-ifconfig add 2024-04-04 13:45:26 +02:00
krzysztof-cabaj
67abda03fc sys/shell/lwip: fix coding style using uncrustify with RIOT rules 2024-04-02 10:26:48 +02:00
MrKevinWeiss
e017c01acc
sys/shell/cmds: Guard periph_pm calls
It would seem that either we need to require the periph_pm module in shell
or make it optional... since we have many other optional modules here
and we still may want the RIOT_VERSION command, lets make it optional for now.
2024-04-02 10:19:19 +02:00
MrKevinWeiss
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +01:00
MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
MrKevinWeiss
0a9c51fdf9
*.config: Modify all .config kconfig files 2024-03-26 14:53:40 +01:00
Dylan Laduranty
f78a41f1b3 treewide: replace shell_commands module in documentation
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-19 15:12:02 +01:00
Dylan Laduranty
b246f63aff treewide: remove deprecated random_cmd module
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-18 21:31:44 +01:00
Dylan Laduranty
26058cf14e treewide: remove deprecated nice module
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-18 21:31:03 +01:00
Dylan Laduranty
d6e6c4f7a1 treewide: remove deprecated i2c_scan module
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 22:00:00 +01:00
Dylan Laduranty
5a2e5d7301 treewide: remove deprecated heap_cmd module
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:57:22 +01:00
Dylan Laduranty
5b3b426678 treewide: remove deprecated gnrc_udp_cmd module
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:54:09 +01:00
Dylan Laduranty
67b8c6709c treewide: remove deprecated gnrc_pktbuf_cmd module
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:48:29 +01:00
Benjamin Valentin
bfdda46055 sys/shell/ping: print error when DNS resolve fails 2024-02-07 16:02:04 +01:00
Benjamin Valentin
b729fe3237 sys/shell: add RIOT_VERSION_EXTRA output
This allows to define an extra string that will be output as part
of the version command.

e.g. an application may define

RIOT_VERSION_EXTRA += v1.33.7
RIOT_VERSION_EXTRA += flashed by $(shell whoami
2024-02-05 14:18:14 +01:00