File tree Expand file tree Collapse file tree 7 files changed +10
-50
lines changed
samples/net/sockets/echo_server Expand file tree Collapse file tree 7 files changed +10
-50
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ target_sources_ifdef(CONFIG_NET_UDP app PRIVATE src/udp.c)
23
23
target_sources_ifdef (CONFIG_NET_TCP app PRIVATE src/tcp.c )
24
24
target_sources_ifdef (CONFIG_NET_L2_IPIP app PRIVATE src/tunnel.c )
25
25
26
- if (CONFIG_USB_DEVICE_STACK )
27
- target_sources (app PRIVATE src/usb.c )
28
- endif ()
29
-
30
26
if (CONFIG_USB_DEVICE_STACK_NEXT )
31
27
target_sources (app PRIVATE src/usb.c )
32
28
include (${ZEPHYR_BASE} /samples/subsys/usb/common/common.cmake )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,4 +4,6 @@ CONFIG_LOG=y
4
4
CONFIG_USBD_LOG_LEVEL_WRN=y
5
5
CONFIG_UDC_DRIVER_LOG_LEVEL_WRN=y
6
6
7
+ CONFIG_NET_L2_ETHERNET=y
8
+
7
9
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
Original file line number Diff line number Diff line change @@ -75,18 +75,15 @@ tests:
75
75
sample.net.sockets.echo_server.b91_802154 :
76
76
extra_args : EXTRA_CONF_FILE="overlay-802154.conf"
77
77
platform_allow : tlsr9518adk80d
78
- sample.net.sockets.echo_server.usbnet :
79
- depends_on : usb_device
78
+ sample.net.sockets.echo_server.usbd_cdc_ncm :
79
+ depends_on : usbd
80
80
harness : net
81
- extra_args : EXTRA_CONF_FILE="overlay-netusb.conf"
81
+ extra_args : EXTRA_CONF_FILE="overlay-usbd.conf"
82
+ EXTRA_DTC_OVERLAY_FILE="usbd_cdc_ncm.overlay"
82
83
tags :
83
84
- net
84
85
- usb
85
- # native_sim usb driver does not work with CONFIG_POSIX_API
86
- platform_exclude :
87
- - native_sim
88
- - native_sim/native/64
89
- sample.net.sockets.echo_server.openthread :
86
+ sample.net.sockets.echo_server.nrf_openthread :
90
87
extra_args : EXTRA_CONF_FILE="overlay-ot.conf"
91
88
slow : true
92
89
tags :
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ static inline bool is_tunnel(struct net_if *iface)
99
99
}
100
100
#endif /* CONFIG_NET_L2_IPIP */
101
101
102
- #if defined(CONFIG_USB_DEVICE_STACK ) || defined( CONFIG_USB_DEVICE_STACK_NEXT )
102
+ #if defined(CONFIG_USB_DEVICE_STACK_NEXT )
103
103
int init_usb (void );
104
104
#else
105
105
static inline int init_usb (void )
Original file line number Diff line number Diff line change 7
7
#include <zephyr/logging/log.h>
8
8
LOG_MODULE_DECLARE (net_echo_server_sample , LOG_LEVEL_DBG );
9
9
10
- #include <zephyr/usb/usb_device.h>
11
- #include <zephyr/net/net_config.h>
12
-
13
- #if defined(CONFIG_USB_DEVICE_STACK_NEXT )
14
10
#include <sample_usbd.h>
11
+ #include <zephyr/net/net_config.h>
15
12
16
13
static struct usbd_context * sample_usbd ;
17
14
18
- static int enable_usb_device_next (void )
15
+ int init_usb (void )
19
16
{
20
17
int err ;
21
18
@@ -29,28 +26,6 @@ static int enable_usb_device_next(void)
29
26
return err ;
30
27
}
31
28
32
- return 0 ;
33
- }
34
- #endif /* CONFIG_USB_DEVICE_STACK_NEXT */
35
-
36
- int init_usb (void )
37
- {
38
- #if defined(CONFIG_USB_DEVICE_STACK )
39
- int ret ;
40
-
41
- ret = usb_enable (NULL );
42
- if (ret != 0 ) {
43
- LOG_ERR ("Cannot enable USB (%d)" , ret );
44
- return ret ;
45
- }
46
- #endif /* CONFIG_USB_DEVICE_STACK */
47
-
48
- #if defined(CONFIG_USB_DEVICE_STACK_NEXT )
49
- if (enable_usb_device_next ()) {
50
- return 0 ;
51
- }
52
- #endif /* CONFIG_USB_DEVICE_STACK_NEXT */
53
-
54
29
(void )net_config_init_app (NULL , "Initializing network" );
55
30
56
31
return 0 ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments