8000 zephyr: Use CONFIG_USB_DEVICE_STACK for conditional USB device support. · DEVBOX10/micropython@0cf03bd · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cf03bd

Browse files
MaureenHelmdpgeorge
authored andcommitted
zephyr: Use CONFIG_USB_DEVICE_STACK for conditional USB device support.
CONFIG_USB was removed in Zephyr v2.7.0 after some Kconfig rework that made it sufficient to use CONFIG_USB_DEVICE_STACK only. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
1 parent 1e5df09 commit 0cf03bd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ports/zephyr/boards/mimxrt1050_evk.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Required for zephyr.DiskAccess block devices
22
CONFIG_DISK_ACCESS=y
33

4-
CONFIG_USB=y
54
CONFIG_USB_DEVICE_STACK=y
65
CONFIG_USB_DEVICE_PRODUCT="Zephyr MicroPython"
76
CONFIG_USB_MASS_STORAGE=y

ports/zephyr/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <net/net_context.h>
3535
#endif
3636

37-
#ifdef CONFIG_USB
37+
#ifdef CONFIG_USB_DEVICE_STACK
3838
#include <usb/usb_device.h>
3939
#endif
4040

@@ -140,7 +140,7 @@ int real_main(void) {
140140
#endif
141141
mp_init();
142142

143-
#ifdef CONFIG_USB
143+
#ifdef CONFIG_USB_DEVICE_STACK
144144
usb_enable(NULL);
145145
#endif
146146

0 commit comments

Comments
 (0)
0