File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,27 @@ STATIC mp_obj_t mod_stacks_analyze(void) {
48
48
}
49
49
STATIC MP_DEFINE_CONST_FUN_OBJ_0 (mod_stacks_analyze_obj , mod_stacks_analyze );
50
50
51
+ #ifdef CONFIG_NET_SHELL
52
+
53
+ //int net_shell_cmd_iface(int argc, char *argv[]);
54
+
55
+ STATIC mp_obj_t mod_shell_net_iface (void ) {
56
+ net_shell_cmd_iface (0 , NULL );
57
+ return mp_const_none ;
58
+ }
59
+ STATIC MP_DEFINE_CONST_FUN_OBJ_0 (mod_shell_net_iface_obj , mod_shell_net_iface );
60
+
61
+ #endif // CONFIG_NET_SHELL
62
+
51
63
STATIC const mp_rom_map_elem_t mp_module_time_globals_table [] = {
52
64
{ MP_ROM_QSTR (MP_QSTR___name__ ), MP_ROM_QSTR (MP_QSTR_zephyr ) },
53
65
{ MP_ROM_QSTR (MP_QSTR_is_preempt_thread ), MP_ROM_PTR (& mod_is_preempt_thread_obj ) },
54
66
{ MP_ROM_QSTR (MP_QSTR_current_tid ), MP_ROM_PTR (& mod_current_tid_obj ) },
55
67
{ MP_ROM_QSTR (MP_QSTR_stacks_analyze ), MP_ROM_PTR (& mod_stacks_analyze_obj ) },
68
+
69
+ #ifdef CONFIG_NET_SHELL
70
+ { MP_ROM_QSTR (MP_QSTR_shell_net_iface ), MP_ROM_PTR (& mod_shell_net_iface_obj ) },
71
+ #endif
56
72
};
57
73
58
74
STATIC MP_DEFINE_CONST_DICT (mp_module_time_globals , mp_module_time_globals_table );
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ CONFIG_INIT_STACKS=y
32
32
# Required for usocket.pkt_get_info()
33
33
CONFIG_NET_BUF_POOL_USAGE=y
34
34
35
+ # Required for usocket.shell_*()
36
+ #CONFIG_NET_SHELL=y
37
+
35
38
# Uncomment to enable "INFO" level net_buf logging
36
39
#CONFIG_NET_LOG=y
37
40
#CONFIG_NET_DEBUG_NET_BUF=y
You can’t perform that action at this time.
0 commit comments