OpenBIC
OpenSource Bridge-IC
shell_spi.c File Reference
#include <stdlib.h>
#include <shell/shell.h>
#include "plat_gpio.h"
Include dependency graph for shell_spi.c:

Functions

void cmd_spi_disable (const struct shell *shell, size_t argc, char **argv)
 
void cmd_spi_enable_hamsa (const struct shell *shell, size_t argc, char **argv)
 
void cmd_spi_enable_medha0 (const struct shell *shell, size_t argc, char **argv)
 
void cmd_spi_enable_medha1 (const struct shell *shell, size_t argc, char **argv)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_spu_enable_cmds, SHELL_CMD(hamsa, NULL, "spi enable hamsa test command", cmd_spi_enable_hamsa), SHELL_CMD(medha0, NULL, "spi enable medha0 test command", cmd_spi_enable_medha0), SHELL_CMD(medha1, NULL, "spi enable medha1 test command", cmd_spi_enable_medha1), SHELL_SUBCMD_SET_END)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_spi_test_cmds, SHELL_CMD(enable, &sub_spu_enable_cmds, "spi enable test command", NULL), SHELL_CMD(disable, NULL, "spi disable test command", cmd_spi_disable), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (spi_test, &sub_spi_test_cmds, "spi test commands", NULL)
 

Function Documentation

◆ cmd_spi_disable()

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

◆ cmd_spi_enable_hamsa()

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

◆ cmd_spi_enable_medha0()

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

◆ cmd_spi_enable_medha1()

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

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( spi_test  ,
sub_spi_test_cmds,
"spi test commands"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE() [1/2]

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_spi_test_cmds  ,
SHELL_CMD(enable, &sub_spu_enable_cmds, "spi enable test command", NULL)  ,
SHELL_CMD(disable, NULL, "spi disable test command", cmd_spi_disable)  ,
SHELL_SUBCMD_SET_END   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE() [2/2]

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_spu_enable_cmds  ,
SHELL_CMD(hamsa, NULL, "spi enable hamsa test command", cmd_spi_enable_hamsa)  ,
SHELL_CMD(medha0, NULL, "spi enable medha0 test command", cmd_spi_enable_medha0)  ,
SHELL_CMD(medha1, NULL, "spi enable medha1 test command", cmd_spi_enable_medha1)  ,
SHELL_SUBCMD_SET_END   
)