21#include <shell/shell.h>
22#include <drivers/spi_nor.h>
23#include <drivers/flash.h>
25#define SPI_DEVICE_PREFIX "spi"
26#define MAX_SFDP_BUFF_SIZE 256
35 SHELL_CMD(re_init, &spi_device_name,
"Re-init spi config",
37 SHELL_CMD(sfpd_read, &spi_device_name,
"SFPD read",
39 SHELL_SUBCMD_SET_END);
SHELL_DYNAMIC_CMD_CREATE(spi_device_name, device_spi_name_get)
void device_spi_name_get(size_t idx, struct shell_static_entry *entry)
Definition: flash_shell.c:115
SHELL_STATIC_SUBCMD_SET_CREATE(sub_flash_cmds, SHELL_CMD(re_init, &spi_device_name, "Re-init spi config", cmd_flash_re_init), SHELL_CMD(sfpd_read, &spi_device_name, "SFPD read", cmd_flash_sfdp_read), SHELL_SUBCMD_SET_END)
void cmd_flash_sfdp_read(const struct shell *shell, size_t argc, char **argv)
Definition: flash_shell.c:52
void cmd_flash_re_init(const struct shell *shell, size_t argc, char **argv)
Definition: flash_shell.c:29