|
OpenBIC
OpenSource Bridge-IC
|
#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 "plat_cpld.h"#include "shell_plat_power_sequence.h"
Functions | |
| LOG_MODULE_REGISTER (shell_plat_power_sequence, LOG_LEVEL_INF) | |
| void | bubble_sort_power_sequence_table (const struct shell *shell, const power_sequence *power_sequence_table, size_t size) |
| 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) | |
| void bubble_sort_power_sequence_table | ( | const struct shell * | shell, |
| const power_sequence * | power_sequence_table, | ||
| size_t | size | ||
| ) |
| int cmd_power_sequence | ( | const struct shell * | shell, |
| size_t | argc, | ||
| char ** | argv | ||
| ) |

| LOG_MODULE_REGISTER | ( | shell_plat_power_sequence | , |
| LOG_LEVEL_INF | |||
| ) |
| SHELL_CMD_REGISTER | ( | power_sequence | , |
| & | sub_power_sequence_cmds, | ||
| "power_sequence <power_up|power_down>" | , | ||
| NULL | |||
| ) |
| 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 | |||
| ) |
| power_sequence power_sequence_off_table[] |
| size_t power_sequence_off_table_size = ARRAY_SIZE(power_sequence_off_table) |
| power_sequence power_sequence_on_table[] |
| size_t power_sequence_on_table_size = ARRAY_SIZE(power_sequence_on_table) |