OpenBIC
OpenSource Bridge-IC
plat_spi_test_shell.h File Reference
#include <shell/shell.h>
Include dependency graph for plat_spi_test_shell.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void cmd_enable_spi (const struct shell *shell, size_t argc, char **argv)
 
void cmd_disable_spi (const struct shell *shell, size_t argc, char **argv)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_spi_cmd, SHELL_CMD(enable, NULL, "switch mux to flash", cmd_enable_spi), SHELL_CMD(disable, NULL, "switch mux to pcie", cmd_disable_spi), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (spi_control, &sub_spi_cmd, "flash control", NULL)
 

Function Documentation

◆ cmd_disable_spi()

void cmd_disable_spi ( const struct shell *  shell,
size_t  argc,
char **  argv 
)
Here is the call graph for this function:

◆ cmd_enable_spi()

void cmd_enable_spi ( const struct shell *  shell,
size_t  argc,
char **  argv 
)
Here is the call graph for this function:

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( spi_control  ,
sub_spi_cmd,
"flash control"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_spi_cmd  ,
SHELL_CMD(enable, NULL, "switch mux to flash", cmd_enable_spi)  ,
SHELL_CMD(disable, NULL, "switch mux to pcie", cmd_disable_spi)  ,
SHELL_SUBCMD_SET_END   
)