Skip to content

Commit 5fa40cc

Browse files
committed
Fix cyw43 and build with usb_cdc
1 parent d4a46ba commit 5fa40cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ports/raspberrypi/cyw43_configport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
#define CYW43_NETUTILS (1)
3939

40-
#if CIRCUITPY_USB
40+
#if CIRCUITPY_USB_DEVICE
4141
#include "supervisor/usb.h"
4242
#define CYW43_EVENT_POLL_HOOK usb_background();
4343
#else

supervisor/supervisor.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ ifeq ($(CIRCUITPY_TINYUSB),1)
118118

119119
ifeq ($(CIRCUITPY_USB_DEVICE),1)
120120
SRC_SUPERVISOR += \
121+
lib/tinyusb/src/class/cdc/cdc_device.c \
121122
lib/tinyusb/src/device/usbd.c \
122123
lib/tinyusb/src/device/usbd_control.c \
123124
supervisor/shared/usb/usb_desc.c \
@@ -127,7 +128,6 @@ ifeq ($(CIRCUITPY_TINYUSB),1)
127128

128129
ifeq ($(CIRCUITPY_USB_CDC), 1)
129130
SRC_SUPERVISOR += \
130-
lib/tinyusb/src/class/cdc/cdc_device.c \
131131
shared-bindings/usb_cdc/__init__.c \
132132
shared-bindings/usb_cdc/Serial.c \
133133
shared-module/usb_cdc/__init__.c \

0 commit comments

Comments
 (0)