OpenBIC
OpenSource Bridge-IC
|
#include "gpio_shell.h"
#include "hal_gpio.h"
#include "plat_gpio.h"
#include <drivers/gpio.h>
#include <stdio.h>
Macros | |
#define | GET_BIT_VAL(val, n) ((val & BIT(n)) >> (n)) |
#define | GPIO_DEVICE_PREFIX "GPIO0_" |
Enumerations | |
enum | GPIO_ACCESS { GPIO_READ , GPIO_WRITE } |
Functions | |
void | cmd_gpio_cfg_list_group (const struct shell *shell, size_t argc, char **argv) |
void | cmd_gpio_cfg_list_all (const struct shell *shell, size_t argc, char **argv) |
void | cmd_gpio_cfg_get (const struct shell *shell, size_t argc, char **argv) |
void | cmd_gpio_cfg_set_val (const struct shell *shell, size_t argc, char **argv) |
void | cmd_gpio_cfg_set_int_type (const struct shell *shell, size_t argc, char **argv) |
void | cmd_gpio_muti_fn_ctl_list (const struct shell *shell, size_t argc, char **argv) |
void | device_gpio_name_get (size_t idx, struct shell_static_entry *entry) |
Variables | |
int | num_of_pin_in_one_group_lst [GPIO_GROUP_NUM] = { 32, 32, 32, 32, 32, 16 } |
char | GPIO_GROUP_NAME_LST [GPIO_GROUP_NUM][10] |
gpio_flags_t | int_type_table [] |
#define GPIO_DEVICE_PREFIX "GPIO0_" |
enum GPIO_ACCESS |
void cmd_gpio_cfg_get | ( | const struct shell * | shell, |
size_t | argc, | ||
char ** | argv | ||
) |
void cmd_gpio_cfg_list_all | ( | const struct shell * | shell, |
size_t | argc, | ||
char ** | argv | ||
) |
void cmd_gpio_cfg_list_group | ( | const struct shell * | shell, |
size_t | argc, | ||
char ** | argv | ||
) |
void cmd_gpio_cfg_set_int_type | ( | const struct shell * | shell, |
size_t | argc, | ||
char ** | argv | ||
) |
void cmd_gpio_cfg_set_val | ( | const struct shell * | shell, |
size_t | argc, | ||
char ** | argv | ||
) |
void cmd_gpio_muti_fn_ctl_list | ( | const struct shell * | shell, |
size_t | argc, | ||
char ** | argv | ||
) |
void device_gpio_name_get | ( | size_t | idx, |
struct shell_static_entry * | entry | ||
) |
char GPIO_GROUP_NAME_LST[GPIO_GROUP_NUM][10] |
gpio_flags_t int_type_table[] |
int num_of_pin_in_one_group_lst[GPIO_GROUP_NUM] = { 32, 32, 32, 32, 32, 16 } |