File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
samples/subsys/modbus/rtu_server Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
- CONFIG_USB_DEVICE_STACK=y
2
- CONFIG_USB_DEVICE_PRODUCT="Zephyr CDC ACM MODBUS sample"
1
+ CONFIG_USB_DEVICE_STACK_NEXT=y
2
+ CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y
3
+ CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Zephyr CDC ACM MODBUS sample"
3
4
CONFIG_UART_LINE_CTRL=y
4
- CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
Original file line number Diff line number Diff line change 33
33
extra_args :
34
34
- EXTRA_CONF_FILE="overlay-cdc-acm.conf"
35
35
- DTC_OVERLAY_FILE="cdc-acm.overlay"
36
- depends_on : usb_device
36
+ depends_on : usbd
Original file line number Diff line number Diff line change 9
9
#include <zephyr/sys/util.h>
10
10
#include <zephyr/drivers/gpio.h>
11
11
#include <zephyr/modbus/modbus.h>
12
- #include <zephyr/usb/usb_device.h>
13
12
14
13
#include <zephyr/logging/log.h>
15
14
LOG_MODULE_REGISTER (mbs_sample , LOG_LEVEL_INF );
@@ -147,7 +146,7 @@ int main(void)
147
146
const struct device * const dev = DEVICE_DT_GET (DT_PARENT (MODBUS_NODE ));
148
147
uint32_t dtr = 0 ;
149
148
150
- if (!device_is_ready (dev ) || usb_enable ( NULL ) ) {
149
+ if (!device_is_ready (dev )) {
151
150
return 0 ;
152
151
}
153
152
You can’t perform that action at this time.
0 commit comments