Skip to content

Commit dbddc54

Browse files
committed
fix(usb): route HAL v2 re-enumeration through PCD adapter
1 parent 50a4eea commit dbddc54

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎libraries/USBDevice/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ add_library(USBDevice_bin OBJECT EXCLUDE_FROM_ALL
2828
src/usb_device_ctlreq.c
2929
src/usb_device_ioreq.c
3030
src/usbd_conf.c
31+
src/usbd_confv2.c
3132
src/usbd_desc.c
3233
src/usbd_ep_conf.c
3334
src/usbd_if.c
@@ -39,4 +40,3 @@ target_link_libraries(USBDevice INTERFACE
3940
USBDevice_bin
4041
$<TARGET_OBJECTS:USBDevice_bin>
4142
)
42-

‎libraries/USBDevice/src/usbd_if.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "usbd_cdc_if.h"
1212
#include "stm32yyxx_ll_system.h"
1313

14-
#if !defined(USBD_REENUM_DISABLED)
14+
#if !defined(USBD_REENUM_DISABLED) && !defined(USE_HALV2_DRIVER)
1515

1616
/*
1717
* Below, support for re-attaching to USB is handled. USB-attachment is

0 commit comments

Comments
 (0)