File tree Expand file tree Collapse file tree 4 files changed +61
-14
lines changed
peregrine/sam4l_wm400_cape Expand file tree Collapse file tree 4 files changed +61
-14
lines changed Original file line number Diff line number Diff line change @@ -23,23 +23,20 @@ config SHELL_BACKEND_SERIAL_CHECK_DTR
23
23
config UART_LINE_CTRL
24
24
default SHELL
25
25
26
- config USB_DEVICE_STACK
27
- default y
28
-
29
- config USB_DEVICE_INITIALIZE_AT_BOOT
26
+ config USB_DEVICE_STACK_NEXT
30
27
default y if !MCUBOOT
31
28
32
- config USB_DEVICE_REMOTE_WAKEUP
33
- default n
29
+ config CDC_ACM_SERIAL_INITIALIZE_AT_BOOT
30
+ default y if !MCUBOOT
34
31
35
32
if LOG
36
33
37
- choice USB_CDC_ACM_LOG_LEVEL_CHOICE
38
- default USB_CDC_ACM_LOG_LEVEL_OFF
34
+ choice USBD_CDC_ACM_LOG_LEVEL_CHOICE
35
+ default USBD_CDC_ACM_LOG_LEVEL_OFF
39
36
endchoice
40
37
41
- choice USB_DEVICE_LOG_LEVEL_CHOICE
42
- default USB_DEVICE_LOG_LEVEL_OFF
38
+ choice USBD_LOG_LEVEL_CHOICE
39
+ default USBD_LOG_LEVEL_OFF
43
40
endchoice
44
41
45
42
# Wait 4000ms at startup for logging
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2023-2024 Nordic Semiconductor ASA
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ config BOARD_REQUIRES_SERIAL_BACKEND_CDC_ACM
6
+ default y
7
+
8
+ if BOARD_SERIAL_BACKEND_CDC_ACM
9
+
10
+ config SERIAL
11
+ default y
12
+
13
+ config CONSOLE
14
+ default y
15
+
16
+ config UART_CONSOLE
17
+ default CONSOLE
18
+
19
+ config SHELL_BACKEND_SERIAL_CHECK_DTR
20
+ default SHELL
21
+ depends on UART_LINE_CTRL
22
+
23
+ config UART_LINE_CTRL
24
+ default SHELL
25
+
26
+ config USB_DEVICE_STACK
27
+ default y
28
+
29
+ config USB_DEVICE_INITIALIZE_AT_BOOT
30
+ default y if !MCUBOOT
31
+
32
+ config USB_DEVICE_REMOTE_WAKEUP
33
+ default n
34
+
35
+ if LOG
36
+
37
+ choice USB_CDC_ACM_LOG_LEVEL_CHOICE
38
+ default USB_CDC_ACM_LOG_LEVEL_OFF
39
+ endchoice
40
+
41
+ choice USB_DEVICE_LOG_LEVEL_CHOICE
42
+ default USB_DEVICE_LOG_LEVEL_OFF
43
+ endchoice
44
+
45
+ # Wait 4000ms at startup for logging
46
+ config LOG_PROCESS_THREAD_STARTUP_DELAY_MS
47
+ default 4000
48
+
49
+ endif # LOG
50
+
51
+ endif # BOARD_SERIAL_BACKEND_CDC_ACM
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ endif # NETWORKING
17
17
config USE_DT_CODE_PARTITION
18
18
default y
19
19
20
- source "boards/common/usb/Kconfig.cdc_acm_serial .defconfig"
20
+ source "boards/common/usb/Kconfig.cdc_acm_serial_legacy .defconfig"
21
21
22
22
endif # BOARD_SAM4L_WM400_CAPE
Original file line number Diff line number Diff line change 1
- CONFIG_USB_DEVICE_STACK=y
2
- CONFIG_USB_DEVICE_PRODUCT="Zephyr USB console sample"
3
- CONFIG_USB_DEVICE_PID=0x0004
1
+ CONFIG_USB_DEVICE_STACK_NEXT=y
2
+ CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y
4
3
5
4
CONFIG_SERIAL=y
6
5
CONFIG_CONSOLE=y
You can’t perform that action at this time.
0 commit comments