/Zephyr-Core-3.4.0/tests/posix/getopt/src/ |
D | main.c | 43 char **argv; in ZTEST() local 45 argv = (char **)nargv; in ZTEST() 51 c = getopt(argc, argv, accepted_opt); in ZTEST() 59 c = getopt(argc, argv, accepted_opt); in ZTEST() 81 char **argv; in ZTEST() local 87 argv = (char **)nargv; in ZTEST() 91 c = getopt(argc, argv, test_opts); in ZTEST() 93 c = getopt(argc, argv, test_opts); in ZTEST() 96 c = getopt(argc, argv, test_opts); in ZTEST() 100 zassert_equal(0, strcmp(argv[GETOPT_IDX_OPTARG], state->optarg), in ZTEST() [all …]
|
/Zephyr-Core-3.4.0/drivers/gpio/ |
D | gpio_shell.c | 38 static int cmd_gpio_conf(const struct shell *sh, size_t argc, char **argv) in cmd_gpio_conf() argument 44 if (isdigit((unsigned char)argv[args_indx.index][0]) != 0 && in cmd_gpio_conf() 45 isalpha((unsigned char)argv[args_indx.mode][0]) != 0) { in cmd_gpio_conf() 46 index = (uint8_t)atoi(argv[args_indx.index]); in cmd_gpio_conf() 47 if (!strcmp(argv[args_indx.mode], "in")) { in cmd_gpio_conf() 49 } else if (!strcmp(argv[args_indx.mode], "inu")) { in cmd_gpio_conf() 51 } else if (!strcmp(argv[args_indx.mode], "ind")) { in cmd_gpio_conf() 53 } else if (!strcmp(argv[args_indx.mode], "out")) { in cmd_gpio_conf() 63 dev = device_get_binding(argv[args_indx.port]); in cmd_gpio_conf() 66 index = (uint8_t)atoi(argv[args_indx.index]); in cmd_gpio_conf() [all …]
|
/Zephyr-Core-3.4.0/drivers/smbus/ |
D | smbus_shell.c | 46 static int cmd_smbus_scan(const struct shell *sh, size_t argc, char **argv) in cmd_smbus_scan() argument 51 dev = device_get_binding(argv[ARGV_DEV]); in cmd_smbus_scan() 53 shell_error(sh, "SMBus: Device %s not found", argv[ARGV_DEV]); in cmd_smbus_scan() 78 shell_print(sh, "%u devices found on %s", cnt, argv[ARGV_DEV]); in cmd_smbus_scan() 84 static int cmd_smbus_quick(const struct shell *sh, size_t argc, char **argv) in cmd_smbus_quick() argument 90 dev = device_get_binding(argv[ARGV_DEV]); in cmd_smbus_quick() 92 shell_error(sh, "SMBus: Device %s not found", argv[ARGV_DEV]); in cmd_smbus_quick() 96 addr = strtol(argv[ARGV_ADDR], NULL, 16); in cmd_smbus_quick() 107 static int cmd_smbus_byte_read(const struct shell *sh, size_t argc, char **argv) in cmd_smbus_byte_read() argument 114 dev = device_get_binding(argv[ARGV_DEV]); in cmd_smbus_byte_read() [all …]
|
/Zephyr-Core-3.4.0/subsys/bluetooth/shell/ |
D | ll.c | 27 int cmd_ll_addr_read(const struct shell *sh, size_t argc, char *argv[]) in cmd_ll_addr_read() argument 38 str_type = argv[1]; in cmd_ll_addr_read() 58 int cmd_test_tx(const struct shell *sh, size_t argc, char *argv[]) in cmd_test_tx() argument 67 chan = strtoul(argv[1], NULL, 16); in cmd_test_tx() 68 len = strtoul(argv[2], NULL, 16); in cmd_test_tx() 69 type = strtoul(argv[3], NULL, 16); in cmd_test_tx() 70 phy = strtoul(argv[4], NULL, 16); in cmd_test_tx() 84 int cmd_test_rx(const struct shell *sh, size_t argc, char *argv[]) in cmd_test_rx() argument 93 chan = strtoul(argv[1], NULL, 16); in cmd_test_rx() 94 phy = strtoul(argv[2], NULL, 16); in cmd_test_rx() [all …]
|
D | ias_client.c | 35 static int cmd_ias_client_init(const struct shell *sh, size_t argc, char **argv) in cmd_ias_client_init() argument 53 static int cmd_ias_client_discover(const struct shell *sh, size_t argc, char **argv) in cmd_ias_client_discover() argument 65 static int cmd_ias_client_set_alert(const struct shell *sh, size_t argc, char **argv) in cmd_ias_client_set_alert() argument 69 if (strcmp(argv[1], "stop") == 0) { in cmd_ias_client_set_alert() 72 } else if (strcmp(argv[1], "mild") == 0) { in cmd_ias_client_set_alert() 75 } else if (strcmp(argv[1], "high") == 0) { in cmd_ias_client_set_alert() 79 shell_error(sh, "Invalid alert level %s", argv[1]); in cmd_ias_client_set_alert() 84 shell_error(sh, "Failed to send %s alert %d", argv[1], err); in cmd_ias_client_set_alert() 86 shell_print(sh, "Sent alert %s", argv[1]); in cmd_ias_client_set_alert() 92 static int cmd_ias_client(const struct shell *sh, size_t argc, char **argv) in cmd_ias_client() argument [all …]
|
/Zephyr-Core-3.4.0/subsys/bluetooth/audio/shell/ |
D | tbs_client.c | 28 char *argv[]) in cmd_tbs_client_discover() argument 34 subscribe = shell_strtobool(argv[1], 0, &result); in cmd_tbs_client_discover() 54 char *argv[]) in cmd_tbs_client_set_signal_strength_interval() argument 64 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_set_signal_strength_interval() 67 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_set_signal_strength_interval() 87 interval = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_set_signal_strength_interval() 113 char *argv[]) in cmd_tbs_client_hold() argument 120 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_hold() 123 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_hold() 143 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_hold() [all …]
|
D | mpl.c | 30 char *argv[]) in cmd_mpl_test_set_media_state() argument 35 state = shell_strtoul(argv[1], 0, &err); in cmd_mpl_test_set_media_state() 55 char *argv[]) in cmd_mpl_test_unset_parent_group() argument 66 char *argv[]) in cmd_mpl_debug_dump_state() argument 74 int cmd_media_proxy_pl_init(const struct shell *sh, size_t argc, char *argv[]) in cmd_media_proxy_pl_init() argument 90 char *argv[]) in cmd_mpl_test_player_name_cb() argument 98 char *argv[]) in cmd_mpl_test_player_icon_url_cb() argument 106 char *argv[]) in cmd_mpl_test_track_changed_cb() argument 113 char *argv[]) in cmd_mpl_test_title_changed_cb() argument 120 char *argv[]) in cmd_mpl_test_duration_changed_cb() argument [all …]
|
D | tbs.c | 39 static int cmd_tbs_authorize(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_authorize() argument 63 static int cmd_tbs_accept(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_accept() argument 68 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_accept() 93 char *argv[]) in cmd_tbs_terminate() argument 98 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_terminate() 122 static int cmd_tbs_hold(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_hold() argument 127 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_hold() 152 char *argv[]) in cmd_tbs_retrieve() argument 157 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_retrieve() 181 static int cmd_tbs_originate(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_originate() argument [all …]
|
D | has.c | 35 static int cmd_preset_reg(const struct shell *sh, size_t argc, char **argv) in cmd_preset_reg() argument 39 .index = shell_strtoul(argv[1], 16, &err), in cmd_preset_reg() 40 .properties = shell_strtoul(argv[2], 16, &err), in cmd_preset_reg() 41 .name = argv[3], in cmd_preset_reg() 59 static int cmd_preset_unreg(const struct shell *sh, size_t argc, char **argv) in cmd_preset_unreg() argument 62 const uint8_t index = shell_strtoul(argv[1], 16, &err); in cmd_preset_unreg() 78 static int cmd_features_set(const struct shell *sh, size_t argc, char **argv) in cmd_features_set() argument 88 const char *arg = argv[argn]; in cmd_features_set() 115 static int cmd_has_register(const struct shell *sh, size_t argc, char **argv) in cmd_has_register() argument 125 const char *arg = argv[argn]; in cmd_has_register() [all …]
|
/Zephyr-Core-3.4.0/drivers/regulator/ |
D | regulator_shell.c | 86 static int cmd_enable(const struct shell *sh, size_t argc, char **argv) in cmd_enable() argument 93 dev = device_get_binding(argv[1]); in cmd_enable() 95 shell_error(sh, "Regulator device %s not available", argv[1]); in cmd_enable() 108 static int cmd_disable(const struct shell *sh, size_t argc, char **argv) in cmd_disable() argument 115 dev = device_get_binding(argv[1]); in cmd_disable() 117 shell_error(sh, "Regulator device %s not available", argv[1]); in cmd_disable() 130 static int cmd_vlist(const struct shell *sh, size_t argc, char **argv) in cmd_vlist() argument 138 dev = device_get_binding(argv[1]); in cmd_vlist() 140 shell_error(sh, "Regulator device %s not available", argv[1]); in cmd_vlist() 162 static int cmd_vset(const struct shell *sh, size_t argc, char **argv) in cmd_vset() argument [all …]
|
/Zephyr-Core-3.4.0/subsys/shell/ |
D | shell_cmds.c | 205 static int cmd_clear(const struct shell *sh, size_t argc, char **argv) in cmd_clear() argument 207 ARG_UNUSED(argv); in cmd_clear() 215 static int cmd_backends(const struct shell *sh, size_t argc, char **argv) in cmd_backends() argument 218 ARG_UNUSED(argv); in cmd_backends() 231 char **argv) in cmd_bacskpace_mode_backspace() argument 234 ARG_UNUSED(argv); in cmd_bacskpace_mode_backspace() 242 char **argv) in cmd_bacskpace_mode_delete() argument 245 ARG_UNUSED(argv); in cmd_bacskpace_mode_delete() 252 static int cmd_colors_off(const struct shell *sh, size_t argc, char **argv) in cmd_colors_off() argument 255 ARG_UNUSED(argv); in cmd_colors_off() [all …]
|
/Zephyr-Core-3.4.0/subsys/sip_svc/ |
D | sip_svc_shell.c | 22 static int parse_common_args(const struct shell *sh, char **argv, void **ctrl) in parse_common_args() argument 24 *ctrl = sip_svc_get_controller(argv[1]); in parse_common_args() 27 shell_error(sh, "service %s not found", argv[1]); in parse_common_args() 34 shell_error(sh, "ARM SiP services method %s not initialized", argv[1]); in parse_common_args() 40 static int cmd_reg(const struct shell *sh, size_t argc, char **argv) in cmd_reg() argument 46 err = parse_common_args(sh, argv, (void **)&ctrl); in cmd_reg() 63 static int cmd_unreg(const struct shell *sh, size_t argc, char **argv) in cmd_unreg() argument 70 err = parse_common_args(sh, argv, (void **)&ctrl); in cmd_unreg() 76 c_token = strtoul(argv[2], &endptr, 16); in cmd_unreg() 80 } else if (errno || endptr == argv[2] || *endptr) { in cmd_unreg() [all …]
|
/Zephyr-Core-3.4.0/drivers/w1/ |
D | w1_shell.c | 26 static int read_io_options(const struct shell *sh, int pos, char **argv, in read_io_options() argument 29 char *arg = argv[pos]; in read_io_options() 50 static int cmd_w1_reset_bus(const struct shell *sh, size_t argc, char **argv) in cmd_w1_reset_bus() argument 55 dev = device_get_binding(argv[1]); in cmd_w1_reset_bus() 57 shell_error(sh, W1DEV_X_NOT_FOUND, argv[1]); in cmd_w1_reset_bus() 72 static int cmd_w1_read_bit(const struct shell *sh, size_t argc, char **argv) in cmd_w1_read_bit() argument 77 dev = device_get_binding(argv[1]); in cmd_w1_read_bit() 79 shell_error(sh, W1DEV_X_NOT_FOUND, argv[1]); in cmd_w1_read_bit() 96 static int cmd_w1_read_byte(const struct shell *sh, size_t argc, char **argv) in cmd_w1_read_byte() argument 101 dev = device_get_binding(argv[1]); in cmd_w1_read_byte() [all …]
|
/Zephyr-Core-3.4.0/boards/posix/native_posix/ |
D | cmdline.c | 100 static void print_invalid_opt_error(char *argv) in print_invalid_opt_error() argument 105 argv); in print_invalid_opt_error() 114 void native_handle_cmd_line(int argc, char *argv[]) in native_handle_cmd_line() argument 121 s_argv = argv; in native_handle_cmd_line() 128 if ((cmd_is_option(argv[i], "testargs", 0))) { in native_handle_cmd_line() 130 test_argv = &argv[i+1]; in native_handle_cmd_line() 134 if (!cmd_parse_one_arg(argv[i], args_struct)) { in native_handle_cmd_line() 136 print_invalid_opt_error(argv[i]); in native_handle_cmd_line() 145 void native_get_cmd_line_args(int *argc, char ***argv) in native_get_cmd_line_args() argument 148 *argv = s_argv; in native_get_cmd_line_args() [all …]
|
/Zephyr-Core-3.4.0/subsys/fb/ |
D | cfb_shell.c | 31 static int cmd_clear(const struct shell *sh, size_t argc, char *argv[]) in cmd_clear() argument 36 ARG_UNUSED(argv); in cmd_clear() 95 static int cmd_print(const struct shell *sh, size_t argc, char *argv[]) in cmd_print() argument 105 col = strtol(argv[1], NULL, 10); in cmd_print() 111 row = strtol(argv[2], NULL, 10); in cmd_print() 117 err = cmd_cfb_print(sh, col, row, argv[3]); in cmd_print() 126 static int cmd_draw_text(const struct shell *sh, size_t argc, char *argv[]) in cmd_draw_text() argument 136 x = strtol(argv[1], NULL, 10); in cmd_draw_text() 137 y = strtol(argv[2], NULL, 10); in cmd_draw_text() 138 err = cfb_draw_text(dev, argv[3], x, y); in cmd_draw_text() [all …]
|
/Zephyr-Core-3.4.0/drivers/fpga/ |
D | fpga_shell.c | 13 static int parse_common_args(const struct shell *sh, char **argv, in parse_common_args() argument 16 *dev = device_get_binding(argv[1]); in parse_common_args() 18 shell_error(sh, "FPGA device %s not found", argv[1]); in parse_common_args() 24 static int cmd_on(const struct shell *sh, size_t argc, char **argv) in cmd_on() argument 29 err = parse_common_args(sh, argv, &dev); in cmd_on() 44 static int cmd_off(const struct shell *sh, size_t argc, char **argv) in cmd_off() argument 49 err = parse_common_args(sh, argv, &dev); in cmd_off() 64 static int cmd_reset(const struct shell *sh, size_t argc, char **argv) in cmd_reset() argument 69 err = parse_common_args(sh, argv, &dev); in cmd_reset() 84 static int cmd_load(const struct shell *sh, size_t argc, char **argv) in cmd_load() argument [all …]
|
/Zephyr-Core-3.4.0/subsys/usb/device_next/ |
D | usbd_shell.c | 33 size_t argc, char **argv) in cmd_wakeup_request() argument 48 size_t argc, char **argv) in cmd_register() argument 53 cfg = strtol(argv[2], NULL, 10); in cmd_register() 54 ret = usbd_register_class(my_uds_ctx, argv[1], cfg); in cmd_register() 59 argv[1], cfg); in cmd_register() 63 argv[1], cfg); in cmd_register() 70 size_t argc, char **argv) in cmd_unregister() argument 75 cfg = strtol(argv[2], NULL, 10); in cmd_unregister() 76 ret = usbd_unregister_class(my_uds_ctx, argv[1], cfg); in cmd_unregister() 80 argv[1], cfg); in cmd_unregister() [all …]
|
/Zephyr-Core-3.4.0/samples/shields/npm6001_ek/src/ |
D | main.c | 70 static int cmd_regulator_list(const struct shell *sh, size_t argc, char **argv) in cmd_regulator_list() argument 73 ARG_UNUSED(argv); in cmd_regulator_list() 84 static int cmd_regulator_voltages(const struct shell *sh, size_t argc, char **argv) in cmd_regulator_voltages() argument 91 dev = name2reg(argv[1]); in cmd_regulator_voltages() 93 shell_error(sh, "Invalid regulator: %s", argv[1]); in cmd_regulator_voltages() 109 static int cmd_regulator_enable(const struct shell *sh, size_t argc, char **argv) in cmd_regulator_enable() argument 116 dev = name2reg(argv[1]); in cmd_regulator_enable() 118 shell_error(sh, "Invalid regulator: %s", argv[1]); in cmd_regulator_enable() 131 static int cmd_regulator_disable(const struct shell *sh, size_t argc, char **argv) in cmd_regulator_disable() argument 138 dev = name2reg(argv[1]); in cmd_regulator_disable() [all …]
|
/Zephyr-Core-3.4.0/subsys/logging/ |
D | log_cmds.c | 17 char **argv); 72 char **argv, in shell_backend_cmd_execute() argument 78 char const *name = argv[-1]; in shell_backend_cmd_execute() 82 func(sh, backend, argc, argv); in shell_backend_cmd_execute() 93 size_t argc, char **argv) in log_status() argument 124 size_t argc, char **argv) in cmd_log_self_status() argument 130 log_status(sh, sh->log_backend->backend, argc, argv); in cmd_log_self_status() 135 size_t argc, char **argv) in cmd_log_backend_status() argument 137 shell_backend_cmd_execute(sh, argc, argv, log_status); in cmd_log_backend_status() 159 size_t argc, char **argv, uint32_t level) in filters_set() argument [all …]
|
/Zephyr-Core-3.4.0/boards/posix/nrf52_bsim/ |
D | argparse.c | 35 static void cmd_trace_lvl_found(char *argv, int offset) in cmd_trace_lvl_found() argument 40 static void cmd_gdev_nbr_found(char *argv, int offset) in cmd_gdev_nbr_found() argument 45 static void cmd_testid_found(char *argv, int offset) in cmd_testid_found() argument 50 static void cmd_testlist_found(char *argv, int offset) in cmd_testlist_found() argument 57 static void cmd_nosim_found(char *argv, int offset) in cmd_nosim_found() argument 62 static void cmd_no_delay_init_found(char *argv, int offset) in cmd_no_delay_init_found() argument 67 static void cmd_no_sync_preinit_found(char *argv, int offset) in cmd_no_sync_preinit_found() argument 72 static void cmd_no_sync_preboot_found(char *argv, int offset) in cmd_no_sync_preboot_found() argument 77 static void cmd_max_resync_offset_found(char *argv, int offset) in cmd_max_resync_offset_found() argument 82 static void save_test_arg(struct NRF_bsim_args_t *args, char *argv) in save_test_arg() argument [all …]
|
/Zephyr-Core-3.4.0/drivers/pwm/ |
D | pwm_shell.c | 32 static int cmd_cycles(const struct shell *sh, size_t argc, char **argv) in cmd_cycles() argument 41 dev = device_get_binding(argv[args_indx.device]); in cmd_cycles() 47 channel = strtoul(argv[args_indx.channel], NULL, 0); in cmd_cycles() 48 period = strtoul(argv[args_indx.period], NULL, 0); in cmd_cycles() 49 pulse = strtoul(argv[args_indx.pulse], NULL, 0); in cmd_cycles() 52 flags = strtoul(argv[args_indx.flags], NULL, 0); in cmd_cycles() 65 static int cmd_usec(const struct shell *sh, size_t argc, char **argv) in cmd_usec() argument 74 dev = device_get_binding(argv[args_indx.device]); in cmd_usec() 80 channel = strtoul(argv[args_indx.channel], NULL, 0); in cmd_usec() 81 period = strtoul(argv[args_indx.period], NULL, 0); in cmd_usec() [all …]
|
/Zephyr-Core-3.4.0/samples/subsys/shell/shell_module/src/ |
D | dynamic_cmd.c | 30 size_t argc, char **argv) in cmd_dynamic_add() argument 42 cmd_len = strlen(argv[1]); in cmd_dynamic_add() 50 if (isalnum((int)(argv[1][idx])) == 0) { in cmd_dynamic_add() 59 if (!strcmp(dynamic_cmd_buffer[idx], argv[1])) { in cmd_dynamic_add() 65 sprintf(dynamic_cmd_buffer[dynamic_cmd_cnt++], "%s", argv[1]); in cmd_dynamic_add() 76 size_t argc, char **argv) in cmd_dynamic_execute() argument 79 ARG_UNUSED(argv); in cmd_dynamic_execute() 82 if (!strcmp(dynamic_cmd_buffer[idx], argv[1])) { in cmd_dynamic_execute() 83 shell_print(sh, "dynamic command: %s", argv[1]); in cmd_dynamic_execute() 88 shell_error(sh, "%s: unknown parameter: %s", argv[0], argv[1]); in cmd_dynamic_execute() [all …]
|
/Zephyr-Core-3.4.0/subsys/bluetooth/mesh/shell/ |
D | cfg.c | 21 static int cmd_reset(const struct shell *sh, size_t argc, char *argv[]) in cmd_reset() argument 46 static int cmd_timeout(const struct shell *sh, size_t argc, char *argv[]) in cmd_timeout() argument 52 int32_t timeout_s = shell_strtol(argv[1], 0, &err); in cmd_timeout() 78 static int cmd_get_comp(const struct shell *sh, size_t argc, char *argv[]) in cmd_get_comp() argument 87 page = shell_strtoul(argv[1], 0, &err); in cmd_get_comp() 263 static int cmd_beacon(const struct shell *sh, size_t argc, char *argv[]) in cmd_beacon() argument 272 uint8_t val = shell_strtobool(argv[1], 0, &err); in cmd_beacon() 293 static int cmd_ttl(const struct shell *sh, size_t argc, char *argv[]) in cmd_ttl() argument 302 uint8_t val = shell_strtoul(argv[1], 0, &err); in cmd_ttl() 323 static int cmd_friend(const struct shell *sh, size_t argc, char *argv[]) in cmd_friend() argument [all …]
|
/Zephyr-Core-3.4.0/drivers/i2c/ |
D | i2c_shell.c | 51 size_t argc, char **argv) in cmd_i2c_scan() argument 56 dev = device_get_binding(argv[ARGV_DEV]); in cmd_i2c_scan() 60 argv[ARGV_DEV]); in cmd_i2c_scan() 93 cnt, argv[ARGV_DEV]); in cmd_i2c_scan() 100 size_t argc, char **argv) in cmd_i2c_recover() argument 105 dev = device_get_binding(argv[ARGV_DEV]); in cmd_i2c_recover() 108 argv[1]); in cmd_i2c_recover() 176 size_t argc, char **argv) in cmd_i2c_write() argument 178 return i2c_write_from_buffer(shell_ctx, argv[ARGV_DEV], in cmd_i2c_write() 179 argv[ARGV_ADDR], argv[ARGV_REG], in cmd_i2c_write() [all …]
|
/Zephyr-Core-3.4.0/drivers/adc/ |
D | adc_shell.c | 129 static int cmd_adc_ch_id(const struct shell *sh, size_t argc, char **argv) in cmd_adc_ch_id() argument 132 struct adc_hdl *adc = get_adc(argv[-2]); in cmd_adc_ch_id() 140 if (isdigit((unsigned char)argv[1][0]) == 0) { in cmd_adc_ch_id() 145 adc->channel_config.channel_id = (uint8_t)strtol(argv[1], NULL, 10); in cmd_adc_ch_id() 152 static int cmd_adc_ch_neg(const struct shell *sh, size_t argc, char **argv) in cmd_adc_ch_neg() argument 156 struct adc_hdl *adc = get_adc(argv[-2]); in cmd_adc_ch_neg() 164 if (isdigit((unsigned char)argv[1][0]) == 0) { in cmd_adc_ch_neg() 169 adc->channel_config.input_negative = (uint8_t)strtol(argv[1], NULL, 10); in cmd_adc_ch_neg() 179 static int cmd_adc_ch_pos(const struct shell *sh, size_t argc, char **argv) in cmd_adc_ch_pos() argument 183 struct adc_hdl *adc = get_adc(argv[-2]); in cmd_adc_ch_pos() [all …]
|