Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 225) sorted by relevance

123456789

/Zephyr-Core-3.5.0/tests/posix/getopt/src/
Dmain.c43 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.5.0/drivers/smbus/
Dsmbus_shell.c46 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.5.0/drivers/gpio/
Dgpio_shell.c38 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.5.0/subsys/bluetooth/shell/
Dll.c27 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 …]
Dias_client.c35 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.5.0/drivers/regulator/
Dregulator_shell.c86 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.5.0/subsys/bluetooth/audio/shell/
Dtbs_client.c28 char *argv[]) in cmd_tbs_client_discover() argument
43 char *argv[]) in cmd_tbs_client_set_signal_strength_interval() argument
53 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_set_signal_strength_interval()
56 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_set_signal_strength_interval()
76 interval = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_set_signal_strength_interval()
102 char *argv[]) in cmd_tbs_client_hold() argument
109 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_hold()
112 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_hold()
132 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_hold()
156 char *argv[]) in cmd_tbs_client_retrieve() argument
[all …]
Dmpl.c30 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 …]
Dtbs.c39 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 …]
/Zephyr-Core-3.5.0/subsys/shell/
Dshell_cmds.c206 static int cmd_comment(const struct shell *sh, size_t argc, char **argv) in cmd_comment() argument
210 ARG_UNUSED(argv); in cmd_comment()
215 static int cmd_clear(const struct shell *sh, size_t argc, char **argv) in cmd_clear() argument
217 ARG_UNUSED(argv); in cmd_clear()
225 static int cmd_backends(const struct shell *sh, size_t argc, char **argv) in cmd_backends() argument
228 ARG_UNUSED(argv); in cmd_backends()
241 char **argv) in cmd_bacskpace_mode_backspace() argument
244 ARG_UNUSED(argv); in cmd_bacskpace_mode_backspace()
252 char **argv) in cmd_bacskpace_mode_delete() argument
255 ARG_UNUSED(argv); in cmd_bacskpace_mode_delete()
[all …]
/Zephyr-Core-3.5.0/subsys/input/
Dinput_utils.c23 static int input_cmd_dump(const struct shell *sh, size_t argc, char *argv[]) in input_cmd_dump() argument
28 enabled = shell_strtobool(argv[1], 0, &err); in input_cmd_dump()
30 shell_error(sh, "Invalid argument: %s", argv[1]); in input_cmd_dump()
67 static int input_cmd_report(const struct shell *sh, size_t argc, char *argv[]) in input_cmd_report() argument
74 sync = shell_strtobool(argv[4], 0, &err); in input_cmd_report()
76 shell_error(sh, "Invalid argument: %s", argv[4]); in input_cmd_report()
83 type = shell_strtoul(argv[1], 0, &err); in input_cmd_report()
85 shell_error(sh, "Invalid argument: %s", argv[1]); in input_cmd_report()
89 shell_error(sh, "Out of range: %s", argv[1]); in input_cmd_report()
93 code = shell_strtoul(argv[2], 0, &err); in input_cmd_report()
[all …]
/Zephyr-Core-3.5.0/subsys/sip_svc/
Dsip_svc_shell.c22 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.5.0/boards/posix/native_posix/
Dcmdline.c100 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.5.0/drivers/w1/
Dw1_shell.c26 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.5.0/drivers/fpga/
Dfpga_shell.c13 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.5.0/subsys/fb/
Dcfb_shell.c31 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.5.0/samples/shields/npm6001_ek/src/
Dmain.c70 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.5.0/subsys/usb/device_next/
Dusbd_shell.c33 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.5.0/scripts/native_simulator/native/src/
Dnsi_cmdline.c98 static void print_invalid_opt_error(char *argv) in print_invalid_opt_error() argument
102 argv); in print_invalid_opt_error()
111 void nsi_handle_cmd_line(int argc, char *argv[]) in nsi_handle_cmd_line() argument
117 s_argv = argv; in nsi_handle_cmd_line()
124 if ((nsi_cmd_is_option(argv[i], "testargs", 0))) { in nsi_handle_cmd_line()
126 test_argv = &argv[i+1]; in nsi_handle_cmd_line()
130 if (!nsi_cmd_parse_one_arg(argv[i], args_struct)) { in nsi_handle_cmd_line()
132 print_invalid_opt_error(argv[i]); in nsi_handle_cmd_line()
141 void nsi_get_cmd_line_args(int *argc, char ***argv) in nsi_get_cmd_line_args() argument
144 *argv = s_argv; in nsi_get_cmd_line_args()
[all …]
/Zephyr-Core-3.5.0/drivers/counter/
Dcounter_timer_shell.c40 static int cmd_timer_free_running(const struct shell *shctx, size_t argc, char **argv) in cmd_timer_free_running() argument
46 timer_dev = device_get_binding(argv[ARGV_DEV]); in cmd_timer_free_running()
48 shell_error(shctx, "Timer: Device %s not found", argv[ARGV_DEV]); in cmd_timer_free_running()
55 shell_error(shctx, "%s is not available err:%d", argv[ARGV_DEV], err); in cmd_timer_free_running()
59 shell_info(shctx, "%s: Timer is freerunning", argv[ARGV_DEV]); in cmd_timer_free_running()
64 static int cmd_timer_stop(const struct shell *shctx, size_t argc, char **argv) in cmd_timer_stop() argument
70 timer_dev = device_get_binding(argv[ARGV_DEV]); in cmd_timer_stop()
72 shell_error(shctx, "Timer: Device %s not found", argv[ARGV_DEV]); in cmd_timer_stop()
91 static int cmd_timer_oneshot(const struct shell *shctx, size_t argc, char **argv) in cmd_timer_oneshot() argument
102 timer_dev = device_get_binding(argv[ARGV_DEV]); in cmd_timer_oneshot()
[all …]
/Zephyr-Core-3.5.0/subsys/logging/
Dlog_cmds.c17 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.5.0/drivers/pwm/
Dpwm_shell.c32 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.5.0/samples/subsys/shell/shell_module/src/
Ddynamic_cmd.c30 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.5.0/subsys/bluetooth/mesh/shell/
Dcfg.c21 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()
300 static int cmd_beacon(const struct shell *sh, size_t argc, char *argv[]) in cmd_beacon() argument
309 uint8_t val = shell_strtobool(argv[1], 0, &err); in cmd_beacon()
330 static int cmd_ttl(const struct shell *sh, size_t argc, char *argv[]) in cmd_ttl() argument
339 uint8_t val = shell_strtoul(argv[1], 0, &err); in cmd_ttl()
360 static int cmd_friend(const struct shell *sh, size_t argc, char *argv[]) in cmd_friend() argument
[all …]
/Zephyr-Core-3.5.0/drivers/adc/
Dadc_shell.c122 static int cmd_adc_ch_id(const struct shell *sh, size_t argc, char **argv) in cmd_adc_ch_id() argument
125 struct adc_hdl *adc = get_adc(argv[-2]); in cmd_adc_ch_id()
133 if (isdigit((unsigned char)argv[1][0]) == 0) { in cmd_adc_ch_id()
138 adc->channel_config.channel_id = (uint8_t)strtol(argv[1], NULL, 10); in cmd_adc_ch_id()
145 static int cmd_adc_ch_diff(const struct shell *sh, size_t argc, char **argv) in cmd_adc_ch_diff() argument
148 struct adc_hdl *adc = get_adc(argv[-2]); in cmd_adc_ch_diff()
158 endptr = argv[1]; in cmd_adc_ch_diff()
159 diff = strtol(argv[1], &endptr, 10); in cmd_adc_ch_diff()
160 if ((endptr == argv[1]) || ((diff != 0) && (diff != 1))) { in cmd_adc_ch_diff()
172 static int cmd_adc_ch_neg(const struct shell *sh, size_t argc, char **argv) in cmd_adc_ch_neg() argument
[all …]

123456789