Skip to content

Commit

Permalink
zephyr: Use CONFIG_USB_DEVICE_STACK for conditional USB device support.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
MaureenHelm authored and dpgeorge committed Jan 6, 2022
1 parent 1e5df09 commit 0cf03bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion ports/zephyr/boards/mimxrt1050_evk.conf
@@ -1,7 +1,6 @@
# Required for zephyr.DiskAccess block devices
CONFIG_DISK_ACCESS=y

CONFIG_USB=y
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT="Zephyr MicroPython"
CONFIG_USB_MASS_STORAGE=y
Expand Down
4 changes: 2 additions & 2 deletions ports/zephyr/main.c
Expand Up @@ -34,7 +34,7 @@
#include <net/net_context.h>
#endif

#ifdef CONFIG_USB
#ifdef CONFIG_USB_DEVICE_STACK
#include <usb/usb_device.h>
#endif

Expand Down Expand Up @@ -140,7 +140,7 @@ int real_main(void) {
#endif
mp_init();

#ifdef CONFIG_USB
#ifdef CONFIG_USB_DEVICE_STACK
usb_enable(NULL);
#endif

Expand Down

0 comments on commit 0cf03bd

Please sign in to comment.