OpenBIC
OpenSource Bridge-IC
plat_uart_pwrevent_shell.c File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <zephyr.h>
#include "plat_hook.h"
#include "plat_uart_pwrevent_shell.h"
Include dependency graph for plat_uart_pwrevent_shell.c:

Functions

void cmd_enable_or_disable_uart_pwrevent (const struct shell *shell, size_t argc, char **argv)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_uart_pwrevent_cmds, SHELL_CMD(enable, NULL, "enable_uart_pwrevent", cmd_enable_or_disable_uart_pwrevent), SHELL_CMD(disable, NULL, "disable_uart_pwrevent", cmd_enable_or_disable_uart_pwrevent), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (uart_pwrevent, &sub_uart_pwrevent_cmds, "uart-pwrevent commands for AG", NULL)
 

Function Documentation

◆ cmd_enable_or_disable_uart_pwrevent()

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

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( uart_pwrevent  ,
sub_uart_pwrevent_cmds,
"uart-pwrevent commands for AG"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_uart_pwrevent_cmds  ,
SHELL_CMD(enable, NULL, "enable_uart_pwrevent", cmd_enable_or_disable_uart_pwrevent)  ,
SHELL_CMD(disable, NULL, "disable_uart_pwrevent", cmd_enable_or_disable_uart_pwrevent)  ,
SHELL_SUBCMD_SET_END   
)