summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaureen Helm <maureen.helm@intel.com>2022-01-04 16:58:42 -0600
committerDamien George <damien@micropython.org>2022-01-06 14:09:39 +1100
commit0cf03bd3b1fbaa3c025b50b1329286af448a41a6 (patch)
tree8eac0da8dc5b1e0e632eec7268ffd420ea9f006a
parent1e5df0982aea7adaac74ce9be3be62a638660fcd (diff)
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>
-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