OpenBIC
OpenSource Bridge-IC
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
plat_power_sequence_shell.c File Reference
#include <zephyr.h>
#include <shell/shell.h>
#include <stdlib.h>
#include <logging/log.h>
#include "plat_isr.h"
#include "plat_hook.h"
#include "plat_i2c.h"
Include dependency graph for plat_power_sequence_shell.c:

Macros

#define AEGIS_CPLD_ADDR   (0x4C >> 1)
 

Functions

 LOG_MODULE_REGISTER (plat_power_sequence_shell, LOG_LEVEL_DBG)
 
int cmd_power_sequence (const struct shell *shell, size_t argc, char **argv)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_power_sequence_cmds, SHELL_CMD(power_up, NULL, "power_sequence power_up command", cmd_power_sequence), SHELL_CMD(power_down, NULL, "power_sequence power_down command", cmd_power_sequence), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (power_sequence, &sub_power_sequence_cmds, "power_sequence <power_up|power_down>", NULL)
 

Macro Definition Documentation

◆ AEGIS_CPLD_ADDR

#define AEGIS_CPLD_ADDR   (0x4C >> 1)

Function Documentation

◆ cmd_power_sequence()

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

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_power_sequence_shell  ,
LOG_LEVEL_DBG   
)

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( power_sequence  ,
sub_power_sequence_cmds,
"power_sequence <power_up|power_down>"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_power_sequence_cmds  ,
SHELL_CMD(power_up, NULL, "power_sequence power_up command", cmd_power_sequence)  ,
SHELL_CMD(power_down, NULL, "power_sequence power_down command", cmd_power_sequence)  ,
SHELL_SUBCMD_SET_END   
)