Skip to content

Commit f817247

Browse files
committed
chore(usb): update usb device config
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 052e013 commit f817247

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: libraries/USBDevice/inc/usbd_conf.h

+10
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ extern "C" {
115115
#define USBD_DEBUG_LEVEL 0U
116116
#endif /* USBD_DEBUG_LEVEL */
117117

118+
#ifndef USBD_USER_REGISTER_CALLBACK
119+
#define USBD_USER_REGISTER_CALLBACK 0U
120+
#endif /* USBD_USER_REGISTER_CALLBACK */
121+
118122
/* ECM, RNDIS, DFU Class Config */
119123
#ifndef USBD_SUPPORT_USER_STRING_DESC
120124
#define USBD_SUPPORT_USER_STRING_DESC 0U
@@ -144,6 +148,12 @@ extern "C" {
144148
#endif /* USBD_CDC_INTERVAL */
145149

146150
/* DFU Class Config */
151+
#ifndef USBD_DFU_VENDOR_CMD_ENABLED
152+
#define USBD_DFU_VENDOR_CMD_ENABLED 0U
153+
#endif /* USBD_DFU_VENDOR_CMD_ENABLED */
154+
#ifndef USBD_DFU_VENDOR_EXIT_ENABLED
155+
#define USBD_DFU_VENDOR_EXIT_ENABLED 1U
156+
#endif /* USBD_DFU_VENDOR_EXIT_ENABLED */
147157
#ifndef USBD_DFU_MAX_ITF_NUM
148158
#define USBD_DFU_MAX_ITF_NUM 1U
149159
#endif /* USBD_DFU_MAX_ITF_NUM */

0 commit comments

Comments
 (0)