#include #include static int cmd_reset(const struct shell *sh, size_t argc, char **argv) { shell_print(sh, "Rebooting system..."); k_sleep(K_MSEC(100)); // Allow the shell to print the message sys_reboot(SYS_REBOOT_WARM); return 0; } SHELL_CMD_REGISTER(reset, NULL, "Reboot the system", cmd_reset);