summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/zephyr/boards/mimxrt1050_evk.conf1
-rw-r--r--ports/zephyr/main.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/ports/zephyr/boards/mimxrt1050_evk.conf b/ports/zephyr/boards/mimxrt1050_evk.conf
index c4abf726a..98981df75 100644
--- a/ports/zephyr/boards/mimxrt1050_evk.conf
+++ b/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
diff --git a/ports/zephyr/main.c b/ports/zephyr/main.c
index f97276834..1275a4973 100644
--- a/ports/zephyr/main.c
+++ b/ports/zephyr/main.c
@@ -34,7 +34,7 @@
#include <net/net_context.h>
#endif
-#ifdef CONFIG_USB
+#ifdef CONFIG_USB_DEVICE_STACK
#include <usb/usb_device.h>
#endif
@@ -140,7 +140,7 @@ soft_reset:
#endif
mp_init();
- #ifdef CONFIG_USB
+ #ifdef CONFIG_USB_DEVICE_STACK
usb_enable(NULL);
#endif